/* Reason: Reproduce the accepted remote storefront visual system while preserving every local checkout action. */

@font-face {
  font-family: "Smart Tajawal";
  src: url("/store/assets/Tajawal-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

body.customer-page.remote-storefront {
  --remote-navy: #09213f;
  --remote-navy-soft: #163a62;
  /* Reason: Use PalPay's darker brand tone for readable actions while retaining the bright logo tone as an accent. */
  --remote-pink: #a91b80;
  --remote-pink-dark: #7f145f;
  --remote-pink-bright: #d629a0;
  --remote-pink-soft: #fbeaf6;
  --remote-purple: #8300e6;
  --remote-bg: #fcf7fb;
  --remote-surface: #ffffff;
  --remote-line: #efcfe4;
  --remote-muted: #627287;
  --remote-soft-text: #8491a2;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--remote-navy);
  background: var(--remote-bg);
  font-family: "Smart Tajawal", "Tajawal", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Reason: Style late checkout controls without overriding their native hidden state. */
body.customer-page.remote-storefront :is(
  #confirmBuyerPhone,
  #guideStartButton,
  #createOrder,
  #showProof,
  #submitProofButton,
  #startNewPurchase,
  #mobileCartCheckout,
  .issued-card-actions .use-card-btn
) {
  min-height: 50px !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: var(--remote-pink) !important;
  box-shadow: 0 9px 20px rgba(127, 20, 95, 0.18) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.customer-page.remote-storefront :is(
  #confirmBuyerPhone,
  #guideStartButton,
  #createOrder,
  #showProof,
  #submitProofButton,
  #startNewPurchase,
  #mobileCartCheckout,
  .issued-card-actions .use-card-btn
):hover:not(:disabled) {
  background: var(--remote-pink-dark) !important;
}

body.customer-page.remote-storefront :is(
  #editBuyerPhone,
  #backToPhoneGate,
  #clearCart,
  #newOrder,
  #cancelOrder,
  #cancelOrderCheckout,
  #copyPaymentSummary,
  #copySupportSummary,
  #refreshOrder,
  #refreshWaitingOrder,
  #cancelOrderWaiting,
  #openAlternateProof,
  .phone-proof-reset,
  #retryVerification,
  #editVerification,
  #cancelOrderProof,
  #copyCards,
  #downloadPdf,
  [data-close-history],
  [data-close-proof-sheet],
  .proof-method-tabs button,
  .confirm-actions .btn.secondary
) {
  min-height: 42px !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--remote-line) !important;
  border-radius: 10px !important;
  color: var(--remote-navy-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.customer-page.remote-storefront :is(#cancelOrder, #cancelOrderCheckout, #cancelOrderWaiting, #cancelOrderProof) {
  border-color: #f1c2c8 !important;
  color: #a83242 !important;
}

body.customer-page.remote-storefront #confirmCancelOrder {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 15px !important;
  border: 1px solid #b82f43 !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: #b82f43 !important;
  box-shadow: 0 8px 18px rgba(184, 47, 67, 0.16) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.customer-page.remote-storefront :is(button, a.btn):disabled,
body.customer-page.remote-storefront a[aria-disabled="true"] {
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.48 !important;
}

/* Reason: Identify the 056 merchant wallet as Ooredoo without contaminating the copied payment number. */
body.customer-page.remote-storefront .is-ooredoo-wallet {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  color: #e30613 !important;
  background: #fff1f2 !important;
}

body.customer-page.remote-storefront .is-ooredoo-wallet::after {
  content: "Ooredoo";
  min-height: 21px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(227, 6, 19, 0.28);
  border-radius: 999px;
  color: #e30613;
  background: #fff;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

body.customer-page.remote-storefront *,
body.customer-page.remote-storefront *::before,
body.customer-page.remote-storefront *::after {
  box-sizing: border-box;
}

body.customer-page.remote-storefront :is(button, input, select, textarea) {
  font: inherit;
}

body.customer-page.remote-storefront :is(button, a) {
  -webkit-tap-highlight-color: transparent;
}

body.customer-page.remote-storefront :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(214, 41, 160, 0.28);
  outline-offset: 3px;
}

body.customer-page.remote-storefront [hidden] {
  display: none !important;
}

body.customer-page.remote-storefront > .shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--remote-bg);
}

/* Header */
body.customer-page.remote-storefront .customer-topbar {
  /* Reason: keep the stage-aware Back/cancel action reachable after checkout auto-scrolls to the active order. */
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border: 0;
  border-bottom: 1px solid var(--remote-line);
  border-radius: 0;
  color: var(--remote-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body.customer-page.remote-storefront .customer-topbar .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  direction: ltr;
}

body.customer-page.remote-storefront .customer-topbar .brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .customer-topbar .brand-logo svg {
  width: 23px;
  height: 23px;
}

body.customer-page.remote-storefront .customer-topbar .brand h1 {
  margin: 0;
  color: var(--remote-navy);
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

body.customer-page.remote-storefront .customer-topbar .brand p,
body.customer-page.remote-storefront .customer-topbar .support-links,
body.customer-page.remote-storefront .customer-offers-button,
body.customer-page.remote-storefront .store-admin-link {
  display: none !important;
}

body.customer-page.remote-storefront .customer-topbar .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

body.customer-page.remote-storefront .customer-history-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--remote-line);
  border-radius: 11px;
  color: var(--remote-navy-soft);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

body.customer-page.remote-storefront .customer-history-button svg {
  width: 18px;
  height: 18px;
}

body.customer-page.remote-storefront .customer-topbar #serviceState {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--remote-pink-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

body.customer-page.remote-storefront .customer-topbar #serviceState::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--remote-pink);
  box-shadow: 0 0 0 5px rgba(214, 41, 160, 0.12);
}

body.customer-page.remote-storefront .customer-topbar #serviceState:is(.warn, .danger)::before {
  background: #df8a2c;
  box-shadow: 0 0 0 5px rgba(223, 138, 44, 0.12);
}

/* Shared page geometry */
body.customer-page.remote-storefront .customer-layout {
  width: min(1280px, calc(100% - 40px));
  max-width: none;
  flex: 1;
  display: block;
  margin: 0 auto;
  padding: 26px 0 48px;
}

body.customer-page.remote-storefront .storefront-hero {
  display: none;
  text-align: center;
}

body.customer-page.remote-storefront .storefront-hero h2 {
  margin: 0;
  color: var(--remote-navy);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.9px;
}

body.customer-page.remote-storefront:is(.payment-choice-mode, .phone-first-mode) .customer-layout {
  width: min(1080px, calc(100% - 40px));
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 64px 0 44px;
}

body.customer-page.remote-storefront:is(.payment-choice-mode, .phone-first-mode) .storefront-hero {
  display: block;
}

body.customer-page.remote-storefront:is(.payment-choice-mode, .phone-first-mode) :is(.customer-intro, .catalog-heading, .customer-grid, .order-workspace),
body.customer-page.remote-storefront.payment-choice-mode .checkout-steps {
  display: none !important;
}

/* Local provider selector using the remote form language. */
body.customer-page.remote-storefront :is(.payment-choice-gate, .phone-gate) {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront :is(.payment-choice-card, .phone-gate-card) {
  width: min(600px, 100%);
  margin: 38px auto 0;
  padding: 30px;
  border: 1px solid var(--remote-line);
  border-radius: 20px;
  color: var(--remote-navy);
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 44, 71, 0.08);
}

body.customer-page.remote-storefront .payment-choice-card .phone-step-pill {
  display: none;
}

body.customer-page.remote-storefront .payment-choice-card h2 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

body.customer-page.remote-storefront .payment-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.customer-page.remote-storefront .payment-choice-option {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--remote-line);
  border-radius: 14px;
  color: var(--remote-navy-soft);
  background: #fff;
  text-align: right;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body.customer-page.remote-storefront .payment-choice-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--remote-pink);
  box-shadow: 0 12px 26px rgba(214, 41, 160, 0.09);
}

body.customer-page.remote-storefront .payment-choice-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body.customer-page.remote-storefront .payment-choice-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 4px;
  border-radius: 13px;
  object-fit: contain;
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .payment-choice-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.customer-page.remote-storefront .payment-choice-copy strong {
  color: var(--remote-navy);
  font-size: 16px;
}

body.customer-page.remote-storefront .payment-choice-copy span {
  color: var(--remote-muted);
  font-size: 12px;
}

/* Phone stage */
body.customer-page.remote-storefront .phone-gate-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.customer-page.remote-storefront .phone-gate-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .phone-gate-icon svg {
  width: 25px;
  height: 25px;
}

body.customer-page.remote-storefront .phone-gate-card h2 {
  margin: 0;
  color: var(--remote-navy);
  font-size: 23px;
  font-weight: 700;
}

body.customer-page.remote-storefront .phone-info-hint {
  margin: 3px 0 0;
  color: var(--remote-muted);
  font-size: 14px;
}

body.customer-page.remote-storefront .phone-gate-card > label {
  display: block;
  margin: 25px 0 8px;
  color: var(--remote-navy-soft);
  font-size: 14px;
  font-weight: 600;
}

body.customer-page.remote-storefront .phone-gate-card > label > span {
  display: block;
  margin-bottom: 8px;
}

