/* ── MOPC Order Intake Plugin — Single-page progressive flow ──────────────────
   All classes use the .mopc-oi-* prefix to avoid conflicts with WordPress themes.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens + break out of WP constrained layout ──────────────────── */
.mopc-order-intake {
  /* Override WP block theme content-size (620px) — we need full width */
  max-width: none !important;
  width: 100vw;
  position: relative;
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  isolation: isolate;

  --oi-brand:       #0e7c6c;
  --oi-brand-dark:  #0a5a4e;
  --oi-brand-light: #e6f5f3;
  --oi-ink:         #142846;
  --oi-muted:       #516b8b;
  --oi-line:        #d5deec;
  --oi-border:      #d5deec;
  --oi-bg:          #f0f4f8;
  --oi-white:       #fff;
  --oi-warn-bg:     #fff8ed;
  --oi-warn:        #9a5605;
  --oi-text-strong: #142846;

  /* Error / Info / Success state colors */
  --oi-error-bg:     #fef2f2;
  --oi-error:        #dc2626;
  --oi-error-border: #fca5a5;
  --oi-info-bg:      #eff6ff;
  --oi-info:         #2563eb;
  --oi-info-border:  #93c5fd;
  --oi-success-bg:   #f0fdf4;
  --oi-success:      #16a34a;
  --oi-success-border:#86efac;

  /* Typography scale */
  --oi-heading-xl: clamp(1.5rem, 3vw, 2rem);
  --oi-heading-lg: 1.25rem;
  --oi-heading-md: 1.1rem;
  --oi-heading-sm: 0.95rem;
  --oi-body:       0.938rem;
  --oi-caption:    0.813rem;

  /* Lighter borders & shadows */
  --oi-border-light: #e2e8f0;
  --oi-shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --oi-shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --oi-shadow:     0 4px 20px rgba(14, 124, 108, .12);
  --oi-radius:     16px;

  /* Stepper */
  --oi-step-done:    var(--oi-brand);
  --oi-step-active:  var(--oi-brand);
  --oi-step-pending: #cbd5e1;
}

/* ── WP Theme harmonization ────────────────────────────────────────────────
   The host WP theme (Elementor, --e-global-color-primary: #784E9C) styles
   all <button> elements with purple background + pill border-radius.
   Strategy: let CTA buttons (.mopc-oi-btn) inherit the theme purple.
   Override with !important ONLY the components whose UX the theme breaks:
   seg-btn, askip, aqty-btn, item, addr-edit, side-edit.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Shell ────────────────────────────────────────────────────────────────── */
.mopc-oi-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--oi-body);
  line-height: 1.5;
  color: var(--oi-ink);
}

/* ── Alert bar ────────────────────────────────────────────────────────────── */
.mopc-oi-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
  flex-wrap: wrap;
}

.mopc-oi-msg[hidden] { display: none !important; }

/* Alert variants */
.mopc-oi-msg.is-warn,
.mopc-oi-msg:not(.is-error):not(.is-info):not(.is-success) {
  background: var(--oi-warn-bg);
  border: 1px solid #efcf92;
  color: var(--oi-warn);
}

.mopc-oi-msg.is-error {
  background: var(--oi-error-bg);
  border: 1px solid var(--oi-error-border);
  color: var(--oi-error);
}

.mopc-oi-msg.is-info {
  background: var(--oi-info-bg);
  border: 1px solid var(--oi-info-border);
  color: var(--oi-info);
}

.mopc-oi-msg.is-success {
  background: var(--oi-success-bg);
  border: 1px solid var(--oi-success-border);
  color: var(--oi-success);
}

.mopc-oi-msg-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* ── Stepper ──────────────────────────────────────────────────────────────── */
.mopc-oi-stepper {
  padding: 16px 0;
  margin-bottom: 4px;
}

.mopc-oi-stepper-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.mopc-oi-step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mopc-oi-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  background: var(--oi-step-pending);
  color: var(--oi-white);
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}

.mopc-oi-step.is-done .mopc-oi-step-num {
  background: var(--oi-step-done);
}

.mopc-oi-step.is-active .mopc-oi-step-num {
  background: var(--oi-step-active);
  box-shadow: 0 0 0 3px rgba(14, 124, 108, .2);
}

.mopc-oi-step-label {
  font-size: var(--oi-caption);
  font-weight: 600;
  color: var(--oi-muted);
}

