:root {
    --acc-brown: #7a4d1c;
    --acc-brown-dark: #573713;
    --acc-cream: #fffaf2;
    --acc-cream-2: #f4eadb;
    --acc-orange: #d96d3a;
    --acc-orange-dark: #bb5527;
    --acc-border: rgba(122, 77, 28, .18);
    --acc-text: #3b2818;
    --acc-muted: #7d6f62;
}

.acc-root[hidden],
.acc-modal-wrap[hidden],
.acc-floating[hidden],
.acc-inline-settings[hidden] {
    display: none !important;
}

.acc-root,
.acc-modal-wrap,
.acc-floating,
.acc-inline-settings,
.acc-root *,
.acc-modal-wrap *,
.acc-floating *,
.acc-inline-settings * {
    box-sizing: border-box;
}

.acc-root {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 18px;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: inherit;
}

.acc-banner {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--acc-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 10%, rgba(217, 109, 58, .14), transparent 32%),
        linear-gradient(135deg, #fffdf8 0%, var(--acc-cream) 48%, #f5ead9 100%);
    box-shadow: 0 22px 64px rgba(87, 55, 19, .24);
    color: var(--acc-text);
    pointer-events: auto;
}

.acc-kicker {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(122, 77, 28, .08);
    color: var(--acc-brown);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.acc-banner h2,
.acc-modal h2 {
    margin: 0;
    color: var(--acc-brown-dark);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.025em;
}

.acc-banner p,
.acc-modal p {
    font-size: 15px;
    line-height: 1.55;
}

.acc-banner__content > p:not(.acc-kicker),
.acc-modal__intro {
    margin: 10px 0 0;
    color: var(--acc-muted);
    max-width: 720px;
}

.acc-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px !important;
}

.acc-links a {
    color: var(--acc-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.acc-banner__actions,
.acc-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.acc-btn,
.acc-inline-settings {
    appearance: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.acc-btn:hover,
.acc-inline-settings:hover,
.acc-floating:hover {
    transform: translateY(-1px);
}

.acc-btn:focus-visible,
.acc-inline-settings:focus-visible,
.acc-floating:focus-visible,
.acc-modal__close:focus-visible {
    outline: 3px solid rgba(217, 109, 58, .35);
    outline-offset: 3px;
}

.acc-btn--primary,
.acc-inline-settings {
    background: linear-gradient(135deg, var(--acc-orange), #ef8653);
    color: #fff;
    box-shadow: 0 14px 26px rgba(217, 109, 58, .28);
}

.acc-btn--primary:hover,
.acc-inline-settings:hover {
    background: linear-gradient(135deg, var(--acc-orange-dark), var(--acc-orange));
}

.acc-btn--outline {
    background: #fff;
    border: 1px solid rgba(122, 77, 28, .22);
    color: var(--acc-brown-dark);
}

.acc-btn--ghost {
    background: rgba(122, 77, 28, .08);
    color: var(--acc-brown-dark);
}

.acc-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    place-items: center;
    padding: 18px;
    font-family: inherit;
}

.acc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 24, 15, .48);
    backdrop-filter: blur(4px);
}

.acc-modal {
    position: relative;
    width: min(720px, 100%);
    max-height: min(86vh, 820px);
    overflow: auto;
    padding: 24px;
    border-radius: 28px;
    background: #fffdf8;
    border: 1px solid var(--acc-border);
    box-shadow: 0 30px 90px rgba(25, 14, 7, .35);
    color: var(--acc-text);
}

.acc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(122, 77, 28, .16);
    border-radius: 999px;
    background: #fff;
    color: var(--acc-brown-dark);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.acc-category {
    margin-top: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--acc-border);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #fff7ec);
}

.acc-category h3 {
    margin: 0 0 5px;
    color: var(--acc-brown-dark);
    font-size: 18px;
    line-height: 1.2;
}

.acc-category p {
    margin: 0;
    color: var(--acc-muted);
    font-size: 14px;
}

.acc-pill {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(122, 77, 28, .08);
    color: var(--acc-brown);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.acc-switch {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 32px;
    flex: 0 0 auto;
}

.acc-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.acc-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d8c9b9;
    transition: background .18s ease;
}

.acc-switch span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 4px;
    left: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: transform .18s ease;
}

.acc-switch input:checked + span {
    background: var(--acc-orange);
}

.acc-switch input:checked + span::after {
    transform: translateX(24px);
}

.acc-modal__actions {
    margin-top: 18px;
}

.acc-floating {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147482999;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(122, 77, 28, .2);
    border-radius: 999px;
    background: var(--acc-brown-dark);
    color: #fff;
    box-shadow: 0 14px 30px rgba(87, 55, 19, .24);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 760px) {
    .acc-root {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .acc-banner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 20px;
    }

    .acc-banner__actions,
    .acc-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .acc-btn,
    .acc-inline-settings {
        width: 100%;
    }

    .acc-category {
        grid-template-columns: 1fr;
    }

    .acc-switch,
    .acc-pill {
        justify-self: start;
    }

    .acc-floating {
        left: 12px;
        bottom: 12px;
    }
}