body.customer-page.remote-storefront .phone-gate-card #buyerPhone {
  width: 100%;
  height: 58px;
  display: block;
  padding: 0 16px;
  border: 1px solid #bfcbd7;
  border-radius: 13px;
  outline: 0;
  color: var(--remote-navy);
  background: #fff;
  box-shadow: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  letter-spacing: 1px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.customer-page.remote-storefront .phone-gate-card #buyerPhone:focus {
  border-color: var(--remote-pink);
  box-shadow: 0 0 0 4px rgba(214, 41, 160, 0.1);
}

/* Keep the PalPay number field in the visual viewport when a mobile keyboard opens. */
body.customer-page.remote-storefront .phone-gate-card #buyerPhone {
  scroll-margin-block: 20px;
}

body.customer-page.remote-storefront.phone-first-mode.phone-keyboard-open .customer-layout {
  min-height: calc(var(--store-visible-viewport-height, 100dvh) - 74px);
  padding-top: 12px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

body.customer-page.remote-storefront.phone-first-mode.phone-keyboard-open .phone-gate {
  min-height: calc(var(--store-visible-viewport-height, 100dvh) - 74px);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

body.customer-page.remote-storefront.phone-first-mode.phone-keyboard-open .phone-gate-card {
  margin-top: 12px;
}

body.customer-page.remote-storefront .phone-gate-card #buyerPhone::placeholder {
  color: #a0aab6;
}

body.customer-page.remote-storefront #confirmBuyerPhone,
body.customer-page.remote-storefront .guide-start,
body.customer-page.remote-storefront #createOrder,
body.customer-page.remote-storefront #showProof,
body.customer-page.remote-storefront #submitProofButton,
body.customer-page.remote-storefront #startNewPurchase {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--remote-pink);
  box-shadow: 0 9px 20px rgba(214, 41, 160, 0.18);
  font-weight: 600;
}

body.customer-page.remote-storefront :is(#confirmBuyerPhone, .guide-start, #createOrder, #showProof, #submitProofButton, #startNewPurchase):hover:not(:disabled) {
  background: var(--remote-pink-dark);
}

body.customer-page.remote-storefront :is(#confirmBuyerPhone, .guide-start, #createOrder, #showProof, #submitProofButton, #startNewPurchase):disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body.customer-page.remote-storefront #buyerPhoneHint {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: #bd4052;
  font-size: 13px;
}

body.customer-page.remote-storefront #buyerPhoneHint:empty {
  min-height: 0;
  margin: 0;
}

body.customer-page.remote-storefront .phone-trust-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--remote-muted);
  font-size: 13px;
}

body.customer-page.remote-storefront .phone-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.customer-page.remote-storefront .phone-trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--remote-pink);
}

/* Four-stage progress */
body.customer-page.remote-storefront .checkout-steps {
  width: min(880px, 100%);
  margin: 48px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .checkout-steps > span {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--remote-soft-text);
  font-size: 13px;
  text-align: center;
}

body.customer-page.remote-storefront .checkout-steps > span:not(:first-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block-start: 17px;
  inset-inline-end: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: var(--remote-line);
}

body.customer-page.remote-storefront .checkout-steps > span:is(.active, .done):not(:first-child)::after {
  background: #9dd7c9;
}

body.customer-page.remote-storefront .checkout-steps i {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--remote-line);
  border-radius: 50%;
  color: #7d8b9d;
  background: var(--remote-bg);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

body.customer-page.remote-storefront .checkout-steps b {
  font-size: 13px;
  font-weight: 500;
}

body.customer-page.remote-storefront .checkout-steps > span:is(.active, .done) {
  color: var(--remote-navy);
}

body.customer-page.remote-storefront .checkout-steps > span.active i {
  border-color: var(--remote-pink);
  color: #fff;
  background: var(--remote-pink);
  box-shadow: 0 0 0 5px rgba(214, 41, 160, 0.1);
}

body.customer-page.remote-storefront .checkout-steps > span.done i {
  border-color: #91cfbf;
  color: transparent;
  background: #fff;
}

body.customer-page.remote-storefront .checkout-steps > span.done i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--remote-pink);
  font-family: Arial, sans-serif;
  font-size: 15px;
}

/* Catalog */
body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .checkout-steps {
  width: min(820px, 100%);
  margin-top: 24px;
}

body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .checkout-steps i {
  width: 30px;
  height: 30px;
}

body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .checkout-steps > span:not(:first-child)::after {
  inset-block-start: 14px;
  inset-inline-end: calc(50% + 15px);
  width: calc(100% - 30px);
}

body.customer-page.remote-storefront .customer-intro {
  min-height: 74px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .customer-intro > .merchant-strip {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border: 1px solid var(--remote-line);
  border-radius: 16px;
  background: #fff;
}

body.customer-page.remote-storefront .merchant-strip > div:not(.buyer-phone-strip) {
  display: none !important;
}

body.customer-page.remote-storefront .buyer-phone-strip {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label action" "phone action";
  align-items: center;
  gap: 2px 18px;
}

body.customer-page.remote-storefront .buyer-phone-strip > span {
  grid-area: label;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .buyer-phone-strip > strong {
  grid-area: phone;
  color: var(--remote-navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.4px;
  text-align: right;
}

body.customer-page.remote-storefront .buyer-phone-strip > button {
  grid-area: action;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  color: var(--remote-navy-soft);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

body.customer-page.remote-storefront .catalog-heading {
  margin: 40px 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .catalog-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--remote-pink-dark);
  font-size: 14px;
  font-weight: 600;
}

body.customer-page.remote-storefront .catalog-heading > span::before {
  content: "▣";
  color: var(--remote-pink);
  font-size: 16px;
}

body.customer-page.remote-storefront .catalog-heading h2 {
  margin: 6px 0 3px;
  color: var(--remote-navy);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

body.customer-page.remote-storefront .catalog-heading p {
  margin: 0;
  color: var(--remote-muted);
  font-size: 15px;
}

body.customer-page.remote-storefront .customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

body.customer-page.remote-storefront .panel {
  border: 1px solid var(--remote-line);
  border-radius: 18px;
  color: var(--remote-navy);
  background: #fff;
  box-shadow: none;
}

body.customer-page.remote-storefront .catalog-panel {
  min-width: 0;
  padding: 18px;
}

body.customer-page.remote-storefront .catalog-panel > .panel-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--remote-line);
  background: transparent;
}

body.customer-page.remote-storefront .catalog-panel > .panel-header > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.customer-page.remote-storefront .catalog-panel > .panel-header h2,
body.customer-page.remote-storefront .catalog-panel > .panel-header #catalogHint,
body.customer-page.remote-storefront .catalog-panel .post-phone-support,
body.customer-page.remote-storefront #backToPhoneGate {
  display: none !important;
}

body.customer-page.remote-storefront .minimum-order-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #8c641e;
  background: #fff8e9;
  font-size: 12px;
}

body.customer-page.remote-storefront .catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.customer-page.remote-storefront #clearCart {
  min-height: 40px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--remote-line);
  border-radius: 9px;
  color: var(--remote-navy-soft);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

body.customer-page.remote-storefront .catalog-panel > .panel-body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .catalog-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--remote-line);
  overflow-x: auto;
}

body.customer-page.remote-storefront .catalog-mode-tabs button,
body.customer-page.remote-storefront .catalog-filter-tabs button {
  min-height: 44px;
  padding: 7px 15px;
  border: 0;
  border-radius: 10px;
  color: var(--remote-muted);
  background: transparent;
  white-space: nowrap;
  font-size: 14px;
}

body.customer-page.remote-storefront :is(.catalog-mode-tabs, .catalog-filter-tabs) button.active {
  color: var(--remote-pink-dark);
  background: var(--remote-pink-soft);
  font-weight: 600;
}

body.customer-page.remote-storefront .new-label {
  margin-inline-start: 3px;
  color: var(--remote-pink-dark);
  font-family: Arial, sans-serif;
  font-size: 9px;
}

body.customer-page.remote-storefront .catalog-controls {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px;
  gap: 8px;
}

body.customer-page.remote-storefront .catalog-controls :is(input, select) {
  min-width: 0;
  height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  outline: 0;
  color: var(--remote-navy-soft);
  background: #fff;
  font-size: 13px;
}

body.customer-page.remote-storefront .catalog-filter-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

body.customer-page.remote-storefront .catalog-filter-tabs button {
  min-height: 38px;
  padding-inline: 11px;
  font-size: 12px;
}

body.customer-page.remote-storefront .product-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.customer-page.remote-storefront .product-card {
  position: relative;
  min-width: 0;
  /* Reason: compact two-row cards grow only with their actual details instead of reserving empty icon and title rows. */
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--remote-line);
  border-radius: 16px;
  color: var(--remote-navy);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body.customer-page.remote-storefront .product-card:hover:not(.unavailable) {
  transform: translateY(-2px);
  border-color: #e3afd1;
  box-shadow: 0 12px 26px rgba(82, 27, 65, 0.07);
}

body.customer-page.remote-storefront .product-card.is-featured {
  border-color: #e8abd3;
  background: #fffbfe;
}

