#wfcc-root,
#wfcc-root * {
    box-sizing: border-box;
}

#wfcc-root {
    --wfcc-bg: #ffffff;
    --wfcc-text: #101828;
    --wfcc-primary: #7b2ff7;
    --wfcc-secondary: #f3e8ff;
    --wfcc-button-text: #ffffff;
    --wfcc-body-text: var(--wfcc-text);
    --wfcc-heading-text: var(--wfcc-text);
    --wfcc-radius: 14px;
    --wfcc-font-size: 15px;
    --wfcc-heading-size: 18px;
    --wfcc-body-font: inherit;
    --wfcc-heading-font: inherit;
    color: var(--wfcc-body-text, var(--wfcc-text));
    font-family: var(--wfcc-body-font);
    font-size: var(--wfcc-font-size);
    line-height: 1.5;
}

#wfcc-root [hidden] {
    display: none !important;
}

.wfcc-banner {
    position: fixed;
    z-index: 999999;
    background: var(--wfcc-bg);
    color: var(--wfcc-body-text, var(--wfcc-text));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    border-radius: var(--wfcc-radius);
    overflow: hidden;
}

.wfcc-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
}

.wfcc-title {
    display: block;
    margin-bottom: 6px;
    color: var(--wfcc-heading-text, var(--wfcc-text));
    font-family: var(--wfcc-heading-font);
    font-size: var(--wfcc-heading-size);
    line-height: 1.25;
}

.wfcc-message,
.wfcc-message p {
    color: var(--wfcc-body-text, var(--wfcc-text));
    margin: 0;
}

.wfcc-actions,
.wfcc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.wfcc-button,
.wfcc-floating-button {
    border: 0;
    border-radius: calc(var(--wfcc-radius) * 0.75);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.wfcc-button:hover,
.wfcc-floating-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.wfcc-button-primary,
.wfcc-floating-button {
    background: var(--wfcc-primary);
    color: var(--wfcc-button-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.wfcc-button-secondary {
    background: var(--wfcc-secondary);
    color: var(--wfcc-text);
}

.wfcc-banner_bottom .wfcc-banner,
.wfcc-banner_top .wfcc-banner {
    left: 24px;
    right: 24px;
}

.wfcc-banner_bottom .wfcc-banner {
    bottom: 24px;
}

.wfcc-banner_top .wfcc-banner {
    top: 24px;
}

.wfcc-corner_left .wfcc-banner,
.wfcc-corner_right .wfcc-banner,
.wfcc-modal_center .wfcc-banner {
    width: min(440px, calc(100vw - 32px));
}

.wfcc-corner_left .wfcc-banner {
    left: 24px;
    bottom: 24px;
}

.wfcc-corner_right .wfcc-banner {
    right: 24px;
    bottom: 24px;
}

.wfcc-modal_center .wfcc-banner {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wfcc-corner_left .wfcc-banner-content,
.wfcc-corner_right .wfcc-banner-content,
.wfcc-modal_center .wfcc-banner-content {
    align-items: stretch;
    flex-direction: column;
}

.wfcc-corner_left .wfcc-actions,
.wfcc-corner_right .wfcc-actions,
.wfcc-modal_center .wfcc-actions {
    justify-content: flex-start;
}

.wfcc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.wfcc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.46);
}

.wfcc-modal-panel {
    position: relative;
    width: min(650px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    background: var(--wfcc-bg);
    color: var(--wfcc-body-text, var(--wfcc-text));
    border-radius: var(--wfcc-radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    padding: 28px;
}

.wfcc-modal-panel h1,
.wfcc-modal-panel h2,
.wfcc-modal-panel h3,
.wfcc-category strong,
.wfcc-cookie-policy-content h1,
.wfcc-cookie-policy-content h2,
.wfcc-cookie-policy-content h3 {
    color: var(--wfcc-heading-text, var(--wfcc-text));
    font-family: var(--wfcc-heading-font);
}

.wfcc-modal-panel h2 {
    margin: 0 0 8px;
    font-size: var(--wfcc-heading-size);
}

.wfcc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--wfcc-body-text, var(--wfcc-text));
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.wfcc-category-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.wfcc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--wfcc-radius) * 0.75);
    background: rgba(0, 0, 0, 0.015);
}

