/* Buyer page layout. Content always uses the document's vertical scrollbar. */
html {
  height: auto;
  overflow-x: clip;
  overflow-y: auto;
  scroll-padding-top: 104px;
}
body[data-page="shop"], body[data-page="orders"] {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}
.shop-page { padding: 30px 0 56px; }
.shop-breadcrumb { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; }
.shop-profile { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 32px; position: relative; isolation: isolate; }
.shop-avatar { width: 92px; height: 92px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.shop-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-profile-copy { min-width: 0; }
.shop-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-name-row h1, .shop-profile-meta > span { overflow-wrap: anywhere; }
.shop-profile-copy > p { margin: 7px 0 12px; }
.shop-profile-copy > .shop-eyebrow { margin: 0 0 9px; }
.shop-profile-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.shop-profile-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.shop-profile-meta i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.shop-profile-actions { display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; }
.shop-report-link { grid-column: 1 / -1; justify-self: end; margin-top: 5px; }
.shop-notice { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: baseline; margin-top: 16px; padding: 19px 24px; }
.shop-notice h2 { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.shop-notice h2 > span { display: inline-flex; align-self: center; }
.shop-notice h2 svg { width: 18px; height: 18px; }
.shop-notice p { white-space: pre-wrap; overflow-wrap: anywhere; }
.shop-category-section { padding: 32px 0 11px; }
.shop-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; gap: 18px; }
.shop-categories { display: flex !important; flex-wrap: wrap; gap: 9px !important; margin: 0 !important; padding: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important; }
.shop-categories .category-button { width: auto; min-width: 122px; display: inline-flex; gap: 10px; align-items: center; margin: 0; padding: 11px 15px; white-space: normal; }
.shop-categories .category-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.shop-categories .category-count { display: inline-grid !important; place-items: center; min-width: 23px; margin-left: auto; padding: 1px 5px; }
.catalog { height: auto; max-height: none; overflow: visible; margin-top: 22px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.catalog-heading h2 { display: flex; align-items: center; gap: 11px; }
.catalog-heading p { margin-top: 5px; }
.shop-query-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.catalog-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.search-field { max-width: none; flex: 1; min-width: 210px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; }
.search-field input { width: 100%; height: 23px; padding: 0; border: 0; outline: none !important; background: transparent; }
.search-field svg { width: 19px; height: 19px; flex-shrink: 0; }
.stock-filter { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stock-filter input { width: 15px; height: 15px; margin: 0; }
.catalog-toolbar select { max-width: 165px; min-height: 49px; padding: 10px 13px; }
.quick-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 23px; min-height: 26px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; height: auto; max-height: none; overflow: visible; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.product-art { height: 153px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-art-inner { display: flex; align-items: center; gap: 12px; z-index: 1; }
.product-brand-icon, .product-brand-icon svg, .product-brand-icon img { width: 40px; height: 40px; object-fit: contain; display: block; flex-shrink: 0; }
.product-art-inner small { display: block; margin-top: 4px; }
.product-badge { position: absolute; top: 13px; left: 13px; z-index: 2; }
.product-type { position: absolute; bottom: 11px; right: 14px; }
.product-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-title { display: block; min-height: 62px; }
.product-title h3 { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.product-title .delivery-tag { display: inline-flex; margin-top: 7px; }
.product-description { margin-top: 10px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 0; overflow: visible; margin: 12px 0 0; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: auto; }
.product-tags + .product-bottom, .product-description + .product-bottom, .product-title + .product-bottom { margin-top: 18px; }
.stock-line { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.buy-button, a.buy-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.catalog-end { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 36px 0 22px; }
.catalog-end span { width: 35px; height: 1px; }
.shop-service-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 21px; }
.shop-service-note a { display: inline-flex; align-items: center; gap: 7px; }
.customer-panel { width: min(1140px, calc(100% - 64px)); margin: 30px auto 56px; max-height: none; overflow: visible; }
.customer-panel .dialog-top { padding: 25px 30px; }
.customer-panel .dialog-top > div { min-width: 0; }
.customer-panel .dialog-top h2 { overflow-wrap: anywhere; }
.customer-panel .close-dialog { width: auto; height: auto; min-height: 37px; padding: 8px 12px; }
.customer-panel .purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.customer-panel .purchase-info, .customer-panel .purchase-form { padding: 31px; min-width: 0; max-height: none; overflow: visible; }
.item-merchant-strip { display: flex; align-items: center; gap: 12px; padding: 17px 30px; }
.item-merchant-avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; }
.item-merchant-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-merchant-copy { min-width: 0; flex: 1; }
.item-merchant-copy p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; }
.item-contact-button, .item-store-link { flex-shrink: 0; }
.item-summary { display: flex; align-items: center; gap: 21px; margin-bottom: 28px; }
.customer-panel .item-summary .product-art { float: none; width: 138px; min-width: 138px; height: 142px; margin: 0; flex-shrink: 0; }
.item-summary .product-art-inner { flex-direction: column; gap: 10px; }
.item-summary .product-art-inner small, .item-summary .product-type, .item-summary .product-badge { display: none; }
.item-summary-copy { min-width: 0; }
.item-summary-copy h3 { margin: 9px 0 10px; overflow-wrap: anywhere; }
.item-description { padding: 23px 0; margin-bottom: 24px; }
.item-description p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.item-description .redemption-link { display: inline-flex; align-items: center; margin-top: 10px; }
.customer-panel .purchase-info h4 { margin: 0 0 12px; }
.customer-panel .info-check { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.customer-panel .info-check > span { flex-shrink: 0; }
.variants { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 21px; }
.variant-button { flex: 1; min-width: 120px; padding: 11px 13px; }
.variant-button strong, .variant-button small { overflow-wrap: anywhere; }
.quantity-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 21px; }
.quantity-row .form-label { margin: 0; }
.quantity-picker { display: flex; align-items: center; overflow: hidden; }
.quantity-picker button { width: 35px; height: 35px; }
.quantity-picker input { width: 42px; height: 35px; border: 0; text-align: center; background: transparent; }
.input-group { margin: 23px 0; }
.purchase-form .payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 11px 0; }
.payment-option { display: flex; align-items: center; position: relative; gap: 10px; min-width: 0; min-height: 65px; padding: 13px; }
.payment-option input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 3px; bottom: 3px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding: 19px; }
.checkout-total small { display: block; margin-top: 5px; }
.customer-panel .purchase-submit { display: flex; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 19px; padding: 14px 18px; }
#checkoutFeeNote { margin-top: 10px; }
.item-page-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 30px; }
.item-page-tools > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.item-page-tools button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; white-space: nowrap; }
.item-page-tools button svg { width: 14px; height: 14px; }
.item-unavailable { max-width: 620px; padding: 38px; margin: auto; }
.item-unavailable .inline-action-link { display: block; margin-top: 18px; }
.customer-panel:has(.cashier-content), .customer-panel:has(.payment-content) { width: min(960px, calc(100% - 64px)); }
.payment-content { padding: 35px 32px 38px; }
.cashier-content { padding-top: 34px; }
.cashier-heading h3 { margin: 0 0 9px; }
.cashier-method { display: none; }
.cashier-order-line { display: flex; align-items: center; justify-content: center; gap: 15px; width: min(620px, 100%); margin: 23px auto 13px; padding: 12px 15px; }
.cashier-order-line span { min-width: 0; overflow-wrap: anywhere; }
.cashier-order-line button { flex-shrink: 0; }
.cashier-product { margin-bottom: 24px; overflow-wrap: anywhere; }
.cashier-amount .pay-amount { margin: 6px 0 23px; }
.cashier-qr-card, .cashier-payment-message, .local-payment-note { width: min(440px, 100%); margin: 0 auto 22px; padding: 25px; }
.cashier-pay-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.cashier-qr-card .qr-image { display: block; width: 246px; height: 246px; max-width: 100%; object-fit: contain; margin: 0 auto 20px; padding: 0; background: #fff; border: 0; border-radius: 0; }
.cashier-qr-card > strong { display: block; margin-bottom: 9px; }
.cashier-payment-instructions { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
.cashier-poll-status { margin: 0 auto 24px; }
.cashier-poll-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.payment-content .payment-summary, .card-deliveries { width: min(660px, 100%); max-width: 660px; margin-right: auto; margin-left: auto; }
.payment-summary > div { gap: 20px; }
.payment-summary b { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.order-welcome { display: none; width: min(960px, calc(100% - 64px)); align-items: center; justify-content: space-between; gap: 28px; padding: 40px 0 7px; }
body:has(#lookupForm) .order-welcome { display: flex; }
.order-welcome img { width: 92px; height: 92px; flex-shrink: 0; transform: rotate(8deg); }
.order-welcome h1 { margin: 9px 0 10px; }
.customer-panel:has(#lookupForm) { width: min(960px, calc(100% - 64px)); }
.simple-dialog:has(#lookupForm) { padding: 30px; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.lookup-form .input-group { margin: 22px 0 0; }
.lookup-form > .primary { grid-column: auto; min-height: 48px; padding: 12px 20px; }
.lookup-results { margin-top: 25px; }
.lookup-order { padding: 21px; margin-top: 14px; }
.lookup-order-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lookup-order-head .status-pill { margin-left: auto; }
.lookup-order .order-meta { margin-top: 11px; line-height: 1.95; overflow-wrap: anywhere; }
.order-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.after-sales-panel { padding: 30px; }
.ticket-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ticket-message-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ticket-message p, .ticket-intro { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-panel textarea { resize: vertical; min-height: 114px; }
.pf-footer .footer-inner { display: none; }
@media (max-width: 1100px) {
  .shop-profile { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; padding: 28px; }
  .shop-avatar { width: 80px; height: 80px; }
  .shop-profile-actions { grid-template-columns: auto; }
  .shop-report-link { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .customer-panel .purchase-info, .customer-panel .purchase-form { padding: 25px; }
  .item-summary { gap: 16px; }
  .customer-panel .item-summary .product-art { width: 116px; min-width: 116px; height: 126px; }
}
@media (max-width: 780px) {
  .shop-page { padding: 22px 0 40px; }
  .shop-profile { grid-template-columns: 72px minmax(0, 1fr); padding: 25px; gap: 18px; }
  .shop-avatar { width: 72px; height: 72px; }
  .shop-profile-actions { grid-template-columns: auto auto 1fr; grid-column: 1 / -1; margin-left: 0; }
  .shop-report-link { justify-self: end; margin-top: 0; }
  .shop-notice { grid-template-columns: 1fr; gap: 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-art { height: 145px; }
  .customer-panel, .customer-panel:has(.cashier-content), .customer-panel:has(.payment-content), .customer-panel:has(#lookupForm) { width: calc(100% - 36px); margin: 24px auto 40px; }
  .customer-panel .purchase-layout { display: block; }
  .customer-panel .purchase-info { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .customer-panel .purchase-info > h4, .customer-panel .purchase-info > .info-check { display: none; }
  .item-description { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .item-store-link { display: none; }
  .lookup-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lookup-form > .primary { grid-column: 1 / -1; }
  .order-welcome { width: calc(100% - 42px); padding-top: 30px; }
  .order-welcome img { width: 73px; height: 73px; }
}
@media (max-width: 520px) {
  .shop-profile { gap: 14px; padding: 22px 18px; grid-template-columns: 61px minmax(0, 1fr); }
  .shop-avatar { width: 61px; height: 61px; }
  .shop-profile-meta { gap: 10px; }
  .shop-profile-actions { gap: 8px; }
  .shop-report-link { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
  .shop-notice { padding: 17px 18px; }
  .shop-section-title > span { display: none; }
  .shop-categories { gap: 8px !important; }
  .shop-categories .category-button { min-width: 0; padding: 10px 12px; gap: 7px; }
  .shop-categories .category-count { min-width: 20px; padding: 1px 4px; }
  .catalog { margin-top: 18px; }
  .catalog-heading { align-items: flex-start; gap: 14px; }
  .catalog-heading p { max-width: 225px; }
  .shop-query-link { padding-top: 5px; }
  .catalog-toolbar { gap: 12px; }
  .search-field { flex-basis: 100%; min-width: 0; }
  .catalog-toolbar select { margin-left: auto; min-height: 40px; }
  .quick-tags { margin: 13px 0 19px; gap: 6px; }
  .product-grid { gap: 12px; }
  .product-art { height: 117px; }
  .product-art-inner { gap: 8px; }
  .product-brand-icon, .product-brand-icon img, .product-brand-icon svg { width: 28px; height: 28px; }
  .product-body { padding: 13px; }
  .product-title { min-height: 65px; }
  .product-title h3 { min-height: 38px; }
  .product-tags { gap: 4px; }
  .product-tags span:nth-child(3) { display: none; }
  .product-bottom { gap: 10px 5px; padding-top: 13px; align-items: flex-end; flex-wrap: wrap; }
  .product-bottom .buy-button { margin-left: auto; }
  .buy-button, a.buy-button { gap: 3px; padding: 7px 8px; }
  .shop-service-note { display: block; line-height: 1.8; }
  .shop-service-note a { margin-top: 7px; }
  .customer-panel, .customer-panel:has(.cashier-content), .customer-panel:has(.payment-content), .customer-panel:has(#lookupForm) { width: calc(100% - 24px); margin-top: 18px; }
  .customer-panel .dialog-top { padding: 20px 18px; gap: 12px; align-items: flex-start; }
  .customer-panel .purchase-info, .customer-panel .purchase-form { padding: 23px 18px; }
  .customer-panel .close-dialog { min-height: 34px; padding: 7px 9px; white-space: nowrap; }
  .item-merchant-strip { padding: 15px 18px; gap: 10px; }
  .item-merchant-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .item-contact-button { padding: 8px 9px; }
  .item-summary { gap: 15px; margin-bottom: 23px; }
  .customer-panel .item-summary .product-art { width: 103px; min-width: 103px; height: 116px; }
  .item-page-tools { padding: 12px 18px; gap: 11px; }
  .item-page-tools > div { gap: 6px; }
  .item-page-tools button { padding: 8px; gap: 4px; }
  .payment-option { padding: 12px 10px; gap: 8px; }
  .checkout-total { padding: 17px 15px; }
  .cashier-order-line { align-items: flex-start; gap: 10px; padding: 11px 12px; }
  .cashier-qr-card, .cashier-payment-message, .local-payment-note { padding: 22px 17px; }
  .payment-content { padding: 27px 18px 30px; }
  .payment-summary { padding: 14px 16px; }
  .payment-summary > div { gap: 14px; align-items: flex-start; }
  .payment-summary > div > span { flex: 0 0 95px; text-align: left; }
  .simple-dialog:has(#lookupForm), .after-sales-panel { padding: 23px 18px; }
  .lookup-form { display: block; }
  .lookup-form > .primary { width: 100%; margin-top: 22px; }
  .lookup-order { padding: 17px; }
  .order-welcome { width: calc(100% - 36px); padding-top: 27px; gap: 12px; }
  .order-welcome img { width: 61px; height: 61px; align-self: flex-start; }
  .ticket-heading { align-items: flex-start; }
  .ticket-card { padding: 17px; }
  .ticket-message { padding: 13px; }
}
@media (max-width: 359px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: 146px; }
  .product-title, .product-title h3 { min-height: 0; }
  .purchase-form .payment-options { grid-template-columns: 1fr; }
}
