.wp-tc-banner,
.wp-tc-dialog {
    --wp-tc-focus: #7ee2b8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wp-tc-banner {
    position: fixed;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1120px, calc(100% - 32px));
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: var(--wp-tc-bg, #111111);
    color: var(--wp-tc-text, #ffffff);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    line-height: 1.5;
    animation: wp-tc-enter 180ms ease-out;
}

.wp-tc-banner[hidden],
.wp-tc-dialog[hidden] {
    display: none !important;
}

.wp-tc-banner--bottom { bottom: 16px; left: 50%; transform: translateX(-50%); }
.wp-tc-banner--bottom-left { bottom: 16px; left: 16px; }
.wp-tc-banner--bottom-right { bottom: 16px; right: 16px; }
.wp-tc-banner--top { top: 16px; left: 50%; transform: translateX(-50%); }

.wp-tc-banner__content { flex: 1 1 560px; }
.wp-tc-banner__title { margin: 0 0 5px; color: inherit; font-size: 18px; line-height: 1.25; }
.wp-tc-banner__text { margin: 0; max-width: 760px; }
.wp-tc-banner__actions { flex: 0 0 auto; }
.wp-tc-banner__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; }
.wp-tc-banner__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wp-tc-banner__debug { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); font-size: 12px; }
.wp-tc-banner__debug-list { margin: 6px 0 0; padding-left: 18px; }
.wp-tc-banner__debug-empty { margin-top: 6px; opacity: 0.85; }

.wp-tc-button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--wp-tc-button, #00a36d);
    border-radius: 7px;
    background: var(--wp-tc-button, #00a36d);
    color: var(--wp-tc-button-text, #ffffff);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease;
}

.wp-tc-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wp-tc-button:focus-visible,
.wp-tc-open-preferences:focus-visible,
.wp-tc-dialog__close:focus-visible,
.wp-tc-dialog__option:focus-within { outline: 3px solid var(--wp-tc-focus); outline-offset: 3px; }
.wp-tc-button.wp-tc-refuse,
.wp-tc-button.wp-tc-refuse-all,
.wp-tc-button.wp-tc-customize { border-color: currentColor; background: transparent; color: inherit; }
.wp-tc-banner__actions .wp-tc-refuse:hover,
.wp-tc-banner__actions .wp-tc-customize:hover { background: rgba(255, 255, 255, 0.1); }

.wp-tc-footer-link {
    position: fixed;
    z-index: 99980;
    bottom: 0;
    left: 50%;
    display: flex;
    justify-content: center;
    width: min(100%, 420px);
    padding: 8px 16px 0;
    transform: translateX(-50%);
    pointer-events: none;
}
.wp-tc-footer-link[hidden] { display: none !important; }
.wp-tc-open-preferences {
    min-width: 42px;
    min-height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px 999px 0 0;
    background: #212529;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 120ms ease, padding 160ms ease;
}
.wp-tc-open-preferences:hover { background: #343a40; color: #ffffff; }
.wp-tc-open-preferences__icon { flex: 0 0 20px; }
.wp-tc-open-preferences__label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 180ms ease, margin-left 180ms ease, opacity 120ms ease;
}
.wp-tc-open-preferences:hover,
.wp-tc-open-preferences:focus-visible { padding-right: 16px; padding-left: 16px; }
.wp-tc-open-preferences:hover .wp-tc-open-preferences__label,
.wp-tc-open-preferences:focus-visible .wp-tc-open-preferences__label {
    max-width: 180px;
    margin-left: 8px;
    opacity: 1;
}

.wp-tc-dialog { position: fixed; z-index: 100000; inset: 0; }
.wp-tc-dialog__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 14, 0.72); animation: wp-tc-fade 150ms ease-out; }
.wp-tc-dialog__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 32px));
    max-height: min(760px, calc(100svh - 32px));
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 26px;
    border-radius: 14px;
    background: #ffffff;
    color: #18201d;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    animation: wp-tc-dialog-enter 180ms ease-out;
}
.wp-tc-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wp-tc-dialog__eyebrow { display: block; margin-bottom: 4px; color: #28785b; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.wp-tc-dialog__header h2 { margin: 0; color: inherit; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
.wp-tc-dialog__close { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid #cfd8d4; border-radius: 50%; background-color: transparent; color: #18201d; line-height: 1; cursor: pointer; }
.wp-tc-dialog__panel > p { margin: 14px 0 22px; color: #46534e; line-height: 1.55; }
.wp-tc-dialog__policy-links { margin: -8px 0 20px; font-size: 13px; }
.wp-tc-dialog__policy-link { color: #176a49; text-decoration: underline; text-underline-offset: 3px; }
.wp-tc-dialog__policy-link:hover { color: #0f5132; }
.wp-tc-dialog__options { border-top: 1px solid #dce3e0; }
.wp-tc-dialog__option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; border-bottom: 1px solid #dce3e0; cursor: pointer; }
.wp-tc-dialog__option strong { display: block; margin-bottom: 3px; font-size: 16px; }
.wp-tc-dialog__option p,
.wp-tc-dialog__option-description { display: block; margin: 0; color: #56635e; font-size: 13px; line-height: 1.45; }
.wp-tc-dialog__option input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: #137a53; }
.wp-tc-dialog__notice { margin: 18px 0; padding-left: 12px; border-left: 3px solid #b9c8c1; color: #56635e; font-size: 12px; line-height: 1.5; }
.wp-tc-dialog__actions .wp-tc-refuse-all { border-color: #34413c; background: #ffffff; color: #26312d; }
.wp-tc-dialog__actions .wp-tc-refuse-all:hover { background: #eef4f1; }
.wp-tc-preferences-status { min-height: 1.4em; margin: 10px 0 0; color: #176a49; font-size: 13px; text-align: right; }
.wp-tc-dialog-open { overflow: hidden; }

.wp-tc-consent-preferences { margin: 20px 0; padding: 20px 0; border-top: 1px solid #dce3e0; border-bottom: 1px solid #dce3e0; }
.wp-tc-consent-option { margin-bottom: 14px; }
.wp-tc-consent-option label { font-weight: 650; }
.wp-tc-consent-option .description { margin: 4px 0 0 24px; color: #555; font-size: 13px; }
.wp-tc-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wp-tc-script-table { width: 100%; border-collapse: collapse; }
.wp-tc-script-table th,
.wp-tc-script-table td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.wp-tc-legal h2,
.wp-tc-legal h3 { margin-top: 28px; }

@keyframes wp-tc-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes wp-tc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wp-tc-dialog-enter { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

.wp-tc-table-wrap { overflow-x: auto; }

@media (max-width: 760px) {
    .wp-tc-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
    .wp-tc-banner__actions { width: 100%; }
    .wp-tc-banner__actions .wp-tc-button { width: 100%; }
    .wp-tc-dialog__panel { padding: 20px; }
    .wp-tc-dialog__actions .wp-tc-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .wp-tc-banner,
    .wp-tc-dialog__backdrop,
    .wp-tc-dialog__panel { animation: none; }
    .wp-tc-button,
    .wp-tc-open-preferences,
    .wp-tc-open-preferences__label { transition: none; }
}