body.customer-page.remote-storefront .product-card:is(.selected, .is-selected) {
  border-color: var(--remote-pink);
  box-shadow: 0 0 0 3px rgba(214, 41, 160, 0.08);
}

body.customer-page.remote-storefront .product-card.unavailable {
  cursor: not-allowed;
  opacity: 0.5;
}

body.customer-page.remote-storefront .remote-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.customer-page.remote-storefront .remote-product-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--remote-navy-soft);
  background: #f0f4f8;
}

body.customer-page.remote-storefront .is-featured .remote-product-icon {
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .remote-product-icon svg {
  width: 21px;
  height: 21px;
}

body.customer-page.remote-storefront .product-card .product-meta .product-badge {
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--remote-pink-dark);
  background: var(--remote-pink-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

body.customer-page.remote-storefront .product-card h2.product-name {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: var(--remote-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.customer-page.remote-storefront .product-card .product-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--remote-muted);
  font-size: 12px;
}

/* Reason: specifications share a row with fixed-size quantity controls while long descriptions may wrap naturally. */
body.customer-page.remote-storefront .remote-product-details { flex: 1; min-width: 0; }
body.customer-page.remote-storefront .remote-product-details .remote-stock-note { position: static; display: block; margin-top: 3px; }
body.customer-page.remote-storefront #palpayLoyaltyMobile:not(:empty) { margin-bottom: 12px; }

body.customer-page.remote-storefront .product-card .product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .product-description {
  margin: 5px 0 0;
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .remote-product-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.customer-page.remote-storefront .product-price {
  color: var(--remote-navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

body.customer-page.remote-storefront .stepper {
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  display: grid;
  grid-template-columns: 44px 36px 44px;
  border: 1px solid #cdd7e1;
  border-radius: 10px;
  overflow: hidden;
}

body.customer-page.remote-storefront .stepper button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--remote-navy-soft);
  background: #f7f9fb;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

body.customer-page.remote-storefront .stepper button:hover:not(:disabled) {
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body.customer-page.remote-storefront .stepper output {
  min-width: 36px;
  display: grid;
  place-items: center;
  border-inline: 1px solid #d9e1e9;
  color: var(--remote-navy);
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

body.customer-page.remote-storefront .remote-stock-note {
  position: absolute;
  inset-block-end: 5px;
  inset-inline-start: 18px;
  color: #a76813;
  font-size: 10px;
}

body.customer-page.remote-storefront .empty {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--remote-soft-text);
  text-align: center;
}

/* Desktop cart */
body.customer-page.remote-storefront .customer-summary {
  position: sticky;
  top: 20px;
  padding: 20px;
  border: 1px solid var(--remote-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 43, 69, 0.06);
}

body.customer-page.remote-storefront .customer-summary > .panel-header {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid var(--remote-line);
  background: transparent;
}

body.customer-page.remote-storefront .customer-summary h3 {
  margin: 0;
  color: var(--remote-navy);
  font-size: 20px;
}

body.customer-page.remote-storefront .customer-summary :is(.order-id-line, #orderDeadline) {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .customer-summary #orderStatusBadge {
  padding: 5px 9px;
  border: 1px solid var(--remote-line);
  border-radius: 999px;
  color: var(--remote-muted);
  background: #fff;
  font-size: 11px;
}

body.customer-page.remote-storefront .customer-summary > .panel-body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .cart-items {
  min-height: 130px;
  padding: 12px 0;
}

body.customer-page.remote-storefront .cart-items > div {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf1f4;
}

body.customer-page.remote-storefront .cart-items :is(b, strong) {
  color: var(--remote-navy);
  font-size: 14px;
}

body.customer-page.remote-storefront .cart-items small {
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .totals {
  margin: 0;
  padding: 13px 0;
  border-block: 1px solid var(--remote-line);
}

body.customer-page.remote-storefront .total-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--remote-muted);
  font-size: 14px;
}

body.customer-page.remote-storefront .total-row:last-child {
  margin-top: 8px;
  color: var(--remote-navy);
  font-size: 16px;
}

body.customer-page.remote-storefront .total-row:last-child strong {
  color: var(--remote-pink-dark);
  font-family: Arial, sans-serif;
  font-size: 23px;
}

body.customer-page.remote-storefront .cart-advisor {
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  color: #8c641e;
  background: #fff8e9;
  font-size: 12px;
}

body.customer-page.remote-storefront .cart-advisor:empty {
  display: none;
}

body.customer-page.remote-storefront .customer-summary #createOrder {
  margin-top: 14px;
}

body.customer-page.remote-storefront :is(#newOrder, #copyOrderId, .lookup-form .btn, .customer-summary .icon-btn) {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  color: var(--remote-navy-soft);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

body.customer-page.remote-storefront .cancel-link-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #efbdc5;
  border-radius: 10px;
  color: #a43746;
  background: #fff;
}

body.customer-page.remote-storefront .status {
  margin-top: 9px;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .lookup-disclosure {
  margin-top: 12px;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .lookup-form {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

body.customer-page.remote-storefront .lookup-form input {
  width: 100%;
  height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--remote-line);
  border-radius: 9px;
}

/* Mobile cart */
body.customer-page.remote-storefront .mobile-cart-bar {
  display: none;
}

/* Checkout route */
body.customer-page.remote-storefront.checkout-mode .customer-layout {
  width: min(760px, calc(100% - 40px));
  padding: 26px 0 52px;
}

body.customer-page.remote-storefront.checkout-mode :is(.customer-intro, .catalog-heading, .customer-grid) {
  display: none !important;
}

body.customer-page.remote-storefront.checkout-mode .checkout-steps {
  width: min(620px, 100%);
  margin-top: 0;
}

body.customer-page.remote-storefront.checkout-mode .order-workspace {
  width: 100%;
  display: block;
  margin: 24px auto 0;
  padding: 0;
}

body.customer-page.remote-storefront .payment-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--remote-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 44, 71, 0.08);
  text-align: center;
}

body.customer-page.remote-storefront .payment-panel > .panel-header {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .payment-panel > .panel-header::before {
  content: "▤";
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
  font-family: Arial, sans-serif;
  font-size: 29px;
}

body.customer-page.remote-storefront .payment-panel > .panel-header h2 {
  margin: 0;
  color: var(--remote-navy);
  font-size: 26px;
  line-height: 1.35;
}

body.customer-page.remote-storefront #paymentPanelSubtitle {
  display: block;
  margin: 0;
  color: var(--remote-muted);
  font-size: 13px;
}

body.customer-page.remote-storefront .payment-order-reference {
  display: none;
}

body.customer-page.remote-storefront .payment-panel > .panel-body,
body.customer-page.remote-storefront .payment-layout,
body.customer-page.remote-storefront .payment-target {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.customer-page.remote-storefront .payment-wizard-mini,
body.customer-page.remote-storefront .payment-methods-title,
body.customer-page.remote-storefront .payment-method-choice,
body.customer-page.remote-storefront .palpay-wallet-head,
body.customer-page.remote-storefront .quiet-payment-line,
body.customer-page.remote-storefront .payment-free-access {
  display: none !important;
}

body.customer-page.remote-storefront .payment-order-facts {
  margin: 20px 0 0;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--remote-line);
  border-radius: 13px 13px 0 0;
  background: #fafbfd;
  overflow: hidden;
}

body.customer-page.remote-storefront .payment-order-facts > div {
  min-width: 0;
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 10px;
  text-align: right;
}

body.customer-page.remote-storefront .payment-order-facts > div + div {
  border-inline-start: 1px solid #e8edf2;
}

body.customer-page.remote-storefront .payment-order-facts span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .payment-order-facts strong {
  min-width: 0;
  overflow: hidden;
  color: var(--remote-navy);
  font: 700 11px/1.4 "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.customer-page.remote-storefront .payment-amount-card {
  min-height: 78px;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 0 0 12px 12px;
  color: #fff;
  background: var(--remote-pink);
  text-align: center;
}

body.customer-page.remote-storefront .payment-amount-card > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
}

body.customer-page.remote-storefront .payment-amount-card > strong {
  color: #fff;
  font: 800 clamp(30px, 8vw, 44px) / 1.1 Arial, sans-serif;
  letter-spacing: -0.03em;
  direction: ltr;
}

body.customer-page.remote-storefront .payment-amount-card > .icon-btn {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

body.customer-page.remote-storefront .payment-cart-review {
  margin-top: 14px;
  border: 1px solid var(--remote-line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  text-align: right;
}

body.customer-page.remote-storefront .payment-cart-review > div:first-child {
  padding: 11px 13px;
  border-bottom: 1px solid var(--remote-line);
  background: #fafbfd;
}

body.customer-page.remote-storefront .payment-cart-review h3 {
  margin: 0;
  font-size: 15px;
}

body.customer-page.remote-storefront .payment-cart-review small {
  display: block;
  margin-top: 2px;
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront #paymentCartItems {
  padding: 0 13px;
}

body.customer-page.remote-storefront #paymentCartItems > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f4;
}

body.customer-page.remote-storefront #paymentCartItems > div:last-child {
  border-bottom: 0;
}

body.customer-page.remote-storefront #paymentCartItems span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.customer-page.remote-storefront #paymentCartItems b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

body.customer-page.remote-storefront #paymentCartItems small {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront #paymentCartItems > div > strong {
  flex: 0 0 auto;
  font: 700 13px/1.3 Arial, sans-serif;
}

body.customer-page.remote-storefront .payment-method-panel,
body.customer-page.remote-storefront .payment-method-card,
body.customer-page.remote-storefront .palpay-wallet-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.customer-page.remote-storefront .palpay-wallet-card {
  margin-top: 16px;
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 1px solid #c8d9ea;
  border-radius: 12px;
  color: var(--remote-navy-soft);
  background: #f6f9fc;
  text-align: right;
}

body.customer-page.remote-storefront .merchant-mode-alert {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border: 0;
  color: var(--remote-navy-soft);
  background: transparent;
}

body.customer-page.remote-storefront .merchant-mode-alert strong {
  width: fit-content;
  margin: 3px 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5b357f;
  background: #f3eafb;
  font-size: 13px;
}

body.customer-page.remote-storefront .merchant-mode-alert span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .wallet-change-notice {
  padding: 9px;
  border: 1px solid #efd19e;
  border-radius: 9px;
  color: #875310;
  background: #fff9ec;
  font-size: 11px;
}

body.customer-page.remote-storefront .palpay-wallet-card .target-line {
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
}

/* Reason: Let the descriptive label yield space before the non-wrapping financial wallet value on narrow phones. */
body.customer-page.remote-storefront .palpay-wallet-card .target-line > span {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .palpay-wallet-card .target-line > strong {
  color: var(--remote-navy);
  font-size: 13px;
}

body.customer-page.remote-storefront .wallet-number-line > strong {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eaf2f7;
  font: 700 16px/1.2 Arial, sans-serif !important;
  letter-spacing: 0.04em;
}

body.customer-page.remote-storefront .wallet-copy {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--remote-pink);
  font-size: 10px;
}

body.customer-page.remote-storefront .palpay-ussd-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
}

