/* =============================================================
   xot-cookie-banner — consent banner styles
   Extracted from cookie-banner.php on 2026-05-04
   ============================================================= */
/* ══════════════════════════════════════
   XOT COOKIE CONSENT — Premium v2.0
   Glassmorphism · Smooth animations
   ══════════════════════════════════════ */

/* ── BANNER ── */
.xot-cb {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999990;
    background: rgba(12,12,12,0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
}
.xot-cb.xot-cb--visible { transform: translateY(0) !important; }

.xot-cb::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #F0506C 30%, #F0506C 70%, transparent 100%);
    opacity: 0.8;
}

.xot-cb__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    z-index: 999989;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.xot-cb__backdrop.xot-cb__backdrop--visible { opacity: 1; pointer-events: none; }

.xot-cb__inner {
    max-width: var(--xot-max); margin: 0 auto;
    padding: 1rem 2rem;
    display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: nowrap;
}

.xot-cb__region {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.2rem; flex-shrink: 0;
}
.xot-cb__region-flag { font-size: 1.5rem; line-height: 1; }
.xot-cb__region-label {
    font-size: 0.5rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.2); white-space: nowrap;
}

.xot-cb__copy { flex: 1; min-width: 0; }
.xot-cb__title {
    font-size: 0.88rem; font-weight: 900;
    color: #ffffff; margin-bottom: 0.25rem; letter-spacing: -0.1px;
}
.xot-cb__desc {
    font-size: 0.75rem; color: rgba(255,255,255,0.38);
    line-height: 1.55; margin: 0;
}
.xot-cb__desc a {
    color: #F0506C; text-decoration: underline;
    text-underline-offset: 2px; transition: color 0.15s;
}
.xot-cb__desc a:hover { color: #ff6b74; }

.xot-cb__actions {
    display: flex; flex-direction: column;
    gap: 0.45rem; flex-shrink: 0; min-width: 148px; max-width: 172px;
}
.xot-cb__btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.1px;
    border-radius: 6px; border: none;
    cursor: pointer; transition: all 0.18s;
    font-family: inherit; white-space: nowrap; width: 100%;
}
.xot-cb__btn--accept {
    background: #F0506C; color: #fff;
    box-shadow: 0 2px 16px rgba(240,80,108,0.45);
}
.xot-cb__btn--accept:hover {
    background: #D94068;
    box-shadow: 0 4px 24px rgba(240,80,108,0.6);
    transform: translateY(-1px);
}
.xot-cb__btn--reject {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.65);
}
.xot-cb__btn--reject:hover { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.1); }
.xot-cb__btn--manage {
    background: none; border: none;
    color: rgba(255,255,255,0.22);
    font-size: 0.62rem; letter-spacing: 1px;
    padding: 0.2rem; text-decoration: underline;
    text-underline-offset: 2px;
}
.xot-cb__btn--manage:hover { color: rgba(255,255,255,0.55); }

/* ── MODAL DRAWER ── */
.xot-cm {
    position: fixed; inset: 0; z-index: 999995;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0; pointer-events: none;
}
.xot-cm__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.3s ease;
}
.xot-cm.xot-cm--visible .xot-cm__backdrop { opacity: 1; }
.xot-cm.xot-cm--visible { pointer-events: all; }

.xot-cm__box {
    position: relative; z-index: 1;
    background: var(--color-surface);
    width: 100%; max-width: 560px;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 -20px 80px rgba(0,0,0,0.45);
}
.xot-cm.xot-cm--visible .xot-cm__box { transform: translateY(0); }

.xot-cm__handle {
    display: flex; justify-content: center;
    padding: 0.85rem 0 0.4rem;
    flex-shrink: 0;
}
.xot-cm__handle::before {
    content: ''; width: 40px; height: 4px;
    background: var(--color-surface-3); border-radius: 4px;
}

