:root {
    --cc-surface: var(--cc-banner-surface, var(--cc-background, var(--wp--preset--color--base, Canvas)));
    --cc-on-surface: var(--cc-banner-text, var(--cc-text, var(--wp--preset--color--contrast, CanvasText)));
    --cc-accent: var(--cc-banner-accent, var(--cc-primary, var(--wp--style--color--link, var(--wp--preset--color--accent, CanvasText))));
    --cc-radius: 12px;
    --cc-radius-sm: 8px;
    --cc-transition: 0.3s ease;
    --cc-max-width: 760px;
    --cc-margin-bottom: 40px;
    --cc-font-family: inherit;
    --cc-font-size: 15px;
    --cc-line-height: 1.6;
}

.cc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    transition: opacity var(--cc-transition);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.cc-overlay.active {
    opacity: 1;
}

.cc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--cc-font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-size: var(--cc-font-size);
    line-height: 1.6;
    line-height: var(--cc-line-height);
    color: WindowText;
    color: var(--cc-on-surface);
    background: Window;
    background: var(--cc-surface);
    border: 1px solid currentColor;
    max-width: 760px;
    max-width: var(--cc-max-width);
    opacity: 0;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    -o-transition: opacity 0.3s ease, transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition: opacity var(--cc-transition), transform var(--cc-transition);
}

.cc-banner:focus {
    outline: none;
}

.cc-banner.active {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.cc-position-bottom {
    bottom: 40px;
    bottom: var(--cc-margin-bottom);
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(20px);
    -ms-transform: translateX(-50%) translateY(20px);
    transform: translateX(-50%) translateY(20px);
    width: -webkit-calc(100% - 40px);
    width: calc(100% - 40px);
    max-width: 760px;
    max-width: var(--cc-max-width);
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--cc-radius);
}

.cc-position-bottom.active {
    -webkit-transform: translateX(-50%) translateY(0);
    -ms-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
}

.cc-position-top {
    top: 40px;
    top: var(--cc-margin-bottom);
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-20px);
    -ms-transform: translateX(-50%) translateY(-20px);
    transform: translateX(-50%) translateY(-20px);
    width: -webkit-calc(100% - 40px);
    width: calc(100% - 40px);
    max-width: 760px;
    max-width: var(--cc-max-width);
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--cc-radius);
}

.cc-position-top.active {
    -webkit-transform: translateX(-50%) translateY(0);
    -ms-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
}

.cc-position-center {
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) scale(0.95);
    -ms-transform: translate(-50%, -50%) scale(0.95);
    transform: translate(-50%, -50%) scale(0.95);
    width: -webkit-calc(100% - 40px);
    width: calc(100% - 40px);
    max-width: 760px;
    max-width: var(--cc-max-width);
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--cc-radius);
}

.cc-position-center.active {
    -webkit-transform: translate(-50%, -50%) scale(1);
    -ms-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}

.cc-position-bottom-left {
    bottom: 40px;
    bottom: var(--cc-margin-bottom);
    left: 20px;
    max-width: 420px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--cc-radius);
}

.cc-position-bottom-right {
    bottom: 40px;
    bottom: var(--cc-margin-bottom);
    right: 20px;
    max-width: 420px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--cc-radius);
}

.cc-layout-bar .cc-banner-inner,
.cc-layout-bar .cc-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.cc-banner-inner,
.cc-container {
    padding: 24px 28px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.cc-banner-inner::-webkit-scrollbar,
.cc-container::-webkit-scrollbar {
    width: 6px;
}

.cc-banner-inner::-webkit-scrollbar-thumb,
.cc-container::-webkit-scrollbar-thumb {
    background: currentColor;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

.cc-header {
    margin-bottom: 12px;
}

.cc-title {
    margin: 0;
    color: inherit;
    text-align: center;
}

.cc-content {
    margin-bottom: 16px;
}

.cc-text,
.cc-description {
    margin: 0;
    color: inherit;
    text-align: center;
    font-size: 14px;
}

.cc-details {
    margin-top: 20px;
    border-top: 1px solid currentColor;
    padding-top: 20px;
    text-align: left;
}

.cc-category {
    margin-bottom: 12px;
    border: 1px solid currentColor;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--cc-radius-sm);
    overflow: hidden;
}

.cc-category:last-child {
    margin-bottom: 0;
}

.cc-category-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.cc-category-header > * {
    margin-right: 12px;
}

.cc-category-header > *:last-child {
    margin-right: 0;
}

@supports (gap: 12px) {
    .cc-category-header {
        gap: 12px;
    }

    .cc-category-header > * {
        margin-right: 0;
    }
}

.cc-category-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 44px;
}

