/* Nirio cookie consent banner */
.nirio-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.nirio-cookie-banner[hidden] { display: none !important; }
.nirio-cookie-banner .nirio-cookie-card {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nirio-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.nirio-cookie-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
.nirio-cookie-banner a { text-decoration: underline; }

/* Modal */
.nirio-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nirio-cookie-modal[hidden] { display: none !important; }
.nirio-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.nirio-cookie-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  padding: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nirio-cookie-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}
.nirio-cookie-row:first-of-type { border-top: 0; }
.nirio-cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #0a2c61;
  user-select: none;
}
.nirio-cookie-toggle input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #0a2c61;
}
.nirio-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.nirio-no-scroll { overflow: hidden; }

@media (min-width: 768px) {
  .nirio-cookie-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .nirio-cookie-row > div { flex: 1; }
}
