/* ══════════════════════════════════════════
   PYRON TECHNOLOGY — cookie-consent.css
   GDPR cookie banner
══════════════════════════════════════════ */

/* ── BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid #00b8b8;
  box-shadow: 0 -4px 32px rgba(0, 60, 60, .16);
  font-family: 'DM Sans', sans-serif;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

#cookie-banner.cb-visible  { transform: translateY(0); }
#cookie-banner.cb-hiding   { transform: translateY(110%); }

/* ── MAIN ROW ── */
.cb-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cb-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.cb-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #e0f8f8;
  color: #00706f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.cb-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  color: #0a1a1a;
  margin-bottom: .2rem;
}

.cb-text p {
  font-size: .84rem;
  color: #4a6a6a;
  line-height: 1.55;
  margin: 0;
}

.cb-text p a {
  color: #00706f;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cb-text p a:hover { color: #008f8f; }

/* ── BUTTONS ── */
.cb-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.35rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  white-space: nowrap;
}

.cb-accept {
  background: #00706f;
  color: #fff;
  border-color: #00706f;
}
.cb-accept:hover {
  background: #005a59;
  border-color: #005a59;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 184, 184, .35);
}

.cb-reject {
  background: transparent;
  color: #0a1a1a;
  border-color: #c4e8e8;
}
.cb-reject:hover {
  background: #e0f8f8;
  border-color: #00706f;
}

.cb-manage {
  background: transparent;
  color: #4a6a6a;
  border-color: transparent;
  padding-left: .75rem;
  padding-right: .75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-manage:hover { color: #00706f; }

/* ── PREFERENCES PANEL ── */
.cb-prefs {
  border-top: 1px solid #c4e8e8;
  background: #f4fbfb;
}

.cb-prefs-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.35rem 2rem 1.5rem;
}

.cb-prefs-inner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0a1a1a;
  margin-bottom: 1rem;
}

.cb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid #c4e8e8;
  border-radius: 10px;
  margin-bottom: .5rem;
}

.cb-toggle-info {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.cb-toggle-info strong {
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #0a1a1a;
}

.cb-toggle-info span {
  font-size: .82rem;
  color: #4a6a6a;
  line-height: 1.45;
}

/* Toggle switch */
.cb-switch {
  position: relative;
  display: inline-block;
  width: 46px; height: 26px;
  flex-shrink: 0;
}

.cb-switch input { opacity: 0; width: 0; height: 0; }

.cb-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d0e8e8;
  border-radius: 26px;
  transition: background .25s;
}

.cb-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.cb-switch input:checked + .cb-slider { background: #00706f; }
.cb-switch input:checked + .cb-slider::before { transform: translateX(20px); }
.cb-switch input:focus + .cb-slider { outline: 2px solid #00b8b8; outline-offset: 2px; }

.cb-switch-disabled .cb-slider { cursor: not-allowed; opacity: .65; }

.cb-prefs-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: flex-end;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cb-inner { padding: 1rem 1.25rem; gap: 1rem; }
  .cb-actions { width: 100%; justify-content: flex-end; }
  .cb-prefs-inner { padding: 1rem 1.25rem 1.25rem; }
  .cb-toggle-row { flex-direction: row; gap: 1rem; }
}

@media (max-width: 480px) {
  .cb-manage { display: none; }
  .cb-actions { justify-content: stretch; width: 100%; }
  .cb-btn { flex: 1; justify-content: center; font-size: .82rem; padding: .55rem .9rem; }
  .cb-inner { padding: .9rem 1rem; gap: .75rem; }
  .cb-icon { display: none; }
}