body.customer-page.remote-storefront .palpay-ussd-code-row > span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .palpay-ussd-code-row code {
  grid-column: 1;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--remote-navy);
  background: #eaf2f7;
  font: 700 13px/1.2 Arial, sans-serif;
}

body.customer-page.remote-storefront .palpay-ussd-code-row button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

body.customer-page.remote-storefront .palpay-app-open-row {
  margin-top: 2px;
}

body.customer-page.remote-storefront .palpay-handoff-buttons {
  display: grid;
  gap: 8px;
}

body.customer-page.remote-storefront #openPalPayUssd {
  min-height: 60px;
  margin: 0;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2a9cf;
  border-radius: 12px;
  color: var(--remote-pink-dark);
  background: var(--remote-pink-soft);
  box-shadow: none;
  font-weight: 600;
  text-decoration: none;
}

body.customer-page.remote-storefront #openPalPayMerchant {
  display: none !important;
}

body.customer-page.remote-storefront .palpay-app-open-row > small {
  display: block;
  margin-top: 5px;
  color: var(--remote-muted);
  font-size: 10px;
  line-height: 1.5;
}

body.customer-page.remote-storefront #cancelOrderCheckout {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #efbdc5;
  border-radius: 10px;
  color: #a43746;
  background: #fff;
}

body.customer-page.remote-storefront #showProof {
  margin-top: 12px;
}

body.customer-page.remote-storefront .payment-secondary-actions {
  margin-top: 10px;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .payment-secondary-actions .row-actions,
body.customer-page.remote-storefront .verification-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.customer-page.remote-storefront .quiet-action,
body.customer-page.remote-storefront .payment-secondary-actions button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--remote-line);
  border-radius: 9px;
  color: var(--remote-navy-soft);
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

body.customer-page.remote-storefront .order-workspace > .timeline-panel {
  display: none !important;
}

body.customer-page.remote-storefront .payment-waiting-card,
body.customer-page.remote-storefront .proof-card {
  width: min(560px, 100%);
  margin: 14px auto 0;
  padding: 16px;
  border: 1px solid var(--remote-line);
  border-radius: 14px;
  background: #fff;
}

body.customer-page.remote-storefront .waiting-status-line {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: right;
}

body.customer-page.remote-storefront .waiting-status-line > div:last-child {
  display: grid;
  gap: 2px;
}

body.customer-page.remote-storefront .waiting-status-line span {
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .payment-waiting-card:not([hidden]) {
  border-color: rgba(214, 41, 160, 0.38);
  box-shadow: 0 12px 28px rgba(214, 41, 160, 0.12);
}

body.customer-page.remote-storefront .payment-waiting-card:not([hidden]) .wheel-spinner {
  animation: remote-wait-spin 0.85s linear infinite;
}

body.customer-page.remote-storefront .delivery-sms-status {
  margin: 12px 0 0;
  color: var(--remote-muted);
  font-size: 13px;
  text-align: center;
}

body.customer-page.remote-storefront.order-accepted-celebration .success-ticket {
  animation: remote-order-approved 1.8s ease-out both;
}

@keyframes remote-wait-spin { to { transform: rotate(360deg); } }
@keyframes remote-order-approved {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(214, 41, 160, 0.42); }
  30% { transform: scale(1.02); box-shadow: 0 0 0 16px rgba(214, 41, 160, 0); }
  100% { transform: scale(1); }
}

body.customer-page.remote-storefront .waiting-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.customer-page.remote-storefront .proof-card {
  display: grid;
  gap: 10px;
  text-align: right;
}

/* Reason: Receipt controls and image filenames have large intrinsic widths; let every checkout grid item shrink on narrow phones instead of widening the page and the verification overlay behind it. */
body.customer-page.remote-storefront :is(
  .customer-grid,
  .order-workspace,
  .order-workspace > .panel,
  .order-workspace > .panel > .panel-body,
  .proof-card,
  .proof-card > *,
  .proof-field,
  .proof-secondary-actions,
  .verification-actions
) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Reason: Native file inputs and receipt previews must wrap inside the proof card at 320px while retaining their normal desktop width. */
body.customer-page.remote-storefront .proof-card input[type="file"],
body.customer-page.remote-storefront .receipt-preview,
body.customer-page.remote-storefront .receipt-preview :is(img, canvas) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.customer-page.remote-storefront .proof-card label {
  display: grid;
  gap: 6px;
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .proof-card input {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  color: var(--remote-navy);
  background: #fff;
}

/* Completed state */
body.customer-page.remote-storefront #cardsPanel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--remote-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 44, 71, 0.08);
}

body.customer-page.remote-storefront #cardsPanel > .panel-header {
  display: none;
}

body.customer-page.remote-storefront #cardsPanel > .panel-body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront .success-ticket {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.customer-page.remote-storefront .success-ticket-main {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

body.customer-page.remote-storefront .success-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--remote-pink);
  background: var(--remote-pink-soft);
}

body.customer-page.remote-storefront .success-mark svg {
  width: 29px;
  height: 29px;
}

body.customer-page.remote-storefront .success-ticket-main > div:last-child {
  display: grid;
  gap: 4px;
}

body.customer-page.remote-storefront .success-ticket-main strong {
  color: var(--remote-navy);
  font-size: 26px;
}

body.customer-page.remote-storefront .success-ticket-main span {
  color: var(--remote-muted);
  font-size: 13px;
}

body.customer-page.remote-storefront .success-ticket-meta {
  margin-top: 18px;
  padding: 7px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid var(--remote-line);
  border-radius: 13px;
  background: #fafbfd;
  text-align: right;
}

body.customer-page.remote-storefront .success-ticket-meta span {
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront .success-ticket-meta strong {
  color: var(--remote-navy);
  font: 700 13px/1.4 "Segoe UI", Arial, sans-serif;
  text-align: left;
}

body.customer-page.remote-storefront .cards-result {
  display: grid;
  gap: 8px;
}

body.customer-page.remote-storefront .remote-delivered-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--remote-line);
  border-radius: 11px;
  background: #fafbfd;
  box-shadow: none;
  overflow: hidden;
}

body.customer-page.remote-storefront .issued-card-head {
  min-height: 42px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--remote-line);
  background: transparent;
}

body.customer-page.remote-storefront .issued-card-head span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .issued-card-head strong {
  color: var(--remote-navy);
  font-size: 13px;
}

body.customer-page.remote-storefront .issued-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
}

body.customer-page.remote-storefront .issued-card-grid > div {
  min-width: 0;
  padding: 9px 10px 10px;
}

body.customer-page.remote-storefront .issued-card-grid > div + div {
  border-inline-start: 1px solid var(--remote-line);
}

body.customer-page.remote-storefront .issued-card-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .issued-card-grid code {
  width: 100%;
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--remote-navy);
  background: #eef3f7;
  font: 700 15px/1.35 "Segoe UI", Arial, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}

body.customer-page.remote-storefront .issued-card-actions {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid var(--remote-line);
  background: #fff;
}

body.customer-page.remote-storefront .issued-card-actions button {
  min-height: 42px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--remote-line);
  border-radius: 9px;
  color: var(--remote-navy-soft);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

body.customer-page.remote-storefront .issued-card-actions .use-card-btn {
  border-color: var(--remote-pink);
  color: #fff;
  background: var(--remote-pink);
}

body.customer-page.remote-storefront #cardsPanel .row-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.customer-page.remote-storefront #cardsPanel .row-actions :is(button, a) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  color: var(--remote-pink-dark);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

