/* A single compact shopping surface, from category to receipt. */
.site-header .network { display: flex; font-size: 12px; gap: 7px; white-space: nowrap; }
.compact-shop { max-width: 620px; margin: 0 auto; padding-top: 20px; }
.shop-notice { display: flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 13px; line-height: 1.6; margin: 0 2px 13px; }
.shop-notice .icon { width: 15px; height: 15px; }
.compact-shop .category-frame { padding: 22px; margin: 0; border-radius: 18px; background: var(--app-surface); border-color: var(--app-line); box-shadow: 0 9px 32px -24px #234a3228; }
.compact-toolbar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 20px; }
.compact-title { min-width: 0; flex: 1; color: var(--app-text); font-size: 23px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin: 0; }
[data-step-title]:focus { outline: none; }
.compact-meta { color: var(--app-muted); font-size: 13px; white-space: nowrap; margin-left: auto; }
.compact-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px 8px 0; color: var(--app-accent); background: none; font-size: 15px; white-space: nowrap; }
.compact-back .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.compact-back:hover { transform: translateX(-2px); }
.compact-shop .search { width: 100%; height: 48px; border-radius: 12px; margin: 0 0 18px; background: var(--app-bg); border-color: var(--app-line); }
.compact-shop .search input { font-size: 16px; color: var(--app-text); }
.compact-shop .search input::placeholder { color: var(--app-muted); }
.compact-shop .search > .icon { width: 19px; height: 19px; color: var(--app-muted); }
.compact-shop .category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-shop .category-frame .category-card { display: flex; flex-direction: column; align-items: stretch; padding: 16px; min-height: 132px; border-radius: 14px; background: var(--app-surface); border: 1px solid var(--app-line); text-align: left; box-shadow: none; animation: none; }
.compact-shop .category-card:hover { border-color: var(--accent-border); background: var(--app-surface-alt); transform: translateY(-2px); }
.compact-category-top { display: flex; align-items: center; gap: 10px; }
.compact-category-icon { display: grid; place-items: center; width: 34px; height: 36px; border-radius: 11px; background: var(--wash); color: var(--accent); flex-shrink: 0; }
.compact-category-icon .icon { width: 23px; height: 23px; }
.compact-category-top h2 { color: var(--app-text); font-size: 18px; font-weight: 550; line-height: 1.4; margin: 0; }
.compact-category-price { font-size: 21px; line-height: 1.3; color: var(--app-text); font-weight: 600; margin-top: 15px; white-space: nowrap; }
.compact-category-price small { font-size: 13px; font-weight: 400; color: var(--app-muted); margin-left: 5px; }
.compact-category-count { color: var(--app-muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.compact-products { display: grid; gap: 10px; }
.compact-product { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 13px; width: 100%; min-width: 0; border: 1px solid var(--app-line); border-radius: 13px; background: var(--app-surface); color: var(--app-text); text-align: left; }
.compact-product:hover { background: var(--app-surface-alt); border-color: var(--accent-border); transform: none; }
.compact-product-icon { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 11px; background: var(--wash); color: var(--accent); flex-shrink: 0; }
.compact-product-icon .icon { width: 23px; height: 23px; }
.compact-product-copy { flex: 1; min-width: 0; }
.compact-product-name { display: block; font-size: 17px; font-weight: 550; line-height: 1.5; }
.compact-product-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--app-muted); font-size: 14px; line-height: 1.6; margin-top: 5px; }
.compact-product-price { font-size: 21px; font-weight: 600; line-height: 1.3; text-align: right; color: var(--app-accent); white-space: nowrap; }
.compact-product-price small { display: block; font-size: 12px; color: var(--app-muted); font-weight: 400; margin-top: 3px; }
.compact-selected { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--app-line); }
.compact-selected h2 { color: var(--app-text); font-size: 17px; font-weight: 550; line-height: 1.5; margin: 0; }
.compact-selected p { color: var(--app-muted); font-size: 14px; line-height: 1.5; margin: 5px 0 0; }
.compact-form .field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.compact-form .field-label { color: var(--app-text); font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.compact-form .field-row .field-label { margin-bottom: 5px; }
.compact-form .field-note { color: var(--app-muted); font-size: 13px; line-height: 1.6; margin: 0; }
.compact-form .quantity { margin: 0; height: 54px; padding: 4px; border-color: var(--app-line); border-radius: 12px; background: var(--app-surface); flex-shrink: 0; }
.compact-form .quantity button { width: 44px; height: 44px; border-radius: 8px; color: var(--app-accent); background: var(--app-surface-alt); }
.compact-form .quantity button .icon { width: 18px; height: 18px; }
.compact-form .quantity input { width: 49px; color: var(--app-text); font-size: 18px; }
.compact-form .text-input { min-height: 52px; font-size: 16px; padding: 13px 14px; border-radius: 12px; border-color: var(--app-line); color: var(--app-text); background: var(--app-surface); }
.compact-form .text-input::placeholder { color: var(--app-muted); }
.compact-field-note { font-size: 13px; line-height: 1.6; color: var(--app-muted); margin: 8px 0 0; }
.compact-payment-method { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.6; color: var(--app-muted); margin: 20px 0 16px; }
.compact-payment-method > .icon { width: 17px; height: 17px; }
.compact-demo { font-size: 12px; padding: 2px 7px; background: var(--app-surface-alt); border-radius: 5px; margin-left: auto; }
.compact-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 18px; margin-bottom: 16px; border-top: 1px solid var(--app-line); color: var(--app-text); }
.compact-total > span { font-size: 16px; }
.compact-total strong { font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--app-accent); letter-spacing: -.5px; }
.compact-total small { font-size: 13px; font-weight: 400; color: var(--app-muted); margin-left: 5px; letter-spacing: 0; }
.compact-shop #orderButton { min-height: 52px; font-size: 16px; border-radius: 12px; background: var(--app-accent); color: var(--app-button-text); padding: 13px 15px; }
.compact-shop #orderButton.is-saved { background: var(--app-surface-alt); color: var(--app-accent); }
.compact-receipt-amount { display: flex; flex-direction: column; align-items: center; padding: 14px 0 22px; gap: 7px; color: var(--app-muted); font-size: 14px; }
.compact-receipt-amount strong { font-size: 38px; font-weight: 600; color: var(--app-accent); line-height: 1.4; letter-spacing: -.5px; }
.compact-receipt-amount strong small { font-size: 14px; color: var(--app-muted); font-weight: 400; margin-left: 7px; }
.compact-unpaid { background: var(--app-surface-alt); border-radius: 20px; padding: 4px 10px; font-size: 13px; }
.compact-receipt { border-top: 1px solid var(--app-line); margin: 0; padding-top: 9px; }
.compact-receipt > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; font-size: 14px; line-height: 1.7; margin: 13px 0; }
.compact-receipt dt { color: var(--app-muted); flex-shrink: 0; }
.compact-receipt dd { min-width: 0; margin: 0; text-align: right; color: var(--app-text); overflow-wrap: anywhere; }
.compact-receipt .copy-button { width: 32px; min-width: 32px; min-height: 44px; margin: -10px -6px -10px 0; padding: 8px 6px; color: var(--app-accent); }
.compact-receipt .copy-button .icon { width: 16px; height: 16px; }
.compact-receipt-notice { display: flex; gap: 7px; align-items: center; font-size: 14px; line-height: 1.6; color: var(--app-muted); margin: 20px 0; }
.compact-receipt-notice .icon { width: 16px; height: 16px; }
.compact-receipt-actions { display: grid; gap: 10px; }
.compact-receipt-actions .button { min-height: 48px; font-size: 16px; border-radius: 12px; }
.compact-receipt-actions .button-outline { justify-content: center; }
footer { padding: 20px 0; margin-top: 5px; }
.footer-inner { display: flex; flex-direction: row; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--app-muted); }
.footer-inner > span { max-width: none; font-size: 12px; line-height: 1.6; text-align: left; }
.footer-inner > span:last-child { text-align: right; }

