/* ═══════════════════════════════════════
   BloomBridge Order Flow — Styles
   Uses the same design system as styles.css
   ═══════════════════════════════════════ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --sage-mid: #0076b0;
  --sage-deep: #005a87;
  --linen: #FAF8F3;
  --linen-dark: #F0ECE3;
  --linen-mid: #E8E2D6;
  --text-dark: #2C2520;
  --text-mid: #5C5248;
  --text-light: #8A8078;
  --white: #FFFFFF;
  --green-ok: #2e7d32;
  --red-warn: #b00020;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--linen);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ── Progress Bar ── */
.of-progress {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 0;
}
.of-progress__step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--linen-mid);
  transition: all 0.3s;
}
.of-progress__step.completed {
  color: var(--sage-mid);
  border-color: var(--sage-mid);
}
.of-progress__step.active {
  color: var(--sage-mid);
  border-color: var(--sage-mid);
  font-weight: 600;
}
.of-progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--linen-mid);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: background 0.3s;
}
.of-progress__step.completed .of-progress__num,
.of-progress__step.active .of-progress__num {
  background: var(--sage-mid);
}
.of-progress__step.completed .of-progress__num::after {
  content: '\2713';
  font-size: 13px;
}
.of-progress__step.completed .of-progress__num span { display: none; }
.of-progress__label { display: block; }

@media (max-width: 600px) {
  .of-progress__label { font-size: 11px; }
  .of-progress { padding: 20px 12px 0; }
}

/* ── Container ── */
.of-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Step Panels ── */
.of-step { display: none; }
.of-step.active { display: block; animation: ofFadeUp 0.4s ease both; }
@keyframes ofFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section headers ── */
.of-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 8px;
}
.of-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.of-section-title em {
  font-style: italic;
  color: var(--sage-mid);
}
.of-section-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Status Banner ── */
.of-status {
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: all 0.3s;
}
.of-status--warn {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  color: var(--red-warn);
}
.of-status--ok {
  background: #edf7ee;
  border: 1px solid #c3e6cb;
  color: var(--green-ok);
}

/* ── Upsell Banner ── */
.of-upsell {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border: 1px solid #b3d9f2;
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.of-upsell__text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}
.of-upsell__text strong { color: var(--text-dark); }
.of-upsell__btn {
  flex-shrink: 0;
  background: var(--sage-mid);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.of-upsell__btn:hover { background: var(--sage-deep); }

@media (max-width: 600px) {
  .of-upsell { flex-direction: column; text-align: center; }
  .of-upsell__btn { width: 100%; }
}

/* ── Flower Grid ── */
.of-flowers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) { .of-flowers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .of-flowers { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.of-flower {
  background: var(--white);
  border: 2px solid var(--linen-mid);
  border-radius: 12px;
  padding: 20px 16px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.of-flower:hover {
  border-color: #b3d9f2;
  box-shadow: 0 4px 16px rgba(0,118,176,0.08);
  transform: translateY(-2px);
}
.of-flower.selected {
  border-color: var(--sage-mid);
  background: #f0f8ff;
  box-shadow: 0 4px 20px rgba(0,118,176,0.12);
}
/* v2 disables v1 at-limit grey-out — cards always clickable */
.of-flower.at-limit:not(.selected) {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.of-flower__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--linen-mid);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.of-flower__check svg { display: none; }
.of-flower.selected .of-flower__check {
  background: var(--sage-mid);
  border-color: var(--sage-mid);
}
.of-flower.selected .of-flower__check svg { display: block; }

.of-flower__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--linen-mid);
  margin: 0 auto 12px;
  display: block;
  transition: transform 0.3s;
}
.of-flower:hover .of-flower__img { transform: scale(1.05); }
.of-flower.selected .of-flower__img { border-color: var(--sage-mid); }

@media (max-width: 600px) {
  .of-flower__img { width: 90px; height: 90px; }
  .of-flower { padding: 14px 10px 12px; }
}

.of-flower__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.of-flower__date {
  display: none;
  margin-top: 10px;
}
.of-flower.selected .of-flower__date { display: block; }
.of-flower__date label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.of-flower__date input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--linen-mid);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  text-align: center;
  transition: border-color 0.2s;
  cursor: pointer;
}
.of-flower__date input[type="date"]:focus {
  outline: none;
  border-color: var(--sage-mid);
}
.of-flower__date input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.of-flower__date input[type="date"] {
  position: relative;
}

