/* ── SCB Widget GDPR Cookie Banner & Modal ── */

/* ── GDPR COOKIE BANNER ── */
#gdpr-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #fff; border-top: 1px solid rgba(61,158,107,.2);
  box-shadow: 0 -8px 40px rgba(0,0,0,.1);
  padding: 16px 24px; display: flex; align-items: center;
  justify-content: center; transition: transform .4s ease, opacity .4s ease;
}
#gdpr-banner.gdpr-hide { transform: translateY(100%); opacity: 0; }
.gdpr-banner-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: 1100px; width: 100%; flex-wrap: wrap;
}
.gdpr-banner-text { flex: 1; min-width: 260px; }
.gdpr-banner-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px;
}
.gdpr-banner-text p {
  font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0;
}
.gdpr-banner-text a { color: #3d9e6b; text-decoration: underline; }
.gdpr-banner-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.gdpr-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; white-space: nowrap;
  font-family: inherit;
}
.gdpr-btn-primary { background: linear-gradient(135deg,#3d9e6b,#2a7a50); color: #fff; box-shadow: 0 4px 14px rgba(61,158,107,.3); }
.gdpr-btn-primary:hover { box-shadow: 0 6px 20px rgba(61,158,107,.45); transform: translateY(-1px); }
.gdpr-btn-outline { background: transparent; color: #374151; border: 1.5px solid #d1d5db; }
.gdpr-btn-outline:hover { background: #f9fafb; border-color: #9ca3af; }
.gdpr-btn-ghost { background: transparent; color: #6b7280; border: 1.5px solid transparent; }
.gdpr-btn-ghost:hover { background: #f3f4f6; color: #374151; }

/* ── GDPR MODAL ── */
#gdpr-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#gdpr-modal.gdpr-modal-open { opacity: 1; pointer-events: all; }
.gdpr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
}
.gdpr-modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: 18px;
  max-width: 520px; width: 100%; box-shadow: 0 24px 80px rgba(0,0,0,.18);
  transform: scale(.94) translateY(12px); transition: transform .25s;
  overflow: hidden;
}
#gdpr-modal.gdpr-modal-open .gdpr-modal-box { transform: scale(1) translateY(0); }
.gdpr-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #f0f0f0;
}
.gdpr-modal-header h2 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 0; }
.gdpr-modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: #f3f4f6; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: #6b7280; transition: background .15s;
}
.gdpr-modal-close:hover { background: #e5e7eb; color: #374151; }
.gdpr-modal-body { padding: 20px 24px; max-height: 60vh; overflow-y: auto; }
.gdpr-modal-intro { font-size: 13.5px; color: #6b7280; line-height: 1.6; margin-bottom: 18px; }
.gdpr-cookie-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid #f5f5f5;
}
.gdpr-cookie-row:last-of-type { border-bottom: none; }
.gdpr-cookie-info { flex: 1; }
.gdpr-cookie-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.gdpr-cookie-desc { font-size: 12.5px; color: #9ca3af; line-height: 1.5; }
.gdpr-always-on { font-size: 10px; font-weight: 700; background: rgba(61,158,107,.15); color: #2a7a50; border-radius: 20px; padding: 2px 8px; }
/* Toggle switch */
.gdpr-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.gdpr-toggle input { opacity: 0; width: 0; height: 0; }
.gdpr-slider {
  position: absolute; inset: 0; background: #d1d5db; border-radius: 24px;
  transition: background .2s;
}
.gdpr-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.gdpr-toggle input:checked + .gdpr-slider { background: #3d9e6b; }
.gdpr-toggle input:checked + .gdpr-slider::before { transform: translateX(20px); }
.gdpr-toggle-disabled { opacity: .6; cursor: not-allowed; }
.gdpr-modal-legal { font-size: 12px; color: #9ca3af; line-height: 1.6; margin-top: 16px; }
.gdpr-modal-legal a { color: #3d9e6b; }
.gdpr-modal-footer {
  display: flex; align-items: center; gap: 8px; padding: 16px 24px;
  border-top: 1px solid #f0f0f0; flex-wrap: wrap; justify-content: flex-end;
}

/* Responsive GDPR banner */
@media (max-width: 700px) {
  .gdpr-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gdpr-banner-actions { width: 100%; }
  .gdpr-btn { flex: 1; justify-content: center; }
  .gdpr-modal-footer { justify-content: stretch; }
  .gdpr-modal-footer .gdpr-btn { flex: 1; justify-content: center; }
}
