/* ── PCT GDPR Consent Banner ───────────────────────────────────
   Matches site palette: #0d0d0d bg, #d4a017 gold, #fff text
   ─────────────────────────────────────────────────────────── */

/* ── Banner wrapper ── */
#pct-gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0d0d0d;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(100%);
  transition: transform .3s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  line-height: 1.5;
}
#pct-gdpr-banner.is-visible {
  transform: translateY(0);
}

/* ── Default (simple) view ── */
.pct-gdpr-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}
.pct-gdpr-text {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  flex: 1;
  min-width: 0;
}
.pct-gdpr-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: .05rem; }
.pct-gdpr-msg  { color: rgba(255,255,255,.8); }
.pct-gdpr-pp-link { color: #d4a017; text-decoration: underline; white-space: nowrap; }
.pct-gdpr-pp-link:hover { color: #e5b730; }

/* ── Button group ── */
.pct-gdpr-btns {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Shared button base ── */
.pct-gdpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.25rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: opacity .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}

/* Gold (primary) */
.pct-gdpr-btn-gold {
  background: #d4a017;
  color: #fff;
  border-color: #d4a017;
}
.pct-gdpr-btn-gold:hover { background: #e5b730; border-color: #e5b730; }

/* Outline (secondary) */
.pct-gdpr-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.pct-gdpr-btn-outline:hover { border-color: #fff; }

/* Text link style */
.pct-gdpr-btn-text {
  background: none;
  color: rgba(255,255,255,.6);
  border-color: transparent;
  padding-left: .25rem;
  padding-right: .25rem;
}
.pct-gdpr-btn-text:hover { color: #fff; }

/* ── Manage preferences view ── */
.pct-gdpr-manage {
  padding: 1.25rem 1.5rem;
}
.pct-gdpr-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .9375rem;
  font-weight: 700;
}
.pct-gdpr-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  cursor: pointer;
  padding: .25rem .5rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.pct-gdpr-close:hover { color: #fff; }

/* ── Category rows ── */
.pct-gdpr-categories {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.pct-gdpr-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1rem;
  background: rgba(255,255,255,.05);
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.07);
}
.pct-gdpr-cat-info { flex: 1; min-width: 0; }
.pct-gdpr-cat-name {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .2rem;
}
.pct-gdpr-cat-desc {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

/* ── Toggle switch ── */
.pct-gdpr-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  flex-shrink: 0;
}
.pct-gdpr-toggle input { display: none; }
.pct-gdpr-slider {
  position: relative;
  width: 44px;
  height: 26px;
  background: rgba(255,255,255,.2);
  border-radius: 9999px;
  transition: background .2s;
  flex-shrink: 0;
}
.pct-gdpr-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.pct-gdpr-toggle input:checked ~ .pct-gdpr-slider {
  background: #d4a017;
}
.pct-gdpr-toggle input:checked ~ .pct-gdpr-slider::after {
  transform: translateX(18px);
}
.pct-gdpr-toggle-locked { opacity: .5; cursor: not-allowed; }
.pct-gdpr-toggle-label  { font-size: .75rem; color: rgba(255,255,255,.5); }

/* ── Manage footer buttons ── */
.pct-gdpr-manage-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Re-open button (Cookie Settings — fixed bottom-right corner) ── */
.pct-gdpr-reopen {
  display: none; /* shown by JS after consent given */
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99998;
  background: rgba(13,13,13,.85);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px;
  color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif;
  font-size: .6875rem;
  font-weight: 500;
  cursor: pointer;
  padding: .35rem .75rem;
  text-decoration: none;
  transition: color .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.pct-gdpr-reopen:hover { color: #d4a017; border-color: #d4a017; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Tablet (640–1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .pct-gdpr-simple {
    flex-direction: row;
    align-items: center;
  }
  .pct-gdpr-btns {
    flex-wrap: nowrap;
  }
}

/* Mobile (≤ 639px) */
@media (max-width: 639px) {
  .pct-gdpr-simple {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .pct-gdpr-btns {
    flex-direction: column;
    gap: .625rem;
  }
  .pct-gdpr-btn {
    width: 100%;
    min-height: 48px;
    font-size: .875rem;
  }
  .pct-gdpr-btn-text {
    text-align: center;
    color: rgba(255,255,255,.55);
  }
  .pct-gdpr-manage { padding: 1rem; }
  .pct-gdpr-manage-btns {
    flex-direction: column;
    gap: .625rem;
  }
  .pct-gdpr-manage-btns .pct-gdpr-btn {
    width: 100%;
    min-height: 48px;
  }
  .pct-gdpr-category {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
  }
  .pct-gdpr-slider {
    width: 48px;
    height: 28px;
  }
  .pct-gdpr-slider::after {
    width: 22px;
    height: 22px;
  }
  .pct-gdpr-toggle input:checked ~ .pct-gdpr-slider::after {
    transform: translateX(20px);
  }
}
