/* =====================================================
   WC Wunschfarbe – Styles
   ===================================================== */

/* Overlay */
#wunschfarbe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modal Box */
#wunschfarbe-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 2rem 2.2rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: wf-fadein 0.22s ease;
}

@keyframes wf-fadein {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
#wunschfarbe-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
}
#wunschfarbe-close:hover { color: #111; }

/* Heading */
#wunschfarbe-title {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    color: #1a1a1a;
}
#wunschfarbe-modal > p {
    color: #555;
    margin: 0 0 1.3rem;
    font-size: 0.95rem;
}

/* Form Elements */
#wunschfarbe-form label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
    font-size: 0.9rem;
    color: #333;
}
#wunschfarbe-form label span { color: #e04; }

#wunschfarbe-form input[type="text"],
#wunschfarbe-form input[type="email"],
#wunschfarbe-form textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #ccc;
    border-radius: 7px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
    color: #222;
}
#wunschfarbe-form input:focus,
#wunschfarbe-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
#wunschfarbe-form textarea { resize: vertical; }

/* Submit Button */
#wunschfarbe-submit {
    display: block;
    width: 100%;
    margin-top: 1.3rem;
    padding: 0.75rem 1rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
}
#wunschfarbe-submit:hover  { background: #6d28d9; }
#wunschfarbe-submit:active { transform: scale(0.98); }
#wunschfarbe-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Feedback messages */
#wunschfarbe-feedback {
    margin-top: 0.9rem;
    font-size: 0.92rem;
    min-height: 1.2em;
}
#wunschfarbe-feedback.success { color: #15803d; font-weight: 600; }
#wunschfarbe-feedback.error   { color: #dc2626; }

/* Trigger button on product page */
.wunschfarbe-btn {
    background: #fff !important;
    border: 2px solid #7c3aed !important;
    color: #7c3aed !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: background 0.18s, color 0.18s !important;
    cursor: pointer !important;
}
.wunschfarbe-btn:hover {
    background: #7c3aed !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 480px) {
    #wunschfarbe-modal { padding: 1.4rem 1.2rem; }
}