.mopc-oi-step.is-active .mopc-oi-step-label {
  color: var(--oi-ink);
}

.mopc-oi-step.is-done .mopc-oi-step-label {
  color: var(--oi-brand);
}

.mopc-oi-step-line {
  width: 40px;
  height: 2px;
  background: var(--oi-step-pending);
  margin: 0 12px;
  flex-shrink: 0;
  transition: background .2s;
}

.mopc-oi-step-line.is-done {
  background: var(--oi-step-done);
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.mopc-oi-hero {
  background: linear-gradient(140deg, #0a5a4e 0%, #0e7c6c 55%, #13a08d 100%);
  padding: 64px 20px 52px;
  border-radius: var(--oi-radius);
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-bottom: 0;
  transition: padding .3s;
}

.mopc-oi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 70% at 75% -15%, rgba(255, 255, 255, .07), transparent);
  pointer-events: none;
}

.mopc-oi-hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.mopc-oi-hero-title {
  font-size: var(--oi-heading-xl);
  font-weight: 800;
  color: var(--oi-white);
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -.3px;
  transition: opacity .2s, max-height .3s;
}

.mopc-oi-hero-sub {
  color: rgba(255, 255, 255, .8);
  font-size: .97rem;
  margin: 0 0 26px;
  transition: opacity .2s, max-height .3s;
}

/* Hero hidden after address resolved */
.mopc-oi-hero.is-resolved {
  display: none;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.mopc-oi-search-wrap {
  position: relative;
  z-index: 40;
}

.mopc-oi-search-bar {
  display: flex;
  background: var(--oi-white);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.mopc-oi-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--oi-ink);
  background: transparent;
  font-family: inherit;
  min-width: 0;
  box-shadow: none !important;
}

.mopc-oi-search-btn {
  background: var(--oi-brand);
  color: var(--oi-white);
  border: none;
  padding: 16px 26px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.mopc-oi-search-btn:hover {
  background: var(--oi-brand-dark);
}

.mopc-oi-search-hint {
  color: rgba(255, 255, 255, .75);
  font-size: .86rem;
  margin-top: 10px;
  min-height: 20px;
  text-align: left;
}

/* ── Suggest dropdown ─────────────────────────────────────────────────────── */
.mopc-oi-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--oi-white);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .18);
  overflow-y: auto;
  max-height: 340px;
  z-index: 4000;
  text-align: left;
}

.mopc-oi-list:empty {
  display: none;
}

.mopc-oi-item {
  width: 100% !important;
  padding: 13px 18px !important;
  border: none !important;
  border-top: 1px solid var(--oi-line) !important;
  background: var(--oi-white) !important;
  text-align: left !important;
  cursor: pointer;
  font-size: .95rem !important;
  color: var(--oi-ink) !important;
  font-family: inherit;
  transition: background .1s;
  display: block !important;
  border-radius: 0 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.mopc-oi-item:first-child {
  border-top: none !important;
}

.mopc-oi-item:hover {
  background: var(--oi-brand-light) !important;
}

/* ── Address banner ──────────────────────────────────────────────────────── */
.mopc-oi-addr-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: .92rem;
  transition: background .2s, border-color .2s;
}

.mopc-oi-addr-banner[hidden] { display: none !important; }

.mopc-oi-addr-banner.is-ok {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
}

.mopc-oi-addr-banner.is-warn {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  color: #8d6e00;
}

.mopc-oi-addr-text {
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mopc-oi-addr-status {
  white-space: nowrap;
  font-weight: 600;
}

.mopc-oi-addr-edit {
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: inherit !important;
  text-decoration: underline !important;
  font-size: .85rem !important;
  font-family: inherit;
  white-space: nowrap;
  padding: 2px 4px !important;
  border-radius: 0 !important;
  line-height: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.mopc-oi-addr-edit:hover {
  opacity: .7;
  background: none !important;
}

/* ── Two-column body (content + sidebar) ─────────────────────────────────── */
.mopc-oi-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-top: 24px;
  align-items: start;
}

.mopc-oi-body[hidden] { display: none !important; }

/* ── Inline sections (progressive reveal) ────────────────────────────────── */
.mopc-oi-section {
  background: var(--oi-white);
  border: none;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--oi-shadow-sm);
}

.mopc-oi-section[hidden] { display: none !important; }