.wfcc-category strong,
.wfcc-category small {
    display: block;
}

.wfcc-category small {
    margin-top: 4px;
    opacity: 0.78;
}

.wfcc-category-toggle {
    width: 22px;
    height: 22px;
    accent-color: var(--wfcc-primary);
    flex: 0 0 auto;
}

.wfcc-floating-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999998;
    padding: 9px 13px;
    font-size: 13px;
}

.wfcc-cookie-table-wrap {
    overflow-x: auto;
}

.wfcc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.wfcc-cookie-table th,
.wfcc-cookie-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.wfcc-cookie-table th {
    background: rgba(0, 0, 0, 0.04);
}


.wfcc-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.wfcc-policy-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--wfcc-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
}

.wfcc-policy-link:hover {
    opacity: 0.84;
}

.wfcc-policy-modal-panel {
    width: min(860px, 100%);
}

.wfcc-policy-modal-panel .wfcc-cookie-policy-content h1 {
    margin-top: 0;
    padding-right: 34px;
}

.wfcc-policy-modal-panel .wfcc-cookie-table {
    font-size: 0.95em;
}

@media (max-width: 720px) {
    .wfcc-banner_bottom .wfcc-banner,
    .wfcc-banner_top .wfcc-banner,
    .wfcc-corner_left .wfcc-banner,
    .wfcc-corner_right .wfcc-banner,
    .wfcc-modal_center .wfcc-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        width: auto;
        transform: none;
    }

    .wfcc-banner-content {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .wfcc-actions,
    .wfcc-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wfcc-button,
    .wfcc-floating-button {
        width: 100%;
    }

    .wfcc-modal {
        padding: 12px;
    }

    .wfcc-modal-panel {
        padding: 24px 18px;
    }

    .wfcc-floating-button {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* CookieFast v3.1 display type refinements */
.wfcc-corner_top_left .wfcc-banner,
.wfcc-corner_top_right .wfcc-banner {
    width: min(440px, calc(100vw - 32px));
}

.wfcc-corner_top_left .wfcc-banner {
    left: 24px;
    top: 24px;
}

.wfcc-corner_top_right .wfcc-banner {
    right: 24px;
    top: 24px;
}

.wfcc-corner_top_left .wfcc-banner-content,
.wfcc-corner_top_right .wfcc-banner-content {
    align-items: stretch;
    flex-direction: column;
}

.wfcc-corner_top_left .wfcc-actions,
.wfcc-corner_top_right .wfcc-actions {
    justify-content: flex-start;
}

.wfcc-banner-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    pointer-events: auto;
}

.wfcc-overlay-dim .wfcc-banner-overlay {
    background: rgba(15, 23, 42, 0.62);
}

.wfcc-overlay-blur .wfcc-banner-overlay {
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(8px);
}

.wfcc-overlay-frosted .wfcc-banner-overlay {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px) saturate(1.15);
}

.wfcc-overlay-brand .wfcc-banner-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(123, 47, 247, 0.36), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(255, 90, 159, 0.34), transparent 30%),
        radial-gradient(circle at 72% 82%, rgba(25, 194, 255, 0.28), transparent 34%),
        rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px) saturate(1.2);
}

html.wfcc-consent-popup-open,
html.wfcc-consent-popup-open body {
    overflow: hidden;
}

.wfcc-modal_center .wfcc-banner {
    z-index: 999999;
}

@media (max-width: 600px) {
    .wfcc-corner_top_left .wfcc-banner,
    .wfcc-corner_top_right .wfcc-banner {
        left: 16px;
        right: 16px;
        top: 16px;
        width: auto;
    }
}
