/* Root styles */
:root {
    --sn-cookie-bg: #000000;
    --sn-cookie-text: #ffffff;
    --sn-cookie-link: #ffffff;
    --sn-cookie-primary-bg: #28b355;
    --sn-cookie-primary-text: #ffffff;
    --sn-cookie-outline-border: #28b355;
    --sn-cookie-secondary-bg: #000000;
    --sn-cookie-secondary-text: #ffffff;
    --sn-cookie-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    --sn-cookie-radius: 14px;
    --sn-cookie-zindex: 99999;
    --sn-cookie-max-width: 640px;
}

/* Container (fixed bottom, center, similar to modern consent banners) */
.sn-cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; transform: none; z-index: var(--sn-cookie-zindex); max-width: 100%; width: 100%; padding: 16px; box-sizing: border-box; }

/* Hidden state controlled by JS */
.sn-cookie-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sn-cookie-consent-inner { background: var(--sn-cookie-bg);
    background: var(--sn-cookie-bg);
    color: var(--sn-cookie-text);
    border-radius: var(--sn-cookie-radius);
    box-shadow: var(--sn-cookie-shadow);
    padding: 18px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Text */
.sn-cookie-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color:#fff !important;
}

.sn-cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
     color:#fff !important;
}

.sn-cookie-link {
    color: var(--sn-cookie-link);
    text-decoration: underline;
}

/* Actions */
.sn-cookie-consent-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.sn-cookie-btn {
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
    white-space: nowrap;
}

.sn-cookie-btn-primary {
    background: var(--sn-cookie-primary-bg);
    color: var(--sn-cookie-primary-text);
    border: 1px solid var(--sn-cookie-primary-bg);
}

.sn-cookie-btn-primary:hover {
    transform: translateY(-1px);
}

.sn-cookie-btn-outline {
    background: transparent;
    color: var(--sn-cookie-outline-border);
    border: 1px solid var(--sn-cookie-outline-border);
}

.sn-cookie-btn-outline:hover {
    background: rgba(0, 0, 0, 0.06);
}

.sn-cookie-btn-secondary {
    background: var(--sn-cookie-secondary-bg);
    color: var(--sn-cookie-secondary-text);
    border: 1px solid var(--sn-cookie-secondary-bg);
}

.sn-cookie-btn-secondary:hover {
    transform: translateY(-1px);
}

/* Preferences panel (inside same card) */
.sn-cookie-preferences {
    display: none;
    margin-top: 12px;
}

.sn-cookie-preferences-inner {
    margin-top: 10px;
    border-top: 1px solid #eeeeee;
    padding-top: 14px;
}

.sn-cookie-category-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 10px;
}

.sn-cookie-category {
    margin-bottom: 10px;
}

/* Category headers & badges */
.sn-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sn-cookie-category-name {
    font-weight: 600;
    font-size: 14px;
}

.sn-cookie-category-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e5e5;
}

/* Toggle styles */
.sn-cookie-category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sn-cookie-category-toggle input {
    display: none;
}

.sn-cookie-toggle-slider {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background 0.2s ease;
}

.sn-cookie-toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.sn-cookie-category-toggle input:checked + .sn-cookie-toggle-slider {
    background: var(--sn-cookie-primary-bg);
}

.sn-cookie-category-toggle input:checked + .sn-cookie-toggle-slider::after {
    transform: translateX(16px);
}

.sn-cookie-category-label {
    font-size: 14px;
    font-weight: 500;
}

.sn-cookie-category-text {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Preferences actions */
.sn-cookie-preferences-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Responsive behavior */
@media (max-width: 600px) {
    .sn-cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; transform: none; z-index: var(--sn-cookie-zindex); max-width: 100%; width: 100%; padding: 16px; box-sizing: border-box; }

    .sn-cookie-consent-inner { background: var(--sn-cookie-bg);
        border-radius: 10px;
        padding: 14px 14px 12px;
    }

    .sn-cookie-consent-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .sn-cookie-btn {
        width: 100%;
        text-align: center;
    }
}


.sn-cookie-btn,
.sn-cookie-btn-primary,
.sn-cookie-btn-accept,
.sn-cookie-btn-save-preferences {
    background: #28b355;
    color: #ffffff;
    border: none;
}

.sn-cookie-btn-outline,
.sn-cookie-btn-reject,
.sn-cookie-btn-preferences,
.sn-cookie-btn-preferences-back {
    border: 2px solid #28b355;
    background: transparent;
    color: #ffffff;
}


@media (max-width: 640px) {
    .sn-cookie-consent {
        padding: 12px;
    }
    .sn-cookie-consent-inner {
        border-radius: 0;
    }
    .sn-cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    .sn-cookie-btn {
        width: 100%;
        text-align: center;
    }
}