/* ── Step 3: Two Column ── */
.of-split {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.of-split__form { flex: 1; min-width: 0; }
.of-split__sidebar { flex: 0 0 380px; position: sticky; top: 24px; }

@media (max-width: 900px) {
  .of-split { flex-direction: column; }
  .of-split__sidebar { flex: auto; width: 100%; position: static; }
}

/* ── Form Sections ── */
.of-form-section {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.of-form-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.of-field { margin-bottom: 16px; }
.of-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.of-field input[type="text"],
.of-field input[type="date"],
.of-field select,
.of-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--linen-mid);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.of-field input[type="date"] {
  position: relative;
  cursor: pointer;
}
.of-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.of-field input:focus,
.of-field select:focus,
.of-field textarea:focus {
  outline: none;
  border-color: var(--sage-mid);
  box-shadow: 0 0 0 3px rgba(0,118,176,0.08);
}
.of-field textarea { resize: vertical; min-height: 90px; }
.of-field--row {
  display: flex;
  gap: 12px;
}
.of-field--row > * { flex: 1; }
@media (max-width: 600px) {
  .of-field--row { flex-direction: column; }
}

.of-manual-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  margin-top: 8px;
}
.of-manual-toggle input[type="checkbox"] {
  accent-color: var(--sage-mid);
  width: 16px;
  height: 16px;
}
.of-manual-fields { display: none; margin-top: 16px; }
.of-manual-fields.show { display: block; }

.of-divider {
  border: none;
  border-top: 1px solid var(--linen-mid);
  margin: 24px 0;
}

/* ── Order Summary Card ── */
.of-summary {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.of-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.of-summary__items { min-height: 40px; }
.of-summary__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linen-dark);
}
.of-summary__item:last-child { border-bottom: none; }
.of-summary__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--linen-mid);
  flex-shrink: 0;
}
.of-summary__detail { flex: 1; }
.of-summary__detail strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.of-summary__detail span {
  font-size: 12px;
  color: var(--text-light);
}
.of-summary__empty {
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}
.of-summary__meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linen-dark);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}
.of-summary__meta strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ── Step 3 Add-Ons (product rows under arrangements) ── */
.of-summary__addons {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--linen-mid);
}
.of-summary__addons-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}
.of-summary__item--addon .of-summary__detail span {
  color: var(--text-dark);
  font-weight: 600;
}
.of-summary__note-snip {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fffdf3;
  border-left: 3px solid #d9bb5a;
  border-radius: 4px;
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: #58430a;
}

/* ── Step 3 date chip + popup calendar (matches Step 2 styling, no holidays) ── */
.ofv2-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0,118,176,0.10);
  color: #0076b0;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(0,118,176,0.18);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.ofv2-date-chip:hover { background: rgba(0,118,176,0.18); border-color: rgba(0,118,176,0.32); }
.ofv2-date-chip--unset {
  background: #FAF8F3;
  color: #5C5248;
  border-color: var(--linen-dark, #e0d8c8);
}
.ofv2-date-chip--unset:hover { background: #f3eedc; }
.ofv2-date-chip__icon { font-size: 14px; }
.ofv2-date-chip--set .ofv2-date-chip__icon { display: none; }

/* ── Add-On Upsell Card ── */
.of-addon {
  background: var(--white);
  border: 1.5px solid var(--linen-mid);
  border-radius: 12px;
  overflow: hidden;
}
.of-addon__inner { padding: 20px; }
.of-addon__tag {
  display: inline-block;
  background: #fff8e1;
  color: #7a5c00;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.of-addon__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.of-addon__img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--linen-mid);
  flex-shrink: 0;
}
.of-addon__info { flex: 1; }
.of-addon__info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.of-addon__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.of-addon__pricing .of-old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 13px;
}
.of-addon__pricing .of-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--sage-mid);
}
.of-addon__pricing .of-save {
  background: #e8f5e9;
  color: var(--green-ok);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.of-addon__action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--linen-mid);
}
.of-addon__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--linen-mid);
  border-radius: 8px;
  overflow: hidden;
  background: var(--linen);
  flex-shrink: 0;
}
.of-addon__qty button {
  width: 34px;
  height: 38px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--sage-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}
