:root {
    --nexa-cookie-brand: #024430;
    --nexa-cookie-text: #344054;
    --nexa-cookie-muted: #667085;
    --nexa-cookie-border: #d0d5dd;
    --nexa-cookie-bg: #ffffff;
    --nexa-cookie-soft: #f6f9f8;
    --nexa-cookie-shadow: 0 18px 48px rgba(16, 24, 40, 0.16);
}

.nexa-cookie-banner,
.nexa-cookie-modal,
.nexa-cookie-preferences-button,
.nexa-cookie-banner *,
.nexa-cookie-modal * {
    box-sizing: border-box;
}

.nexa-cookie-banner[hidden],
.nexa-cookie-modal[hidden],
.nexa-cookie-preferences-button[hidden] {
    display: none !important;
}

.nexa-cookie-banner {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147483000;
    width: min(460px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid rgba(2, 68, 48, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: var(--nexa-cookie-shadow);
    color: var(--nexa-cookie-text);
    font-family: inherit;
}

.nexa-cookie-banner__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nexa-cookie-banner__top > div {
    flex: 1;
}

.nexa-cookie-banner h2,
.nexa-cookie-modal h2,
.nexa-cookie-category h3 {
    margin: 0;
    color: var(--nexa-cookie-brand);
}

.nexa-cookie-banner h2 {
    margin-bottom: 7px;
    font-size: 18px;
    line-height: 1.25;
}

.nexa-cookie-banner p,
.nexa-cookie-modal p {
    margin: 0;
    color: var(--nexa-cookie-muted);
    font-size: 13px;
    line-height: 1.55;
}

.nexa-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    font-size: 12px;
}

.nexa-cookie-links a,
.nexa-cookie-modal a {
    color: var(--nexa-cookie-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nexa-cookie-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--nexa-cookie-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--nexa-cookie-brand);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.nexa-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.nexa-cookie-btn {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--nexa-cookie-brand);
    border-radius: 9px;
    background: #ffffff;
    color: var(--nexa-cookie-brand);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nexa-cookie-btn:hover,
.nexa-cookie-btn:focus-visible,
.nexa-cookie-close:hover,
.nexa-cookie-close:focus-visible,
.nexa-cookie-preferences-button:hover,
.nexa-cookie-preferences-button:focus-visible {
    background: var(--nexa-cookie-soft);
    outline: 3px solid rgba(2, 68, 48, 0.12);
    outline-offset: 2px;
}

.nexa-cookie-btn--secondary {
    grid-column: 1 / -1;
    border-color: var(--nexa-cookie-border);
    color: var(--nexa-cookie-text);
}

.nexa-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(16, 24, 40, 0.46);
}

.nexa-cookie-modal__panel {
    width: min(700px, 100%);
    max-height: min(780px, calc(100vh - 36px));
    overflow: auto;
    border-radius: 16px;
    background: var(--nexa-cookie-bg);
    box-shadow: var(--nexa-cookie-shadow);
}

.nexa-cookie-modal__header,
.nexa-cookie-modal__footer {
    position: sticky;
    z-index: 2;
    display: flex;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
}

.nexa-cookie-modal__header {
    top: 0;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #eaecf0;
}

.nexa-cookie-modal__header h2 {
    margin-bottom: 5px;
    font-size: 21px;
}

.nexa-cookie-modal__body {
    padding: 6px 18px;
}

.nexa-cookie-modal__footer {
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eaecf0;
}

.nexa-cookie-modal__footer .nexa-cookie-btn--secondary {
    grid-column: auto;
}

.nexa-cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid #eaecf0;
}

.nexa-cookie-category:last-child {
    border-bottom: 0;
}

.nexa-cookie-category__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.nexa-cookie-category h3 {
    margin-bottom: 5px;
    font-size: 15px;
}

.nexa-cookie-always {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--nexa-cookie-soft);
    color: var(--nexa-cookie-muted);
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.nexa-cookie-services {
    margin-top: 10px;
}

.nexa-cookie-service {
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--nexa-cookie-soft);
    font-size: 12px;
}

.nexa-cookie-service + .nexa-cookie-service {
    margin-top: 7px;
}

.nexa-cookie-service strong,
.nexa-cookie-service span,
.nexa-cookie-service small,
.nexa-cookie-service a {
    display: block;
}

.nexa-cookie-service small {
    margin-top: 2px;
    color: var(--nexa-cookie-muted);
}

.nexa-cookie-switch {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
}

.nexa-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nexa-cookie-switch__track {
    display: block;
    width: 46px;
    height: 26px;
    border: 1px solid #98a2b3;
    border-radius: 999px;
    background: #e4e7ec;
    cursor: pointer;
}

.nexa-cookie-switch__track::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    margin: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
    transition: transform 0.2s ease;
}

.nexa-cookie-switch input:checked + .nexa-cookie-switch__track {
    border-color: var(--nexa-cookie-brand);
    background: var(--nexa-cookie-brand);
}

.nexa-cookie-switch input:checked + .nexa-cookie-switch__track::after {
    transform: translateX(20px);
}

.nexa-cookie-switch input:disabled + .nexa-cookie-switch__track {
    opacity: 0.68;
    cursor: not-allowed;
}

.nexa-cookie-switch input:focus-visible + .nexa-cookie-switch__track {
    outline: 3px solid rgba(2, 68, 48, 0.14);
    outline-offset: 2px;
}

.nexa-cookie-preferences-button {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147482999;
    padding: 8px 11px;
    border: 1px solid rgba(2, 68, 48, 0.2);
    border-radius: 999px;
    background: #ffffff;
    color: var(--nexa-cookie-brand);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.nexa-cookie-modal-open {
    overflow: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767.98px) {
    .nexa-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .nexa-cookie-actions,
    .nexa-cookie-modal__footer {
        grid-template-columns: 1fr;
    }

    .nexa-cookie-btn--secondary,
    .nexa-cookie-modal__footer .nexa-cookie-btn--secondary {
        grid-column: auto;
    }

    .nexa-cookie-modal {
        padding: 8px;
        align-items: end;
    }

    .nexa-cookie-modal__panel {
        max-height: calc(100vh - 16px);
        border-radius: 16px 16px 8px 8px;
    }

    .nexa-cookie-preferences-button {
        left: 10px;
        bottom: 10px;
    }
}
.nexa-cookie-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147482998;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid rgba(2, 68, 48, 0.18);
    border-radius: 999px;

    background: #02443080;
    color: #ffffff;

    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.nexa-cookie-fab:hover {
    background: #013626;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.20);
}

.nexa-cookie-fab:focus-visible {
    outline: 3px solid rgba(2, 68, 48, 0.22);
    outline-offset: 3px;
}