.cc-category-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid currentColor;
    -webkit-border-radius: 26px;
    border-radius: 26px;
    margin-right: 14px;
    -webkit-transition: background 0.3s ease;
    -o-transition: background 0.3s ease;
    transition: background 0.3s ease;
    transition: background var(--cc-transition);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cc-toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: Window;
    background: var(--cc-surface);
    border: 1px solid currentColor;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform var(--cc-transition);
}

.cc-category-toggle input:checked + .cc-toggle-slider {
    background: WindowText;
    background: var(--cc-on-surface);
}

.cc-category-toggle input:checked + .cc-toggle-slider::before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.cc-category-toggle input:focus + .cc-toggle-slider {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-category-toggle input:focus:not(:focus-visible) + .cc-toggle-slider {
    outline: none;
}

.cc-category-toggle input:focus-visible + .cc-toggle-slider {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-category-toggle input:disabled + .cc-toggle-slider {
    background: WindowText;
    background: var(--cc-on-surface);
    opacity: 0.8;
    cursor: not-allowed;
}

.cc-category-label {
    font-weight: 600;
    color: inherit;
    font-size: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.cc-category-label > * {
    margin-right: 6px;
}

.cc-category-label > *:last-child {
    margin-right: 0;
}

@supports (gap: 6px) {
    .cc-category-label {
        gap: 6px;
    }

    .cc-category-label > * {
        margin-right: 0;
    }
}

.cc-required {
    font-size: 12px;
    font-weight: 500;
}

.cc-cookie-count {
    font-size: 12px;
    font-weight: 400;
}

.cc-category-expand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--cc-radius-sm);
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    transition: all var(--cc-transition);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cc-category-expand:hover {
    background: WindowText;
    background: var(--cc-on-surface);
    color: Window;
    color: var(--cc-surface);
    border-color: WindowText;
    border-color: var(--cc-on-surface);
}

.cc-category-expand:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-category-expand:focus:not(:focus-visible) {
    outline: none;
}

.cc-category-expand:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-category-expand[aria-expanded="true"] .cc-icon-chevron {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.cc-icon-chevron {
    -webkit-transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform var(--cc-transition);
    color: inherit;
}

.cc-cookie-list {
    padding: 0 16px 16px;
}

.cc-cookie-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cc-cookie-list th,
.cc-cookie-list td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid currentColor;
    vertical-align: top;
}

.cc-cookie-list th {
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

.cc-cookie-list code {
    padding: 3px 6px;
    font-size: 12px;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Consolas", monospace;
    word-break: break-all;
}

.cc-cookie-list tr:last-child td {
    border-bottom: none;
}

.cc-buttons {
    margin-top: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.cc-buttons > * {
    margin: 5px;
}

@supports (gap: 10px) {
    .cc-buttons {
        gap: 10px;
    }

    .cc-buttons > * {
        margin: 0;
    }
}

.cc-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-image: none !important;
    color: inherit !important;
    border: 2px solid currentColor !important;
    -webkit-border-radius: 8px !important;
    border-radius: 8px !important;
    border-radius: var(--cc-radius-sm) !important;
    font: inherit !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.cc-btn:hover {
    background: WindowText !important;
    background: var(--cc-on-surface) !important;
    color: Window !important;
    color: var(--cc-surface) !important;
    border-color: WindowText !important;
    border-color: var(--cc-on-surface) !important;
}

.cc-btn:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-btn:focus:not(:focus-visible) {
    outline: none;
}

.cc-btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.cc-links {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid currentColor;
    font-size: 13px;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.cc-links > * {
    margin: 3px 10px;
}

@supports (gap: 6px 20px) {
    .cc-links {
        gap: 6px 20px;
    }

    .cc-links > * {
        margin: 0;
    }
}

.cc-links a {
    text-decoration: underline;
    padding: 4px 0;
}

.cc-links a:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cc-links a:focus:not(:focus-visible) {
    outline: none;
}

.cc-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cc-trigger {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1 !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    -webkit-border-radius: 8px !important;
    border-radius: 8px !important;
    color: WindowText;
    color: var(--cc-on-surface);
    background: Window;
    background: var(--cc-surface);
    border: 2px solid currentColor;
    cursor: pointer;
    z-index: 999997;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    transition: all var(--cc-transition);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

.cc-trigger:hover {
    background: WindowText;
    background: var(--cc-on-surface);
    color: Window;
    color: var(--cc-surface);
    border-color: WindowText;
    border-color: var(--cc-on-surface);
    -webkit-transform: scale(1.08) !important;
    -ms-transform: scale(1.08) !important;
    transform: scale(1.08) !important;
}

.cc-trigger:focus {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.cc-trigger:focus:not(:focus-visible) {
    outline: none;
}

.cc-trigger:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.cc-icon-shield {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

@media screen and (min-width: 701px) and (max-width: 820px) {
    .cc-banner-inner,
    .cc-container {
        padding: 24px 20px;
    }

    .cc-btn {
        padding: 12px 11px;
    }

    .cc-buttons {
        gap: 8px;
    }
}

@media screen and (max-width: 700px) {
    .cc-banner {
        width: -webkit-calc(100% - 24px) !important;
        width: calc(100% - 24px) !important;
        max-width: none;
    }

    .cc-position-bottom,
    .cc-position-top {
        left: 12px;
        right: 12px;
        -webkit-transform: translateY(20px);
        -ms-transform: translateY(20px);
        transform: translateY(20px);
    }

    .cc-position-bottom.active,
    .cc-position-top.active {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    .cc-position-bottom-left,
    .cc-position-bottom-right {
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .cc-banner-inner {
        padding: 20px;
    }

    .cc-title {
        font-size: 18px;
    }

    .cc-text {
        font-size: 13px;
    }

    .cc-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
    }

    .cc-cookie-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cc-cookie-list table {
        font-size: 12px;
        min-width: 480px;
    }

}

@media screen and (max-width: 640px) {
    .cc-trigger {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        bottom: 12px !important;
        left: 12px !important;
    }

    .cc-icon-shield {
        width: 20px;
        height: 20px;
    }
}

@media print {
    .cc-banner,
    .cc-overlay,
    .cc-trigger {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner,
    .cc-overlay,
    .cc-trigger,
    .cc-btn,
    .cc-toggle-slider,
    .cc-toggle-slider::before,
    .cc-category-expand,
    .cc-icon-chevron,
    .cc-links a {
        -webkit-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        animation: none !important;
    }

    .cc-trigger:hover {
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
    }
}

@media (prefers-contrast: high) {
    .cc-banner {
        border-width: 3px;
    }

    .cc-btn {
        border-width: 3px;
    }

    .cc-category {
        border-width: 2px;
    }
}

@media (forced-colors: active) {
    .cc-banner,
    .cc-trigger {
        border: 2px solid ButtonText;
    }

    .cc-btn {
        border: 2px solid ButtonText;
        forced-color-adjust: none;
    }

    .cc-btn:focus,
    .cc-btn:focus-visible {
        outline: 3px solid Highlight;
    }

    .cc-toggle-slider {
        border: 2px solid ButtonText;
    }

    .cc-category-header,
    .cc-category-expand:hover {
        background: Canvas;
    }
}
