/* The consent module owns its controls, wording and cookie state. */
body #zoyi-cookie-consent {
  --zoyi-consent-bottom: max(12px, env(safe-area-inset-bottom));
  bottom: var(--zoyi-consent-bottom);
  max-height: calc(100dvh - var(--zoyi-consent-bottom) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

#zoyi-cookie-consent h3 {
  color: #1a1a1a;
}

#zoyi-cookie-consent .zoyi-cookie-btn {
  min-width: 0;
}

#zoyi-cookie-consent :focus-visible {
  outline-color: #805e00;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  body #zoyi-cookie-consent {
    --zoyi-consent-bottom: calc(67px + env(safe-area-inset-bottom));
  }
}

/* The official iframe has the largest z-index. Keep consent, checkout and contact controls clear. */
body:has(#zoyi-cookie-consent[style*="display: block"]) #google-merchantwidget-iframe-wrapper,
#google-merchantwidget-iframe-wrapper.zoyi-badge-over-content {
  visibility: hidden;
  pointer-events: none;
}
