.tcg-cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
}

.tcg-cookie-consent.is-open {
    display: flex;
}

.tcg-cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tcg-cookie-consent__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: rgba(8, 8, 8, 0.97);
    color: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.tcg-cookie-consent__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tcg-cookie-consent__eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #c8a45d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.tcg-cookie-consent h2 {
    max-width: 390px;
    margin: 0;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.6px;
}

.tcg-cookie-consent__intro p {
    margin: 20px 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
}

.tcg-cookie-consent__more {
    color: #c8a45d;
    font-size: 13px;
    font-weight: 800;
    text-underline-offset: 4px;
}

.tcg-cookie-consent__preferences {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.tcg-cookie-consent__preferences[hidden] {
    display: none;
}

.tcg-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.tcg-cookie-category strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.tcg-cookie-category p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.55;
}

.tcg-cookie-category__required {
    flex: 0 0 auto;
    color: #c8a45d;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.tcg-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}

.tcg-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tcg-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.2s ease;
}

.tcg-cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.tcg-cookie-switch input:checked + span {
    background: #c8a45d;
}

.tcg-cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.tcg-cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 26px;
}

.tcg-cookie-button {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.tcg-cookie-button[hidden] {
    display: none;
}

.tcg-cookie-button--primary {
    border: 1px solid #fff;
    background: #fff;
    color: #080808;
}

.tcg-cookie-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
}

.tcg-cookie-button--text {
    grid-column: 1 / -1;
    min-height: auto;
    border: 0;
    background: transparent;
    color: #c8a45d;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tcg-cookie-consent__actions
.tcg-cookie-button--primary[data-cookie-save] {
    grid-column: 1 / -1;
}

.tcg-cookie-settings-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: #080808;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

body.cookie-consent-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .tcg-cookie-consent {
        align-items: flex-end;
        padding: 10px;
    }

    .tcg-cookie-consent__panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 28px 20px 22px;
        border-radius: 24px;
    }

    .tcg-cookie-consent h2 {
        font-size: 32px;
    }

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

    .tcg-cookie-button--text,
    .tcg-cookie-consent__actions
    .tcg-cookie-button--primary[data-cookie-save] {
        grid-column: auto;
    }

    .tcg-cookie-category {
        align-items: flex-start;
    }

    .tcg-cookie-settings-trigger {
        right: 12px;
        bottom: 82px;
    }
}
@media (max-width: 700px) {
    .tcg-cookie-settings-trigger {
        display: none !important;
    }
}
.footer-cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    opacity: 0.72;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.footer-cookie-settings-link:hover {
    opacity: 1;
    color: #c8a45d;
}