/* Inream Web (web.inream.com) — Isolated Preview Overlay, SEO/GEO Drawer,
   Pricing Modal, 50% Close-Button Downsell, and Embedded AllPay Checkout.
   All selectors are prefixed with `.irw-` so client preview sites never collide. */

:root {
  --irw-ink: #0f172a;
  --irw-ink-dim: #475569;
  --irw-ink-muted: #64748b;
  --irw-surface: #ffffff;
  --irw-surface-alt: #f8fafc;
  --irw-border: #e2e8f0;
  --irw-border-strong: #cbd5e1;
  --irw-accent: #0f766e;
  --irw-accent-hover: #115e59;
  --irw-accent-soft: #f0fdfa;
  --irw-accent-ring: rgba(15, 118, 110, 0.16);
  --irw-amber: #b45309;
  --irw-amber-soft: #fffbeb;
  --irw-amber-border: #fde68a;
  --irw-danger: #dc2626;
  --irw-danger-soft: #fef2f2;
  --irw-danger-border: #fecaca;
  --irw-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --irw-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --irw-shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.34), 0 8px 24px -8px rgba(15, 23, 42, 0.16);
  --irw-bar-height: 54px;
}

body.irw-has-bar {
  padding-top: var(--irw-bar-height);
  transition: padding-top 0.2s ease;
}

body.irw-has-bar > header {
  top: var(--irw-bar-height);
  transition: top 0.2s ease;
}

body.irw-has-bar.irw-bar-collapsed {
  padding-top: 0;
}

body.irw-has-bar.irw-bar-collapsed > header {
  top: 0;
}

.irw-label-short {
  display: none;
}

/* Base isolation for overlay elements */
.irw-bar,
.irw-bar *,
.irw-pill,
.irw-pill *,
.irw-dialog,
.irw-dialog * {
  box-sizing: border-box;
  font-family: var(--irw-font);
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------- Top Preview Bar */

.irw-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  min-height: var(--irw-bar-height);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.35;
}

.irw-bar[hidden] {
  display: none !important;
}

.irw-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.irw-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.irw-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
  flex-shrink: 0;
}

.irw-bar-meta {
  color: #cbd5e1;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irw-bar-meta strong {
  color: #ffffff;
  font-weight: 600;
}

.irw-bar-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.28);
  white-space: nowrap;
}

.irw-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.irw-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--irw-font);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.irw-btn:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

.irw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.irw-btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.irw-btn-ghost-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
}

.irw-btn-primary {
  background: var(--irw-accent);
  color: #ffffff;
  border-color: var(--irw-accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}

.irw-btn-primary:hover:not(:disabled) {
  background: var(--irw-accent-hover);
  border-color: var(--irw-accent-hover);
}

.irw-btn-bar-cta {
  background: #14b8a6;
  color: #042f2e;
  border-color: #2dd4bf;
  font-weight: 700;
}

.irw-btn-bar-cta:hover:not(:disabled) {
  background: #2dd4bf;
}

.irw-btn-secondary {
  background: var(--irw-surface);
  color: var(--irw-ink);
  border-color: var(--irw-border-strong);
}

.irw-btn-secondary:hover:not(:disabled) {
  background: var(--irw-surface-alt);
  border-color: #94a3b8;
}

.irw-btn-icon {
  padding: 7px 9px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
}

.irw-btn-lg {
  padding: 12px 18px;
  font-size: 14.5px;
  border-radius: 11px;
}

.irw-btn-block {
  width: 100%;
}

/* Collapsed floating pill — bottom-right so it never covers client header CTAs */
.irw-pill {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.irw-pill:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.irw-pill[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------ Native Dialogs */

.irw-dialog {
  padding: 0;
  margin: auto;
  border: 1px solid var(--irw-border);
  border-radius: 18px;
  background: var(--irw-surface);
  color: var(--irw-ink);
  box-shadow: var(--irw-shadow-lg);
  width: min(94vw, 940px);
  max-height: min(92dvh, 880px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.irw-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.irw-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: irw-fade-in 0.16s ease-out;
}

@keyframes irw-fade-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.irw-dialog.irw-dialog-narrow {
  width: min(94vw, 540px);
}

.irw-dlg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--irw-border);
  background: var(--irw-surface);
  flex-shrink: 0;
}

.irw-dlg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--irw-accent);
  margin: 0 0 4px;
}

.irw-dlg-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--irw-ink);
  line-height: 1.25;
}

.irw-dlg-sub {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--irw-ink-dim);
  line-height: 1.5;
}

.irw-close-btn {
  appearance: none;
  border: 1px solid var(--irw-border);
  background: var(--irw-surface-alt);
  color: var(--irw-ink-dim);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.irw-close-btn:hover {
  background: #e2e8f0;
  color: var(--irw-ink);
  border-color: var(--irw-border-strong);
}

.irw-dlg-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}

