/* ==========================================================================
   Club Véronique - Hukuki Uyum ve Çerez Pop-up Stilleri (front.css)
   ========================================================================== */

/* 0. Temel Görünürlük */
#veronique-consent-wrapper {
    display: none;
}
#veronique-consent-wrapper.is-visible {
    display: block !important;
}

/* 1. Modal ve Arka Plan (Backdrop) */
#veronique-consent-wrapper.is-modal-force .veronique-consent-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999998;
    animation: cvFadeIn 0.3s ease-out;
}

#veronique-consent-wrapper.is-modal-force .veronique-consent-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 999999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    padding: 24px 28px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b2b2b;
    animation: cvSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Alt Çubuk Banner Modu (is-bottom-banner) */
#veronique-consent-wrapper.is-bottom-banner .veronique-consent-card {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 820px;
    z-index: 999999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 20px 24px;
    box-sizing: border-box;
    border: 1px solid #e8e3d9;
}

/* 3. Başlık ve İkon */
.veronique-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.veronique-badge-icon {
    font-size: 20px;
    line-height: 1;
}

.veronique-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* 4. Gövde ve Hukuki Linkler */
.veronique-card-body p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a453e;
    margin: 0 0 14px 0;
}

.veronique-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ece3;
}

.veronique-legal-links a,
.veronique-legal-link,
.legal-underline {
    color: #8c734b;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.veronique-legal-links a:hover,
.veronique-legal-link:hover,
.legal-underline:hover {
    color: #1a1a1a;
}

.veronique-legal-links .sep {
    color: #c9c2b5;
}

/* 5. Tercih Paneli */
#veronique-preferences-panel {
    background: #fbf9f5;
    border: 1px solid #ebe5d8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.cookie-group {
    margin-bottom: 10px;
}

.cookie-group:last-child {
    margin-bottom: 0;
}

.cookie-group .group-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #444;
    cursor: pointer;
    margin: 0;
}

.cookie-group input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #2b2b2b;
}

/* 6. Butonlar */
.veronique-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cv-btn {
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cv-btn-primary {
    background: #1f1f1f;
    color: #ffffff;
    flex: 1;
}

.cv-btn-primary:hover {
    background: #3b3b3b;
    transform: translateY(-1px);
}

.cv-btn-secondary {
    background: #f2ede4;
    color: #3d3830;
    border: 1px solid #dfd7c9;
}

.cv-btn-secondary:hover {
    background: #e6dfd4;
}

.cv-btn-link {
    background: transparent;
    color: #6e6557;
    font-size: 12px;
    text-decoration: underline;
    padding: 6px 10px;
    margin-left: auto;
}

.cv-btn-link:hover {
    color: #1a1a1a;
}

/* 7. Küçük Tetikleyici Rozet (Sol Alt) */
#veronique-cookie-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid #e8e3d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#veronique-cookie-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 8. Ödeme & Üyelik Sayfası KVKK Kutuları */
.veronique-register-kvkk-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2d9c8;
}

.veronique-register-kvkk-block label {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
}

/* Animasyonlar */
@keyframes cvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cvSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobil Uyumluluk (< 768px) */
@media (max-width: 767px) {
    #veronique-consent-wrapper.is-modal-force .veronique-consent-card,
    #veronique-consent-wrapper.is-bottom-banner .veronique-consent-card {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px 18px;
        max-height: 85vh;
    }

    .veronique-card-footer {
        flex-direction: column;
        width: 100%;
    }

    .cv-btn-primary,
    .cv-btn-secondary,
    .cv-btn-link {
        width: 100%;
        margin-left: 0;
    }
}
