:root {
    --grcc-wine: #76263b;
    --grcc-wine-dark: #4e1726;
    --grcc-gold: #c7a45e;
    --grcc-cream: #fbf7f2;
    --grcc-paper: #ffffff;
    --grcc-ink: #2d2527;
    --grcc-muted: #6d6265;
    --grcc-border: rgba(78, 23, 38, 0.16);
    --grcc-shadow: 0 24px 70px rgba(44, 23, 29, 0.22);
}

.grcc[hidden],
.grcc [hidden],
.grcc-toast[hidden] {
    display: none !important;
}

.grcc,
.grcc button,
.grcc-footer-link,
.grcc-inline-settings,
.grcc-toast {
    font-family: inherit;
}

.grcc-banner {
    position: fixed;
    z-index: 999990;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--grcc-border);
    border-radius: 22px;
    background: rgba(251, 247, 242, 0.98);
    box-shadow: var(--grcc-shadow);
    color: var(--grcc-ink);
    backdrop-filter: blur(16px);
}

.grcc-banner__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grcc-wine);
    color: var(--grcc-gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
}

.grcc-banner h2,
.grcc-modal h2,
.grcc-preference h3,
.grcc-banner p,
.grcc-modal p {
    margin-top: 0;
}

.grcc-banner h2 {
    margin-bottom: 5px;
    color: var(--grcc-wine-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
}

.grcc-banner__copy > p:last-child {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--grcc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.grcc a {
    color: var(--grcc-wine);
    font-weight: 650;
    text-underline-offset: 3px;
}

.grcc-eyebrow {
    margin-bottom: 4px !important;
    color: var(--grcc-wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.grcc-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    min-width: 340px;
}

.grcc-button,
.grcc-text-button,
.grcc-close,
.grcc-footer-link,
.grcc-inline-settings {
    cursor: pointer;
}

.grcc-button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.grcc-button:hover {
    transform: translateY(-1px);
}

.grcc-button:focus-visible,
.grcc-text-button:focus-visible,
.grcc-close:focus-visible,
.grcc-footer-link:focus-visible,
.grcc-inline-settings:focus-visible,
.grcc-switch input:focus-visible + .grcc-switch__slider {
    outline: 3px solid rgba(199, 164, 94, 0.5);
    outline-offset: 3px;
}

.grcc-button--accept {
    background: var(--grcc-wine);
    color: #fff;
    box-shadow: 0 8px 18px rgba(118, 38, 59, 0.22);
}

.grcc-button--reject {
    background: var(--grcc-wine-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(78, 23, 38, 0.18);
}

.grcc-button--manage {
    grid-column: 1 / -1;
    border-color: var(--grcc-border);
    background: transparent;
    color: var(--grcc-wine-dark);
}

.grcc-backdrop {
    position: fixed;
    z-index: 999991;
    inset: 0;
    background: rgba(33, 20, 24, 0.58);
    backdrop-filter: blur(4px);
}

.grcc-modal {
    position: fixed;
    z-index: 999992;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100% - 30px));
    max-height: min(760px, calc(100vh - 30px));
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border: 1px solid var(--grcc-border);
    border-radius: 24px;
    background: var(--grcc-cream);
    box-shadow: var(--grcc-shadow);
    color: var(--grcc-ink);
}

.grcc-modal__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px 26px 12px;
}

.grcc-modal h2 {
    margin-bottom: 0;
    color: var(--grcc-wine-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.14;
}

.grcc-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--grcc-border);
    border-radius: 50%;
    background: #fff;
    color: var(--grcc-wine-dark);
    font-size: 27px;
    line-height: 1;
}

.grcc-modal__intro {
    margin: 0;
    padding: 0 26px 20px;
    color: var(--grcc-muted);
    font-size: 14px;
    line-height: 1.6;
}

.grcc-preference-list {
    display: grid;
    gap: 10px;
    padding: 0 18px;
}

.grcc-preference {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    border: 1px solid var(--grcc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.grcc-preference__copy {
    min-width: 0;
}

.grcc-preference h3 {
    margin-bottom: 4px;
    color: var(--grcc-wine-dark);
    font-size: 15px;
}

.grcc-preference p {
    margin-bottom: 0;
    color: var(--grcc-muted);
    font-size: 13px;
    line-height: 1.5;
}

.grcc-switch {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 5px;
}

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

.grcc-switch__slider {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    border: 1px solid rgba(78, 23, 38, 0.22);
    border-radius: 999px;
    background: #d8d1d2;
    transition: background 180ms ease;
}

.grcc-switch__slider::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
    content: '';
    transition: transform 180ms ease;
}

.grcc-switch input:checked + .grcc-switch__slider {
    background: var(--grcc-wine);
}

.grcc-switch input:checked + .grcc-switch__slider::after {
    transform: translateX(20px);
}

.grcc-switch input:disabled + .grcc-switch__slider {
    background: var(--grcc-gold);
    opacity: 0.88;
}

.grcc-switch__label {
    color: var(--grcc-muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.grcc-modal__actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px 26px;
}

.grcc-modal__actions .grcc-button {
    min-width: 190px;
}

.grcc-text-button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--grcc-wine);
    font-size: 13px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.grcc-footer-link,
.grcc-inline-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: var(--grcc-wine-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.grcc-inline-settings {
    margin: 0;
}

.grcc-toast {
    position: fixed;
    z-index: 999995;
    right: 20px;
    bottom: 20px;
    max-width: min(360px, calc(100% - 40px));
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--grcc-wine-dark);
    box-shadow: var(--grcc-shadow);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

html.grcc-modal-visible,
html.grcc-modal-visible body {
    overflow: hidden;
}

@media (max-width: 850px) {
    .grcc-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .grcc-banner__actions {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .grcc-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: 1fr;
        width: auto;
        padding: 18px;
        border-radius: 18px;
    }

    .grcc-banner__mark {
        display: none;
    }

    .grcc-banner__actions {
        grid-template-columns: 1fr;
    }

    .grcc-button--manage {
        grid-column: auto;
    }

    .grcc-modal {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 20px);
        transform: none;
        border-radius: 22px 22px 0 0;
    }

    .grcc-modal__header {
        padding: 22px 18px 12px;
    }

    .grcc-modal__intro {
        padding: 0 18px 18px;
    }

    .grcc-preference-list {
        padding: 0 10px;
    }

    .grcc-preference {
        align-items: flex-start;
        padding: 15px;
    }

    .grcc-modal__actions {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .grcc-modal__actions .grcc-button {
        width: 100%;
    }

    .grcc-footer-link {
        margin: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grcc *,
    .grcc *::before,
    .grcc *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
