.nap-cookie-banner[hidden],
.nap-cookie-settings[hidden] {
    display: none !important;
}

.nap-cookie-banner {
    position: fixed;
    z-index: 10000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    color: #1a1a1a;
}

.nap-cookie-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 22px 24px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.nap-cookie-banner h2,
.nap-cookie-settings h2,
.nap-cookie-settings h3 {
    margin: 0;
    color: #1a1a1a;
}

.nap-cookie-banner h2 {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.nap-cookie-banner p,
.nap-cookie-settings p {
    margin: 0;
}

.nap-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nap-cookie-button,
.footer-cookie-settings {
    min-height: 44px;
    border: 2px solid #900821;
    border-radius: 7px;
    background: #fff;
    color: #900821;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.nap-cookie-button {
    padding: 10px 15px;
}

.nap-cookie-button:hover,
.nap-cookie-button:focus-visible {
    background: #900821;
    color: #fff;
}

.nap-cookie-button:focus-visible,
.footer-cookie-settings:focus-visible,
.nap-cookie-settings__close:focus-visible,
.nap-cookie-category--selectable:focus-within {
    outline: 3px solid rgba(144, 8, 33, 0.3);
    outline-offset: 2px;
}

.nap-cookie-settings {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.nap-cookie-settings__panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.nap-cookie-settings__panel > h2 {
    margin: 0 44px 8px 0;
    font-size: 1.7rem;
}

.nap-cookie-settings__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #1a1a1a;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.nap-cookie-category {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #fafafa;
}

.nap-cookie-category h3,
.nap-cookie-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.15rem;
}

.nap-cookie-category p,
.nap-cookie-category small {
    display: block;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.45;
}

.nap-cookie-category--selectable {
    cursor: pointer;
}

.nap-cookie-status {
    flex: 0 0 auto;
    color: #276749;
    font-weight: 700;
}

.nap-cookie-detail {
    display: grid;
    gap: 2px;
    padding: 10px 18px 0;
    color: #555;
    font-size: 0.88rem;
}

.nap-cookie-detail strong {
    color: #1a1a1a;
}

.nap-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 28px;
}

.nap-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nap-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #777;
    transition: background 0.2s ease;
}

.nap-cookie-switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: '';
    transition: transform 0.2s ease;
}

.nap-cookie-switch input:checked + span {
    background: #900821;
}

.nap-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.nap-cookie-policy-link {
    margin-top: 20px !important;
}

.nap-cookie-policy-link a {
    color: #900821;
    font-weight: 700;
}

.nap-cookie-actions--settings {
    margin-top: 28px;
}

.nap-cookie-settings-open {
    overflow: hidden;
}

.footer-cookie-settings {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cookie-settings:hover {
    color: #900821;
}

@media (max-width: 760px) {
    .nap-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .nap-cookie-banner__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .nap-cookie-actions .nap-cookie-button {
        flex: 1 1 140px;
    }

    .nap-cookie-settings {
        align-items: end;
        padding: 10px;
    }

    .nap-cookie-settings__panel {
        max-height: calc(100vh - 20px);
        padding: 24px 18px;
    }

    .nap-cookie-category {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nap-cookie-switch span,
    .nap-cookie-switch span::after {
        transition: none;
    }
}