.mopc-oi-section-title {
  font-size: var(--oi-heading-lg);
  font-weight: 700;
  color: var(--oi-ink);
  margin: 0 0 4px;
}

.mopc-oi-section-sub {
  color: var(--oi-muted);
  font-size: var(--oi-caption);
  margin: 0 0 16px;
}

/* ── Segmented control (Residential / Business) ──────────────────────────── */
.mopc-oi-seg-control {
  display: flex;
  background: var(--oi-bg);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.mopc-oi-seg-btn {
  flex: 1;
  padding: 12px 16px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  font-family: inherit;
  font-size: inherit !important;
  line-height: 1.25 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  margin: 0 !important;
  text-align: center;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--oi-ink) !important;
}

.mopc-oi-seg-btn:hover {
  background: rgba(255,255,255,.6) !important;
}

.mopc-oi-seg-btn.is-active {
  background: var(--oi-white) !important;
  box-shadow: var(--oi-shadow-sm) !important;
  color: var(--oi-ink) !important;
}

.mopc-oi-seg-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mopc-oi-seg-btn:disabled:hover {
  background: transparent !important;
}

.mopc-oi-seg-label {
  display: block;
  font-size: var(--oi-heading-sm);
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}

.mopc-oi-seg-desc {
  display: block;
  font-size: var(--oi-caption);
  color: var(--oi-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.mopc-oi-provider-btn {
  min-height: 56px;
  padding: 14px 18px;
}

/* ── Plans section ────────────────────────────────────────────────────────── */
.mopc-oi-plan-intro {
  color: var(--oi-muted);
  font-size: var(--oi-caption);
  margin-bottom: 20px;
  min-height: 18px;
}

.mopc-oi-grid-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--oi-muted);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Plan grid ────────────────────────────────────────────────────────────── */
.mopc-oi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ── Plan card ────────────────────────────────────────────────────────────── */
.mopc-oi-plan-card {
  background: var(--oi-white);
  border: 2px solid var(--oi-border-light);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.mopc-oi-plan-card:hover {
  border-color: var(--oi-brand);
  box-shadow: var(--oi-shadow-md);
  transform: translateY(-3px);
}

.mopc-oi-plan-card:focus-visible {
  border-color: var(--oi-brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 108, .25);
}

.mopc-oi-plan-card.is-selected {
  border-color: var(--oi-brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 108, .15), var(--oi-shadow-md);
}

.mopc-oi-plan-card.is-selected::after {
  content: "\2713 Selected";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--oi-brand);
  color: var(--oi-white);
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── Kind badge (Fiber / Wireless chip) ───────────────────────────────────── */
.mopc-oi-kind-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.mopc-oi-kind-fiber {
  background: var(--oi-brand-light);
  color: var(--oi-brand);
}

.mopc-oi-kind-wireless {
  background: #fff1d4;
  color: #975700;
}

.mopc-oi-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--oi-ink);
  line-height: 1.2;
  margin-bottom: 3px;
}

.mopc-oi-plan-tagline {
  font-size: .84rem;
  color: var(--oi-muted);
  margin-bottom: 14px;
}

/* ── Price block ──────────────────────────────────────────────────────────── */
.mopc-oi-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 4px;
}

.mopc-oi-price-dollar {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--oi-ink);
  margin-bottom: 6px;
  align-self: flex-start;
  padding-top: 4px;
}

.mopc-oi-price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--oi-ink);
  line-height: 1;
}

.mopc-oi-price-period {
  font-size: .86rem;
  color: var(--oi-muted);
  margin-bottom: 5px;
}

/* ── Icons row ────────────────────────────────────────────────────────────── */
.mopc-oi-icons {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--oi-border-light);
  border-bottom: 1px solid var(--oi-border-light);
  padding: 12px 0;
  margin-bottom: 14px;
  justify-content: space-around;
  margin-top: 14px;
}

.mopc-oi-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  flex: 1;
  color: var(--oi-brand);
}

.mopc-oi-icon svg {
  width: 22px;
  height: 22px;
  color: var(--oi-brand);
}

.mopc-oi-icon-val {
  font-size: .8rem;
  font-weight: 800;
  color: var(--oi-ink);
  white-space: nowrap;
}

.mopc-oi-icon-lbl {
  font-size: .68rem;
  color: var(--oi-muted);
  white-space: nowrap;
}

