/* IROptical Privacy & Cookie Consent Banner */

.opto-consent-hidden {
  display: none !important;
}

.opto-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.35);
}

.opto-consent-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  color: #1f2933;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.24);
  font-family: Arial, Helvetica, sans-serif;
}

.opto-consent-inner {
  padding: 22px 24px;
}

.opto-consent-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.opto-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4b5563;
}

.opto-consent-text a {
  color: #005bbb;
  text-decoration: underline;
}

.opto-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.opto-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.opto-consent-btn:hover {
  background: #f3f4f6;
}

.opto-consent-btn-primary {
  border-color: #005bbb;
  background: #005bbb;
  color: #ffffff;
}

.opto-consent-btn-primary:hover {
  background: #004a99;
  border-color: #004a99;
}

.opto-consent-btn-danger {
  border-color: #d1d5db;
  background: #ffffff;
  color: #374151;
}

.opto-consent-btn-danger:hover {
  background: #f9fafb;
}

.opto-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.opto-consent-modal-panel {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  color: #1f2933;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 18px 70px rgba(15, 23, 42, 0.28);
  font-family: Arial, Helvetica, sans-serif;
}

.opto-consent-modal-header {
  padding: 22px 24px 14px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.opto-consent-modal-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.opto-consent-modal-body {
  padding: 20px 24px;
}

.opto-consent-modal-desc {
  margin: 0 0 18px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}

.opto-consent-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #eef2f7;
}

.opto-consent-option:first-of-type {
  border-top: 0;
}

.opto-consent-option h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #111827;
}

.opto-consent-option p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.opto-consent-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  height: 30px;
  margin-top: 4px;
}

.opto-consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.opto-consent-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
}

.opto-consent-slider:before {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 999px;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.opto-consent-switch input:checked + .opto-consent-slider {
  background: #005bbb;
}

.opto-consent-switch input:checked + .opto-consent-slider:before {
  transform: translateX(22px);
}

.opto-consent-switch input:disabled + .opto-consent-slider {
  cursor: not-allowed;
  background: #94a3b8;
}

.opto-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px 24px 24px;
  border-top: 1px solid #e5e7eb;
}

.opto-cookie-settings-link {
  cursor: pointer;
}

@media (max-width: 640px) {
  .opto-consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 12px;
  }

  .opto-consent-inner {
    padding: 18px;
  }

  .opto-consent-title {
    font-size: 18px;
  }

  .opto-consent-actions {
    flex-direction: column;
  }

  .opto-consent-btn {
    width: 100%;
  }

  .opto-consent-option {
    flex-direction: column;
  }

  .opto-consent-modal {
    padding: 12px;
  }

  .opto-consent-modal-actions {
    flex-direction: column;
  }
}