.irw-dlg-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--irw-border);
  background: var(--irw-surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ------------------------------------------------- Upgrades tour (in-page) */

.irw-tour,
.irw-tour * {
  box-sizing: border-box;
  font-family: var(--irw-font);
  letter-spacing: normal;
  text-transform: none;
}

.irw-tour {
  position: fixed;
  top: calc(var(--irw-bar-height) + 10px);
  right: 20px;
  z-index: 2147483000;
  width: 380px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - var(--irw-bar-height) - 32px);
  overflow: visible;
  padding: 16px 18px 18px;
  background: var(--irw-surface);
  color: var(--irw-ink);
  border: 1px solid var(--irw-border);
  border-radius: 18px;
  box-shadow: var(--irw-shadow-lg);
  font-size: 14px;
  line-height: 1.45;
  animation: irw-fade-in 0.18s ease-out;
}

.irw-tour[hidden] { display: none; }
.irw-tour::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(var(--irw-arrow-x, 50%) - 7px);
  width: 14px;
  height: 14px;
  background: var(--irw-surface);
  border-left: 1px solid var(--irw-border);
  border-top: 1px solid var(--irw-border);
  transform: rotate(45deg);
}

.irw-tour-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.irw-tour-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--irw-ink-muted);
  font-variant-numeric: tabular-nums;
}

.irw-tour-dots { display: flex; gap: 5px; flex: 1; }
.irw-tour-dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--irw-border); }
.irw-tour-dots i.on { background: var(--irw-accent); }

.irw-tour-x {
  border: 0;
  background: transparent;
  color: var(--irw-ink-muted);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}
.irw-tour-x:hover { background: var(--irw-surface-alt); color: var(--irw-ink); }

.irw-tour-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--irw-ink);
}

.irw-tour-ba { display: grid; gap: 6px; }

.irw-tour-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
}
.irw-tour-row span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.irw-tour-row p { margin: 0; }
.irw-tour-was { background: var(--irw-surface-alt); color: var(--irw-ink-dim); }
.irw-tour-was span { color: var(--irw-ink-muted); }
.irw-tour-now { background: var(--irw-accent-soft); color: var(--irw-ink); }
.irw-tour-now span { color: var(--irw-accent); }

.irw-tour-read {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--irw-border-strong);
  border-radius: 10px;
}
.irw-tour-read-h { display: block; font-size: 11.5px; font-weight: 700; color: var(--irw-ink-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.irw-tour-read dl { margin: 0; display: grid; gap: 4px; }
.irw-tour-read dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.irw-tour-read dt { color: var(--irw-ink-muted); font-size: 12.5px; }
.irw-tour-read dd { margin: 0; font-size: 13px; color: var(--irw-ink); overflow-wrap: anywhere; }

.irw-tour-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.irw-tour-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.irw-spot {
  outline: 3px solid #14b8a6 !important;
  outline-offset: -3px;
  animation: irw-spot 1.4s ease-out 2;
}

@keyframes irw-spot {
  0% { box-shadow: inset 0 0 0 0 rgba(20, 184, 166, 0.55); }
  60% { box-shadow: inset 0 0 0 14px rgba(20, 184, 166, 0.12); }
  100% { box-shadow: inset 0 0 0 0 rgba(20, 184, 166, 0); }
}

@media (max-width: 600px) {
  .irw-tour { left: 8px; right: 8px; width: auto; max-width: none; padding: 14px 14px 14px; }
  .irw-tour-title { font-size: 16.5px; }
  .irw-tour-row, .irw-tour-read dl div { grid-template-columns: 78px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .irw-tour, .irw-spot { animation: none; }
}

/* ------------------------------------------------------------------ Pricing */

.irw-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.irw-plan-card {
  position: relative;
  border: 1px solid var(--irw-border);
  border-radius: 15px;
  padding: 18px 16px;
  background: var(--irw-surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.irw-plan-card.irw-plan-featured {
  border-color: var(--irw-accent);
  box-shadow: 0 0 0 1px var(--irw-accent), 0 12px 28px -12px rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 34%);
}

.irw-plan-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--irw-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.irw-plan-name {
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--irw-ink);
}

.irw-plan-tagline {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--irw-ink-dim);
  line-height: 1.45;
  min-height: 36px;
}

.irw-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.irw-price-was {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.irw-price-now {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--irw-ink);
  line-height: 1;
}

.irw-price-unit {
  font-size: 13px;
  color: var(--irw-ink-muted);
  font-weight: 500;
}

.irw-price-note {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--irw-accent);
  font-weight: 600;
  min-height: 16px;
}

.irw-plan-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.irw-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--irw-ink-dim);
  line-height: 1.4;
}