body.customer-page.remote-storefront #cardsPanel #startNewPurchase {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--remote-pink);
}

/* Notices, dialogs and overlays */
body.customer-page.remote-storefront .notice-panel {
  margin: 22px 0 0;
  padding: 13px 15px;
  border-color: #efd19e;
  color: #875310;
  background: #fff9ec;
}

body.customer-page.remote-storefront .notice-panel .panel-header,
body.customer-page.remote-storefront .notice-panel .panel-body {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.customer-page.remote-storefront :is(.history-sheet, .confirm-overlay, .verification-overlay, .proof-method-sheet) {
  position: fixed;
  z-index: 100;
  inset: 0;
}

body.customer-page.remote-storefront :is(.history-backdrop, .confirm-backdrop, .proof-method-sheet-backdrop) {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 43, 0.56);
  backdrop-filter: blur(4px);
}

body.customer-page.remote-storefront :is(.history-panel, .confirm-dialog, .verification-overlay-card, .proof-method-sheet-panel) {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: 20px auto;
  padding: 24px;
  border: 1px solid var(--remote-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  overflow-y: auto;
}

body.customer-page.remote-storefront .history-sheet,
body.customer-page.remote-storefront .confirm-overlay,
body.customer-page.remote-storefront .verification-overlay {
  display: grid;
  place-items: center;
}

body.customer-page.remote-storefront .verification-overlay-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

body.customer-page.remote-storefront .wheel-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--remote-pink-soft);
  border-top-color: var(--remote-pink);
  border-radius: 50%;
  animation: remote-spin 0.8s linear infinite;
}

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

/* Footer */
body.customer-page.remote-storefront .storefront-footer {
  min-height: 58px;
  margin-top: auto;
  padding: 12px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-top: 1px solid var(--remote-line);
  color: var(--remote-muted);
  background: #fff;
  font-size: 13px;
}

body.customer-page.remote-storefront .storefront-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.customer-page.remote-storefront .storefront-footer span:first-child::before {
  content: "♢";
  color: var(--remote-pink);
  font-size: 16px;
}

@media (max-width: 1180px) {
  body.customer-page.remote-storefront .customer-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 900px) {
  body.customer-page.remote-storefront .customer-layout {
    width: min(760px, calc(100% - 28px));
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
  }

  body.customer-page.remote-storefront .customer-grid {
    grid-template-columns: 1fr;
  }

  body.customer-page.remote-storefront .customer-summary {
    display: none;
  }

  body.customer-page.remote-storefront .mobile-cart-bar {
    position: fixed;
    z-index: 70;
    inset-inline: 14px;
    inset-block-end: calc(10px + env(safe-area-inset-bottom));
    min-height: 68px;
    padding: 9px 10px 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e5b4d5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 42px rgba(8, 35, 61, 0.2);
    backdrop-filter: blur(10px);
  }

  body.customer-page.remote-storefront .mobile-cart-bar[hidden] {
    display: none !important;
  }

  body.customer-page.remote-storefront .mobile-cart-info {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--remote-navy);
    background: transparent;
  }

  body.customer-page.remote-storefront .mobile-cart-info span {
    color: var(--remote-muted);
    font-size: 11px;
  }

  body.customer-page.remote-storefront .mobile-cart-info strong {
    color: var(--remote-navy);
    font: 700 20px/1.25 Arial, sans-serif;
    white-space: nowrap;
  }

  body.customer-page.remote-storefront #mobileCartCheckout {
    min-height: 46px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--remote-pink);
    box-shadow: none;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  body.customer-page.remote-storefront {
    font-size: 15px;
  }

  body.customer-page.remote-storefront .customer-topbar {
    min-height: 66px;
    padding: 0 14px;
  }

  body.customer-page.remote-storefront .customer-topbar .brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.customer-page.remote-storefront .customer-topbar .brand h1 {
    max-width: 170px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.customer-page.remote-storefront .customer-topbar #serviceState {
    display: none;
  }

  body.customer-page.remote-storefront .customer-history-button {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 13px;
  }

  body.customer-page.remote-storefront:is(.payment-choice-mode, .phone-first-mode) .customer-layout {
    width: calc(100% - 24px);
    padding: 38px 0 28px;
  }

  body.customer-page.remote-storefront .storefront-hero h2 {
    margin: 0;
    font-size: 32px;
  }

  body.customer-page.remote-storefront :is(.payment-choice-card, .phone-gate-card) {
    margin-top: 28px;
    padding: 21px 17px;
    border-radius: 17px;
  }

  body.customer-page.remote-storefront .payment-choice-card h2 {
    font-size: 20px;
  }

  body.customer-page.remote-storefront .payment-choice-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.customer-page.remote-storefront .payment-choice-option {
    min-height: 74px;
    padding: 11px 12px;
  }

  body.customer-page.remote-storefront .payment-choice-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  body.customer-page.remote-storefront .phone-gate-card h2 {
    font-size: 20px;
  }

  body.customer-page.remote-storefront .phone-info-hint {
    font-size: 13px;
  }

  body.customer-page.remote-storefront .phone-gate-card #buyerPhone {
    padding-inline: 11px;
    font-size: 17px;
  }

  body.customer-page.remote-storefront .phone-trust-row {
    flex-direction: row;
    gap: 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  body.customer-page.remote-storefront .phone-trust-row span {
    gap: 4px;
  }

  body.customer-page.remote-storefront .phone-trust-row svg {
    width: 14px;
    height: 14px;
  }

  body.customer-page.remote-storefront .checkout-steps {
    margin-top: 34px;
  }

  body.customer-page.remote-storefront .checkout-steps > span {
    font-size: 10px;
  }

  body.customer-page.remote-storefront .checkout-steps i {
    width: 30px;
    height: 30px;
  }

  body.customer-page.remote-storefront .checkout-steps > span:not(:first-child)::after {
    inset-block-start: 14px;
    inset-inline-end: calc(50% + 15px);
    width: calc(100% - 30px);
  }

  body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .customer-layout {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  body.customer-page.remote-storefront .customer-intro,
  body.customer-page.remote-storefront .customer-intro > .merchant-strip {
    min-height: 66px;
  }

  body.customer-page.remote-storefront .customer-intro > .merchant-strip {
    padding: 10px 11px;
  }

  body.customer-page.remote-storefront .buyer-phone-strip > button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
  }

  body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .checkout-steps {
    margin-top: 19px;
  }

  body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .checkout-steps b {
    display: none;
  }

  body.customer-page.remote-storefront .catalog-heading {
    margin: 28px 0 17px;
  }

  body.customer-page.remote-storefront .catalog-heading h2 {
    font-size: 27px;
  }

  body.customer-page.remote-storefront .catalog-heading p {
    font-size: 13px;
  }

  body.customer-page.remote-storefront .catalog-panel {
    padding: 11px;
    border-radius: 15px;
  }

  body.customer-page.remote-storefront .catalog-panel > .panel-header {
    min-height: 40px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  body.customer-page.remote-storefront .minimum-order-note {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 10px;
  }

  body.customer-page.remote-storefront #clearCart {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px;
  }

  body.customer-page.remote-storefront .catalog-mode-tabs {
    margin-inline: -2px;
    padding-bottom: 10px;
  }

  body.customer-page.remote-storefront .catalog-mode-tabs button {
    padding-inline: 11px;
    font-size: 12px;
  }

  body.customer-page.remote-storefront .catalog-controls {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.customer-page.remote-storefront .catalog-controls select,
  body.customer-page.remote-storefront .catalog-filter-tabs {
    display: none;
  }

  body.customer-page.remote-storefront .product-cards {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.customer-page.remote-storefront .product-card {
    min-height: 0;
    padding: 11px 12px;
    border-radius: 13px;
  }

  body.customer-page.remote-storefront .product-card:hover:not(.unavailable) {
    transform: none;
  }

  body.customer-page.remote-storefront .remote-product-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.customer-page.remote-storefront .remote-product-icon svg {
    width: 18px;
    height: 18px;
  }

  body.customer-page.remote-storefront .remote-product-head em {
    padding: 3px 8px;
    font-size: 10px;
  }

  body.customer-page.remote-storefront .product-card h2.product-name {
    margin: 0;
    font-size: 16px;
  }

  body.customer-page.remote-storefront .product-card .product-meta {
    gap: 3px 6px;
    font-size: 11px;
  }

  body.customer-page.remote-storefront .product-description {
    display: block;
  }

  body.customer-page.remote-storefront .remote-product-footer {
    margin-top: 8px;
    gap: 9px;
  }

  body.customer-page.remote-storefront .product-price {
    font-size: 20px;
  }

  body.customer-page.remote-storefront .stepper {
    height: 44px;
    grid-template-columns: 44px 34px 44px;
  }

  body.customer-page.remote-storefront .stepper output {
    min-width: 34px;
  }

  body.customer-page.remote-storefront .remote-stock-note {
    position: static;
    display: block;
    margin-top: 4px;
    font-size: 10px;
  }

  body.customer-page.remote-storefront.checkout-mode .customer-layout {
    width: calc(100% - 20px);
    padding: 14px 0 34px;
  }

  body.customer-page.remote-storefront.checkout-mode .checkout-steps {
    margin-top: 0;
  }

  body.customer-page.remote-storefront.checkout-mode .checkout-steps b {
    display: none;
  }

  body.customer-page.remote-storefront.checkout-mode .order-workspace {
    margin-top: 18px;
  }

  body.customer-page.remote-storefront .payment-panel,
  body.customer-page.remote-storefront #cardsPanel {
    padding: 16px 13px;
    border-radius: 17px;
  }

  body.customer-page.remote-storefront .payment-panel > .panel-header::before,
  body.customer-page.remote-storefront .success-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  body.customer-page.remote-storefront .payment-panel > .panel-header h2,
  body.customer-page.remote-storefront .success-ticket-main strong {
    font-size: 22px;
  }

  body.customer-page.remote-storefront #paymentPanelSubtitle,
  body.customer-page.remote-storefront .success-ticket-main span {
    font-size: 12px;
    line-height: 1.55;
  }

  body.customer-page.remote-storefront .payment-order-facts {
    margin-top: 13px;
    padding: 0;
  }

  body.customer-page.remote-storefront .payment-order-facts > div {
    min-height: 48px;
    padding: 6px 10px;
  }

  body.customer-page.remote-storefront .payment-amount-card {
    min-height: 64px;
    padding: 8px 10px;
  }

  body.customer-page.remote-storefront .payment-amount-card > span {
    font-size: 11px;
  }

  body.customer-page.remote-storefront .payment-amount-card > strong {
    font-size: 32px;
  }

  body.customer-page.remote-storefront .payment-cart-review {
    margin-top: 10px;
  }

  body.customer-page.remote-storefront .payment-cart-review > div:first-child {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.customer-page.remote-storefront .payment-cart-review h3 {
    font-size: 13px;
  }

  body.customer-page.remote-storefront .payment-cart-review small {
    margin: 0;
    font-size: 10px;
    white-space: nowrap;
  }

  body.customer-page.remote-storefront #paymentCartItems {
    padding-inline: 10px;
  }

  body.customer-page.remote-storefront #paymentCartItems > div {
    min-height: 45px;
  }

  body.customer-page.remote-storefront #paymentCartItems b {
    font-size: 12px;
  }

  body.customer-page.remote-storefront #paymentCartItems :is(small, strong) {
    font-size: 10px;
  }

  body.customer-page.remote-storefront .palpay-wallet-card {
    margin-top: 10px;
    padding: 10px;
    gap: 7px;
  }

  body.customer-page.remote-storefront .merchant-mode-alert strong {
    font-size: 12px;
  }

  body.customer-page.remote-storefront #openPalPayUssd {
    min-height: 52px;
  }

  body.customer-page.remote-storefront #showProof {
    min-height: 46px;
    margin-top: 10px;
  }

  body.customer-page.remote-storefront .success-ticket-meta {
    margin-top: 13px;
  }

  body.customer-page.remote-storefront .issued-card-actions button {
    min-height: 44px;
  }

  body.customer-page.remote-storefront .mobile-cart-bar {
    inset-inline: 9px;
  }

  body.customer-page.remote-storefront #mobileCartCheckout {
    padding-inline: 12px;
    font-size: 13px;
  }

  body.customer-page.remote-storefront .storefront-footer {
    padding: 12px 14px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 11px;
  }
}

