body.fishy-consent-open {
    overflow: hidden;
}

.fishy-consent[hidden],
.fishy-consent-settings[hidden] {
    display: none !important;
}

.fishy-consent__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.fishy-consent {
    --fc-ink: #12191d;
    --fc-muted: #5d6658;
    --fc-soft: #f3f8ef;
    --fc-line: rgba(18, 25, 29, .12);
    --fc-brand: #18a20c;
    --fc-brand-dark: #28620f;
    --fc-brand-soft: rgba(24, 162, 12, .11);
    position: fixed;
    inset: 0;
    z-index: 9999;
    color: var(--fc-ink);
    font-family: inherit;
}

.fishy-consent,
.fishy-consent *,
.fishy-consent *::before,
.fishy-consent *::after,
.fishy-consent-settings,
.fishy-consent-settings * {
    box-sizing: border-box;
}

.fishy-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 10, .42);
    backdrop-filter: blur(7px);
}

.fishy-consent__panel {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: min(760px, calc(100vw - 44px));
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(24, 162, 12, .12), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(248, 252, 246, .98));
    box-shadow: 0 26px 76px rgba(6, 14, 10, .32);
}

.fishy-consent__icon-button {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--fc-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    cursor: pointer;
}

.fishy-consent__icon-button span,
.fishy-consent__icon-button span::after {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: var(--fc-muted);
    content: "";
    transform: rotate(45deg);
}

.fishy-consent__icon-button span::after {
    transform: rotate(90deg);
}

.fishy-consent__intro {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding-right: 38px;
}

.fishy-consent__badge,
.fishy-consent__choice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--fc-brand), var(--fc-brand-dark));
    box-shadow: 0 12px 26px rgba(24, 162, 12, .24);
}

.fishy-consent__badge {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 16px;
}

.fishy-consent .fishy-consent__svg,
.fishy-consent-settings .fishy-consent-settings__icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.fishy-consent__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--fc-brand-soft);
    color: var(--fc-brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fishy-consent h2 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
}

.fishy-consent__intro p {
    margin: 0 0 10px;
    color: var(--fc-muted);
    font-size: 15px;
    line-height: 1.5;
}

.fishy-consent__details {
    padding: 12px 13px;
    border: 1px solid rgba(24, 162, 12, .16);
    border-radius: 14px;
    background: var(--fc-soft);
}

.fishy-consent__policy {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--fc-brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.fishy-consent__policy .fishy-consent__svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
}

.fishy-consent__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.fishy-consent__choice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 52px;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--fc-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px rgba(17, 45, 78, .052);
}

.fishy-consent__choice.is-locked {
    background: rgba(242, 251, 238, .95);
}

.fishy-consent__choice-icon {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 14px;
}

.fishy-consent__choice-icon .fishy-consent__svg {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
}

.fishy-consent__choice h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0;
}

.fishy-consent__choice p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 12px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fishy-consent__switch {
    position: relative;
    width: 50px;
    height: 29px;
}

.fishy-consent__switch input {
    position: absolute;
    opacity: 0;
}

.fishy-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d8dfd5;
    cursor: pointer;
    transition: background .18s ease;
}

.fishy-consent__switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .2);
    content: "";
    transition: transform .18s ease;
}

.fishy-consent__switch input:checked + span {
    background: linear-gradient(135deg, var(--fc-brand), var(--fc-brand-dark));
}

.fishy-consent__switch input:checked + span::after {
    transform: translateX(21px);
}

.fishy-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(24, 162, 12, .28);
    outline-offset: 3px;
}

.fishy-consent__switch input:disabled + span {
    cursor: not-allowed;
    opacity: .82;
}

.fishy-consent__actions {
    position: sticky;
    bottom: -22px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr) minmax(0, 1.05fr);
    gap: 10px;
    margin: 16px -22px -22px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(16, 24, 40, .08);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
}

.fishy-consent__button {
    min-height: 45px;
    border: 1px solid var(--fc-line);
    border-radius: 999px;
    padding: 0 15px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.fishy-consent__button:hover,
.fishy-consent-settings:hover {
    transform: translateY(-1px);
}

.fishy-consent__button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--fc-brand), var(--fc-brand-dark));
    color: #fff;
    box-shadow: 0 14px 30px rgba(24, 162, 12, .26);
}

.fishy-consent__button--secondary {
    background: #fff;
    color: var(--fc-brand-dark);
}

.fishy-consent__button--ghost {
    background: transparent;
    color: var(--fc-muted);
}

.fishy-consent-settings {
    position: fixed;
    left: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 16px;
    padding: 0;
    background: linear-gradient(135deg, #18a20c, #28620f);
    color: #fff;
    box-shadow: 0 14px 32px rgba(24, 162, 12, .34);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.fishy-consent-settings .fishy-consent-settings__icon {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
}

.fishy-consent-settings:hover,
.fishy-consent-settings:focus {
    background: linear-gradient(135deg, #2c951a, #1f530d);
    box-shadow: 0 18px 42px rgba(24, 162, 12, .42);
}

@media (max-width: 760px) {
    .fishy-consent__panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 18px;
        border-radius: 22px;
    }

    .fishy-consent__choices {
        grid-template-columns: 1fr;
    }

    .fishy-consent__actions {
        bottom: -18px;
        grid-template-columns: 1fr;
        margin: 14px -18px -18px;
        padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    }

    .fishy-consent__button--primary {
        order: -2;
    }

    .fishy-consent__button--secondary {
        order: -1;
    }
}

@media (max-width: 520px) {
    .fishy-consent__panel {
        inset: auto 0 0;
        width: 100vw;
        max-height: min(88vh, calc(100vh - 8px));
        padding: 15px;
        border-radius: 22px 22px 0 0;
    }

    .fishy-consent__icon-button {
        top: 12px;
        right: 12px;
    }

    .fishy-consent__intro {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding-right: 34px;
    }

    .fishy-consent__badge {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        border-radius: 14px;
    }

    .fishy-consent h2 {
        font-size: 23px;
    }

    .fishy-consent__intro p {
        font-size: 13px;
        line-height: 1.42;
    }

    .fishy-consent__details {
        display: none;
    }

    .fishy-consent__choice {
        grid-template-columns: 38px minmax(0, 1fr) 48px;
        gap: 10px;
        padding: 11px;
        border-radius: 15px;
    }

    .fishy-consent__choice-icon {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        border-radius: 13px;
    }

    .fishy-consent__choice h3 {
        font-size: 14px;
    }

    .fishy-consent__choice p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .fishy-consent__switch {
        width: 46px;
        height: 27px;
    }

    .fishy-consent__switch span::after {
        width: 19px;
        height: 19px;
    }

    .fishy-consent__switch input:checked + span::after {
        transform: translateX(19px);
    }

    .fishy-consent__actions {
        bottom: -15px;
        margin: 12px -15px -15px;
        padding: 10px 15px calc(12px + env(safe-area-inset-bottom));
    }

    .fishy-consent__button {
        min-height: 43px;
    }

    .fishy-consent-settings {
        left: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }
}
