/* 尺碼建議工具樣式 */
.size-widget {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.widget-header {
    background: #f8f9fa;
    color: #333;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.widget-header p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.widget-content {
    padding: 20px;
}

.widget-form-group {
    margin-bottom: 15px;
}

.widget-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.widget-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.widget-form-group input[type="number"]:focus {
    outline: none;
    border-color: #6c757d;
    background: white;
}

.widget-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.widget-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    position: relative;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-size: 0.9rem;
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

.widget-radio-label:hover {
    border-color: #6c757d;
    background: white;
}

.widget-radio-label input[type="radio"] {
    display: none;
}

.widget-radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.widget-radio-label input[type="radio"]:checked + .widget-radio-custom {
    border-color: #6c757d;
    background: #6c757d;
}

.widget-radio-label input[type="radio"]:checked + .widget-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.widget-submit-btn {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.widget-submit-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.widget-result {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.widget-result.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.widget-size-display {
    text-align: center;
    margin-bottom: 15px;
}

.widget-primary-size {
    font-size: 2rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 5px;
}

.widget-size-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.widget-measurements {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
}

.widget-measurements h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.widget-measurement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.widget-measurement-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.widget-measurement-item .label {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.widget-measurement-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.widget-reset-btn {
    width: 100%;
    padding: 8px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.widget-reset-btn:hover {
    background: #5a6268;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 響應式設計 */
@media (max-width: 480px) {
    .size-widget {
        margin: 10px;
    }
    
    .widget-radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .widget-radio-label {
        flex: none;
    }
    
    .widget-measurement-grid {
        grid-template-columns: 1fr;
    }
} 