/* ===== OHR Cookie Consent Modal ===== */
#orh-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#orh-cookie-overlay.orh-hidden { display: none !important; }

#orh-cookie-modal {
  background: #fff;
  border-radius: 6px;
  max-width: 500px;
  width: 100%;
  padding: 32px 28px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  max-height: 90vh;
  overflow-y: auto;
}

#orh-cookie-modal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #111;
}

#orh-cookie-modal .orh-cm-text {
  font-size: 13px;
  color: #444;
  margin-bottom: 20px;
}

/* Toggles */
.orh-cm-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 24px;
}

.orh-cm-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Toggle switch */
.orh-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}
.orh-toggle input { opacity: 0; width: 0; height: 0; }
.orh-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.orh-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.orh-toggle input:checked + .orh-toggle-slider { background: #c0392b; }
.orh-toggle input:checked + .orh-toggle-slider::before { transform: translateX(18px); }
.orh-toggle input:disabled + .orh-toggle-slider { opacity: 0.6; cursor: not-allowed; }

/* Buttons */
.orh-cm-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.orh-cm-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.orh-cm-btn:hover { opacity: 0.88; }
.orh-cm-btn-reject {
  background: #c0392b;
  color: #fff;
}
.orh-cm-btn-accept {
  background: #c0392b;
  color: #fff;
}

/* Footer links */
.orh-cm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  justify-content: center;
  font-size: 12px;
  color: #666;
}
.orh-cm-links a {
  color: #555;
  text-decoration: underline;
  padding: 0 8px;
  border-right: 1px solid #ccc;
}
.orh-cm-links a:last-child { border-right: none; }

@media (max-width: 480px) {
  #orh-cookie-modal { padding: 24px 18px 18px; }
  .orh-cm-buttons { flex-direction: column; }
  .orh-cm-toggles { grid-template-columns: 1fr; }
}
