/* Cookie & privacy consent — ICO / PECR first-layer Accept + Reject */
.oi-consent-root {
  font-family: Inter, system-ui, sans-serif;
}

.oi-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #3F4C3F;
  color: #FFFEFB;
  padding: 1.15rem 1.25rem 1.3rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
}

.oi-consent-inner {
  max-width: 980px;
  margin: 0 auto;
}

.oi-consent-banner h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #fff;
}

.oi-consent-banner p {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 254, 251, 0.9);
}

.oi-consent-banner a {
  color: #E8EFE8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oi-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.oi-consent-actions button {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}

.oi-btn-accept,
.oi-btn-reject {
  min-width: 148px;
}

.oi-btn-accept {
  background: #FFFEFB;
  color: #3F4C3F;
  border-color: #FFFEFB;
}

.oi-btn-reject {
  background: transparent;
  color: #FFFEFB;
  border-color: rgba(255, 254, 251, 0.75);
}

.oi-btn-manage {
  background: transparent;
  color: #FFFEFB;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.oi-consent-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4100;
  background: rgba(42, 42, 42, 0.55);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.oi-consent-panel.open {
  display: flex;
}

.oi-consent-card {
  background: #FFFEFB;
  color: #2A2A2A;
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.25rem;
  max-height: min(88vh, 640px);
  overflow: auto;
}

.oi-consent-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.oi-consent-card > p {
  font-size: 0.88rem;
  color: #6B6B6B;
  margin: 0 0 1.1rem;
}

.oi-pref {
  border: 1px solid #E5E1D8;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.oi-pref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oi-pref h3 {
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
}

.oi-pref p {
  margin: 0;
  font-size: 0.8rem;
  color: #6B6B6B;
  line-height: 1.45;
}

.oi-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.oi-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.oi-slider {
  position: absolute;
  inset: 0;
  background: #C9C4B8;
  border-radius: 999px;
  cursor: pointer;
}

.oi-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
}

.oi-switch input:checked + .oi-slider {
  background: #5A6B5A;
}

.oi-switch input:checked + .oi-slider:before {
  transform: translateX(20px);
}

.oi-switch input:disabled + .oi-slider {
  background: #5A6B5A;
  opacity: 0.7;
  cursor: not-allowed;
}

.oi-pref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.oi-pref-actions button {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid #5A6B5A;
}

.oi-pref-save {
  background: #5A6B5A;
  color: #fff;
}

.oi-pref-cancel {
  background: #fff;
  color: #5A6B5A;
}

.map-placeholder {
  min-height: 320px;
  height: 100%;
  background: #E8E4DA;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  color: #3F4C3F;
}

.map-placeholder[hidden],
.map-placeholder.is-hidden {
  display: none !important;
}

.map-container iframe.is-visible {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder p {
  max-width: 280px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.map-placeholder button {
  margin-top: 0.85rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 2px solid #5A6B5A;
  background: #5A6B5A;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 640px) {
  .oi-btn-accept,
  .oi-btn-reject {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
  }
  .oi-btn-manage {
    flex: 1 1 100%;
  }
}
