#ld-panel.ld-paying .ld-bd > :is(.ld-tot,.ld-note),
#ld-panel.ld-paying .ld-tier,
#ld-panel.ld-paying .ld-ft > :not(.ld-payment),
.ld-payment [hidden] { display: none !important; }
#ld-panel.ld-paying .ld-ft { max-block-size: calc(100% - 78px); overflow-y: auto; padding-block-start: 16px; }
.ld-payment { min-width: 0; }
.ld-payment-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.ld-payment-field { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: 13px; font-weight: 600; }
.ld-payment-field > .in { width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; font-weight: 400; font-size: 16px; }
.ld-payment-field > .in:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ld-payment-field [data-country-trigger] { padding-inline-end: 8px; }
.ld-payment-field [data-country-trigger] svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bg2); }
.ld-payment [data-country-panel]::backdrop { background: rgb(17 17 17 / .38); }
.ld-payment [data-country-panel] .country-picker-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; padding: 2px 4px 4px; gap: 8px; }
.ld-payment [data-country-panel] .country-picker-title { grid-column: 1; grid-row: 1; padding-inline-start: 6px; font-size: 17px; }
.ld-payment [data-country-panel] [data-country-close] { grid-column: 2; grid-row: 1; }
.ld-payment [data-country-panel] [data-country-search] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.ld-payment-summary { margin: 16px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); }
.ld-payment-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 14px; }
.ld-payment-summary dt { color: var(--mute); }
.ld-payment-summary dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; }
.ld-payment-summary [data-amount-row="discount"] :is(dt,dd) { color: #a52954; }
.ld-payment-summary [data-amount-row="total"] { margin-top: 7px; padding: 9px 0 1px; border-top: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.ld-payment-summary [data-amount-row="total"] dt { color: var(--ink); }
.ld-payment-summary [data-amount-row="total"] dd { font-size: 20px; }
.ld-payment-note { margin: 0 0 12px; color: var(--mute); font-size: 13px; line-height: 1.4; }
.ld-payment-note:empty { display: none; }
.ld-shipping-progress { margin: 0 0 12px; padding: 5px 3px 0; }
.ld-payment:has(.ld-payment-summary[aria-busy="true"]) [data-tc-pay]:disabled { opacity: 1; }
.ld-payment:has(.ld-payment-summary[aria-busy="true"]) [data-tc-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ld-shipping-progress p { margin: 0 0 7px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.ld-shipping-track {
  --shipping-direction: to right;
  height: 4px;
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--line);
  /* The stationary cut preserves the tiers while one fill moves across both. */
  mask-image: linear-gradient(var(--shipping-direction),
    #000 0 calc(var(--shipping-split) - 1.5px),
    transparent calc(var(--shipping-split) - 1.5px) calc(var(--shipping-split) + 1.5px),
    #000 calc(var(--shipping-split) + 1.5px));
}
.ld-shipping-track::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dot);
  transform: scaleX(var(--shipping-ratio, 0));
  transform-origin: left center;
}
.ld-shipping-track:dir(rtl) { --shipping-direction: to left; }
.ld-shipping-track:dir(rtl)::before { transform-origin: right center; }
@media (prefers-reduced-motion: no-preference) {
  .ld-shipping-track::before { transition: transform 320ms cubic-bezier(.2, .75, .25, 1); }
}
.ld-shipping-marks { position: relative; display: flex; justify-content: space-between; margin-top: 4px; color: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.ld-shipping-marks span:nth-child(2) { position: absolute; inset-inline-start: var(--shipping-split); translate: -50% 0; }
.ld-shipping-marks:dir(rtl) span:nth-child(2) { translate: 50% 0; }
.ld-payment-actions { display: grid; gap: 8px; }
.ld-payment .btn { width: 100%; min-width: 0; padding: 10px 12px; min-height: 46px; white-space: normal; }
.ld-payment .btn:disabled { cursor: default; opacity: .5; }
.ld-payment .ld-payment-paypal { background: #ffc439; color: #111; }
.ld-payment [data-tc-drawer-sizes] label { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 6px; font-size: 13px; }

/* Shipping estimate note: small "i" after the label, opens on tap (and hover on desktop). */
.lune-tip { position: relative; display: inline-flex; vertical-align: middle; margin-inline-start: 4px; }
.lune-tip-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -4px 0; padding: 0; border: 0; background: none; color: #e03131; cursor: pointer; border-radius: 50%; }
.lune-tip-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lune-tip-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.lune-tip-body { position: absolute; inset-inline-start: -4px; bottom: calc(100% + 6px); z-index: 20; width: max-content; max-width: min(260px, 70vw); padding: 8px 10px; border-radius: 10px; background: #111; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.45; white-space: normal; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
@media (hover: hover) { .lune-tip:hover .lune-tip-body[hidden] { display: block; } }

/* Phones: list, contact and amounts scroll together; Pay and PayPal stay at the bottom.
   The footer wrappers become "contents" so the buttons can stick to the drawer's own scroll area. */
@media (max-width: 760px) {
    #ld-panel.ld-paying { overflow-y: auto; overscroll-behavior: contain; }
    #ld-panel.ld-paying .ld-hd { position: sticky; top: 0; z-index: 3; flex: none; background: #fff; }
    #ld-panel.ld-paying .ld-bd { flex: none; overflow: visible; }
    #ld-panel.ld-paying .ld-ft,
    #ld-panel.ld-paying .ld-payment:not([hidden]),
    #ld-panel.ld-paying .ld-payment [data-tc-content]:not([hidden]) { display: contents; }
    #ld-panel.ld-paying .ld-payment > :not([data-tc-content]),
    #ld-panel.ld-paying [data-tc-content] > * { flex: none; margin-inline: 18px; }
    #ld-panel.ld-paying [data-tc-content] > form { margin-block-start: 16px; padding-block-start: 16px; border-top: 1px solid var(--line); }
    #ld-panel.ld-paying [data-tc-content] > .ld-payment-actions { position: sticky; bottom: 0; z-index: 3; margin: 12px 0 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
}
