/**
 * Personalization Box Styles (Etsy-inspired)
 * Frontend product page styling
 */

/* Main Wrapper */
.puai-personalization-wrapper {
    margin: 24px 0;
}

.puai-personalization-section {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

/* Toggle Button (Etsy-style accordion) */
.puai-personalization-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333333 !important; /* Strongest Text */
    text-align: left;
    transition: background-color 0.2s ease;
}

.puai-personalization-toggle:hover {
    background-color: #F7FAFC !important; /* Lighter Background - site color */
}

.puai-personalization-toggle:focus {
    outline: 2px solid #9F7AEA !important; /* Accent */
    outline-offset: -2px;
}

/* Toggle Icon */
.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.puai-personalization-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon svg {
    display: block;
}

/* Content Area */
.puai-personalization-content {
    padding: 0 20px 20px;
    animation: slideDown 0.3s ease;
}

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

/* Header */
.personalization-header {
    margin-bottom: 20px;
}

.personalization-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #222222;
}

.personalization-header .description {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Photo Upload Notice */
.photo-upload-notice {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #F7FAFC; /* Lighter Background */
    border: 2px solid #9F7AEA; /* Accent */
    border-radius: 8px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #553C9A; /* Accent-alt */
}

.notice-title strong {
    font-weight: 600;
}

.notice-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1A202C; /* Medium Text */
    line-height: 1.5;
}

.notice-method {
    margin: 0;
    font-size: 14px;
    color: #4A5568; /* Strong Text */
    line-height: 1.5;
}

.notice-method strong {
    font-weight: 600;
    color: #553C9A; /* Accent-alt */
}
    color: #1f2937;
    line-height: 1.5;
}

.notice-method {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.notice-method strong {
    font-weight: 600;
    color: #1e40af;
}

/* Form Fields */
.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333333; /* Strongest Text */
}

/* Header */
.personalization-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333333; /* Strongest Text */
}

.personalization-header .description {
    font-size: 14px;
    color: #4A5568; /* Strong Text */
    margin: 0;
    line-height: 1.5;
}

.form-row .input-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CBD5E0; /* Subtle Background */
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333333; /* Strongest Text */
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row .input-text:focus {
    outline: none;
    border-color: #9F7AEA; /* Accent */
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.1);
}

.form-row textarea.input-text {
    resize: vertical;
    min-height: 80px;
}

/* Character Counter */
.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.char-counter.warning {
    color: #dc2626;
}

/* Photo Tips */
.photo-tips {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.tips-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
}

.tips-list li {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Reassurance */
.personalization-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 16px;
}

.reassurance-icon {
    flex-shrink: 0;
    color: #6b7280;
    margin-top: 2px;
}

.personalization-reassurance p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .puai-personalization-toggle {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .puai-personalization-content {
        padding: 0 16px 16px;
    }
    
    .photo-upload-notice {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }
    
    .notice-icon {
        font-size: 28px;
    }
    
    .form-row .input-text {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .puai-personalization-wrapper {
        display: none;
    }
}
