.am-quote-page {--amqp-accent:var(--wpds-color-background-interactive-brand-strong,var(--wp--preset--color--ink))}
.am-quote-page header.wp-block-template-part {position:sticky;top:0;z-index:40;background:var(--wp--preset--color--white)}
body.admin-bar.am-quote-page header.wp-block-template-part {top:32px}
.am-quote-page :is(h2,section,[id]) {scroll-margin-top:150px}
.amqp-products {margin-block:1.5rem 3rem}
.amqp-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem}
.amqp-card {border:1px solid var(--wp--preset--color--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;background:var(--wp--preset--color--white);color:var(--wpds-color-foreground-content-neutral,var(--wp--preset--color--ink))}
.amqp-photo {height:220px;display:flex;align-items:center;justify-content:center;background:var(--wpds-color-background-surface-brand,var(--wp--preset--color--ivory));padding:12px;box-sizing:border-box;text-decoration:none}
.amqp-card .amqp-photo img {width:100%;height:100%;object-fit:contain}
.amqp-photo span {padding:2rem;font-size:.85rem;color:var(--wpds-color-foreground-content-neutral-weak,var(--wp--preset--color--stone));text-align:center}
.amqp-card-content {padding:1rem;display:flex;flex-direction:column;flex:1;gap:.7rem}
.amqp-card h3 {font-size:1rem!important;line-height:1.4;margin:0}
.amqp-card h3 a {color:inherit;text-decoration:none}
.amqp-sku {font-size:.78rem;color:var(--wpds-color-foreground-content-neutral-weak,var(--wp--preset--color--stone));margin:0}
.amqp-add {display:flex;gap:.5rem;flex-wrap:wrap;align-items:flex-end;margin-top:auto}
.amqp-card .amqp-add label {margin:0}
.amqp-add label,.amqp-item label {font-size:.85rem;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.amqp-add input,.amqp-item input {width:64px;min-height:44px;border:1px solid var(--wpds-color-stroke-surface-brand-strong,var(--wp--preset--color--line));border-radius:5px;padding:6px;box-sizing:border-box;color:var(--wpds-color-foreground-content-neutral,var(--wp--preset--color--ink));background:var(--wp--preset--color--white)}
.amqp-add button,.amqp-more {background:var(--wpds-color-background-interactive-brand-strong,var(--wp--preset--color--ink));color:var(--wpds-color-foreground-interactive-brand-strong,var(--wp--preset--color--white));border:0;border-radius:6px;padding:10px 14px;min-height:44px;font:inherit;font-size:.9rem;cursor:pointer}
.amqp-add button {flex:1}
.amqp-more {display:block;margin:1.5rem auto 0}
.amqp-quote-shortcut {position:fixed;left:20px;bottom:20px;z-index:45;border-radius:100px;box-shadow:0 4px 20px #0002;background:var(--wpds-color-background-interactive-brand-strong,var(--wp--preset--color--ink));padding:13px 20px}
.amqp-quote-shortcut a {color:var(--wpds-color-foreground-interactive-brand-strong,var(--wp--preset--color--white));text-decoration:none;font-weight:600}
.amqp-basket {border-top:2px solid var(--wp--preset--color--line);padding-block:1.5rem;scroll-margin-top:150px}
.amqp-item {display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:1rem;border-bottom:1px solid var(--wp--preset--color--line);padding:1rem 0}
.amqp-item button {border:1px solid var(--wpds-color-stroke-surface-brand-strong,var(--wp--preset--color--line));background:var(--wp--preset--color--white);border-radius:6px;min-height:44px;padding:8px;cursor:pointer}
.amqp-live,.amqp-section-status {font-size:.9rem}
.amqp-page-size {display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-block:1rem}
.amqp-page-size a {padding:.4rem .7rem;border-radius:4px;text-decoration:none}
.amqp-page-size a[aria-current] {background:var(--wpds-color-background-interactive-brand-strong,var(--wp--preset--color--ink));color:var(--wp--preset--color--white);font-weight:bold}
.amqp-empty-checkout {visibility:hidden;height:0;overflow:hidden;margin:0!important}
.am-quote-page .wp-block-woocommerce-checkout {max-width:1280px;margin:1rem auto 5rem}
.am-quote-page button:disabled {opacity:.6;cursor:wait}
.am-quote-page :is(a,button,input):focus-visible {outline:3px solid var(--wpds-color-stroke-interactive-brand-active,var(--wp--preset--color--gold));outline-offset:3px}
@media(max-width:900px){.amqp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.amqp-photo{height:190px}}
@media(max-width:480px){.amqp-grid{gap:.65rem}.amqp-photo{height:160px;padding:6px}.amqp-card-content{padding:.7rem}.amqp-card h3{font-size:.9rem!important}.amqp-add{flex-direction:column}.amqp-add{align-items:stretch}.amqp-add label{width:100%}.amqp-add input{width:100%}.amqp-item{grid-template-columns:1fr auto}.amqp-item>a{grid-column:1/-1}.amqp-quote-shortcut{left:12px;right:90px;bottom:12px;padding:11px 8px;text-align:center;font-size:.85rem}.am-quote-page header.wp-block-template-part{top:0}body.admin-bar.am-quote-page header.wp-block-template-part{top:46px}}
.amqp-section:not(:has(.amqp-products)) {display:none}
.amqp-jump a {display:inline-block;padding:.6rem .8rem;background:var(--wpds-color-background-surface-brand,var(--wp--preset--color--ivory));border-radius:6px;min-height:44px;box-sizing:border-box;text-decoration:none}
.amqp-jump a[hidden] {display:none}

@media(max-width:600px){body.admin-bar.am-quote-page header.wp-block-template-part{top:0}}

/* The collapsed checkout summary uses a separate amount from the totals rows. */
.amqc-provisional .wc-block-components-checkout-order-summary__title-price>bdi{display:none!important}
.amqc-provisional .wc-block-components-checkout-order-summary__title-price::after{content:"To be quoted"}

.amqp-add button:not(:disabled):hover,.amqp-quote-shortcut:has(a:hover){background:var(--wpds-color-background-interactive-brand-strong-active,var(--wp--preset--color--gold))}

/* Lift cards without shifting the surrounding grid. */
.amqp-card{transition:transform 180ms ease,box-shadow 180ms ease}
@media(hover:hover) and (pointer:fine){.amqp-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px color-mix(in srgb,var(--wp--preset--color--ink) 14%,transparent)}}
@media(prefers-reduced-motion:reduce){.amqp-card{transition:none}}

/* One editable selection, within the native order summary. */
.amqp-basket-summary-only{border:0;padding:0;margin:0!important}
.amqp-summary-item{display:flex;align-items:flex-start;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--wp--preset--color--line)}
.amqp-summary-item>img{width:64px;height:64px;object-fit:contain;border-radius:6px;background:var(--wp--preset--color--ivory)}
.amqp-summary-details{min-width:0;flex:1;display:flex;flex-direction:column;gap:.5rem}
.amqp-summary-details>a{color:inherit;font-weight:600;text-decoration:none}
.amqp-summary-details small{font-size:.8rem;color:var(--wp--preset--color--stone)}
.amqp-summary-control{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem}
.amqp-summary-quantity{display:flex;gap:.25rem;align-items:center}
.amqp-summary-quantity input{width:80px;min-height:44px;padding:6px;box-sizing:border-box;text-align:center;border:1px solid var(--wp--preset--color--line);border-radius:5px;background:var(--wp--preset--color--white);color:var(--wp--preset--color--ink)}
.amqp-summary-quantity button{width:44px;min-height:44px;border:1px solid var(--wp--preset--color--line);background:var(--wp--preset--color--white);color:var(--wp--preset--color--ink);border-radius:5px;font-size:1.2rem;cursor:pointer}
.amqp-summary-remove{align-self:flex-start;border:0;background:none;padding:.25rem 0;min-height:44px;text-decoration:underline;color:inherit;cursor:pointer}
.amqp-summary-notice{font-size:.85rem}
.amqp-summary-notice:empty{display:none}

.amqp-pickup-first .wc-block-checkout__shipping-method-option:last-child{order:-1}

/* Hide WooCommerce's automatic read-only copy when the editable summary is present. */
.am-quote-page .wp-block-woocommerce-checkout:has(.amqp-summary) .wc-block-components-totals-wrapper:has(>.wc-block-components-order-summary){display:none}

/* WooCommerce repeats the summary below the form on narrow checkout containers. */
@container (max-width:919px){.am-quote-page .wc-block-checkout:has(.amqp-summary) .wc-block-checkout__sidebar{display:none}}

/* Gold marks the main quotation actions. */
.am-quote-page .wc-block-components-checkout-place-order-button,.am-quote-page .amqp-quote-shortcut{background:var(--wp--preset--color--gold);color:var(--wp--preset--color--white)}
.am-quote-page .amqp-quote-shortcut a{color:var(--wp--preset--color--white)}
.am-quote-page .wc-block-components-checkout-place-order-button:not(:disabled):hover,.am-quote-page .amqp-quote-shortcut:has(a:hover){background:color-mix(in srgb,var(--wp--preset--color--gold) 85%,var(--wp--preset--color--ink));color:var(--wp--preset--color--white)}

/* Rental card photo galleries. Keep the original card's photo dimensions. */
.amqp-gallery{position:relative}
.amqp-gallery-open{position:relative;width:100%;border:0;cursor:zoom-in;touch-action:pan-y}
.amqp-card .amqp-gallery-open .amqp-gallery-slide{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);opacity:0;transition:opacity 180ms ease;pointer-events:none}
.amqp-card .amqp-gallery-open .amqp-gallery-slide.is-current{opacity:1}
.amqp-gallery-count{position:absolute;left:10px;bottom:10px;border-radius:20px;padding:5px 9px;background:var(--wp--preset--color--ink);color:var(--wp--preset--color--white);font-size:.75rem;pointer-events:none}
.amqp-gallery-prev,.amqp-gallery-next{position:absolute;bottom:10px;width:32px;height:32px;min-height:0;padding:0;display:grid;place-items:center;border:1px solid var(--wp--preset--color--line);border-radius:6px;background:var(--wp--preset--color--white);color:var(--wp--preset--color--ink);cursor:pointer;font-size:22px;line-height:1}
.amqp-gallery-prev{right:48px}.amqp-gallery-next{right:10px}
.amqp-gallery-prev:not(:disabled):hover,.amqp-gallery-next:not(:disabled):hover{background:var(--wp--preset--color--ivory)}
.amqp-card .amqp-gallery-prev:disabled,.amqp-card .amqp-gallery-next:disabled{opacity:.4;cursor:default}
.amqp-gallery-prev:focus-visible,.amqp-gallery-next:focus-visible{outline:2px solid var(--wp--preset--color--gold);outline-offset:2px}
.amqp-gallery-prev[hidden],.amqp-gallery-next[hidden],.amqp-gallery-count[hidden]{display:none}
.amqp-gallery-modal{width:min(900px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:20px;box-sizing:border-box;border:1px solid var(--wp--preset--color--line);border-radius:12px;background:var(--wp--preset--color--white);color:var(--wp--preset--color--ink);overscroll-behavior:contain}
.amqp-gallery-modal::backdrop{background:#000b}
.amqp-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.amqp-modal-head h2{font-size:1.15rem;line-height:1.4;margin:0}
.amqp-gallery-modal>img{display:block;width:100%;height:min(62svh,650px);object-fit:contain;margin-block:16px}
.amqp-modal-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.amqp-gallery-modal button{min-height:44px;padding:8px 12px;border:1px solid var(--wp--preset--color--line);border-radius:6px;background:var(--wp--preset--color--ivory);color:var(--wp--preset--color--ink);font:inherit;cursor:pointer}
.amqp-modal-message:empty{display:none}
.amqp-gallery-modal :focus-visible{outline:3px solid var(--wp--preset--color--gold);outline-offset:3px}
@media(max-width:480px){.amqp-card .amqp-gallery-open .amqp-gallery-slide{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}.amqp-gallery-modal{padding:12px}.amqp-modal-nav{gap:6px;font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.amqp-card .amqp-gallery-open .amqp-gallery-slide{transition:none}}
