/* Shared cookie dialog surface for public pages, panels and documentation. */
.cookie-consent-root, .cookie-consent-launcher { font-family: var(--ui-interface-font, 'Funnel Display', sans-serif); }
.cookie-consent-root *, .cookie-consent-launcher { box-sizing: border-box; }
.cookie-consent-root :is(button, a) { font-family: inherit; text-decoration: none; }
.cookie-consent-launcher {
  position: fixed; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9997; display: grid; place-items: center; width: 48px; height: 48px; padding: 9px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: transparent;
  backdrop-filter: blur(18px) saturate(1.14); -webkit-backdrop-filter: blur(18px) saturate(1.14);
  box-shadow: 0 12px 32px rgba(0,0,0,.24); cursor: pointer;
  transition: transform .22s ease, border-color .22s ease;
}
.cookie-consent-launcher[hidden] { display: none; }
.cookie-consent-launcher img { display: block; width: 28px; height: 28px; transition: transform .25s ease; }
.cookie-consent-launcher:hover { border-color: rgba(255,255,255,.24); transform: scale(1.05); }
.cookie-consent-launcher:hover img { transform: rotate(-12deg); }
.cookie-consent-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; line-height: 1; border: 1px solid rgba(148,163,184,.2); border-radius: 9px; background: rgba(148,163,184,.055); color: #aeb9c7; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.cookie-consent-close svg { display: block; place-self: center; width: 16px; height: 16px; margin: 0; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.cookie-consent-close:hover { color: #f87171; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.1); }
.cookie-consent-close:hover svg { transform: rotate(90deg) scale(1.06); }
.cookie-consent-close:active { transform: scale(.94); }
.cookie-consent-head { padding-right: 32px; }
.cookie-consent-launcher.is-returning { animation: cookieLauncherReturn .3s .1s cubic-bezier(.22,1,.36,1) both; }
@keyframes cookieLauncherReturn {
  from { opacity: 0; transform: translateY(5px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open .cookie-consent-launcher { visibility: hidden; pointer-events: none; }
@media (max-width: 900px) {
  :is(body.dev-spanel, body.apanel-page) .cookie-consent-launcher { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-launcher, .cookie-consent-launcher img, .cookie-consent-root * { animation: none !important; transition: none !important; }
}
.cookie-consent-root {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9998;
    width: min(332px, calc(100vw - 48px));
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

html .cookie-consent-card {
    --cookie-consent-radius: 18px;
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 round var(--cookie-consent-radius));
    padding: 14px;
    border-radius: var(--cookie-consent-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(1.14);
    -webkit-backdrop-filter: blur(18px) saturate(1.14);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transform-origin: left bottom;
    transition:
      opacity .24s ease,
      transform .42s cubic-bezier(.22, 1, .36, 1);
}

.cookie-consent-card::before {
    content: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(circle at top left, rgba(var(--ui-accent-rgb, 0, 224, 164), 0.16), transparent 38%),
      linear-gradient(135deg, rgba(255,255,255,0.12), transparent 48%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.cookie-consent-card::after {
    content: none;
    position: absolute;
    top: -28px;
    right: -30px;
    width: 138px;
    height: 138px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--ui-accent-rgb, 0, 224, 164), 0.16) 0%, rgba(var(--ui-accent-rgb, 0, 224, 164), 0.035) 48%, transparent 74%);
    filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}

html .cookie-consent-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

html .cookie-consent-card.is-hiding {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    pointer-events: none;
    transition: opacity .24s ease, transform .32s cubic-bezier(.4,0,.2,1);
}

.cookie-consent-content {
    position: relative;
    z-index: 1;
}

.cookie-consent-badge {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cookie-consent-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-accent, #00e0a4), #34d399);
    box-shadow: 0 0 12px rgba(var(--ui-accent-rgb, 0, 224, 164), 0.48);
}

.cookie-consent-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cookie-consent-icon-shell {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #7ef6d7;
}

.cookie-consent-icon-shell svg {
    width: 30px;
    height: 30px;
}

.cookie-consent-icon-asset {
    width: 100%;
    height: 100%;
    display: inline-block;
    object-fit: contain;
}

.cookie-consent-copy {
    min-width: 0;
}

.cookie-consent-title {
    margin: 0;
    color: #f8fafc;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
}

.cookie-consent-description {
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: .81rem;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    order: 3;
}

.cookie-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .8rem;
    font-weight: 700;
    transition:
      transform .22s ease,
      border-color .22s ease,
      background .22s ease,
      box-shadow .22s ease,
      color .22s ease;
}

.cookie-consent-button:hover {
    transform: translateY(-1px);
}

.cookie-consent-button-secondary {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #cbd5e1;
}

.cookie-consent-button-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

.cookie-consent-button-primary {
  background: var(--glyx-action-fill, #14634f);
  color: var(--glyx-action-text, #effff8);
  border-color: var(--glyx-action-border, #2e8b70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.cookie-consent-button-primary:hover {
  background: var(--glyx-action-hover, #19765e);
  color: var(--glyx-action-text, #effff8);
  border-color: var(--glyx-action-border, #2e8b70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.cookie-consent-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
    order: 4;
}

.cookie-consent-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.cookie-consent-links .cookie-consent-link { margin-top: 0; font-size: .6rem; }
.cookie-consent-links-dot { color: var(--ui-accent, #00e0a4); font-size: .6rem; }
.cookie-consent-links .cookie-consent-toggle { font-size: .6rem; gap: 4px; }
.cookie-consent-links .cookie-consent-toggle-arrow { width: 8px; height: 8px; }

.cookie-consent-toggle {
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
    gap: 8px;
    min-height: auto;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #f8fafc;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .22s ease, transform .22s ease;
}

.cookie-consent-toggle:hover {
    color: #ffffff;
    transform: scale(1.04);
}

.cookie-consent-toggle-arrow {
    width: 12px;
    height: 12px;
    color: currentColor;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.cookie-consent-card.is-expanded .cookie-consent-toggle-arrow {
    transform: rotate(180deg);
}

.cookie-consent-details {
    display: grid;
    width: 100%;
    text-align: center;
    grid-template-rows: 0fr;
    transition:
      grid-template-rows .34s cubic-bezier(.22, 1, .36, 1),
      margin-top .28s ease;
}

.cookie-consent-card.is-expanded .cookie-consent-details {
    grid-template-rows: 1fr;
    margin-top: 10px;
}

.cookie-consent-details-inner {
    min-height: 0;
    overflow: hidden;
}

.cookie-consent-details-copy {
    margin: 0;
    color: #94a3b8;
    font-size: .68rem;
    line-height: 1.55;
}

.cookie-consent-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 7px;
}

.cookie-consent-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #dbe7f3;
    font-size: .58rem;
    font-weight: 700;
}

.cookie-consent-tag::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}

.cookie-consent-tag-necessary {
    color: #7ef6d7;
}

.cookie-consent-tag-preferences {
    color: #93c5fd;
}

.cookie-consent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #f8fafc;
    font-size: .74rem;
    font-weight: 700;
    transition: color .22s ease, transform .22s ease;
}

.cookie-consent-link:hover {
    color: #ffffff;
    transform: scale(1.04);
}


@media (max-width: 767px) {
    .cookie-consent-root {
        right: 14px;
        left: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        z-index: 44;
        width: auto;
    }

    html .cookie-consent-card {
        --cookie-consent-radius: 16px;
        padding: 12px;
        border-radius: var(--cookie-consent-radius);
    }

    .cookie-consent-badge {
        margin-bottom: 9px;
        font-size: .62rem;
    }

    .cookie-consent-head {
        gap: 9px;
    }

    .cookie-consent-icon-shell {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .cookie-consent-title {
        font-size: .88rem;
    }

    .cookie-consent-description {
        font-size: .78rem;
        line-height: 1.48;
    }

    .cookie-consent-actions {
        margin-top: 12px;
        flex-direction: column-reverse;
    }

    .cookie-consent-button {
        width: 100%;
        min-height: 34px;
        font-size: .78rem;
    }

    .cookie-consent-card.is-expanded .cookie-consent-details {
        margin-top: 9px;
    }
}