/* ── Feature bullets ──────────────────────────────────────────────────────── */
.mopc-oi-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mopc-oi-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .86rem;
  color: var(--oi-ink);
  padding: 0;
  margin: 0;
  background: none;
}

.mopc-oi-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--oi-brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 11.2L3.3 8l1.2-1.2 2 2 4.9-4.9 1.2 1.2z'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── CTA indicator (visual, card is the click target) ────────────────────── */
.mopc-oi-cta-indicator {
  background: var(--oi-brand-light);
  color: var(--oi-brand);
  border: 2px solid var(--oi-brand);
  border-radius: 10px;
  padding: 11px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  transition: background .15s, color .15s;
}

.mopc-oi-plan-card.is-selected .mopc-oi-cta-indicator {
  background: var(--oi-brand);
  color: var(--oi-white);
}

/* ── Shared form elements ─────────────────────────────────────────────────── */
.mopc-oi-input {
  width: 100%;
  border: 2px solid var(--oi-border-light) !important;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 1rem;
  color: var(--oi-ink);
  outline: none;
  transition: border-color .15s;
  margin-top: 10px;
  font-family: inherit;
  background: var(--oi-white);
  box-sizing: border-box;
  box-shadow: none !important;
}

.mopc-oi-input:focus {
  border-color: var(--oi-brand) !important;
  box-shadow: 0 0 0 3px rgba(14, 124, 108, .1) !important;
}

.mopc-oi-input:disabled {
  opacity: .6;
  background: #f8f9fb;
}

.mopc-oi-hint {
  font-size: .87rem;
  color: var(--oi-muted);
  margin-top: 6px;
}

.mopc-oi-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Generic button ───────────────────────────────────────────────────────── */
.mopc-oi-btn {
  border: 2px solid var(--oi-brand);
  background: var(--oi-brand);
  color: var(--oi-white);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.mopc-oi-btn:hover {
  background: var(--oi-brand-dark);
  border-color: var(--oi-brand-dark);
  color: var(--oi-white);
  text-decoration: none;
}

.mopc-oi-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mopc-oi-btn.mopc-oi-btn-alt {
  background: var(--oi-white) !important;
  color: var(--oi-ink) !important;
  border-color: var(--oi-border-light) !important;
}

.mopc-oi-btn.mopc-oi-btn-alt:hover {
  border-color: var(--oi-brand) !important;
  color: var(--oi-brand) !important;
  background: var(--oi-brand-light) !important;
}

/* ── Add-on group container ──────────────────────────────────────────────── */
.mopc-oi-agroup {
  margin-bottom: 20px;
}

.mopc-oi-agroup:last-child {
  margin-bottom: 0;
}

.mopc-oi-agroup-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--oi-ink);
  margin: 0 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--oi-line);
}

.mopc-oi-agroup:first-child .mopc-oi-agroup-title {
  border-top: none;
  padding-top: 0;
}

/* ── Add-on step (progressive tier) ─────────────────────────────────────── */
.mopc-oi-astep {
  margin-bottom: 14px;
  transition: opacity .25s ease;
}

.mopc-oi-astep.is-disabled {
  opacity: .3;
  pointer-events: none;
}

.mopc-oi-astep-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mopc-oi-astep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  background: var(--oi-step-pending);
  color: var(--oi-white);
  flex-shrink: 0;
  transition: background .2s;
}

.mopc-oi-astep-badge.is-active {
  background: var(--oi-brand);
}

.mopc-oi-astep-label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--oi-ink);
}

.mopc-oi-astep-tag {
  font-size: .75rem;
  color: var(--oi-muted);
  margin-left: auto;
}

/* ── Option card ────────────────────────────────────────────────────────── */
.mopc-oi-acard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mopc-oi-acard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 2px solid var(--oi-border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
  outline: none;
}

.mopc-oi-acard:hover {
  border-color: var(--oi-brand-light);
  background: var(--oi-brand-light);
}

.mopc-oi-acard:focus-visible {
  border-color: var(--oi-brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 108, .15);
}

.mopc-oi-acard.is-selected {
  border-color: var(--oi-brand);
  background: var(--oi-brand-light);
}

.mopc-oi-acard-info {
  flex: 1;
  min-width: 0;
}

.mopc-oi-acard-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--oi-ink);
  line-height: 1.3;
}

