/* assets/css/poster.css - Poster tool and success page specific styles */
.poster-hero {
  text-align: center;
  padding: 32px 24px 14px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5.8vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 10px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s forwards;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.proof-text {
  color: var(--text-soft);
}

.builder {
  display: grid;
  grid-template-columns: minmax(460px, 500px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 80px;
  align-items: start;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.form-section {
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  gap: 10px;
}

.field-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: block;
}

.distance-row {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.distance-auto {
  display: flex;
  align-items: center;
  gap: 10px;
}

.distance-icon {
  font-size: 18px;
  opacity: 0.7;
}

.distance-value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.unit-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.unit-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.unit-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
}

.distance-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.poster-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.poster-style-card {
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.poster-style-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.poster-style-card.active {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.poster-style-canvas {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-softer);
  display: block;
}

[data-no-save-preview],
[data-no-save-preview] * {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.poster-style-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-style-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.delivery-btn {
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.delivery-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.delivery-btn.active {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.delivery-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-dim);
  color: var(--gold);
}

.delivery-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.delivery-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center !important;
}

.theme-btn {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  position: relative;
}

.theme-btn-custom {
  padding-bottom: 8px;
}

.theme-custom-wrap {
  position: relative;
  text-align: center !important;
}

.theme-custom-wrap span {
  font-size: 0.8em !important;
}

.theme-custom-wrap .theme-btn {
  width: 100%;
}

.theme-coloris-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.theme-custom-wrap .clr-field {
  display: none !important;
}

.clr-picker {
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-xl) !important;
  z-index: 10050 !important;
}

.clr-picker .clr-field button {
  border-radius: 10px !important;
}

.clr-picker .clr-swatches button {
  border-radius: 999px !important;
}

.theme-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.theme-btn.active {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.theme-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.theme-swatch-shape {
  width: 12px;
  height: 9px;
  background: #ffffff;
  clip-path: polygon(5% 78%, 14% 16%, 63% 7%, 92% 31%, 82% 72%, 56% 95%, 20% 86%);
  opacity: 0.95;
}

.theme-name {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-family: 'DM Sans', sans-serif;
}

.theme-check {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 10px;
  color: var(--gold-light);
}

.theme-grid.style-inverted .theme-btn {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.theme-grid.style-inverted .theme-btn.active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(186, 0, 0, 0.3);
}

.theme-grid.style-inverted .theme-name {
  color: rgba(255, 255, 255, 0.92);
}

.theme-grid.style-inverted .theme-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.theme-grid.style-inverted .theme-check {
  color: #ffffff;
}

.shipping-options {
  display: grid;
  gap: 10px;
}

.shipping-option {
  width: 100%;
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  justify-content: normal !important;
}

.shipping-option:hover {
  border-color: var(--gold);
}

.shipping-option.active {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-gold);
}

.shipping-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  position: relative;
  flex: 0 0 auto;
}

.shipping-option.active .shipping-radio {
  border-color: var(--gold);
}

.shipping-option.active .shipping-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.shipping-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shipping-copy strong {
  font-size: 13px;
  color: var(--text);
}

.shipping-copy span {
  font-size: 12px;
  color: var(--text-muted);
}

.shipping-estimate {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.price-breakdown {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-softer);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.price-breakdown-row strong {
  color: var(--text);
  font-weight: 600;
}

.price-breakdown-row.total {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.afterpay-product-message {
  margin-bottom: 12px;
  min-height: 22px;
  text-align: center;
}

.afterpay-product-message:empty {
  display: none;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.style-opt {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.style-opt:hover {
  border-color: var(--border-hover);
}

.style-opt.active {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.style-icon {
  font-size: 20px;
  opacity: 0.7;
}

.style-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.style-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.card-checkout-box {
  background: var(--panel-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.card-checkout-container {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-softer);
  padding: 11px 12px;
  transition: var(--transition);
}

.card-checkout-container:focus-within {
  border-color: var(--gold);
  background: var(--input-focus-bg);
}

.card-checkout-container iframe {
  width: 100% !important;
}

.cta-area {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.cta-free {
  width: 100%;
  margin-bottom: 12px;
}

.cta-divider {
  text-align: center;
  position: relative;
  margin: 12px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: var(--border);
}

.cta-divider::before {
  left: 0;
}

.cta-divider::after {
  right: 0;
}

.cta-price-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.price-badge {
  background: var(--gold-dim);
  border: 1px solid rgba(186, 0, 0, 0.3);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  padding: 2px 12px;
  border-radius: 6px;
}

.price-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.cta-paid {
  font-size: 16px;
  padding: 16px;
}

.cta-trust {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.preview-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 25px;
  align-self: start;
  z-index: 20;
  height: auto;
  background: #EDEAE5;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px 28px;
  min-height: auto;
  box-shadow: var(--shadow-card);
}

.preview-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.preview-panel .map-canvas-wrap,
.preview-panel .poster-wrap,
.preview-panel .stats-bar {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.poster-wrap {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--border);
  transition: box-shadow var(--transition-slow);
}

.poster-wrap:hover {
  box-shadow: 0 12px 36px rgba(30, 10, 8, 0.14), 0 0 0 1px rgba(186, 0, 0, 0.08);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.stat-key {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.trust-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.trust-card h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
}

.trust-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.how-it-works-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 72px;
}

.how-it-works-wrap {
  background:
    radial-gradient(1200px 280px at 100% -40%, rgba(186, 0, 0, 0.08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--panel-softer) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.how-it-works-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 22px;
}

.how-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.how-it-works-head h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.1vw, 46px);
  font-weight: 400;
  line-height: 1.1;
}

.how-it-works-head p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.how-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(186, 0, 0, 0.12);
  border: 1px solid rgba(186, 0, 0, 0.35);
}

.how-step h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.how-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.how-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(186, 0, 0, 0.26);
  border-radius: var(--radius);
  background: rgba(186, 0, 0, 0.08);
  color: var(--text-soft);
  font-size: 13px;
}

.how-tip strong {
  color: var(--gold);
}

.success-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

.success-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  padding: 32px;
  text-align: center;
}

.success-check,
.pending-icon,
.error-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 30px;
  font-family: 'Cormorant Garamond', serif;
}

.success-check {
  background: var(--success-bg);
  border: 1px solid #C8DCC8;
  color: var(--success);
}

.pending-icon {
  background: rgba(186, 0, 0, 0.12);
  border: 1px solid rgba(186, 0, 0, 0.4);
  color: var(--gold);
}

.error-icon {
  background: rgba(232, 112, 112, 0.12);
  border: 1px solid rgba(232, 112, 112, 0.45);
  color: var(--error);
}

.success-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.08;
}

.success-title em {
  color: var(--gold-light);
  font-style: italic;
}

.success-sub {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.success-poster-wrap {
  width: min(460px, 100%);
  margin: 28px auto 0;
}

.success-fulfillment-card {
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 240, 236, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 34px rgba(30, 10, 8, 0.06);
}

.success-fulfillment-head {
  max-width: 620px;
  margin: 0 auto 18px;
  text-align: center;
}

.success-fulfillment-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.success-fulfillment-head h2 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--text);
}

.success-fulfillment-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.success-fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.success-fulfillment-step {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.success-fulfillment-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(186, 0, 0, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.success-fulfillment-step strong {
  font-size: 14px;
  color: var(--text);
}

.success-fulfillment-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.order-recap {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-softer);
  padding: 16px;
  text-align: left;
}

.order-recap h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.order-recap-grid {
  display: grid;
  gap: 8px;
}

.order-recap-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.order-recap-grid > div strong {
  color: var(--text);
  font-weight: 500;
}

.order-link-wrap {
  margin-top: 14px;
}

.order-link-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.order-link-row {
  display: flex;
  gap: 8px;
}

.order-link-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
}

.order-link-wrap p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-download.is-hidden-physical-download {
  display: none !important;
}

.share-section {
  margin-top: 28px;
}

.share-divider {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.share-text {
  margin: 0;
  color: var(--text-soft);
}

.share-socials {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.share-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.share-social-link:hover {
  border-color: var(--gold);
  background: var(--panel-softer);
  transform: translateY(-1px);
}

.share-social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-social-link span {
  line-height: 1;
}

.share-btns {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

@keyframes drawArc {
  from {
    stroke-dashoffset: 400;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.flight-arc {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawArc 2s ease 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.4s ease;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-hover);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-large {
  width: 40px;
  height: 40px;
  border-width: 3px;
  margin: 24px auto;
  display: block;
}

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

@media (max-width: 900px) {
  .builder {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }

  .field-row.two-col,
  .provider-grid,
  .style-grid {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-panel {
    position: -webkit-sticky;
    position: sticky;
    order: -1;
    top: 0px;
    bottom: auto;
    background: #f0edea;
    border: 0;
    border-radius: 0;
    padding: 8px 0 12px;
    box-shadow: none;
    z-index: 30;
  }

  .form-panel {
    border-radius: 12px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-section {
    padding: 4px 16px 52px;
  }

  .how-it-works-wrap {
    padding: 18px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .how-step {
    padding: 14px;
  }

  .how-it-works-head {
    text-align: left;
    margin-bottom: 16px;
  }

  .how-it-works-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .success-shell {
    padding: 36px 16px 50px;
  }

  .success-state {
    padding: 24px 18px;
  }

  .success-fulfillment-card {
    padding: 18px;
  }

  .success-fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .order-link-row {
    flex-direction: column;
  }

  .order-link-row .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 900px) {
    .preview-panel .map-canvas-wrap {
      width: 60% !important;
    }
  }
