/* ============================================================
   COOKIE BANNER STYLES — Talent Center
   Brand-locked: dark bg, orange accent, clean typography
   ============================================================ */

.tc-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0A0A0A;
  border-top: 2px solid #FF7200;
  color: #fff;
  z-index: 9999;
  font-family: 'Inter', -apple-system, sans-serif;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
  animation: tc-cookie-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tc-cookie-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.tc-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tc-cookie-banner__text { flex: 1 1 320px; min-width: 280px; }
.tc-cookie-banner__text h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #FF7200; }
.tc-cookie-banner__text p { font-size: 13px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.85); }
.tc-cookie-banner__text a { color: #FF9942; text-decoration: underline; }
.tc-cookie-banner__text a:hover { color: #FF7200; }

.tc-cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tc-cookie-banner__btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tc-cookie-banner__btn--accept {
  background: #FF7200;
  color: #fff;
  border-color: #FF7200;
}
.tc-cookie-banner__btn--accept:hover { background: #FF8B10; border-color: #FF8B10; }
.tc-cookie-banner__btn--reject {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.tc-cookie-banner__btn--reject:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.55); color: #fff; }
.tc-cookie-banner__btn--config {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.tc-cookie-banner__btn--config:hover { background: rgba(255,255,255,0.06); }

/* ----- modal ----- */
.tc-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Inter', -apple-system, sans-serif;
}
.tc-cookie-modal[hidden] { display: none; }
.tc-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.tc-cookie-modal__panel {
  position: relative;
  background: #111;
  border: 1px solid rgba(255,114,0,0.3);
  border-radius: 12px;
  padding: 32px 28px 24px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 80px rgba(255,114,0,0.08);
}
.tc-cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.tc-cookie-modal__close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tc-cookie-modal__panel h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #FF7200; }
.tc-cookie-modal__intro { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 18px; line-height: 1.55; }

.tc-cookie-cat {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tc-cookie-cat:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 18px; }
.tc-cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tc-cookie-cat__head strong { font-size: 14px; font-weight: 700; }
.tc-cookie-cat__locked {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  padding: 3px 10px;
  border-radius: 100px;
}
.tc-cookie-cat p { font-size: 12px; color: rgba(255,255,255,0.6); margin: 4px 0 0; line-height: 1.5; }

/* toggle switch */
.tc-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.tc-cookie-toggle input { opacity: 0; width: 0; height: 0; }
.tc-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: 0.25s;
}
.tc-cookie-toggle span::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}
.tc-cookie-toggle input:checked + span { background: #FF7200; }
.tc-cookie-toggle input:checked + span::before { transform: translateX(18px); }

.tc-cookie-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ----- mobile ----- */
@media (max-width: 720px) {
  .tc-cookie-banner__inner { padding: 14px 16px; flex-direction: column; align-items: stretch; }
  .tc-cookie-banner__actions { justify-content: stretch; }
  .tc-cookie-banner__btn { flex: 1 1 auto; min-width: 0; }
  .tc-cookie-modal__panel { padding: 24px 18px 18px; max-height: 92vh; }
  .tc-cookie-modal__panel h3 { font-size: 17px; }
  .tc-cookie-modal__actions { flex-direction: column-reverse; }
  .tc-cookie-modal__actions .tc-cookie-banner__btn { width: 100%; }
}

/* footer "manage cookies" link */
.tc-manage-cookies-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}
.tc-manage-cookies-link:hover { color: #FF7200; }