.mopc-oi-acard-desc {
  font-size: .78rem;
  color: var(--oi-muted);
  margin-top: 1px;
}

.mopc-oi-acard-price-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}

.mopc-oi-acard-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--oi-ink);
  white-space: nowrap;
}

.mopc-oi-acard-suffix {
  font-size: .78rem;
  color: var(--oi-muted);
  white-space: nowrap;
}

/* Check circle indicator */
.mopc-oi-acard-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--oi-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 10px;
  transition: background .15s, border-color .15s;
}

.mopc-oi-acard-check svg {
  opacity: 0;
  transition: opacity .15s;
}

.mopc-oi-acard.is-selected .mopc-oi-acard-check {
  background: var(--oi-brand);
  border-color: var(--oi-brand);
}

.mopc-oi-acard.is-selected .mopc-oi-acard-check svg {
  opacity: 1;
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.mopc-oi-askip {
  display: inline-block !important;
  margin-top: 6px;
  font-size: .78rem !important;
  color: var(--oi-muted) !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 2px 0 !important;
  font-family: inherit;
  text-decoration: underline !important;
  text-decoration-color: var(--oi-border-light);
  text-underline-offset: 2px;
  border-radius: 0 !important;
  line-height: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.mopc-oi-askip:hover {
  color: var(--oi-ink) !important;
  background: none !important;
}

/* ── Quantity stepper ───────────────────────────────────────────────────── */
.mopc-oi-aqty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mopc-oi-aqty-label {
  font-size: .84rem;
  color: var(--oi-muted);
}

.mopc-oi-aqty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--oi-border);
  border-radius: 8px;
  overflow: hidden;
}

.mopc-oi-aqty-btn {
  width: 34px !important;
  height: 34px !important;
  border: none !important;
  background: var(--oi-bg) !important;
  cursor: pointer;
  font-size: 1rem !important;
  color: var(--oi-ink) !important;
  font-family: inherit;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .1s;
  border-radius: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.mopc-oi-aqty-btn:hover {
  background: var(--oi-border-light) !important;
}

.mopc-oi-aqty-val {
  width: 36px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--oi-ink);
}

/* ── Legacy addon styles (kept for backward compat if catalog API returns old markup) ── */
.mopc-oi-addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--oi-border-light);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 7px;
  cursor: pointer;
  transition: border-color .15s;
  font-family: inherit;
  font-size: .9rem;
}

.mopc-oi-addon-row:has(input:checked) {
  border-color: var(--oi-brand);
  background: var(--oi-brand-light);
}

/* ── Signup form ─────────────────────────────────────────────────────────── */
.mopc-oi-signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mopc-oi-signup-row {
  display: flex;
  gap: 12px;
}

.mopc-oi-signup-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--oi-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--oi-ink);
  background: var(--oi-white);
  transition: border-color .15s;
}

.mopc-oi-signup-input:focus {
  outline: none;
  border-color: var(--oi-brand);
}

.mopc-oi-signup-input.is-invalid {
  border-color: var(--oi-error);
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.mopc-oi-signup-input.is-invalid:focus {
  border-color: var(--oi-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.mopc-oi-signup-input::placeholder {
  color: var(--oi-muted);
}

.mopc-oi-signup-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--oi-error-border);
  border-radius: 10px;
  background: var(--oi-error-bg);
  color: var(--oi-error);
  font-size: .84rem;
  font-weight: 600;
}

.mopc-oi-signup-error[hidden] {
  display: none !important;
}

/* ── Contact phone (not-serviceable section) ─────────────────────────────── */
.mopc-oi-contact-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--oi-ink);
  margin: 12px 0 16px;
}

/* ── Sidebar (order summary on the right) ────────────────────────────────── */
.mopc-oi-sidebar {
  position: sticky;
  top: 24px;
  background: var(--oi-white);
  border: 1px solid var(--oi-border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--oi-shadow-md);
}

.mopc-oi-sidebar-title {
  font-size: var(--oi-heading-md);
  font-weight: 700;
  color: var(--oi-ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oi-border-light);
}

.mopc-oi-side-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--oi-bg);
}

.mopc-oi-side-row:last-child {
  border-bottom: none;
}

.mopc-oi-side-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--oi-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  width: 100%;
}

.mopc-oi-side-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--oi-ink);
  flex: 1;
  word-break: break-word;
}