.of-addon__qty button:hover { background: #edf5fb; }
.of-addon__qty input {
  width: 38px;
  height: 38px;
  border: none;
  border-left: 1.5px solid var(--linen-mid);
  border-right: 1.5px solid var(--linen-mid);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  padding: 0;
}
.of-addon__qty input:focus { outline: none; }
.of-addon__add-btn {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--sage-mid);
  border-radius: 8px;
  background: transparent;
  color: var(--sage-mid);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.of-addon__add-btn:hover { background: var(--sage-mid); color: var(--white); }
.of-addon__add-btn.added { background: var(--green-ok); color: var(--white); border-color: var(--green-ok); }
.of-addon__add-btn.added:hover { background: #1b5e20; border-color: #1b5e20; }

/* ── Nav Buttons ── */
.of-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 12px;
  border-top: 1px solid var(--linen-mid);
}
.of-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.of-btn--back {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--linen-mid);
}
.of-btn--back:hover { border-color: var(--text-light); color: var(--text-dark); }
.of-btn--next {
  background: var(--sage-mid);
  color: var(--white);
}
.of-btn--next:hover { background: var(--sage-deep); transform: translateY(-1px); }
.of-btn--next:disabled {
  background: var(--linen-mid);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

/* ── Hidden WooCommerce sync elements ── */
#wc-sync-fields { display: none; }


/* ═══════════════════════════════════════
   Step 3: Method Selector & Find A Grave
   ═══════════════════════════════════════ */

/* Method Cards */
.of-method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.of-method-card {
  background: var(--white);
  border: 2px solid var(--linen-mid);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.of-method-card:hover {
  border-color: var(--sage-mid);
  background: #f0f8ff;
}

.of-method-card.active {
  border-color: var(--sage-deep);
  background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
  box-shadow: 0 2px 12px rgba(0, 90, 135, 0.15);
}

.of-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--linen-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--sage-mid);
  transition: all 0.2s ease;
}

.of-method-card.active .of-method-icon {
  background: var(--sage-deep);
  color: var(--white);
}

.of-method-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.of-method-card p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.of-method-card.active h4 {
  color: var(--sage-deep);
}

/* Method Panels */
.of-method-panel {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.of-method-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Find A Grave Search */
.of-btn--search {
  background: var(--sage-deep);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.05s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.of-btn--search:active { transform: translateY(1px); }

.of-btn--search:hover {
  background: var(--sage-mid);
}

/* Find A Grave Paste Section */
.of-fag-paste {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--linen-mid);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.of-fag-paste.visible {
  opacity: 1;
}

.of-fag-paste label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

.of-fag-paste__row {
  display: flex;
  gap: 8px;
}

.of-fag-paste__row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--linen-mid);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
}

.of-fag-paste__row input:focus {
  outline: none;
  border-color: var(--sage-mid);
  box-shadow: 0 0 0 3px rgba(0, 118, 176, 0.1);
}

.of-btn--link {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.of-btn--link:hover {
  background: var(--gold-light);
}

/* Status / Error */
.of-fag-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--sage-mid);
}

.of-spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--linen-mid);
  border-top-color: var(--sage-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.of-fag-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--red-warn);
  font-size: 13px;
}

.of-fag-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  font-size: 13px;
}

/* Memorial Linked Card */
.of-memorial-linked {
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.of-memorial-linked__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 16px 20px;
}

.of-memorial-linked__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.of-memorial-linked__info {
  flex: 1;
}

.of-memorial-linked__info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.of-memorial-linked__info p {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
}