.irw-check {
  color: var(--irw-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.irw-trust-strip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--irw-surface-alt);
  border: 1px solid var(--irw-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--irw-ink-dim);
  justify-content: center;
}

.irw-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.irw-dismiss-link {
  background: none;
  border: none;
  color: var(--irw-ink-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 6px;
}

.irw-dismiss-link:hover {
  color: var(--irw-ink);
}

/* -------------------------------------------------------- Checkout & AllPay */

.irw-back-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--irw-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.irw-back-btn:hover {
  text-decoration: underline;
}

.irw-checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.irw-summary-box {
  background: var(--irw-surface-alt);
  border: 1px solid var(--irw-border);
  border-radius: 14px;
  padding: 16px;
}

.irw-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.irw-summary-plan {
  font-size: 15px;
  font-weight: 700;
  color: var(--irw-ink);
}

.irw-summary-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--irw-ink);
  letter-spacing: -0.02em;
}

.irw-summary-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--irw-ink-dim);
  line-height: 1.45;
}

.irw-after-pay-box {
  border-top: 1px solid var(--irw-border);
  padding-top: 12px;
  margin-top: 12px;
}

.irw-after-pay-box h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--irw-ink);
}

.irw-after-pay-box ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--irw-ink-dim);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.irw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.irw-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.irw-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--irw-ink-dim);
}

.irw-field input,
.irw-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--irw-border-strong);
  background: var(--irw-surface-alt);
  color: var(--irw-ink);
  font-size: 14px;
  font-family: var(--irw-font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.irw-field input:focus,
.irw-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--irw-accent);
  box-shadow: 0 0 0 3px var(--irw-accent-ring);
}

.irw-notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.irw-notice-error {
  background: var(--irw-danger-soft);
  border: 1px solid var(--irw-danger-border);
  color: #991b1b;
}

.irw-notice-info {
  background: var(--irw-accent-soft);
  border: 1px solid #99f6e4;
  color: #115e59;
}

.irw-frame-wrap {
  position: relative;
}

.irw-frame-wait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--irw-ink-muted);
  background: #ffffff;
  z-index: 2;
}

/* AllPay posts a flat 300px and writes it inline; until Pay our measured
   height wins. Paying lifts the cap: 3-D Secure is the bank's page here. */
.irw-allpay-iframe {
  width: 100%;
  height: 250px;
  max-height: 250px;
  border: 0;
  display: block;
  background: #ffffff;
  color-scheme: light;
}

.irw-frame-paying .irw-allpay-iframe {
  max-height: none;
  min-height: 360px;
}

.irw-spin {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: inline-block;
  animation: irw-spin 0.65s linear infinite;
}

@keyframes irw-spin {
  to { transform: rotate(360deg); }
}

.irw-fineprint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--irw-ink-muted);
  text-align: center;
  line-height: 1.45;
}

/* ----------------------------------------------------------- Success / DNS */

.irw-success-head {
  text-align: center;
  margin-bottom: 18px;
}

.irw-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--irw-accent-soft);
  color: var(--irw-accent);
  border: 1px solid #99f6e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
}

.irw-dns-card {
  background: var(--irw-surface-alt);
  border: 1px solid var(--irw-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.irw-dns-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--irw-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--irw-ink);
  word-break: break-all;
}

.irw-dns-row code {
  font-family: inherit;
}

/* ---------------------------------------------------------------- Responsive */

/* ------------------------------------------------- Billing period toggle */
.irw-period-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--irw-surface-alt);
  border: 1px solid var(--irw-border);
}

.irw-dlg-body:has(> .irw-period-toggle) {
  text-align: center;
}

.irw-dlg-body:has(> .irw-period-toggle) > :not(.irw-period-toggle) {
  text-align: left;
}

.irw-period-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--irw-ink-dim);
  font: 600 13px/1 var(--irw-font);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.irw-period-btn[aria-pressed="true"] {
  background: var(--irw-surface);
  color: var(--irw-ink);
  box-shadow: var(--irw-shadow-sm);
}

.irw-period-btn:focus-visible {
  outline: 2px solid var(--irw-accent);
  outline-offset: 2px;
}

.irw-period-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--irw-accent);
  background: var(--irw-accent-soft);
  padding: 3px 7px;
  border-radius: 999px;
}

/* ----------------------------------------------------------- Close survey */
.irw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.irw-survey-list {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.irw-survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--irw-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--irw-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.irw-survey-option:hover {
  border-color: var(--irw-border-strong);
}

.irw-survey-option:has(input:checked) {
  border-color: var(--irw-accent);
  background: var(--irw-accent-soft);
}

.irw-survey-option input {
  accent-color: var(--irw-accent);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.irw-reason-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--irw-ink);
  line-height: 1.45;
}

