.sp-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1065;
    padding: 0.75rem;
    display: none;
}

.sp-cookie-consent.is-visible {
    display: block;
}

.sp-cookie-consent__panel {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8ece8;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.15rem;
}

.sp-cookie-consent__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.35rem;
}

.sp-cookie-consent__text {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.sp-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sp-cookie-consent__actions .btn {
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.sp-cookie-consent__link {
    font-size: 0.8125rem;
    color: var(--brand-green-dark);
    text-decoration: none;
}

.sp-cookie-consent__link:hover {
    color: var(--brand-green);
    text-decoration: underline;
}

.sp-cookie-consent__prefs .modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sp-cookie-consent__prefs .modal-header {
    border-bottom: 1px solid #eef2ee;
    padding: 1rem 1.25rem;
}

.sp-cookie-consent__prefs .modal-body {
    padding: 1rem 1.25rem 0.5rem;
}

.sp-cookie-consent__prefs .modal-footer {
    border-top: 1px solid #eef2ee;
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sp-cookie-category {
    border: 1px solid #e8ece8;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: #fafbfa;
}

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

.sp-cookie-category__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sp-cookie-category__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.25rem;
}

.sp-cookie-category__desc {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.5;
}

.sp-cookie-category .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.sp-cookie-category .form-check-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.sp-cookie-banner-open {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 991.98px) {
    body.sp-cookie-banner-open {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0));
    }

    .sp-cookie-consent {
        bottom: 64px;
        padding: 0.5rem;
    }

    .sp-cookie-consent__panel {
        padding: 0.9rem;
    }

    .sp-cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-cookie-consent__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .sp-cookie-consent__actions .sp-cookie-consent__link-wrap {
        text-align: center;
        width: 100%;
        order: 3;
        margin-top: 0.15rem;
    }
}

@media (min-width: 992px) {
    .sp-cookie-consent__actions {
        justify-content: flex-end;
    }

    .sp-cookie-consent__actions .sp-cookie-consent__link-wrap {
        margin-right: auto;
    }

    body.sp-cookie-banner-open {
        padding-bottom: 5.5rem;
    }
}