.of-memorial-linked__change {
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.of-memorial-linked__change:hover {
  background: var(--white);
  border-color: var(--text-mid);
}

/* Responsive */
@media (max-width: 768px) {
  .of-method-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .of-method-card {
    padding: 16px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
  }

  .of-method-icon {
    margin: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .of-method-card h4 {
    font-size: 14px;
  }

  .of-method-card p {
    font-size: 12px;
  }

  .of-fag-paste__row {
    flex-direction: column;
  }

  .of-memorial-linked__inner {
    flex-wrap: wrap;
  }
}


/* ═══════════════════════════════════════
   Step 4: Two-Column Checkout
   ═══════════════════════════════════════ */

/* Main two-column grid */
.of-checkout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.of-checkout__heading {
  margin-bottom: 24px;
}

/* Left column */
.of-checkout__main {
  min-width: 0;
}

/* Right column — sticky sidebar */
.of-checkout__sidebar {
  position: relative;
}
.of-checkout__sidebar-inner {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Shared card style for both columns */
.of-checkout__card {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.of-checkout__sidebar .of-checkout__card {
  margin-bottom: 0;
}

.of-checkout__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linen-dark);
}

/* ── Billing fields ── */
.of-billing__fields .of-field {
  margin-bottom: 14px;
}
.of-billing__fields label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  display: block;
  margin-bottom: 4px;
}
.of-billing__fields input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--linen-mid);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--linen);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.of-billing__fields input:focus {
  outline: none;
  border-color: var(--sage-mid);
  box-shadow: 0 0 0 3px rgba(0, 118, 176, 0.1);
  background: var(--white);
}

/* Checkboxes */
.of-checkout__checkboxes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.of-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.4;
}
.of-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--sage-mid);
  flex-shrink: 0;
}

/* ── Stripe / Payment ── */
.of-stripe-wrap {
  margin-bottom: 4px;
}
.of-stripe-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.of-card-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.of-card-icons img {
  height: 20px;
  width: auto;
}
.of-stripe-card {
  padding: 12px 14px;
  border: 1px solid var(--linen-mid);
  border-radius: 8px;
  background: var(--linen);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.of-stripe-card.StripeElement--focus {
  border-color: var(--sage-mid);
  box-shadow: 0 0 0 3px rgba(0, 118, 176, 0.1);
  background: var(--white);
}
.of-stripe-card.StripeElement--invalid {
  border-color: var(--red-warn);
}
.of-stripe-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--red-warn);
  font-size: 13px;
}
.of-payment-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 13px;
}
.of-payment-divider::before, .of-payment-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--linen-mid);
}
.of-paypal-container {
  max-width: 400px;
  margin: 0 auto;
}

/* ── Back nav ── */
.of-nav--checkout {
  margin-top: 8px;
  justify-content: flex-start;
}

/* ═══ SIDEBAR STYLES ═══ */

/* Order Summary card */
.of-summary-card {
  padding-bottom: 12px;
}
.of-summary-card .of-checkout__card-title {
  margin-bottom: 12px;
}

/* Plan row in summary */
.of-summary__plan {
  margin-bottom: 12px;
}
.of-review__plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.of-review__plan strong {
  font-size: 15px;
  color: var(--text-dark);
}
.of-review__plan span {
  font-size: 13px;
  color: var(--text-mid);
}

/* Arrangement rows in summary */
.of-summary__arrangements {
  margin-bottom: 12px;
}
.of-review__arr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.of-review__arr + .of-review__arr {
  border-top: 1px solid var(--linen-dark);
}
.of-review__arr img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.of-review__arr-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.of-review__arr-info strong {
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.of-review__arr-info span {
  font-size: 12px;
  color: var(--text-mid);
}
.of-review__empty {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  padding: 4px 0;
}

/* Location in summary */
.of-summary__location {
  padding: 10px 0;
  border-top: 1px solid var(--linen-dark);
  margin-bottom: 4px;
}
.of-review__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.of-review__detail {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.of-review__label {
  font-weight: 600;
  color: var(--text-light);
  min-width: 90px;
  flex-shrink: 0;
}
.of-review__value {
  color: var(--text-dark);
  word-break: break-word;
}

/* Flag section in summary */
.of-summary__flag {
  padding-top: 10px;
  border-top: 1px solid var(--linen-dark);
}

/* Edit links */
.of-summary__edit-links {
  padding-top: 12px;
  border-top: 1px solid var(--linen-dark);
  text-align: center;
}
.of-summary__edit-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-mid);
  text-decoration: none;
}
.of-summary__edit-links a:hover {
  text-decoration: underline;
  color: var(--sage-deep);
}
.of-summary__edit-sep {
  color: var(--linen-mid);
  margin: 0 8px;
}