.mopc-oi-side-edit {
  background: none !important;
  border: none !important;
  color: var(--oi-brand) !important;
  font-size: .78rem !important;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline !important;
  font-family: inherit;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.mopc-oi-side-edit:hover {
  color: var(--oi-brand-dark) !important;
  background: none !important;
}

/* ── Sidebar footer ──────────────────────────────────────────────────────── */
.mopc-oi-sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--oi-border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mopc-oi-sidebar-footer[hidden] { display: none !important; }

.mopc-oi-sidebar-total-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 4px;
}

.mopc-oi-sidebar-total-label {
  font-size: var(--oi-body);
  font-weight: 600;
  color: var(--oi-ink);
}

.mopc-oi-sidebar-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oi-brand);
}

.mopc-oi-sidebar-install {
  font-size: var(--oi-caption);
  color: var(--oi-muted);
  text-align: center;
  padding: 4px 0;
}

.mopc-oi-sidebar-pay {
  width: 100% !important;
  text-align: center !important;
  background: var(--oi-brand) !important;
  border: 2px solid var(--oi-brand) !important;
  color: var(--oi-white) !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-decoration: none !important;
  display: block !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  transition: background .15s, border-color .15s !important;
}

.mopc-oi-sidebar-pay:hover {
  background: var(--oi-brand-dark) !important;
  border-color: var(--oi-brand-dark) !important;
  color: var(--oi-white) !important;
  text-decoration: none !important;
}

.mopc-oi-sidebar-cta-hint {
  font-size: var(--oi-caption);
  color: var(--oi-muted);
  text-align: center;
}

.mopc-oi-sidebar-cta-hint[hidden] { display: none !important; }

/* ── Search loading pulse ─────────────────────────────────────────────────── */
@keyframes mopc-oi-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

.mopc-oi-search-btn.is-loading {
  animation: mopc-oi-pulse .9s ease-in-out infinite;
  cursor: wait;
}

/* ── Section reveal animation ─────────────────────────────────────────────── */
@keyframes mopc-oi-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mopc-oi-section:not([hidden]) {
  animation: mopc-oi-fade-in .25s ease-out;
}

.mopc-oi-addr-banner:not([hidden]) {
  animation: mopc-oi-fade-in .25s ease-out;
}

/* ── Mobile sticky CTA bar ────────────────────────────────────────────────── */
.mopc-oi-mobile-cta {
  display: none;
}

.mopc-oi-mobile-cta[hidden] { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .mopc-oi-body {
    grid-template-columns: 1fr;
  }

  .mopc-oi-sidebar {
    position: static;
  }

  .mopc-oi-shell {
    padding-bottom: 80px;
  }

  .mopc-oi-mobile-cta:not([hidden]) {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--oi-white);
    border-top: 1px solid var(--oi-border-light);
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    padding: 12px 16px;
    z-index: 100;
    align-items: center;
    gap: 12px;
  }

  .mopc-oi-mobile-cta-info {
    flex: 1;
    min-width: 0;
  }

  .mopc-oi-mobile-cta-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--oi-ink);
  }

  .mopc-oi-mobile-cta-plan {
    display: block;
    font-size: var(--oi-caption);
    color: var(--oi-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mopc-oi-mobile-cta-btn {
    flex-shrink: 0;
    padding: 12px 24px;
  }
}

@media (max-width: 640px) {
  .mopc-oi-signup-row {
    flex-direction: column;
  }

  .mopc-oi-shell {
    padding: 0 12px;
    padding-bottom: 80px;
  }

  .mopc-oi-hero {
    padding: 48px 16px 40px;
    border-radius: 0;
  }

  .mopc-oi-hero.is-resolved {
    padding: 20px 16px;
  }

  .mopc-oi-search-btn {
    padding: 16px 18px;
    font-size: .88rem;
  }

  .mopc-oi-grid {
    grid-template-columns: 1fr;
  }

  .mopc-oi-section {
    padding: 20px;
  }

  .mopc-oi-seg-control {
    flex-direction: column;
  }

  /* Compact stepper on mobile */
  .mopc-oi-stepper-list {
    display: none;
  }

  .mopc-oi-stepper::after {
    content: attr(data-mobile-step);
    display: block;
    text-align: center;
    font-size: var(--oi-caption);
    font-weight: 600;
    color: var(--oi-muted);
  }
}
