/* ========== TATARR Cookie Consent - silver theme, slim banner ========== */
:root{
  --tcc-bg: rgba(15,18,25,.55);
  --tcc-bg-strong: rgba(25,30,42,.88);
  --tcc-border: rgba(255,255,255,.10);
  --tcc-border-strong: rgba(255,255,255,.18);
  --tcc-edge: rgba(255,255,255,.08);
  --tcc-ink: #E6EAF1;
  --tcc-ink-muted: rgba(200,208,220,.78);
  --tcc-silver: #C8D0DC;
  --tcc-silver-bright: #F2F6FB;
  --tcc-gold-accent: #F5D58E; /* used ONLY for link underline + tiny text */
  --tcc-shadow: 0 20px 50px -14px rgba(0,0,0,.6);
}
[data-theme="light"]{
  --tcc-bg: rgba(245,248,253,.60);
  --tcc-bg-strong: rgba(255,255,255,.88);
  --tcc-border: rgba(20,24,32,.10);
  --tcc-border-strong: rgba(20,24,32,.18);
  --tcc-edge: rgba(255,255,255,.6);
  --tcc-ink: #141820;
  --tcc-ink-muted: rgba(50,58,72,.78);
  --tcc-silver: #6B7585;
  --tcc-silver-bright: #131820;
  --tcc-gold-accent: #525C6B;
  --tcc-shadow: 0 20px 50px -14px rgba(80,95,120,.35);
}

/* ===== Slim single-line banner ===== */
.tcc-banner{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(6px);
  width: min(960px, calc(100% - 24px));
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.tcc-banner.tcc-show{ opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.tcc-banner[hidden]{ display: none; }
.tcc-banner-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--tcc-bg);
  border: 1px solid var(--tcc-border-strong);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--tcc-edge), var(--tcc-shadow);
}
.tcc-banner-text{
  flex: 0 1 auto;
  min-width: 0;
}
.tcc-banner-title{ display: none; }
.tcc-banner-body{
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  color: var(--tcc-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.tcc-banner-body a{
  color: var(--tcc-silver-bright);
  text-decoration: underline;
  text-decoration-color: var(--tcc-gold-accent);
  text-underline-offset: 3px;
}
.tcc-banner-actions{
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 760px){
  .tcc-banner{ bottom: 80px; width: calc(100% - 16px); }
  .tcc-banner-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .tcc-banner-body{ white-space: normal; text-align: center; font-size: 12px; }
  .tcc-banner-actions{ justify-content: center; }
  .tcc-banner-actions .tcc-btn{ flex: 1; }
}

.tcc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid var(--tcc-border-strong);
  background: transparent;
  color: var(--tcc-ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.tcc-btn:hover{ transform: translateY(-1px); border-color: var(--tcc-silver-bright); }
.tcc-btn-primary{
  background: linear-gradient(135deg, #4F5867 0%, #6B7585 18%, #95A0B0 38%, #BFC8D5 50%, #95A0B0 62%, #6B7585 82%, #4F5867 100%);
  color: #FFFFFF;
  border-color: rgba(255,255,255,.22);
  text-shadow: 0 1px 2px rgba(20,24,32,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -4px rgba(60,70,85,.4);
}
[data-theme="light"] .tcc-btn-primary{
  /* same metallic silver gradient on light; covered by base rule */
}
.tcc-btn-ghost{ background: transparent; }

/* ========== MODAL ========== */
.tcc-modal{
  position: fixed; inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.tcc-modal.tcc-show{ opacity: 1; pointer-events: auto; }
.tcc-modal[hidden]{ display: none; }
.tcc-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tcc-modal-panel{
  position: relative;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  border-radius: 22px;
  background: var(--tcc-bg);
  border: 1px solid var(--tcc-border-strong);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--tcc-edge), var(--tcc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tcc-modal-head{
  padding: 22px 26px 14px;
  border-bottom: 1px solid var(--tcc-border);
  position: relative;
}
.tcc-modal-eyebrow{
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tcc-silver-bright);
  display: block;
  margin-bottom: 6px;
}
.tcc-modal-head h3{
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  color: var(--tcc-ink);
  letter-spacing: -.005em;
}
.tcc-modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--tcc-border);
  background: transparent;
  color: var(--tcc-ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  font-family: inherit;
}
.tcc-modal-close:hover{ border-color: var(--tcc-silver-bright); }
.tcc-modal-body{ padding: 14px 26px; overflow-y: auto; flex: 1; }
.tcc-cat{ padding: 14px 0; border-bottom: 1px solid var(--tcc-border); }
.tcc-cat:last-child{ border-bottom: 0; }
.tcc-cat-head{ display: flex; align-items: flex-start; gap: 14px; }
.tcc-cat-head strong{ display: block; font-size: 13.5px; color: var(--tcc-ink); font-weight: 600; margin-bottom: 4px; }
.tcc-cat-head small{ display: block; font-size: 12px; color: var(--tcc-ink-muted); line-height: 1.5; }

.tcc-toggle{ position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.tcc-toggle input{ opacity: 0; width: 0; height: 0; }
.tcc-slider{
  position: absolute; inset: 0;
  background: var(--tcc-bg-strong);
  border: 1px solid var(--tcc-border-strong);
  border-radius: 99px;
  cursor: pointer;
  transition: background .25s ease;
}
.tcc-slider::before{
  content: ""; position: absolute;
  height: 16px; width: 16px; left: 2px; bottom: 2px;
  background: var(--tcc-ink-muted);
  border-radius: 50%;
  transition: transform .25s ease, background .25s ease;
}
.tcc-toggle input:checked + .tcc-slider{
  background: linear-gradient(135deg, #4F5867 0%, #95A0B0 38%, #BFC8D5 50%, #6B7585 82%, #4F5867 100%);
  border-color: var(--tcc-silver-bright);
}
.tcc-toggle input:checked + .tcc-slider::before{ transform: translateX(16px); background: #fff; }
.tcc-toggle-disabled .tcc-slider{
  background: linear-gradient(135deg, #4F5867 0%, #95A0B0 50%, #4F5867 100%);
  opacity: .55;
  cursor: not-allowed;
}
.tcc-toggle-disabled .tcc-slider::before{ transform: translateX(16px); background: #fff; }
.tcc-modal-foot{
  display: flex; gap: 10px;
  padding: 16px 26px 20px;
  border-top: 1px solid var(--tcc-border);
}
.tcc-modal-foot .tcc-btn{ flex: 1; padding: 10px 16px; font-size: 12px; }

/* ========== FAB ========== */
.tcc-fab{
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tcc-border-strong);
  background: var(--tcc-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--tcc-silver-bright);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 99998;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
}
.tcc-fab.tcc-show{ opacity: 1; transform: translateY(0); }
.tcc-fab[hidden]{ display: none; }
.tcc-fab:hover{ border-color: var(--tcc-silver-bright); }
.tcc-fab svg{ width: 18px; height: 18px; }
@media (max-width: 540px){
  .tcc-fab{ bottom: 78px; left: 12px; width: 34px; height: 34px; }
  .tcc-fab svg{ width: 16px; height: 16px; }
}