/* Reason: Isolate every remaining state from the legacy storefront cascade after all older compatibility rules have loaded. */
body.customer-page.remote-storefront .btn {
  background-image: none !important;
}

body.customer-page.remote-storefront :is(.btn.secondary, .icon-btn, .quiet-action) {
  border-color: var(--remote-line) !important;
  color: var(--remote-navy-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.customer-page.remote-storefront :is(.payment-choice-option, .payment-choice-logo) {
  box-shadow: none !important;
}

body.customer-page.remote-storefront .catalog-mode-tabs {
  border: 0 !important;
  border-bottom: 1px solid var(--remote-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-page.remote-storefront :is(.catalog-mode-tabs, .catalog-filter-tabs) button.active {
  box-shadow: none !important;
}

body.customer-page.remote-storefront :is(.catalog-controls input, .catalog-controls select, .lookup-form input):focus,
body.customer-page.remote-storefront .proof-card input:focus,
body.customer-page.remote-storefront .primary-proof-field.method-visible input {
  border-color: var(--remote-pink) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(169, 27, 128, 0.1) !important;
}

body.customer-page.remote-storefront.checkout-mode :is(
  .simple-pay-card .payment-amount-card .icon-btn,
  .palpay-wallet-card .wallet-copy,
  .payment-cancel-button,
  .payment-waiting-card .quiet-action,
  .verification-actions .quiet-action
) {
  box-shadow: none !important;
  font-weight: 600 !important;
}

/* Reason: Restore proof-method visibility without reviving a server-disabled hidden field. */
body.customer-page.remote-storefront .proof-card .proof-field {
  display: none !important;
}

body.customer-page.remote-storefront .proof-card .proof-field.method-visible:not([hidden]) {
  display: grid !important;
}

body.customer-page.remote-storefront :is(.alternate-proof-trigger, .phone-proof-reset) {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--remote-line) !important;
  border-radius: 10px !important;
  color: var(--remote-pink-dark) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.customer-page.remote-storefront .proof-method-tabs button {
  min-height: 44px !important;
  padding: 8px 11px !important;
  border: 1px solid var(--remote-line) !important;
  border-radius: 10px !important;
  color: var(--remote-navy-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.customer-page.remote-storefront .proof-method-tabs button.active {
  border-color: #d598c2 !important;
  color: var(--remote-pink-dark) !important;
  background: var(--remote-pink-soft) !important;
}

body.customer-page.remote-storefront .simple-proof-head strong::before {
  color: var(--remote-pink) !important;
  background: var(--remote-pink-soft) !important;
  box-shadow: none !important;
}

/* Reason: Center every sheet and dialog by resetting physical offsets inherited from the retired bottom-sheet implementation. */
body.customer-page.remote-storefront :is(.history-sheet, .confirm-overlay, .verification-overlay, .proof-method-sheet):not([hidden]) {
  display: grid !important;
  place-items: center !important;
}

body.customer-page.remote-storefront :is(.history-sheet, .confirm-overlay, .verification-overlay, .proof-method-sheet)[hidden] {
  display: none !important;
}

body.customer-page.remote-storefront :is(.history-panel, .confirm-dialog, .verification-overlay-card, .proof-method-sheet-panel) {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
}

body.customer-page.remote-storefront :is(.history-head, .proof-method-sheet-head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.customer-page.remote-storefront :is(.history-head, .proof-method-sheet-head, .confirm-dialog) h2,
body.customer-page.remote-storefront .proof-method-sheet-head h3 {
  margin: 0;
  color: var(--remote-navy);
  font-size: 20px;
  font-weight: 700;
}

body.customer-page.remote-storefront .confirm-dialog p {
  margin: 7px 0 18px;
  color: var(--remote-muted);
  font-size: 13px;
}

body.customer-page.remote-storefront .confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.customer-page.remote-storefront #confirmCancelOrder.btn.danger {
  border: 0 !important;
  color: #fff !important;
  background: #b91c1c !important;
  box-shadow: 0 9px 20px rgba(185, 28, 28, 0.18) !important;
  font-weight: 700 !important;
}

body.customer-page.remote-storefront #confirmCancelOrder.btn.danger:hover:not(:disabled) {
  background: #991b1b !important;
}

body.customer-page.remote-storefront :is(
  .confirm-actions [data-cancel-dialog-close],
  .history-head [data-close-history],
  .proof-method-sheet-head [data-close-proof-sheet]
) {
  border: 1px solid var(--remote-line) !important;
  color: var(--remote-navy-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.customer-page.remote-storefront .history-item {
  border: 1px solid var(--remote-line) !important;
  color: var(--remote-navy) !important;
  background: #fafbfd !important;
  box-shadow: none !important;
}

body.customer-page.remote-storefront .verification-countdown {
  color: var(--remote-pink-dark) !important;
  background: var(--remote-pink-soft) !important;
  font-weight: 700 !important;
}

body.customer-page.remote-storefront .issued-card-empty {
  min-height: 120px;
  border: 1px solid var(--remote-line) !important;
  border-radius: 12px;
  background: #fafbfd !important;
}

body.customer-page.remote-storefront .issued-card-empty .btn.ghost {
  border: 1px solid var(--remote-line) !important;
  color: var(--remote-pink-dark) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.customer-page.remote-storefront :is(.credit-panel, .credit-option) {
  box-shadow: none !important;
}

@media (max-width: 360px) {
  body.customer-page.remote-storefront .phone-trust-row {
    gap: 5px;
    font-size: 10px;
  }

  body.customer-page.remote-storefront .issued-card-grid {
    grid-template-columns: 1fr;
  }

  body.customer-page.remote-storefront .issued-card-grid > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--remote-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.customer-page.remote-storefront :is(.payment-choice-option, .product-card) {
    transition: none;
  }

  body.customer-page.remote-storefront .wheel-spinner {
    animation: none;
  }
}

/* Reason: Neutralize legacy high-specificity storefront rules so the accepted remote skin is the single visual authority. */
body.customer-page.remote-storefront .customer-topbar {
  flex-direction: row !important;
}

body.customer-page.remote-storefront .customer-topbar .brand,
body.customer-page.remote-storefront .customer-topbar .top-actions {
  width: auto !important;
}

body.customer-page.remote-storefront:is(.payment-choice-mode, .phone-first-mode) .storefront-hero {
  display: block !important;
}

body.customer-page.remote-storefront :is(.payment-choice-gate, .phone-gate) {
  min-height: 0 !important;
  flex: 0 0 auto !important;
  place-items: initial !important;
  padding: 0 !important;
}

body.customer-page.remote-storefront.payment-choice-mode .checkout-steps {
  display: none !important;
}

body.customer-page.remote-storefront.phone-first-mode .checkout-steps,
body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode) .checkout-steps {
  display: grid !important;
}

body.customer-page.remote-storefront .checkout-steps {
  min-height: 0 !important;
  margin: 48px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-page.remote-storefront .checkout-steps > span,
body.customer-page.remote-storefront .checkout-steps > span:is(.active, .done) {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode) .checkout-steps {
  margin-top: 24px !important;
}

body.customer-page.remote-storefront.checkout-mode .checkout-steps {
  margin-top: 0 !important;
}

body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .customer-intro {
  display: block !important;
}

body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode):not(.checkout-mode) .customer-intro > .merchant-strip {
  display: flex !important;
}

body.customer-page.remote-storefront .customer-intro > .merchant-strip {
  padding: 13px 18px !important;
}

body.customer-page.remote-storefront .merchant-strip .buyer-phone-strip {
  position: static;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.customer-page.remote-storefront .merchant-strip .buyer-phone-strip .mini {
  position: static !important;
  inset: auto !important;
  min-height: 44px;
  padding: 8px 14px;
  justify-self: end;
  border: 1px solid var(--remote-line);
  border-radius: 10px;
  color: var(--remote-navy-soft);
  background: #fff;
  font-size: 14px;
}

body.customer-page.remote-storefront.checkout-mode .customer-intro {
  display: none !important;
}

body.customer-page.remote-storefront.checkout-mode #paymentPanelSubtitle {
  display: block !important;
}

body.customer-page.remote-storefront :is(.phone-gate-card h2, .payment-choice-card h2, .payment-panel > .panel-header h2)::before,
body.customer-page.remote-storefront .product-card::before,
body.customer-page.remote-storefront .product-card::after {
  content: none !important;
  display: none !important;
}

body.customer-page.remote-storefront :is(#confirmBuyerPhone, .guide-start, #createOrder, #showProof, #submitProofButton, #startNewPurchase).btn,
body.customer-page.remote-storefront #mobileCartCheckout.btn,
body.customer-page.remote-storefront .issued-card-actions .use-card-btn.btn {
  border-color: transparent !important;
  color: #fff !important;
  background: var(--remote-pink) !important;
  box-shadow: 0 9px 20px rgba(214, 41, 160, 0.18) !important;
}

body.customer-page.remote-storefront :is(#confirmBuyerPhone, .guide-start, #createOrder, #showProof, #submitProofButton, #startNewPurchase).btn:hover:not(:disabled),
body.customer-page.remote-storefront #mobileCartCheckout.btn:hover:not(:disabled),
body.customer-page.remote-storefront .issued-card-actions .use-card-btn.btn:hover:not(:disabled) {
  background: var(--remote-pink-dark) !important;
}

body.customer-page.remote-storefront .product-card {
  display: block !important;
  gap: 0 !important;
  overflow: visible !important;
}

body.customer-page.remote-storefront .product-card .product-price {
  align-self: auto;
  padding: 0;
  border-radius: 0;
  color: var(--remote-navy);
  background: transparent;
  font-size: 25px;
  font-weight: 700;
}

body.customer-page.remote-storefront .product-card:is(.selected, .is-selected) {
  border-color: var(--remote-pink) !important;
  background: #fffbfe !important;
  box-shadow: 0 0 0 3px rgba(214, 41, 160, 0.08) !important;
}

body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card {
  min-height: 78px;
  padding: 12px 16px;
  display: flex;
  grid-template: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 0 0 12px 12px;
  color: #fff;
  background: var(--remote-pink) !important;
  box-shadow: none;
}

body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
}

body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card > span::before {
  content: none !important;
  display: none !important;
}

body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card #payAmount {
  color: #fff;
  font: 800 clamp(30px, 8vw, 44px) / 1.1 Arial, sans-serif;
}

body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card .icon-btn {
  min-height: 36px;
  align-self: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 11px;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card {
  gap: 8px;
  padding: 13px;
  border: 1px solid #c8d9ea;
  border-radius: 12px;
  color: var(--remote-navy-soft);
  background: #f6f9fc !important;
  box-shadow: none;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card::before {
  content: none !important;
  display: none !important;
}

body.customer-page.remote-storefront.checkout-mode .merchant-mode-alert {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border: 0;
  color: var(--remote-navy-soft);
  background: transparent;
  box-shadow: none;
}

body.customer-page.remote-storefront.checkout-mode .merchant-mode-alert::before,
body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .target-line span::before {
  content: none !important;
  display: none !important;
}

body.customer-page.remote-storefront.checkout-mode .merchant-mode-alert strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5b357f;
  background: #f3eafb;
  font-size: 13px;
}

body.customer-page.remote-storefront.checkout-mode .merchant-mode-alert span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .target-line {
  min-height: 0;
  padding: 0;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .target-line span {
  color: var(--remote-muted);
  font-size: 12px;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .target-line strong,
body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .wallet-merchant-line strong {
  color: var(--remote-navy);
  font-size: 13px;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .wallet-number-line strong {
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--remote-navy);
  background: #eaf2f7;
  font: 700 16px/1.2 Arial, sans-serif;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .wallet-copy {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--remote-pink) !important;
  font-size: 0;
}

body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card .wallet-copy::before {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

body.customer-page.remote-storefront.checkout-mode #openPalPayUssd.palpay-open-app {
  width: 100%;
  min-height: 60px;
  border: 1px solid #e2a9cf;
  border-radius: 12px;
  color: var(--remote-pink-dark);
  background: var(--remote-pink-soft) !important;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
}

body.customer-page.remote-storefront.checkout-mode .palpay-handoff-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr !important;
}

body.customer-page.remote-storefront.checkout-mode #openPalPayUssd.palpay-open-app::before {
  color: var(--remote-pink);
}

body.customer-page.remote-storefront.checkout-mode .palpay-app-open-row small {
  color: var(--remote-muted);
  font-size: 10px;
}

body.customer-page.remote-storefront.checkout-mode #showProof.proof-reveal {
  min-height: 50px;
  border-radius: 12px;
  color: #fff;
  background: var(--remote-pink) !important;
  box-shadow: 0 9px 20px rgba(214, 41, 160, 0.18);
  font-size: 15px;
  font-weight: 600;
}

body.customer-page.remote-storefront.checkout-mode #showProof.proof-reveal::before {
  content: none !important;
  display: none !important;
}

body.customer-page.remote-storefront .customer-toast {
  display: none !important;
}

body.customer-page.remote-storefront .delivery-order-facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--remote-line);
  border-radius: 13px;
  background: #fafbfd;
  overflow: hidden;
}

body.customer-page.remote-storefront .delivery-order-facts > div {
  min-width: 0;
  min-height: 50px;
  padding: 7px 10px;
  display: grid;
  align-content: center;
  gap: 2px;
  text-align: right;
}

body.customer-page.remote-storefront .delivery-order-facts > div + div:not(.delivery-order-total) {
  border-inline-start: 1px solid #e8edf2;
}

body.customer-page.remote-storefront .delivery-order-facts span {
  color: var(--remote-muted);
  font-size: 11px;
}

body.customer-page.remote-storefront .delivery-order-facts strong {
  min-width: 0;
  overflow: hidden;
  color: var(--remote-navy);
  font: 700 11px/1.4 "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.customer-page.remote-storefront .delivery-order-facts .delivery-order-total {
  min-height: 64px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--remote-pink);
  text-align: center;
}

body.customer-page.remote-storefront .delivery-order-facts .delivery-order-total span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
}

body.customer-page.remote-storefront .delivery-order-facts .delivery-order-total strong {
  color: #fff;
  font: 800 32px/1.1 Arial, sans-serif;
}

body.customer-page.remote-storefront .delivery-cart-review {
  margin-top: 10px;
  border: 1px solid var(--remote-line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  text-align: right;
}

body.customer-page.remote-storefront .delivery-cart-review > div:first-child {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--remote-line);
  background: #fafbfd;
}

body.customer-page.remote-storefront .delivery-cart-review h3 {
  margin: 0;
  font-size: 13px;
}

body.customer-page.remote-storefront .delivery-cart-review > div:first-child small {
  color: var(--remote-muted);
  font-size: 10px;
}

body.customer-page.remote-storefront .delivery-cart-review > div:last-child {
  padding: 0 10px;
}

body.customer-page.remote-storefront .delivery-cart-review p {
  min-height: 45px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f4;
}

body.customer-page.remote-storefront .delivery-cart-review p:last-child {
  border-bottom: 0;
}

body.customer-page.remote-storefront .delivery-cart-review p > span {
  display: grid;
  gap: 2px;
}

body.customer-page.remote-storefront .delivery-cart-review p b {
  color: var(--remote-navy);
  font-size: 12px;
}

body.customer-page.remote-storefront .delivery-cart-review p :is(small, strong) {
  color: var(--remote-muted);
  font-size: 10px;
}

@media (max-width: 760px) {
  body.customer-page.remote-storefront .customer-topbar {
    min-height: 66px !important;
    padding: 0 14px !important;
    flex-direction: row !important;
    gap: 12px !important;
  }

  body.customer-page.remote-storefront .customer-topbar .brand {
    width: auto !important;
    gap: 11px;
  }

  body.customer-page.remote-storefront .customer-topbar .brand-logo {
    width: 36px !important;
    height: 36px !important;
  }

  body.customer-page.remote-storefront .customer-topbar .brand h1 {
    font-size: 18px !important;
  }

  body.customer-page.remote-storefront .customer-topbar .top-actions {
    width: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
  }

  body.customer-page.remote-storefront .customer-topbar .customer-history-button {
    width: auto !important;
    min-height: 44px;
    padding: 7px 10px !important;
    border-radius: 11px;
    font-size: 13px !important;
  }

  body.customer-page.remote-storefront .customer-intro > .merchant-strip {
    padding: 10px 11px !important;
  }
}

@media (max-width: 640px) {
  body.customer-page.remote-storefront .checkout-steps {
    margin-top: 34px !important;
  }

  body.customer-page.remote-storefront.phone-first-mode .checkout-steps {
    margin-top: 23px !important;
  }

  body.customer-page.remote-storefront:not(.payment-choice-mode):not(.phone-first-mode) .checkout-steps {
    margin-top: 19px !important;
  }

  body.customer-page.remote-storefront.checkout-mode .checkout-steps {
    margin-top: 0 !important;
  }

  body.customer-page.remote-storefront .phone-gate-card > label {
    margin-bottom: 0;
  }

  body.customer-page.remote-storefront :is(.payment-choice-card, .phone-gate-card) {
    margin-top: 18px;
  }

  body.customer-page.remote-storefront .phone-gate-card #confirmBuyerPhone {
    margin-top: 11px;
  }

  body.customer-page.remote-storefront .phone-trust-row {
    margin-top: 9px;
  }

  body.customer-page.remote-storefront .checkout-steps b {
    font-size: 9.5px;
    white-space: nowrap;
  }

  body.customer-page.remote-storefront .phone-gate-card #buyerPhoneHint:empty {
    display: none !important;
  }

  body.customer-page.remote-storefront .remote-delivered-card::before,
  body.customer-page.remote-storefront .remote-delivered-card::after {
    content: none !important;
    display: none !important;
  }
  body.customer-page.remote-storefront .product-card .product-price {
    font-size: 20px;
  }

  body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card {
    min-height: 64px;
    padding: 8px 10px;
  }

  body.customer-page.remote-storefront.checkout-mode .simple-pay-card .amount-line.payment-amount-card #payAmount {
    font-size: 32px;
  }

  body.customer-page.remote-storefront.checkout-mode .palpay-wallet-card {
    gap: 7px;
    padding: 10px;
  }

  body.customer-page.remote-storefront.checkout-mode #openPalPayUssd.palpay-open-app {
    min-height: 52px;
  }
}