.irw-reason-points li {
  display: flex;
  gap: 8px;
}

.irw-reason-done {
  margin: 0;
  font-size: 14px;
  color: var(--irw-ink-dim);
}

.irw-foot-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.irw-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .irw-plans-grid {
    grid-template-columns: 1fr;
  }
  .irw-checkout-layout {
    grid-template-columns: 1fr;
  }
  .irw-bar-meta,
  .irw-bar-badge {
    display: none;
  }
}

@media (max-width: 600px) {
  .irw-bar {
    padding: 8px 10px;
    gap: 6px;
  }
  .irw-brand {
    font-size: 12px;
    gap: 6px;
  }
  .irw-label-full {
    display: none;
  }
  .irw-label-short {
    display: inline;
  }
  .irw-bar-actions {
    gap: 6px;
  }
  .irw-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .irw-btn-icon {
    padding: 6px 8px;
    min-width: 30px;
    height: 30px;
  }
  .irw-dlg-head,
  .irw-dlg-body,
  .irw-dlg-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irw-dialog[open],
  .irw-spin,
  body.irw-has-bar {
    animation: none;
    transition: none;
  }
}

/* ------------------------------------------- Bar v2 + Style menu (25.11.2026) */

:root { --irw-bar-height: 52px; }

.irw-bar {
  background: linear-gradient(90deg, rgba(12, 18, 34, 0.97), rgba(17, 28, 48, 0.97));
  padding: 8px 14px;
}

.irw-brand-name { font-weight: 700; }
.irw-bar-meta { font-size: 13px; color: #cbd5e1; }

.irw-btn-bar-cta {
  background: linear-gradient(135deg, #2dd4bf, #22c55e);
  color: #03201c;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
  font-weight: 800;
}
.irw-btn-bar-cta:hover:not(:disabled) { background: linear-gradient(135deg, #5eead4, #4ade80); }

.irw-btn-style { gap: 8px; }
.irw-style-dots { display: inline-flex; }
.irw-style-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.9);
  margin-left: -4px;
}
.irw-style-dots i:first-child { margin-left: 0; background: #f472b6; }
.irw-style-dots i:nth-child(2) { background: #fbbf24; }
.irw-style-dots i:nth-child(3) { background: #2dd4bf; }

.irw-nudge { animation: irw-nudge 1.6s ease-in-out 0.8s 3; }
@keyframes irw-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
  50% { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.35); }
}

.irw-style,
.irw-style * { box-sizing: border-box; font-family: var(--irw-font); -webkit-font-smoothing: antialiased; }

.irw-style {
  position: fixed;
  top: calc(var(--irw-bar-height) + 8px);
  right: 14px;
  z-index: 2147483001;
  width: min(380px, calc(100vw - 20px));
  background: #ffffff;
  color: var(--irw-ink);
  border: 1px solid var(--irw-border);
  border-radius: 16px;
  box-shadow: var(--irw-shadow-lg);
  padding: 14px 14px 6px;
  font-size: 13px;
}
.irw-style[hidden] { display: none !important; }

.irw-style-group { margin-bottom: 12px; }
.irw-style-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--irw-ink-muted);
}
.irw-style-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.irw-style-choice {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  border: 1.5px solid var(--irw-border);
  background: #ffffff;
  color: var(--irw-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.irw-style-choice:hover { border-color: var(--irw-border-strong); background: var(--irw-surface-alt); }
.irw-style-choice[aria-checked="true"] { border-color: var(--irw-ink); box-shadow: 0 0 0 1px var(--irw-ink); }
.irw-style-choice:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }
.irw-swatch { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15); flex-shrink: 0; }
.irw-font-sample {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--irw-surface-alt);
  font-size: 15px; font-weight: 400;
  font-family: inherit;
}

.irw-pill {
  top: 8px;
  bottom: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  font-size: 12px;
}
.irw-pill:hover { transform: translateX(-50%); }

@media (max-width: 820px) {
  .irw-bar-meta { display: none; }
}

@media (max-width: 600px) {
  .irw-bar { padding: 7px 8px; gap: 6px; }
  .irw-brand-name { display: none; }
  .irw-bar-actions { gap: 6px; flex: 1; justify-content: flex-end; }
  .irw-btn { padding: 8px 11px; font-size: 13px; border-radius: 10px; min-height: 36px; }
  .irw-btn-icon { min-width: 32px; padding: 6px; }
  .irw-style { right: 10px; left: 10px; width: auto; }
}

@media (max-width: 360px) {
  .irw-style-dots { display: none; }
  .irw-btn { padding: 8px 9px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .irw-nudge { animation: none; }
}

.irw-style-ask { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--irw-ink); }
.irw-style-label.irw-style-q { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; color: var(--irw-ink); }
