/* ============================================================
   WebSpecifier — Cookie Consent Styles
   ============================================================ */

/* ── Banner ─────────────────────────────────────────────── */
#wsCookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0d1b2a;
  border-top: 3px solid #3db54a;
  z-index: 9999;
  padding: 20px 32px;
  transform: translateY(110%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
#wsCookieBanner.wscb-visible {
  transform: translateY(0);
}
.wscb-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wscb-text {
  flex: 1;
  min-width: 260px;
}
.wscb-text strong {
  color: #fff;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  display: block;
  margin-bottom: 6px;
}
.wscb-text p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  font-family: 'Manrope', sans-serif;
}
.wscb-text a {
  color: #3db54a;
  text-decoration: underline;
}
.wscb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.wscb-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  transition: all 0.2s;
}
.wscb-accept {
  background: #3db54a;
  color: #fff;
}
.wscb-accept:hover { background: #2e9a3e; }
.wscb-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.wscb-reject:hover { border-color: #fff; color: #fff; }
.wscb-settings {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
}
.wscb-settings:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ── Modal overlay ──────────────────────────────────────── */
#wsCookieModal {
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#wsCookieModal.wscm-visible { opacity: 1; }

.wscm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  backdrop-filter: blur(2px);
}
.wscm-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 560px;
  z-index: 10001;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  font-family: 'Manrope', sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}
.wscm-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: #718096;
  transition: color 0.2s;
}
.wscm-close:hover { color: #1a2332; }
.wscm-box h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a2332;
  margin-bottom: 10px;
}
.wscm-box > p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 28px;
}
.wscm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}
.wscm-row:last-of-type { border-bottom: 1px solid #e2e8f0; margin-bottom: 24px; }
.wscm-row-info { flex: 1; }
.wscm-row-info strong { font-size: 15px; font-weight: 700; color: #1a2332; display: block; margin-bottom: 6px; }
.wscm-row-info p { font-size: 13px; color: #718096; line-height: 1.6; margin: 0; }
.wscm-toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.wscm-always { font-size: 11px; color: #3db54a; font-weight: 700; }

/* Toggle switch */
.wscm-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.wscm-switch input { opacity: 0; width: 0; height: 0; }
.wscm-slider {
  position: absolute; inset: 0;
  background: #e2e8f0;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.3s;
}
.wscm-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input:checked + .wscm-slider { background: #3db54a; }
input:checked + .wscm-slider::before { transform: translateX(20px); }
input:disabled + .wscm-slider { opacity: 0.6; cursor: not-allowed; }

.wscm-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.wscm-footer .wscb-reject {
  color: #4a5568;
  border-color: #e2e8f0;
}
.wscm-footer .wscb-reject:hover { border-color: #1a2332; color: #1a2332; }

@media (max-width: 600px) {
  #wsCookieBanner { padding: 16px 20px; }
  .wscb-actions { width: 100%; }
  .wscb-btn { flex: 1; text-align: center; }
  .wscm-box { padding: 28px 20px; }
}
