/* Noticea — Cookie banner + modal styles */
#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
#cookie-banner.visible { opacity: 1; transform: none; pointer-events: auto; }

.cb-card {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E3E6F0;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15,18,38,0.18);
  padding: 22px 24px;
}
.cb-body { display: flex; flex-direction: column; gap: 16px; }
.cb-title { font-size: 15px; font-weight: 700; color: #0F1226; letter-spacing: -0.01em; margin: 0; }
.cb-desc { font-size: 13.5px; line-height: 1.6; color: #5A607A; margin: 0; }
.cb-link { color: #3D52E5; text-decoration: underline; text-underline-offset: 2px; }
.cb-link:hover { color: #2F40C2; }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 4px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.cb-btn:focus-visible { outline: 2px solid #3D52E5; outline-offset: 2px; }
.cb-btn-primary { background: #3D52E5; color: #fff; }
.cb-btn-primary:hover { background: #2F40C2; }
.cb-btn-secondary { background: #fff; color: #0F1226; border-color: #E3E6F0; }
.cb-btn-secondary:hover { border-color: #0F1226; }

@media (min-width: 768px) {
  .cb-body { flex-direction: row; align-items: center; gap: 28px; }
  .cb-body > div:first-child, .cb-actions { flex-shrink: 0; }
  .cb-body > .cb-title, .cb-body > .cb-desc { flex: 1; }
  .cb-actions { margin-left: auto; }
}

/* Modal */
#cookie-modal {
  position: fixed; inset: 0; z-index: 220;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
#cookie-modal.visible { display: flex; }
.cm-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,18,38,0.55);
  backdrop-filter: blur(4px);
}
.cm-panel {
  position: relative;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  overflow: hidden;
}
.cm-header {
  padding: 22px 28px;
  border-bottom: 1px solid #E3E6F0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cm-title { font-size: 18px; font-weight: 700; color: #0F1226; margin: 0; letter-spacing: -0.01em; }
.cm-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #E3E6F0; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #5A607A;
  transition: color .15s, border-color .15s;
}
.cm-close:hover { color: #0F1226; border-color: #0F1226; }
.cm-close:focus-visible { outline: 2px solid #3D52E5; outline-offset: 2px; }

.cm-body {
  padding: 22px 28px;
  overflow-y: auto;
}
.cm-intro {
  font-size: 14px; line-height: 1.6; color: #5A607A; margin: 0 0 20px;
}
.cm-row {
  border-top: 1px solid #E3E6F0;
  padding: 18px 0;
}
.cm-row:last-of-type { border-bottom: 1px solid #E3E6F0; }
.cm-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.cm-row-title { font-size: 14.5px; font-weight: 600; color: #0F1226; margin: 0; }
.cm-row-desc { font-size: 13.5px; line-height: 1.6; color: #5A607A; margin: 0; }
.cm-pill {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: #5A607A; background: #F4F5FA; padding: 4px 10px; border-radius: 100px;
}
.cm-note { font-size: 12.5px; color: #5A607A; margin: 18px 0 0; }
.cm-note em { font-style: normal; font-weight: 600; color: #0F1226; }

.cm-footer {
  padding: 18px 28px;
  border-top: 1px solid #E3E6F0;
  display: flex; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}
.cm-footer .cb-btn-primary { margin-left: auto; }
@media (max-width: 520px) {
  .cm-footer .cb-btn { width: 100%; }
  .cm-footer .cb-btn-primary { margin-left: 0; }
}

/* Switch */
.cm-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cm-switch input { opacity: 0; width: 0; height: 0; }
.cm-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #E3E6F0; border-radius: 100px;
  transition: background-color .2s;
}
.cm-slider::before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.cm-switch input:checked + .cm-slider { background: #3D52E5; }
.cm-switch input:checked + .cm-slider::before { transform: translateX(18px); }
.cm-switch input:focus-visible + .cm-slider { outline: 2px solid #3D52E5; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  #cookie-banner, .cm-slider, .cm-slider::before, .cb-btn, .cm-close { transition: none !important; }
}
