:root {
    --pa-cookie-bg: #0b0b0f;
    --pa-cookie-panel-bg: #050509;
    --pa-cookie-accent: #115740;
    --pa-cookie-text: #ffffff;
    --pa-cookie-muted: #a3a3a3;
    --pa-cookie-border: #1e1e24;
}

/* Banner */
.pa-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(11, 11, 15, 0.96);
    color: var(--pa-cookie-text);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
    font-size: 14px;
    line-height: 1.5;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pa-cookie-banner-bottom {
    bottom: 0;
}

.pa-cookie-banner-top {
    top: 0;
}

#pa-cookie-banner.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.pa-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pa-cookie-message {
    margin: 0;
    color: var(--pa-cookie-text);
}

.pa-cookie-link {
    color: var(--pa-cookie-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.pa-cookie-link:hover {
    text-decoration-thickness: 2px;
}

.pa-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pa-cookie-btn {
    border-radius: 999px;
    padding: 8px 18px;
    border: 1px solid transparent;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    color: var(--pa-cookie-text);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.pa-cookie-btn-primary {
    background: var(--pa-cookie-accent);
    border-color: var(--pa-cookie-accent);
    color: #ffffff;
}

.pa-cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pa-cookie-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--pa-cookie-text);
}

.pa-cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pa-cookie-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--pa-cookie-text);
}

.pa-cookie-btn-outline:hover {
    border-color: var(--pa-cookie-accent);
}

/* Modal */
.pa-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pa-cookie-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pa-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.pa-cookie-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 92%;
    background: var(--pa-cookie-panel-bg);
    border-radius: 20px;
    padding: 20px 20px 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--pa-cookie-text);
}

.pa-cookie-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.pa-cookie-modal-intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--pa-cookie-muted);
}

.pa-cookie-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--pa-cookie-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}

.pa-cookie-modal-close:hover {
    color: #ffffff;
}

.pa-cookie-category {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.pa-cookie-category-title {
    font-size: 14px;
    font-weight: 600;
}

.pa-cookie-category-description {
    margin: 0;
    font-size: 12px;
    color: var(--pa-cookie-muted);
}

.pa-cookie-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.pa-cookie-badge-required {
    background: rgba(17, 87, 64, 0.2);
    border-color: rgba(17, 87, 64, 0.7);
    color: #9ae6c9;
}

/* Switch */
.pa-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.pa-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pa-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a44;
    transition: 0.2s;
    border-radius: 999px;
}

.pa-cookie-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.2s;
    border-radius: 50%;
}

.pa-cookie-switch input:checked + .pa-cookie-slider {
    background-color: var(--pa-cookie-accent);
}

.pa-cookie-switch input:checked + .pa-cookie-slider:before {
    transform: translateX(20px);
}

/* Modal actions */
.pa-cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Manage button */
.pa-cookie-manage {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pa-cookie-manage.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pa-cookie-manage-btn {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 11, 15, 0.9);
    color: var(--pa-cookie-text);
    font-size: 12px;
    cursor: pointer;
}

.pa-cookie-manage-btn:hover {
    border-color: var(--pa-cookie-accent);
}

/* Responsive */
@media (min-width: 768px) {
    .pa-cookie-banner-inner {
        padding: 18px 26px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pa-cookie-banner-text {
        flex: 1 1 auto;
        margin-right: 16px;
    }

    .pa-cookie-banner-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .pa-cookie-banner-inner {
        padding: 12px 14px 16px;
    }

    .pa-cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
