/* Catalog gate modal. Layered over the gate page itself (which never
   contains product data for an unauthorized visitor), not over real
   catalog content — the blur/dim backdrop has nothing sensitive to hide. */

.ip-gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 42, 34, .55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.ip-gate-card {
  width: 100%;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-lg, 0 24px 48px rgba(31,42,34,.22));
  overflow: hidden;
  margin: auto;
}
/* Desktop: a fixed proportion of the viewport, never narrower than 600px. */
@media (min-width: 861px) {
  .ip-gate-card { width: 50%; min-width: 600px; }
}
/* Mobile/tablet: fullscreen takeover rather than a floating card. */
@media (max-width: 860px) {
  .ip-gate-overlay { padding: 0; }
  .ip-gate-card { width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .ip-gate-card__body { flex: 1; overflow-y: auto; }
}
.ip-gate-card__bar {
  background: var(--color-brand, #285337);
  color: #fff;
  padding: 22px 28px;
}
.ip-gate-card__bar h1 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.ip-gate-card__body { padding: 26px 28px 28px; }
.ip-gate-card__body > p:first-child {
  font-size: 14px; line-height: 1.6; color: var(--color-body, #4B5850); margin: 0 0 20px;
}
.ip-gate-check {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--color-line, #E7EAE4);
  background: var(--color-canvas, #FDFDFB);
  border-radius: var(--radius-sm, 10px);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 12px; line-height: 1.55; color: var(--color-ink, #1F2A22);
}
.ip-gate-check input[type="checkbox"] {
  margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--color-brand, #285337);
}
.ip-gate-check a { color: var(--color-brand, #285337); text-decoration: underline; }
.ip-gate-card__actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 28px; border-top: 1px solid var(--color-line, #E7EAE4);
  background: var(--color-canvas, #FDFDFB);
}
.ip-gate-panel h2 { font-size: 17px; margin: 0 0 4px; }
.ip-gate-panel .form-row { margin-bottom: 16px; }
.ip-gate-panel__sub { color: var(--color-muted, #889087); font-size: 13px; margin: 0 0 16px; }
body.ip-gate-open { overflow: hidden; }

.ip-gate-tabs {
  display: flex; gap: 4px;
  background: var(--color-line, #E7EAE4);
  border: 1px solid var(--color-line-strong, #D9D9D9);
  border-radius: var(--radius-sm, 10px);
  padding: 4px;
  margin-bottom: 20px;
}
.ip-gate-tabs button {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 13.5px; font-weight: 600;
  color: var(--color-muted, #889087);
  padding: 10px 12px;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.ip-gate-tabs button.is-active {
  background: var(--color-surface, #fff);
  color: var(--color-ink, #1F2A22);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(31,42,34,.08));
}
.ip-gate-tabpanel { display: none; }
.ip-gate-tabpanel.is-active { display: block; animation: ip-fade-in .18s ease; }

@keyframes ip-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.ip-gate-submit {
  width: 100%;
  max-width: 320px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 15px;
}

/* WooCommerce's own registration privacy-policy notice — kept (it's tied to
   real consent), just shrunk to a footnote so it doesn't compete with the
   form above it. */
.ip-gate-panel .woocommerce-privacy-policy-text { margin-top: 14px; text-align: center; }
.ip-gate-panel .woocommerce-privacy-policy-text p {
  font-size: 10px; color: var(--color-muted, #889087); line-height: 1.5; margin: 0;
}
.ip-gate-panel .woocommerce-privacy-policy-text a { color: inherit; text-decoration: underline; }

.ip-gate-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) {
  .ip-gate-row2 { grid-template-columns: 1fr; }
}