/* Reason: Map every legacy teal token that can still cascade into this page onto the approved PalPay brand palette. */
body.customer-page.remote-storefront {
  --store-teal: var(--remote-pink);
  --store-teal-bright: var(--remote-pink-bright);
  --store-line-strong: rgba(169, 27, 128, 0.28);
  --store-gradient: linear-gradient(135deg, var(--remote-pink-bright), var(--remote-pink-dark));
  --checkout-teal: var(--remote-pink);
  --checkout-teal-deep: var(--remote-pink-dark);
}

/* Reason: Remove the delivered-card legacy accent globally; its remote card already has a complete border hierarchy. */
body.customer-page.remote-storefront .remote-delivered-card::before,
body.customer-page.remote-storefront .remote-delivered-card::after {
  content: none !important;
  display: none !important;
}

/* Reason: Keep secondary payment controls inside their native disclosure despite legacy important display declarations. */
body.customer-page.remote-storefront .payment-secondary-actions:not([open]) > :not(summary) {
  display: none !important;
}

body.customer-page.remote-storefront .payment-secondary-actions[open] > .simple-payment-actions {
  display: grid !important;
}

/* Reason: Expose cart clearing only when application state has explicitly removed the hidden attribute. */
body.customer-page.remote-storefront #clearCart:not([hidden]) {
  display: inline-flex !important;
}