@media (max-width: 800px) {
  .compact-shop { padding-top: 14px; }
  .compact-shop .category-frame { padding: 18px; }
  .compact-toolbar { gap: 10px; margin-bottom: 18px; }
  .compact-title { font-size: 22px; }
  .compact-shop .category-frame .category-card { padding: 14px; min-height: 131px; }
  .compact-product { gap: 10px; padding: 15px 12px; }
  .compact-product-icon { width: 35px; height: 40px; }
  .compact-product-price { font-size: 20px; }
  .compact-product-price small { font-size: 12px; }
  .compact-selected { margin-bottom: 19px; padding-bottom: 18px; }
  .compact-receipt-actions .button { min-height: 52px; }
}
@media (max-width: 360px) {
  .site-header .network { font-size: 11px; gap: 5px; }
  .compact-shop .category-frame { padding: 15px 14px; }
  .compact-shop .category-frame .category-card { padding: 12px 10px; }
  .compact-category-top { gap: 7px; }
  .compact-category-icon { width: 27px; height: 31px; border-radius: 9px; }
  .compact-category-icon .icon { width: 20px; height: 20px; }
  .compact-category-top h2 { font-size: 17px; }
  .compact-category-price { font-size: 20px; }
  .compact-category-price small { font-size: 12px; margin-left: 4px; }
  .compact-meta { font-size: 12px; }
  .compact-title { font-size: 21px; }
  .compact-back { font-size: 14px; gap: 4px; padding-right: 5px; }
  .compact-product { padding: 14px 10px; gap: 9px; }
  .compact-product-icon { width: 31px; height: 36px; }
  .compact-product-name { font-size: 17px; }
  .compact-product-price { font-size: 19px; }
}
@media (hover: none) {
  .compact-shop .category-card:hover, .compact-product:hover, .compact-back:hover { transform: none; background: var(--app-surface); }
}
.site-header .network { color: var(--app-muted); }
.site-header .network > span { color: var(--app-muted); opacity: .7; }
.site-header .network i { background: var(--app-accent); }
/* Keep the Mint Card welcome card above the compact buying flow. */
.compact-shop .hero { margin: 0 0 15px; padding: 22px 20px; min-height: 136px; border-radius: 18px; }
.compact-shop .hero-copy { max-width: 100%; }
.compact-shop .hero h1 { font-size: 28px; line-height: 1.45; margin: 0 0 9px; width: auto; letter-spacing: 0; }
.compact-shop .hero h1 br, .compact-shop .hero .eyebrow, .compact-shop .hero .title-spark, .compact-shop .hero-link, .compact-shop .hero-index { display: none; }
.compact-shop .hero p { font-size: 14px; line-height: 1.7; max-width: 270px; }
.compact-shop .hero-art { --art-opacity: .13; opacity: .13; top: -55px; right: -150px; pointer-events: none; }
@media (max-width: 360px) {
  .compact-shop .hero { padding: 20px 16px; }
  .compact-shop .hero h1 { font-size: 24px; }
}

/* Skeletons overlay the final row layout and are removed without moving the content. */
.compact-product.is-loading:disabled { opacity: 1; cursor: default; transition: none; }
.compact-product.is-loading > .compact-product-icon,
.compact-product.is-loading > .compact-product-copy,
.compact-product.is-loading > .compact-product-price { visibility: hidden; }
.compact-product-placeholder { position: absolute; inset: 0; display: flex; align-items: center; gap: inherit; padding: inherit; pointer-events: none; }
.compact-product-placeholder .compact-product-icon { background: var(--app-surface-alt); }
.compact-skeleton-lines { display: grid; gap: 9px; }
.compact-skeleton-lines > .skeleton:first-child { width: 80%; height: 14px; }
.compact-skeleton-lines > .skeleton:last-child { width: 65%; height: 10px; }
.compact-skeleton-price { width: 44px; height: 23px; flex-shrink: 0; }
