/* XBR Cookie Consent
   Добавьте этот файл в дочернюю тему и подключите через functions.php.
*/

#xcc-cookie-root,
#xcc-cookie-root *,
#xcc-cookie-root *::before,
#xcc-cookie-root *::after {
    box-sizing: border-box;
}

#xcc-cookie-root {
    --xcc-bg: var(--xbr-bg-deep, #02030a);
    --xcc-surface: var(--xbr-surface-solid, #11152f);
    --xcc-surface-light: var(--xbr-surface-light, #171d42);
    --xcc-border: var(--xbr-border, rgba(148, 163, 255, 0.18));
    --xcc-border-bright: var(--xbr-border-bright, rgba(78, 222, 255, 0.34));
    --xcc-text: var(--xbr-text, #f7f8ff);
    --xcc-text-soft: var(--xbr-text-soft, #aeb7d7);
    --xcc-blue: var(--xbr-blue, #2878ff);
    --xcc-blue-light: var(--xbr-blue-light, #5ca9ff);
    --xcc-cyan: var(--xbr-cyan, #26e1ff);
    --xcc-purple: var(--xbr-purple, #8b5cff);
    --xcc-pink: var(--xbr-pink, #ff3ca6);
    --xcc-green: var(--xbr-green, #57f5b4);
    --xcc-danger: var(--xbr-danger, #ff557c);
    position: relative;
    z-index: 999999;
    color: var(--xcc-text);
    font-family:
        Inter,
        Manrope,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

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

body.xcc-scroll-lock {
    overflow: hidden !important;
}

.xcc-backdrop {
    position: fixed;
    z-index: 999996;
    inset: 0;
    background: rgba(1, 2, 9, 0.74);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: xcc-fade-in 0.22s ease both;
}

.xcc-banner {
    position: fixed;
    z-index: 999997;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: grid;
    width: min(100% - 44px, 1040px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-inline: auto;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--xcc-border-bright);
    border-radius: 24px;
    background:
        linear-gradient(
            140deg,
            rgba(24, 29, 65, 0.96),
            rgba(7, 9, 23, 0.98) 54%,
            rgba(36, 14, 48, 0.97)
        );
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 44px rgba(38, 225, 255, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    isolation: isolate;
    animation: xcc-banner-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.xcc-banner::before {
    position: absolute;
    z-index: -1;
    top: -170px;
    left: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(38, 225, 255, 0.18), transparent 68%);
    content: "";
    pointer-events: none;
}

.xcc-banner::after {
    position: absolute;
    z-index: -1;
    right: -120px;
    bottom: -210px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 60, 166, 0.16), transparent 68%);
    content: "";
    pointer-events: none;
}

.xcc-banner__icon {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(38, 225, 255, 0.26);
    border-radius: 18px;
    color: var(--xcc-cyan);
    background:
        linear-gradient(
            145deg,
            rgba(38, 225, 255, 0.13),
            rgba(139, 92, 255, 0.1)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 24px rgba(38, 225, 255, 0.08);
}

.xcc-banner__icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.xcc-banner__copy {
    min-width: 0;
}

.xcc-banner__eyebrow {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 5px;
    color: var(--xcc-green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.xcc-banner__eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--xcc-green);
    box-shadow: 0 0 13px rgba(87, 245, 180, 0.85);
    content: "";
}

.xcc-banner__title {
    margin: 0 0 5px;
    color: var(--xcc-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.xcc-banner__text {
    max-width: 620px;
    margin: 0;
    color: var(--xcc-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.xcc-banner__text a,
.xcc-modal a {
    color: var(--xcc-cyan);
    font-weight: 750;
    text-decoration: none;
}

.xcc-banner__text a:hover,
.xcc-modal a:hover {
    color: var(--xcc-text);
}

.xcc-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 9px;
    align-items: center;
}

#xcc-cookie-root .xcc-btn {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 17px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--xcc-text);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

#xcc-cookie-root .xcc-btn:hover {
    color: var(--xcc-text);
    border-color: rgba(38, 225, 255, 0.34);
    background: rgba(38, 225, 255, 0.08);
    transform: translateY(-2px);
}

#xcc-cookie-root .xcc-btn:focus-visible,
#xcc-cookie-root .xcc-icon-btn:focus-visible,
#xcc-cookie-root .xcc-manage:focus-visible,
#xcc-cookie-root .xcc-category:focus-within {
    outline: 2px solid var(--xcc-cyan);
    outline-offset: 3px;
}

#xcc-cookie-root .xcc-btn--primary {
    border-color: rgba(38, 225, 255, 0.43);
    background:
        linear-gradient(
            115deg,
            #147cff,
            #684fff 54%,
            #d72fa0
        );
    box-shadow:
        0 15px 34px rgba(66, 76, 255, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

#xcc-cookie-root .xcc-btn--primary:hover {
    border-color: rgba(92, 169, 255, 0.7);
    background:
        linear-gradient(
            115deg,
            #2588ff,
            #765dff 54%,
            #e13bab
        );
    box-shadow:
        0 20px 42px rgba(66, 76, 255, 0.34),
        0 0 28px rgba(38, 225, 255, 0.1);
}

#xcc-cookie-root .xcc-btn--danger:hover {
    border-color: rgba(255, 85, 124, 0.38);
    color: #ffdbe5;
    background: rgba(255, 85, 124, 0.09);
}

.xcc-modal {
    position: fixed;
    z-index: 999998;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(100% - 32px, 780px);
    max-height: min(88dvh, 840px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--xcc-border-bright);
    border-radius: 28px;
    background:
        linear-gradient(
            150deg,
            rgba(22, 27, 62, 0.99),
            rgba(7, 9, 23, 0.995) 58%,
            rgba(25, 10, 35, 0.99)
        );
    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.65),
        0 0 54px rgba(38, 225, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%);
    animation: xcc-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.xcc-modal__header {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--xcc-border);
    background: rgba(5, 6, 17, 0.54);
}

.xcc-modal__heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.xcc-modal__mark {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(38, 225, 255, 0.23);
    border-radius: 14px;
    color: var(--xcc-cyan);
    background: rgba(38, 225, 255, 0.07);
}

.xcc-modal__mark svg {
    width: 22px;
    height: 22px;
}

.xcc-modal__kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--xcc-cyan);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.xcc-modal__title {
    margin: 0;
    color: var(--xcc-text);
    font-size: 23px;
    font-weight: 880;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

#xcc-cookie-root .xcc-icon-btn {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--xcc-border);
    border-radius: 13px;
    color: var(--xcc-text-soft);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

#xcc-cookie-root .xcc-icon-btn:hover {
    color: var(--xcc-text);
    border-color: rgba(38, 225, 255, 0.34);
    background: rgba(38, 225, 255, 0.08);
}

.xcc-modal__body {
    min-height: 0;
    padding: 22px 26px 12px;
    overflow-y: auto;
    scrollbar-color: rgba(92, 169, 255, 0.54) transparent;
    scrollbar-width: thin;
}

.xcc-modal__body::-webkit-scrollbar {
    width: 7px;
}

.xcc-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.xcc-modal__body::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(92, 169, 255, 0.46);
}

.xcc-modal__intro {
    margin: 0 0 18px;
    color: var(--xcc-text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.xcc-category-list {
    display: grid;
    gap: 10px;
}

.xcc-category {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: flex-start;
    padding: 17px;
    border: 1px solid var(--xcc-border);
    border-radius: 18px;
    color: var(--xcc-text);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.xcc-category:hover {
    border-color: rgba(38, 225, 255, 0.28);
    background:
        linear-gradient(
            145deg,
            rgba(38, 225, 255, 0.065),
            rgba(139, 92, 255, 0.035)
        );
    transform: translateY(-1px);
}

.xcc-category--locked {
    cursor: default;
}

.xcc-category--locked:hover {
    transform: none;
}

.xcc-category__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.xcc-category__check {
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    margin-top: 1px;
    border: 1px solid rgba(148, 163, 255, 0.38);
    border-radius: 8px;
    background: rgba(3, 5, 15, 0.62);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.xcc-category__check::after {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 7px;
    height: 11px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    content: "";
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.xcc-category__input:checked + .xcc-category__check {
    border-color: rgba(38, 225, 255, 0.72);
    background:
        linear-gradient(
            135deg,
            var(--xcc-blue),
            var(--xcc-purple)
        );
    box-shadow:
        0 0 18px rgba(38, 225, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.xcc-category__input:checked + .xcc-category__check::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.xcc-category__content {
    min-width: 0;
}

.xcc-category__name {
    display: block;
    margin-bottom: 4px;
    color: var(--xcc-text);
    font-size: 14px;
    font-weight: 830;
    line-height: 1.3;
}

.xcc-category__description {
    display: block;
    color: var(--xcc-text-soft);
    font-size: 12px;
    line-height: 1.62;
}

.xcc-category__status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid rgba(87, 245, 180, 0.21);
    border-radius: 999px;
    color: var(--xcc-green);
    background: rgba(87, 245, 180, 0.065);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-transform: uppercase;
}

.xcc-modal__note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 13px 0 4px;
    padding: 13px 14px;
    border: 1px solid rgba(92, 169, 255, 0.17);
    border-radius: 15px;
    color: var(--xcc-text-soft);
    background: rgba(40, 120, 255, 0.05);
    font-size: 11px;
    line-height: 1.55;
}

.xcc-modal__note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    color: var(--xcc-blue-light);
}

.xcc-modal__footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 10px;
    padding: 17px 26px 21px;
    border-top: 1px solid var(--xcc-border);
    background: rgba(5, 6, 17, 0.72);
}

.xcc-modal__footer .xcc-btn {
    width: 100%;
}


.xcc-toast {
    position: fixed;
    z-index: 1000000;
    top: 18px;
    left: 50%;
    width: min(100% - 32px, 420px);
    padding: 13px 16px;
    border: 1px solid rgba(87, 245, 180, 0.28);
    border-radius: 14px;
    color: #eafff6;
    background: rgba(7, 23, 24, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    transform: translateX(-50%);
    animation: xcc-toast-in 0.25s ease both;
}

@keyframes xcc-banner-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes xcc-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes xcc-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes xcc-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

    .xcc-banner__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #xcc-cookie-root .xcc-banner__actions .xcc-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .xcc-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        padding: 15px;
        border-radius: 20px;
    }

    .xcc-banner__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .xcc-banner__icon svg {
        width: 23px;
        height: 23px;
    }

    .xcc-banner__eyebrow {
        font-size: 8px;
    }

    .xcc-banner__title {
        font-size: 15px;
    }

    .xcc-banner__text {
        grid-column: 1 / -1;
        font-size: 11px;
    }

    .xcc-banner__actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .xcc-banner__actions .xcc-btn--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    #xcc-cookie-root .xcc-btn {
        min-height: 45px;
        padding: 11px 12px;
        font-size: 10px;
        white-space: normal;
    }

    .xcc-modal {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 94dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        transform: none;
        animation-name: xcc-sheet-in;
    }

    .xcc-modal__header {
        padding: 18px 16px 15px;
    }

    .xcc-modal__heading {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .xcc-modal__mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .xcc-modal__title {
        font-size: 18px;
    }

    .xcc-modal__body {
        padding: 16px 14px 9px;
    }

    .xcc-modal__intro {
        font-size: 12px;
    }

    .xcc-category {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
        border-radius: 16px;
    }

    .xcc-category__status {
        grid-column: 2;
        justify-self: start;
        margin-top: 3px;
    }

    .xcc-category__name {
        font-size: 13px;
    }

    .xcc-category__description {
        font-size: 11px;
    }

    .xcc-modal__footer {
        grid-template-columns: 1fr 1fr;
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    }

    .xcc-modal__footer .xcc-btn--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

}

@keyframes xcc-sheet-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .xcc-banner__actions,
    .xcc-modal__footer {
        grid-template-columns: 1fr;
    }

    .xcc-banner__actions .xcc-btn--primary,
    .xcc-modal__footer .xcc-btn--primary {
        grid-column: auto;
        grid-row: auto;
    }

    #xcc-cookie-root .xcc-manage span {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    #xcc-cookie-root *,
    #xcc-cookie-root *::before,
    #xcc-cookie-root *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Старая кнопка повторного открытия удаляется JavaScript и никогда не показывается. */
#xcc-cookie-root [data-xcc-manage],
#xcc-cookie-root .xcc-manage {
    display: none !important;
}