/* ── Upsells ── */
.of-upsell-card {
  padding: 0;
  overflow: hidden;
}
.of-upsell__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}
.of-upsell__item + .of-upsell__item {
  border-top: 1px solid var(--linen-dark);
}
.of-upsell__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: linear-gradient(135deg, #15803d, #22c55e);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.of-upsell__body {
  flex: 1;
  min-width: 0;
}
.of-upsell__body strong {
  font-size: 14px;
  color: var(--text-dark);
  display: block;
}
.of-upsell__body p {
  font-size: 12px;
  color: var(--text-mid);
  margin: 2px 0 0;
  line-height: 1.4;
}
.of-upsell__price {
  font-weight: 700;
  color: #15803d;
}
.of-btn--upsell {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--sage-mid);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.of-btn--upsell:hover {
  background: var(--sage-deep);
}

/* ── Promo + Tip (adjustments card) ── */
.of-adjustments-card {
  padding: 16px 20px;
}

/* Promo toggle */
.of-promo__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-mid);
}
.of-promo__toggle:hover {
  color: var(--sage-deep);
}
.of-promo__arrow {
  font-size: 12px;
  transition: transform 0.2s;
}
.of-promo__arrow.open {
  transform: rotate(180deg);
}
.of-promo__body {
  margin-top: 12px;
}