.xot-cm__head {
    padding: 0.4rem 1.5rem 1rem;
    flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.xot-cm__head-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.xot-cm__logo-wrap { display: inline-block; }
.xot-cm__title { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,.35); margin-top: 0.1rem; }
.xot-cm__close {
    background: var(--color-surface); border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,.35); flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.xot-cm__close:hover { background: #111; color: #fff; }

.xot-cm__body {
    flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}
.xot-cm__intro {
    font-size: 0.82rem; color: rgba(255,255,255,.45); line-height: 1.7;
    margin-bottom: 1.25rem; padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.xot-cm__intro a { color: #F0506C; text-decoration: underline; }

.xot-ct { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.xot-ct:last-child { border-bottom: none; }
.xot-ct__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.xot-ct__left { flex: 1; min-width: 0; }
.xot-ct__name {
    font-size: 0.88rem; font-weight: 800; color: rgba(255,255,255,.92);
    margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.5rem;
}
.xot-ct__badge {
    font-size: 0.52rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.8px; padding: 0.15rem 0.45rem;
    border-radius: 3px; flex-shrink: 0;
}
.xot-ct__badge--required { background: #111; color: #fff; }
.xot-ct__badge--optional { background: var(--color-surface-2); color: rgba(255,255,255,.35); }
.xot-ct__summary { font-size: 0.75rem; color: rgba(255,255,255,.35); line-height: 1.5; }
.xot-ct__detail {
    font-size: 0.75rem; color: rgba(255,255,255,.35); line-height: 1.65;
    margin-top: 0.75rem; display: none;
    background: var(--color-surface); border-radius: 6px;
    padding: 0.75rem; border-left: 2px solid rgba(255,255,255,.1);
}
.xot-ct__detail.xot-ct__detail--open { display: block; }
.xot-ct__expand {
    font-size: 0.65rem; font-weight: 700; color: #F0506C;
    background: none; border: none; cursor: pointer; padding: 0;
    margin-top: 0.25rem; display: inline-flex; align-items: center;
    gap: 0.3rem; font-family: inherit;
}
.xot-ct__expand svg { transition: transform 0.2s; }
.xot-ct__expand.open svg { transform: rotate(180deg); }

.xot-sw { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.xot-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.xot-sw__track {
    position: absolute; inset: 0;
    background: rgba(255,255,255,.15); border-radius: 24px;
    cursor: pointer; transition: background 0.2s;
}
.xot-sw__track::before {
    content: ''; position: absolute;
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background: var(--color-surface); border-radius: 50%;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.xot-sw input:checked + .xot-sw__track { background: #F0506C; }
.xot-sw input:checked + .xot-sw__track::before { transform: translateX(20px); }
.xot-sw input:disabled + .xot-sw__track { opacity: 0.5; cursor: not-allowed; }
.xot-sw input:focus-visible + .xot-sw__track { outline: 2px solid #F0506C; outline-offset: 2px; }

.xot-cm__foot {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06); background: var(--color-surface);
    flex-shrink: 0; display: flex; flex-direction: column; gap: 0.6rem;
}
.xot-cm__foot-row { display: flex; gap: 0.6rem; }
.xot-cm__foot-btn {
    flex: 1; padding: 0.72rem 1rem;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; border: none;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.xot-cm__foot-btn--accept { background: #F0506C; color: #fff; box-shadow: 0 2px 12px rgba(240,80,108,0.3); }
.xot-cm__foot-btn--accept:hover { background: #D94068; }
.xot-cm__foot-btn--reject { background: #111; color: #fff; }
.xot-cm__foot-btn--reject:hover { background: #333; }
.xot-cm__foot-btn--save { background: var(--color-surface); color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.08); }
.xot-cm__foot-btn--save:hover { border-color: rgba(255,255,255,.92); }
.xot-cm__version { font-size: 0.6rem; color: rgba(255,255,255,.3); text-align: center; letter-spacing: 0.5px; }

.xot-cm__history {
    font-size: 0.62rem; color: rgba(255,255,255,.3);
    text-align: center; letter-spacing: 0.5px;
    background: none; border: none; cursor: pointer;
    font-family: inherit; padding: 0.2rem; margin-top: 0.2rem;
    text-decoration: underline; text-underline-offset: 2px;
}
.xot-cm__history:hover { color: rgba(255,255,255,.6); }

@media (max-width: 768px) {
    .xot-cb { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
    .xot-cm__box { max-height: 92vh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 600px) {
    .xot-cb__inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
    .xot-cb__region { flex-direction: row; align-items: center; gap: 0.5rem; }
    .xot-cb__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; max-width: none; width: 100%; }
    .xot-cb__btn--accept, .xot-cb__btn--reject { flex: 1; }
    .xot-cb__btn--manage { width: 100%; }
}
@media (max-width: 480px) {
    .xot-cm__foot-row { flex-direction: column; }
}

.xot-ccpa {
    font-size: 0.72rem; color: rgba(255,255,255,0.28);
    padding: 0.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.xot-ccpa a { color: #F0506C; text-decoration: underline; }
