.sg-cookie {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(36, 52, 71, 0.16);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 14px;
}

@media (max-width: 720px) {
  /* Keep banner above the mobile contact bar */
  .sg-cookie {
    bottom: calc(14px + 92px);
  }
}

.sg-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  align-items: center;
}

.sg-cookie__text p {
  margin: 0 0 8px 0;
  color: #243447;
}

.sg-cookie__links a {
  font-weight: 700;
}

.sg-cookie__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sg-cookie__btn {
  appearance: none;
  border: 1px solid rgba(36, 52, 71, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #ffffff;
  color: #0b1f3a;
}

.sg-cookie__btn--primary {
  background: #0b1f3a;
  color: #fff;
  border-color: rgba(11, 31, 58, 0.22);
  padding: 12px 18px;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
}

.sg-cookie__btn--ghost {
  background: transparent;
  border-color: rgba(36, 52, 71, 0.28);
}

.sg-cookie__btn:focus-visible {
  outline: 3px solid rgba(176, 141, 87, 0.75);
  outline-offset: 2px;
}

@media (min-width: 840px) {
  .sg-cookie__inner {
    grid-template-columns: 1fr auto;
  }
}

/* Modal */
.sg-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
}

.sg-cookie-modal[hidden] {
  display: none !important;
}

.sg-cookie--modal-open {
  overflow: hidden;
}

.sg-cookie-modal__panel {
  width: min(640px, 100%);
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(36, 52, 71, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.sg-cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(36, 52, 71, 0.12);
}

.sg-cookie-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0b1f3a;
}

.sg-cookie-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #0b1f3a;
}

.sg-cookie-modal__body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.sg-cookie-modal__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(36, 52, 71, 0.12);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sg-cookie-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 52, 71, 0.12);
  border-radius: 10px;
}

.sg-cookie-toggle p {
  margin: 6px 0 0 0;
  color: rgba(36, 52, 71, 0.86);
}

.sg-cookie-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(11, 31, 58, 0.08);
  color: #0b1f3a;
}

/* Switch */
.sg-switch {
  display: inline-flex;
  align-items: center;
}

.sg-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sg-switch__ui {
  width: 48px;
  height: 28px;
  background: rgba(36, 52, 71, 0.22);
  border-radius: 999px;
  position: relative;
  transition: background 120ms ease;
}

.sg-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 999px;
  transition: transform 120ms ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.sg-switch input:checked + .sg-switch__ui {
  background: rgba(176, 141, 87, 0.95);
}

.sg-switch input:checked + .sg-switch__ui::after {
  transform: translateX(20px);
}

