#bynativ-consent {
    --consent-ink: #14243a;
    --consent-text: #3e4959;
    --consent-teal: #086a73;
    --consent-ochre: #9b5c09;
    --consent-padding: clamp(18px, 4vw, 36px);
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(620px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--consent-text);
    box-shadow: 0 24px 80px #14243a40;
    font: 400 14px/1.45 system-ui, sans-serif;
    text-align: left;
}

html:has(#bynativ-consent[open]) {
    overflow: hidden;
}

body:has(#bynativ-consent[open]) #tarteaucitronRoot #tarteaucitronAlertBig {
    visibility: hidden;
}

body:has(#bynativ-consent[open]) #tarteaucitronRoot::before {
    visibility: hidden;
}

#bynativ-consent::backdrop {
    background: #14243a66;
    backdrop-filter: blur(3px);
}

#bynativ-consent button, #bynativ-consent-settings {
    cursor: pointer;
    font: inherit;
}

#bynativ-consent [hidden], #bynativ-consent-settings[hidden] {
    display: none;
}

#bynativ-consent :focus-visible, #bynativ-consent-settings:focus-visible {
    outline: 2px solid #086a73;
    outline-offset: 3px;
}

.bynativ-consent-art {
    position: relative;
    height: clamp(105px, 25dvh, 210px);
    overflow: hidden;
    isolation: isolate;
    background: repeating-linear-gradient(to bottom, #2c7a82 0 22px, #4e9ba0 22px 29px);
}

.bynativ-consent-art::before, .bynativ-consent-art::after {
    position: absolute;
    inset: 0 0 38%;
    content: "";
}

.bynativ-consent-art::before {
    background: radial-gradient(circle at 69% 72%, #e9a157 0 11%, transparent 11.2%), #f3e2c8;
}

.bynativ-consent-art::after {
    background: #cb9065;
    clip-path: polygon(0 100%, 14.5% 54%, 24% 80%, 39% 40%, 53% 86%, 65% 66%, 78% 92%, 90% 63%, 100% 84%, 100% 100%);
}

.bynativ-consent-plane {
    position: absolute;
    z-index: 1;
    top: 19%;
    left: 19%;
    width: 9%;
    aspect-ratio: 2 / 1;
    background: var(--consent-ink);
    clip-path: polygon(2% 9%, 48% 28%, 72% 0, 80% 6%, 63% 42%, 100% 59%, 95% 73%, 51% 65%, 28% 100%, 21% 96%, 31% 55%, 0 34%);
    animation: bynativ-consent-flight 8s ease-in-out infinite alternate;
}

@keyframes bynativ-consent-flight {
    to { transform: translate(85%, -20%); }
}

#bynativ-consent.is-paused .bynativ-consent-plane {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .bynativ-consent-plane { animation: none; }
}

#bynativ-consent [data-pause] {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--consent-ink);
}

#bynativ-consent [data-pause] span {
    display: block;
    width: 8px;
    height: 12px;
    margin: auto;
    border-inline: 2px solid currentColor;
}

#bynativ-consent [data-pause][aria-pressed="true"] span {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left: 9px solid currentColor;
    border-right: 0;
}

.bynativ-consent-content {
    padding: var(--consent-padding) var(--consent-padding) 0;
}

.bynativ-consent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bynativ-consent-brand {
    color: var(--consent-ink);
    font-size: 21px;
}

.bynativ-consent-brand img {
    display: block;
    width: auto;
    max-width: 140px;
    height: 34px;
    object-fit: contain;
}

#bynativ-consent h2 {
    max-width: 18em;
    margin: 0 0 14px;
    color: var(--consent-ink);
    font: 700 clamp(22px, 4.6vw, 28px)/1.15 system-ui, sans-serif;
}

#bynativ-consent p {
    margin: 0 0 14px;
    color: inherit;
    font: inherit;
}

#bynativ-consent .bynativ-consent-purposes {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.bynativ-consent-purposes li {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 12px;
}

.bynativ-consent-purposes li > span {
    display: grid;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #e2efef;
    color: var(--consent-teal);
    font-size: 19px;
}

.bynativ-consent-purposes li:last-child > span {
    background: #efece6;
    color: var(--consent-text);
}

.bynativ-consent-purposes strong {
    color: var(--consent-ink);
}

#bynativ-consent .bynativ-consent-note {
    font-size: 13px;
}

#bynativ-consent [data-action="refuse"],
#bynativ-consent [data-action="privacy"],
#bynativ-consent .bynativ-consent-note a {
    color: var(--consent-teal);
    text-decoration: underline;
}

#bynativ-consent [data-action="refuse"],
#bynativ-consent [data-action="privacy"] {
    padding: 0;
    border: 0;
    background: transparent;
}

#bynativ-consent [data-action="refuse"] {
    min-height: 44px;
    font-weight: 700;
}

.bynativ-consent-note a, #bynativ-consent [data-action="privacy"] {
    display: table;
}

.bynativ-consent-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr));
    gap: 12px;
    padding: clamp(20px, 5dvh, 48px) var(--consent-padding) var(--consent-padding);
}

#bynativ-consent .bynativ-consent-actions button {
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--consent-ochre);
    border-radius: 14px;
    background: #fff;
    color: var(--consent-ochre);
    font-weight: 700;
}

#bynativ-consent .bynativ-consent-actions [data-action="accept"] {
    background: var(--consent-ochre);
    color: #fff;
}

#bynativ-consent-settings {
    display: block;
    margin: 12px auto;
    padding: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
}

.bynativ-consent-short-label {
    display: none;
}

@media (max-width: 600px) {
    #bynativ-consent[open] {
        --consent-padding: 18px;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        height: calc(100vh - 40px);
        height: calc(100dvh - 40px);
        overflow: hidden;
        border-radius: 22px;
    }

    .bynativ-consent-scroll {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .bynativ-consent-art {
        height: auto;
        aspect-ratio: 366 / 132;
    }

    .bynativ-consent-content {
        padding-bottom: var(--consent-padding);
    }

    .bynativ-consent-heading {
        column-gap: 8px;
    }

    #bynativ-consent .bynativ-consent-heading .bynativ-consent-brand img {
        max-width: min(26vw, 110px);
        height: 30px;
    }

    .bynativ-consent-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px var(--consent-padding) 16px;
        border-top: 1px solid #efece6;
    }

    #bynativ-consent .bynativ-consent-actions button {
        padding-inline: 6px;
        overflow-wrap: anywhere;
    }

    .bynativ-consent-long-label {
        display: none;
    }

    .bynativ-consent-short-label {
        display: inline;
    }

    .bynativ-consent-note a,
    #bynativ-consent [data-action="privacy"]:not([hidden]) {
        display: inline;
    }
}
