@font-face {
    font-family: "Archivo";
    src: url("../fonts/Archivo-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Archivo";
    src: url("../fonts/Archivo-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: block;
}

:root {
    --sp-consent-blue: #477ef9;
    --sp-consent-text: #11131a;
    --sp-consent-muted: #697080;
    --sp-consent-border: #dfe2e8;
    --sp-consent-surface: #ffffff;
}

.sp-cookie-settings-entry a {
    color: #477ef9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-consent,
.sp-consent *,
.sp-consent *::before,
.sp-consent *::after {
    box-sizing: border-box;
}

.sp-consent,
.sp-consent button,
.sp-consent a {
    font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
}

.sp-consent[hidden],
.sp-consent [hidden] {
    display: none !important;
}

.sp-consent {
    position: relative;
    z-index: 2147483000;
    color: var(--sp-consent-text);
    font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
}

#sp-consent.sp-consent--fallback-font,
#sp-consent.sp-consent--fallback-font * {
    font-family: "Helvetica Neue", Arial, sans-serif !important;
}

.sp-consent .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#sp-consent .sp-consent__banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    width: min(784px, calc(100vw - 48px));
    padding: 24px;
    border: 1px solid rgba(17, 19, 26, 0.08);
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 55px rgba(20, 29, 51, 0.18);
    animation: sp-consent-banner-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-consent h2,
.sp-consent h3,
.sp-consent p {
    margin: 0;
    color: inherit;
}

.sp-consent__banner h2,
.sp-consent__modal > h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

#sp-consent .sp-consent__banner p {
    margin-top: 8px;
    color: var(--sp-consent-muted);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.sp-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
}

#sp-consent .sp-consent__links a {
    color: var(--sp-consent-blue);
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: none;
}

.sp-consent__links a:hover,
.sp-consent__links a:focus-visible {
    text-decoration: underline;
}

.sp-consent__actions,
.sp-consent__modal-actions {
    display: grid;
    gap: 10px;
}

#sp-consent .sp-consent__button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 50px;
    padding: 11px 20px;
    border: 1px solid var(--sp-consent-border) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: var(--sp-consent-text) !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: border-color 150ms ease;
}

#sp-consent .sp-consent__button:hover:not(:disabled) {
    border-color: var(--sp-consent-blue) !important;
}

.sp-consent__button:focus-visible,
.sp-consent__close:focus-visible,
.sp-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(71, 126, 249, 0.35);
    outline-offset: 2px;
}

#sp-consent .sp-consent__button--primary,
#sp-consent .sp-consent__button--primary:hover,
#sp-consent .sp-consent__button--primary:focus {
    border-color: #477ef9 !important;
    background: #477ef9 !important;
    color: #ffffff !important;
}

.sp-consent__button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.sp-consent__backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(15, 20, 34, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: sp-consent-backdrop-in 220ms ease-out both;
}

html.sp-consent-modal-open,
html.sp-consent-modal-open body {
    overflow: hidden;
}

.sp-consent__modal {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    padding: 42px 48px 46px;
    overflow-y: auto;
    border-radius: 26px;
    background: var(--sp-consent-surface);
    box-shadow: 0 24px 80px rgba(20, 29, 51, 0.25);
    animation: sp-consent-modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-consent__modal > h2 {
    text-align: center;
}

.sp-consent__summary {
    margin-top: 12px !important;
    color: var(--sp-consent-muted) !important;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

#sp-consent .sp-consent__close,
#sp-consent .sp-consent__close:hover,
#sp-consent .sp-consent__close:active {
    position: absolute;
    top: 18px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #000000 !important;
    cursor: pointer;
    font-size: 26px;
    font-weight: 400 !important;
    line-height: 1;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.sp-consent__category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--sp-consent-border);
}

.sp-consent__category:first-of-type {
    margin-top: 18px;
    border-top: 1px solid var(--sp-consent-border);
}

.sp-consent__category h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.sp-consent__category p {
    margin-top: 7px;
    color: var(--sp-consent-muted);
    font-size: 13px;
    line-height: 1.5;
}

.sp-consent__switch {
    position: relative;
    display: inline-flex;
    margin-top: 1px;
}

.sp-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sp-consent__switch > span:last-child {
    position: relative;
    display: block;
    width: 50px;
    height: 30px;
    border-radius: 999px;
    background: #e9ebef;
    cursor: pointer;
    transition: background 160ms ease;
}

.sp-consent__switch > span:last-child::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(17, 19, 26, 0.2);
    content: "";
    transition: transform 160ms ease;
}

.sp-consent__switch input:checked + span {
    background: var(--sp-consent-blue);
}

.sp-consent__switch input:checked + span::after {
    transform: translateX(20px);
}

.sp-consent__switch--locked > span:last-child {
    cursor: not-allowed;
    opacity: 0.7;
}

.sp-consent__gpc {
    margin-top: 18px !important;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef3ff;
    color: #294e9f !important;
    font-size: 13px;
    line-height: 1.45;
}

.sp-consent__modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

@keyframes sp-consent-banner-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sp-consent-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sp-consent-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 680px) {
    #sp-consent .sp-consent__banner {
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: none;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border-radius: 22px 22px 0 0 !important;
    }

    .sp-consent__actions {
        grid-template-columns: 1fr;
    }

    .sp-consent__modal {
        padding: 40px 22px 24px;
        border-radius: 20px;
    }

    .sp-consent__modal-actions {
        grid-template-columns: 1fr;
    }

    .sp-consent__category {
        gap: 14px;
    }
}

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