/* Coupon row */
.of-coupon__row {
  display: flex;
  gap: 8px;
}
.of-coupon__row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--linen-mid);
  border-radius: 6px;
  font-size: 13px;
  background: var(--linen);
  color: var(--text-dark);
  min-width: 0;
}
.of-coupon__row input:focus {
  outline: none;
  border-color: var(--sage-mid);
  background: var(--white);
}
.of-btn--coupon {
  background: var(--text-dark);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.of-btn--coupon:hover { opacity: 0.9; }
.of-coupon__msg {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.of-coupon__msg--ok { background: #ecfdf5; color: #15803d; border: 1px solid #86efac; }
.of-coupon__msg--err { background: #fef2f2; color: var(--red-warn); border: 1px solid #fecaca; }
.of-coupon__applied {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
}
.of-coupon__remove {
  background: none;
  border: none;
  color: #b91c1c;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* Divider between promo and tip */
.of-adjustments__divider {
  height: 1px;
  background: var(--linen-dark);
  margin: 14px 0;
}

/* Compact tip in sidebar */
.of-tip-compact__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.of-tip-compact__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.of-tip-compact__hint {
  font-size: 11px;
  color: var(--text-light);
}
.of-tip__buttons {
  display: flex;
  gap: 8px;
}
.of-tip__btn {
  flex: 1;
  padding: 10px 4px;
  border: 2px solid var(--linen-mid);
  border-radius: 8px;
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.of-tip__btn:hover {
  border-color: var(--sage-mid);
  background: #f0f8ff;
}
.of-tip__btn.active {
  border-color: #cc99c2;
  background: #cc99c2;
  color: var(--white);
}
.of-tip__amount {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text-mid);
}
.of-tip__amount strong {
  color: var(--text-dark);
  font-size: 16px;
}

/* ── Price Breakdown ── */
.of-price-card {
  padding: 16px 20px;
}
.of-price__line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-mid);
}
.of-price__line--discount {
  color: #15803d;
}
.of-price__line--tax {
  color: var(--text-mid);
}
.of-price__line--tip {
  color: var(--text-mid);
}
.of-price__divider {
  height: 2px;
  background: var(--linen-mid);
  margin: 8px 0;
}
.of-price__line--total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  padding-top: 4px;
}
.of-price__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* ── Place Order button ── */
.of-btn--pay-full {
  width: 100%;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage-mid));
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.of-btn--pay-full:hover {
  opacity: 0.92;
}
.of-btn--pay-full:active {
  transform: scale(0.99);
}
.of-btn--pay-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.of-checkout__secure {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ── Order Success ── */
.of-success {
  text-align: center;
  padding: 60px 20px;
}
.of-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.of-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.of-success p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.of-success__order-num {
  display: inline-block;
  padding: 8px 20px;
  background: var(--linen-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* ═══ RESPONSIVE: Single column on mobile ═══ */
@media (max-width: 900px) {
  .of-checkout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .of-checkout__sidebar-inner {
    position: static;
  }
  .of-checkout__sidebar {
    order: -1;
    margin-bottom: 24px;
  }
  .of-summary-card .of-review__arr img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .of-checkout__card {
    padding: 16px;
    border-radius: 10px;
  }
  .of-tip__btn {
    padding: 8px 2px;
    font-size: 14px;
  }
  .of-review__detail {
    flex-direction: column;
    gap: 1px;
  }
  .of-review__label {
    min-width: auto;
  }
}

/* ── Mobile-friendly checkout improvements ── */
@media (max-width: 768px) {
  /* Prevent iOS auto-zoom on input focus by ensuring font-size >= 16px */
  .of-field input[type="text"],
  .of-field input[type="email"],
  .of-field input[type="tel"],
  .of-field input[type="number"],
  .of-field input[type="date"],
  .of-field select,
  .of-field textarea,
  #coupon-code {
    font-size: 16px !important;
  }
  /* Larger tap targets for short inputs */
  .of-field input[type="email"],
  .of-field input[type="tel"] {
    min-height: 46px;
    padding: 11px 14px;
  }
  /* Tip button row: tighter gap so all four fit cleanly */
  .of-tip__row { gap: 6px !important; }
  .of-tip__btn { min-height: 42px; }
  /* Coupon: bigger pill input + clear apply button */
  #coupon-code { min-height: 44px; padding: 10px 12px; }
  #coupon-apply { min-height: 44px; padding: 0 14px; white-space: nowrap; }
  /* Place Order button stays prominent */
  .of-btn--pay-full { min-height: 54px; font-size: 16px; }
  /* Sidebar (order summary) sits at top via existing order:-1 — give it breathing room */
  .of-checkout__sidebar { margin-bottom: 20px; }
  /* Card hierarchy: tighter outer container, fuller bleed inside */
  .of-checkout { padding: 0; gap: 16px; }
  .of-checkout__card { margin-bottom: 14px; padding: 18px 18px; }
  .of-checkout__card-title { font-size: 15px; margin-bottom: 14px; }
  /* Heading on step 4 a touch smaller */
  .of-checkout__heading h2 { font-size: 22px !important; }
}

@media (max-width: 480px) {
  .of-checkout__card { padding: 14px 14px; }
  .of-tip__row { flex-wrap: wrap; }
  .of-tip__btn { flex: 1 1 calc(50% - 6px); min-width: 0; }
}


/* ═══════════════════════════════════════════
   STEP 1: Pick a Plan (added 2026-04-30)
   Matches design language of the rest of the order flow
   ═══════════════════════════════════════════ */

.of-plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--linen, #f7f3eb);
  border-radius: 10px;
  padding: 6px;
}
.of-plan-toggle__btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid, #4a5961);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.of-plan-toggle__btn span {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light, #888);
  letter-spacing: 0.02em;
}
.of-plan-toggle__btn.active {
  background: #fff;
  color: #0076b0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.of-plan-toggle__btn.active span { color: var(--text-mid, #4a5961); }
.of-plan-toggle__btn:hover:not(.active) { color: #0076b0; }

.of-plan-panel { display: none; }
.of-plan-panel.active { display: block; }

.of-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.of-plan-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid var(--linen-mid, #e8e1d3);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.of-plan-card:hover {
  border-color: rgba(0, 118, 176, 0.4);
  transform: translateY(-1px);
}
.of-plan-card.selected {
  border-color: #0076b0;
  box-shadow: 0 0 0 3px rgba(0, 118, 176, 0.1);
}

.of-plan-card__radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--linen-mid, #d8d2c2);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}
.of-plan-card.selected .of-plan-card__radio {
  border-color: #0076b0;
}
.of-plan-card.selected .of-plan-card__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #0076b0;
  border-radius: 50%;
}

.of-plan-card__info { min-width: 0; }
.of-plan-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark, #1b4332);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.of-plan-card__desc {
  font-size: 13px;
  color: var(--text-mid, #4a5961);
  font-weight: 300;
  line-height: 1.5;
}

.of-plan-card__badge {
  display: inline-block;
  background: #f0f8fd;
  color: #0076b0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.of-plan-card__badge--popular {
  background: #fef3e8;
  color: #c97b1f;
}

.of-plan-card__price { text-align: right; flex-shrink: 0; }
.of-plan-card__amount {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark, #1b4332);
  line-height: 1;
}
.of-plan-card__period {
  display: block;
  font-size: 11px;
  color: var(--text-light, #888);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.of-plan-card--single .of-plan-card__name { font-size: 17px; }
.of-plan-card--single .of-plan-card__amount { font-size: 26px; }

@media (max-width: 600px) {
  .of-plan-card { grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; }
  .of-plan-card__price { grid-column: 2; text-align: left; margin-top: 4px; }
  .of-plan-card__amount { font-size: 18px; }
}


/* ═══════════════════════════════════════════
   STEP 1: Split layout (left = how-it-works steps, right = plan picker)
   Mirrors the homepage's .howord section pattern
   ═══════════════════════════════════════════ */

#step-1 .of-step1-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.of-step1-left {
  position: sticky;
  top: 24px;
  padding-right: 8px;
}
.of-step1-left .of-section-title {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 32px;
  line-height: 1.1;
}

.of-step1-steps {
  display: flex;
  flex-direction: column;
}
.of-step1-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--linen-mid, #e8e1d3);
}
.of-step1-step:last-child { border-bottom: none; }

.of-step1-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--linen, #f7f3eb);
  color: var(--text-mid, #4a5961);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.of-step1-step__body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark, #1b4332);
  margin: 4px 0 6px;
}
.of-step1-step__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid, #4a5961);
  font-weight: 300;
  margin: 0;
}
.of-step1-step__body p a {
  color: #0076b0;
  font-weight: 500;
  text-decoration: none;
}
.of-step1-step__body p a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  #step-1 .of-step1-grid { grid-template-columns: 1fr; gap: 32px; }
  .of-step1-left { position: static; padding-right: 0; }
  .of-step1-left .of-section-title { font-size: clamp(24px, 5vw, 32px); margin-bottom: 16px; }
  .of-step1-step { padding: 16px 0; grid-template-columns: 44px 1fr; gap: 14px; }
}