/* Reason: Retain the approved simple three-tab catalog instead of reintroducing the legacy search/sort stack. */
body.customer-page.remote-storefront .catalog-controls {
  display: none !important;
}

/* Reason: Present mobile cart totals as read-only information while their desktop summary target is intentionally absent. */
@media (max-width: 900px) {
  body.customer-page.remote-storefront .mobile-cart-info {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    pointer-events: none;
  }

  body.customer-page.remote-storefront .mobile-cart-info:focus-visible {
    outline: 0;
  }
}

/* Reason: Show a compact status result when a terminal order hides both payment and delivered-card surfaces. */
body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) > .timeline-panel {
  width: min(560px, 100%);
  display: block !important;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--remote-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) > .timeline-panel > .panel-header,
body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) > .timeline-panel :is(#orderLivePanel, #orderTimeline) {
  display: none !important;
}

body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) .customer-next-actions {
  margin: 0;
}

body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) .simple-result-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--remote-line);
  border-radius: 13px;
  color: var(--remote-navy);
  background: #fafbfd;
  box-shadow: none;
}

body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) .simple-result-card span {
  color: var(--remote-muted);
}

@media (max-width: 640px) {
  body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) > .timeline-panel {
    padding: 11px;
    border-radius: 15px;
  }

  body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) .simple-result-card {
    min-height: 68px;
    gap: 10px;
    padding: 10px;
  }

  body.customer-page.remote-storefront:not(.checkout-mode) .order-workspace:not([hidden]) .simple-result-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
    font-size: 18px;
  }
}

/* Reason: Give the delayed-card empty state enough breathing room for its explanatory text and recovery action. */
body.customer-page.remote-storefront .issued-card-empty {
  gap: 12px;
  padding: 18px !important;
}

/* Reason: Keep summary, maintenance, and residual-credit surfaces inside the approved remote PalPay color system. */
body.customer-page.remote-storefront :is(#totalAmount, #mobileCartTotal) {
  color: var(--remote-pink-dark) !important;
}

body.customer-page.remote-storefront #maintenancePanel.notice-panel {
  border-color: var(--remote-line) !important;
  color: var(--remote-navy) !important;
  background: var(--remote-pink-soft) !important;
}

body.customer-page.remote-storefront #maintenancePanel :is(h2, p) {
  color: inherit !important;
}

body.customer-page.remote-storefront .credit-panel {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--remote-line) !important;
  border-radius: 13px;
  color: var(--remote-navy);
  background: var(--remote-pink-soft) !important;
}

body.customer-page.remote-storefront .credit-panel-head strong,
body.customer-page.remote-storefront .credit-option strong {
  color: var(--remote-pink-dark) !important;
}

body.customer-page.remote-storefront :is(.credit-panel-head span, .credit-note, .credit-option small) {
  color: var(--remote-muted) !important;
}

body.customer-page.remote-storefront .credit-option {
  min-height: 52px;
  border: 1px solid var(--remote-line) !important;
  border-radius: 11px;
  color: var(--remote-navy) !important;
  background: #fff !important;
}

/* Reason: Meet the 44px touch-target floor for every customer-facing copy control while preserving hidden state. */
body.customer-page.remote-storefront :is(
  button[data-copy-target],
  #copyOrderId,
  #copyPaymentSummary,
  #copyCards
):not([hidden]) {
  width: auto !important;
  min-width: 44px !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

body.customer-page.remote-storefront .wallet-copy:not([hidden]) {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Reason: keep the stage-aware Back action visually consistent with the accepted storefront and large enough for touch. */
body.customer-page.remote-storefront .customer-page-back:not([hidden]) {
  min-width: 78px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--remote-line);
  border-radius: 11px;
  color: var(--remote-pink-dark);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.customer-page.remote-storefront .customer-page-back svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.customer-page.remote-storefront .customer-page-back:hover,
body.customer-page.remote-storefront .customer-page-back:focus-visible {
  border-color: var(--remote-pink);
  background: var(--remote-pink-soft);
  outline: none;
}

@media (max-width: 420px) {
  body.customer-page.remote-storefront .customer-page-back:not([hidden]) {
    min-width: 66px;
    padding-inline: 9px;
    font-size: 13px;
  }
}

/* Reason: keep the shared points wallet inside the existing basket without adding another page section. */
.remote-storefront #palpayLoyalty{margin-block:4px 8px}.remote-storefront #palpayLoyaltyReceipt{margin:16px}

/* Reason: mobile shoppers see the wallet after products while the fixed checkout remains reachable below it. */
.remote-storefront #palpayLoyaltyMobile:not(:empty){margin-block-start:16px}
