/* Custom mousepad — light order page shared on Messenger and Instagram.
   Option cards reuse the store's product-popup styles (product-components.css),
   shown a little larger because this page has the full width to itself.
   Layout lives here so the page does not depend on the Tailwind CDN. */

.cmp-main { flex: 1; padding-top: 1.5rem; padding-bottom: 4.5rem; position: relative; z-index: 1; font-family: 'Outfit', sans-serif; }
.cmp-wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
.cmp-wrap--wide { max-width: 72rem; }

/* Title */
.cmp-head { margin-bottom: 1.75rem; }
.cmp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; margin-bottom: 1rem; }
.cmp-crumbs a { color: inherit; text-decoration: none; transition: color 0.15s; }
.cmp-crumbs a:hover { color: #4f46e5; }
.cmp-crumbs [aria-current] { color: #334155; }
.cmp-head h1 { margin: 0; font-size: 2.125rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; color: #0f172a; }
.cmp-head p { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.5; font-weight: 500; color: #64748b; }

/* Options — same components as the store popup, scaled up */
.cmp-config { display: flex; flex-direction: column; gap: 1.75rem; margin-bottom: 2rem; }
.cmp-config .mg-modal-label { font-size: 1rem; font-weight: 800; gap: 0.6rem; color: #475569; }
.cmp-config .mg-modal-label .material-symbols-outlined { font-size: 1.35rem; }
.cmp-config .cmp-label-icon { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.cmp-label-row { display: flex; align-items: center; gap: 1rem; }

.cmp-config .mg-series-grid,
.cmp-config .mg-spec-grid { gap: 0.75rem; row-gap: 0.85rem; margin-top: 0.75rem; }

.cmp-config .mg-series-choice { min-height: 3.9rem; padding: 0.75rem 1rem; border-radius: 1.1rem; justify-content: center; }
.cmp-config .mg-series-choice .cmp-series-logo { height: 1.35rem; width: auto; max-width: 100%; object-fit: contain; display: block; }
.cmp-config .mg-series-choice .cmp-series-logo[data-series="mgweave"] { height: 1.1rem; }
.cmp-config .mg-series-choice .cmp-series-logo[data-series="mgweaveplus"] { height: 1.7rem; }
.cmp-config .mg-series-choice .cmp-series-logo[data-series="mgglide"] { height: 1.5rem; }
.cmp-config .mg-series-choice .cmp-series-name { font-size: 1rem; font-weight: 850; color: #334155; }

.cmp-config .mg-series-choice .series-badge-pill,
.cmp-config .mg-spec-choice .size-badge-pill { top: -0.6rem; right: 0.75rem; padding: 0.32rem 0.65rem; border-radius: 0.55rem; }
.cmp-config .mg-series-choice .series-badge-pill img,
.cmp-config .mg-spec-choice .size-badge-pill img { height: 0.62rem; }
.cmp-config .series-badge-pill .cmp-badge-text { font-size: 0.62rem; font-weight: 800; color: #fff; line-height: 1; }

.cmp-config .mg-spec-choice { min-height: 3.9rem; padding: 0.75rem 1rem; gap: 0.85rem; border-radius: 1.1rem; }
.cmp-config .mg-spec-grid--sizes .mg-spec-choice { padding: 0.75rem 0.9rem; gap: 0.75rem; }
.cmp-config .mg-spec-choice strong { font-size: 1.05rem; font-weight: 800; }
.cmp-config .mg-spec-choice small { font-size: 0.8rem; font-weight: 600; }
.cmp-config .mg-spec-choice .material-symbols-outlined { font-size: 1.35rem; }
.cmp-config .mg-spec-choice .mg-edge-icon { width: 1.35rem; height: 1.35rem; }
.cmp-config .mg-spec-choice .cmp-surface-word { height: 1.05rem; width: auto; display: block; align-self: flex-start; margin-bottom: 0.1rem; }
.cmp-config .mg-spec-choice:focus-visible,
.cmp-config .mg-series-choice:focus-visible { outline: 0.15rem solid #4f46e5; outline-offset: 0.15rem; }

.cmp-config .mg-unit-btn { font-size: 0.8rem; padding: 0.35rem 0.45rem 0.35rem 0.7rem; border-radius: 0.65rem; gap: 0.15rem; }
.cmp-config .mg-unit-btn .material-symbols-outlined { font-size: 1.05rem; }
.cmp-config .mg-custom-select-panel { left: 0; right: auto; transform-origin: top left; min-width: 6rem; }
.cmp-config .mg-custom-select-option { font-size: 0.8rem; padding: 0.45rem 0.7rem; }

.cmp-config .mg-freeform-fields { gap: 0.75rem; margin-top: 0.85rem; }
.cmp-config .mg-freeform-fields label { padding: 0.75rem 1rem; border-radius: 1.1rem; font-size: 0.95rem; }
.cmp-config .mg-freeform-fields input { font-size: 1.05rem !important; }
.cmp-config .mg-freeform-fields label span:last-child { font-size: 0.8rem; }

.cmp-note { margin: 0.75rem 0 0; padding: 0.7rem 0.9rem; border-radius: 0.9rem; font-size: 0.8rem; font-weight: 600; line-height: 1.45; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.cmp-note--warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.cmp-note button { background: none; border: 0; padding: 0; margin-left: 0.3rem; font: inherit; font-weight: 800; color: #4338ca; text-decoration: underline; cursor: pointer; }

/* Loading placeholders */
.cmp-skeleton, .cmp-skeleton-row { min-height: 3.9rem; border-radius: 1.1rem; background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%; animation: cmpShimmer 1.2s linear infinite; }
@keyframes cmpShimmer { to { background-position: -200% 0; } }

/* Price card */
.cmp-price-card { border-radius: 2.25rem; border: 1px solid #e2e8f0; background: rgba(248, 250, 252, 0.9); padding: 1.6rem 2rem 1.1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.cmp-price-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cmp-price-label { display: block; font-size: 1.05rem; font-weight: 600; color: #64748b; }
.cmp-price { display: block; margin-top: 0.1rem; font-size: 2.85rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.035em; color: #0f172a; }
.cmp-price .price-symbol { font-size: 1em !important; }
.cmp-price-summary { display: block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: #64748b; }
.cmp-eta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; padding-top: 0.6rem; }
.cmp-eta-pill { display: inline-flex; align-items: center; padding: 0.45rem 1.1rem; border-radius: 999px; background: #d1fae5; color: #047857; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.cmp-price-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; font-size: 0.72rem; font-weight: 500; color: #64748b; }
.cmp-price-foot strong { color: #334155; font-weight: 700; }
.cmp-cod { display: inline-flex; align-items: center; gap: 0.2rem; color: #047857; font-weight: 700; }
.cmp-cod .material-symbols-outlined { font-size: 0.9rem; }

/* Buttons */
.cmp-actions { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.25rem; }
.cmp-actions-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.cmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 4.25rem; padding: 0 1.5rem; border-radius: 999px; border: 0; font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease; text-decoration: none; }
.cmp-btn:active { transform: scale(0.98); }
.cmp-btn:focus-visible { outline: 0.15rem solid #4f46e5; outline-offset: 0.2rem; }
.cmp-btn .material-symbols-outlined { font-size: 1.5rem; }
.cmp-btn--primary { min-height: 5.25rem; font-size: 1.3rem; background: #4f46e5; color: #fff; box-shadow: 0 1rem 2rem rgba(79, 70, 229, 0.25); }
.cmp-btn--primary:hover { background: #4338ca; }
.cmp-btn--primary .cmp-arrow { transition: transform 0.18s ease; }
.cmp-btn--primary:hover .cmp-arrow { transform: translateX(0.25rem); }
.cmp-btn--messenger { background: #0084ff; color: #fff; box-shadow: 0 0.5rem 1rem rgba(0, 132, 255, 0.2); }
.cmp-btn--messenger:hover { background: #0073e6; }
.cmp-btn--ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.cmp-btn--ghost:hover { background: #f8fafc; }
.cmp-btn--ghost .material-symbols-outlined { color: #475569; }
.cmp-btn--block { width: 100%; min-height: 3.5rem; font-size: 1rem; }
.cmp-messenger-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* How to order + delivery rates */
.cmp-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 4rem; align-items: start; }
.cmp-card { border-radius: 1.75rem; border: 1px solid #e2e8f0; background: #fff; padding: 2rem 2.25rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); }
.cmp-card--tint { background: rgba(238, 242, 255, 0.5); border-color: #e0e7ff; }
.cmp-card h2 { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.cmp-card h2 .material-symbols-outlined { color: #4f46e5; font-size: 1.75rem; }
.cmp-card-sub { margin: 0.45rem 0 0; font-size: 0.95rem; color: #64748b; }
.cmp-steps ol { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.cmp-steps li { display: flex; align-items: flex-start; gap: 1.1rem; }
.cmp-step-num { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: #eef2ff; color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 800; }
.cmp-steps h3 { margin: 0.1rem 0 0; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.cmp-steps p { margin: 0.35rem 0 0; font-size: 0.98rem; line-height: 1.6; color: #475569; }
.cmp-steps strong { color: #1e293b; font-weight: 700; }
.cmp-zones { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.5rem 0 1.25rem; }
.cmp-zone { border-radius: 1.25rem; background: #fff; border: 1px solid #e0e7ff; padding: 1rem 1.1rem; }
.cmp-zone.cmp-skeleton-row { min-height: 4.25rem; border: 0; }
.cmp-zone-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 1.05rem; font-weight: 700; color: #1e293b; }
.cmp-zone-fee { color: #4f46e5; font-weight: 800; white-space: nowrap; }
.cmp-zone p { margin: 0.3rem 0 0; font-size: 0.78rem; color: #64748b; }
.cmp-rates-note { margin: -0.4rem 0 1.1rem; font-size: 0.8rem; font-weight: 600; color: #047857; }

/* Toast */
.cmp-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem); z-index: 300; max-width: calc(100% - 2rem); padding: 0.75rem 1.1rem; border-radius: 1rem; background: rgba(15, 23, 42, 0.92); color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.cmp-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 48rem) {
  .cmp-info { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; }
  .cmp-main { padding-top: 2rem; }
  .cmp-head h1 { font-size: 2.5rem; }
}

@media (max-width: 30rem) {
  .cmp-head h1 { font-size: 1.85rem; }
  .cmp-config .mg-series-choice { min-height: 3.4rem; padding: 0.6rem; }
  .cmp-config .mg-spec-choice { min-height: 3.4rem; padding: 0.6rem 0.7rem; gap: 0.55rem; }
  .cmp-config .mg-spec-grid--sizes .mg-spec-choice { padding: 0.6rem 0.65rem; gap: 0.5rem; }
  .cmp-config .mg-spec-choice strong { font-size: 0.95rem; }
  .cmp-config .mg-spec-choice small { font-size: 0.74rem; }
  .cmp-config .mg-spec-grid--sizes .mg-spec-choice strong,
  .cmp-config .mg-spec-grid--sizes .mg-spec-choice small { white-space: normal; }
  .cmp-config .mg-spec-grid:not(.mg-spec-grid--sizes) { grid-template-columns: minmax(0, 1fr); }
  .cmp-price-card { padding: 1.25rem 1.25rem 0.9rem; border-radius: 1.75rem; }
  .cmp-price { font-size: 2.3rem; }
  .cmp-price-label { font-size: 0.9rem; }
  .cmp-eta-pill { font-size: 0.88rem; padding: 0.4rem 0.8rem; }
  .cmp-actions-row { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .cmp-actions { gap: 0.8rem; margin-top: 1.5rem; }
  .cmp-btn { min-height: 3.6rem; font-size: 1rem; }
  .cmp-btn--primary { min-height: 4.25rem; font-size: 1.1rem; padding: 0 1.1rem; }
  .cmp-btn--primary .cmp-arrow { display: none; }
  .cmp-card { padding: 1.5rem 1.25rem; border-radius: 1.5rem; }
  .cmp-card h2 { font-size: 1.35rem; }
  .cmp-info { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-skeleton, .cmp-skeleton-row { animation: none; }
  .cmp-btn, .cmp-toast { transition: none; }
}