/* ── Step 3 Note Upsell Card extras ── */
#note-upsell-card textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--linen-mid, #e0d8c8);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  min-height: 64px;
  box-sizing: border-box;
}
#note-upsell-card textarea:focus { outline: none; border-color: #0076b0; box-shadow: 0 0 0 3px rgba(0,118,176,0.12); }
.of-addon__note-meta { font-size: 11px; color: var(--text-light, #8A8078); text-align: right; margin: 4px 0 8px; }
.of-addon__add-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Google Places (.pac-container) override to match BB design ── */
.pac-container {
  background: #fff !important;
  border: 1.5px solid var(--linen-mid, #E8E2D6) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 4px 14px rgba(0,0,0,0.06) !important;
  padding: 6px 0 !important;
  margin-top: 4px !important;
  font-family: "DM Sans", sans-serif !important;
  overflow: hidden !important;
}
.pac-container:after { display: none !important; } /* hide Google attribution strip */
.pac-item {
  border-top: none !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #2C2520 !important;
  line-height: 1.35 !important;
  transition: background 0.12s, color 0.12s !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.pac-item:hover, .pac-item-selected {
  background: rgba(0,118,176,0.08) !important;
  color: #0076b0 !important;
}
.pac-icon, .pac-icon-marker {
  width: 18px !important;
  height: 18px !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=%230076b0><path d=M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z/></svg>") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  filter: none !important;
  opacity: 1 !important;
}
.pac-item-query {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2C2520 !important;
  padding-right: 4px !important;
}
.pac-item:hover .pac-item-query, .pac-item-selected .pac-item-query {
  color: #0076b0 !important;
}
.pac-matched { color: #0076b0 !important; font-weight: 700 !important; }

/* Order summary rows — delivery header, then one line per arrangement.
   The old markup put the date and the double-placement note in adjacent
   inline spans, so they ran together as "11-26-2026Double placement". */
.of-summary__detail { min-width: 0; }

.of-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.of-summary__head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.of-summary__date {
  font-size: 12px;
  color: #6f6a63;
  white-space: nowrap;
}

.of-summary__arr {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 1px 0;
}

.of-summary__arr em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a938a;
  min-width: 84px;
}

.of-summary__arr > span { flex: 1 1 auto; min-width: 0; }
