/* Valhalla Peptides — Cookie banner + settings modal */

/* ── Banner (bottom-right popup) ──────────────────────────────────── */
.vp-cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998;
    width: 380px;
    max-width: calc(100vw - 40px);
    padding: 20px;
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #F5F5F5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vp-cookie-banner[hidden] {
    display: none !important;
}

.vp-cookie-banner.vp-cookie-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.vp-cookie-heading {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D4AF37;
}

.vp-cookie-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #F5F5F5;
}

.vp-cookie-links {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    color: #999;
}

.vp-cookie-link {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(212, 175, 55, 0.45);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.vp-cookie-link:hover {
    color: #C9A055;
    text-decoration-color: #C9A055;
}

.vp-cookie-link-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: #D4AF37;
}

.vp-cookie-sep {
    margin: 0 8px;
    color: rgba(153, 153, 153, 0.6);
}

.vp-cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .vp-cookie-actions {
        flex-direction: row;
        gap: 8px;
    }
    .vp-cookie-actions .vp-cookie-btn { flex: 1 1 0; }
}

@media (max-width: 480px) {
    .vp-cookie-banner {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: 0;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    }
    .vp-cookie-heading { font-size: 12px; }
    .vp-cookie-text { font-size: 12px; margin-bottom: 8px; }
    .vp-cookie-links { font-size: 11px; margin-bottom: 10px; }
    .vp-cookie-banner .vp-cookie-btn { padding: 10px 12px; font-size: 11px; }
}

.vp-cookie-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 11px 14px;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.vp-cookie-btn:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

.vp-cookie-btn-primary {
    background: #D4AF37;
    color: #000;
}

.vp-cookie-btn-primary:hover {
    background: #C9A055;
}

.vp-cookie-btn-ghost {
    background: transparent;
    color: #D4AF37;
    border: 1px solid #D4AF37;
}

.vp-cookie-btn-ghost:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #C9A055;
    border-color: #C9A055;
}

/* ── Settings modal (centered) ────────────────────────────────────── */
.vp-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Inter', sans-serif;
    opacity: 1;
    overflow-y: auto;
}

.vp-cookie-settings[hidden] {
    display: none !important;
}

.vp-cookie-settings-card {
    width: 100%;
    max-width: 540px;
    margin: auto;
    padding: 36px 32px 28px;
    background: #0F0F0F;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    color: #F5F5F5;
}

.vp-cookie-settings-heading {
    margin: 0 0 8px;
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: #F5F5F5;
}

.vp-cookie-settings-intro {
    margin: 0 0 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #999;
}

.vp-cookie-toggle-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.vp-cookie-toggle {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.vp-cookie-toggle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
}

.vp-cookie-toggle-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vp-cookie-toggle-label strong {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #F5F5F5;
}

.vp-cookie-toggle-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #999;
}

/* Toggle switch */
.vp-cookie-switch {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 24px;
}

.vp-cookie-switch input {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.vp-cookie-switch input:disabled {
    cursor: not-allowed;
}

.vp-cookie-switch-thumb {
    display: block;
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vp-cookie-switch-thumb::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #999;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.vp-cookie-switch input:checked + .vp-cookie-switch-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-color: #D4AF37;
}

.vp-cookie-switch input:checked + .vp-cookie-switch-thumb::after {
    transform: translateX(20px);
    background: #D4AF37;
}

.vp-cookie-switch input:disabled + .vp-cookie-switch-thumb::after {
    background: #C9A055;
}

.vp-cookie-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .vp-cookie-settings-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .vp-cookie-settings-actions .vp-cookie-btn { flex: 0 0 auto; }
}

.vp-cookie-settings-actions .vp-cookie-btn { padding: 13px 22px; }
