/* Local cart drawer: shares the RFQ palette; independent of legacy cart rows. */
.popup.avm-cart { display: none; position: fixed; inset: 0 0 0 auto; width: min(600px, 100%); max-width: none; height: 100vh; height: 100dvh; margin: 0; padding: 0; background: #fff; color: #171e32; transition: none; overflow: hidden; font: 400 16px/1.5 Helvetica, Arial, sans-serif; }
.popup.avm-cart.active { display: flex; flex-direction: column; z-index: 9999991; }
.avm-cart *, .avm-cart *::before, .avm-cart *::after { box-sizing: border-box; }
.avm-cart [hidden] { display: none !important; }
.avm-cart h2, .avm-cart h3, .avm-cart p, .avm-cart ul { margin: 0; padding: 0; text-transform: none; }
.avm-cart button, .avm-cart a, .avm-cart input { border-radius: 0; }
.avm-cart button { cursor: pointer; }
.avm-cart__head { flex: 0 0 auto; position: relative; padding: 30px 28px 22px; background: #eff1f6; }
.avm-cart h2 { max-width: calc(100% - 50px); color: #171e32; font: 400 28px/1.2 'Akzidenz-Grotesk Pro Bold Ext', Helvetica, Arial, sans-serif; letter-spacing: -.025em; }
.avm-cart #avm-cart-title:focus { outline: none; }
.avm-cart #avm-cart-description { margin-top: 12px; max-width: 55ch; font-size: 14px; color: #505a73; }
.avm-cart .avm-cart__close { position: absolute; inset: 18px 16px auto auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #28324a; background: #e1e6ee; }
.avm-cart__close::before, .avm-cart__close::after { display: none; }
.avm-cart__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8492af #eff1f6; padding: 0 28px; }
.avm-cart .avm-cart__list { list-style: none; }
.avm-cart__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 12px 16px; padding: 20px 0; border-bottom: 1px solid #e1e5ed; }
.avm-cart__photo { grid-column: 1; grid-row: 1 / 3; align-self: start; background: #eff1f6; }
.avm-cart__photo img { display: block; width: 72px; height: 72px; object-fit: contain; }
.avm-cart__identity { grid-column: 2; min-width: 0; }
.avm-cart .avm-cart__name { color: #18243d; font: 700 17px/1.35 Helvetica, Arial, sans-serif; overflow-wrap: anywhere; text-decoration: none; }
.avm-cart__name:hover { color: #012fea; text-decoration: underline; text-underline-offset: 3px; }
.avm-cart .avm-cart__price { margin-top: 5px; font: 700 15px/1.4 Helvetica, Arial, sans-serif; color: #1f4f3a; }
.avm-cart__price small { color: #505a73; font-size: 12px; font-weight: 400; }
.avm-cart .avm-cart__price.is-por { font-weight: 400; color: #9c5000; font-size: 14px; }
.avm-cart__quantity { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avm-cart__quantity label { color: #505a73; font: 12px/1.4 Helvetica, Arial, sans-serif; }
.avm-cart__quantity > div { display: flex; border: 1px solid #c9d0dd; }
.avm-cart__quantity button { display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: 0; background: #eff1f6; color: #28324a; font: 20px/1 Helvetica, Arial, sans-serif; }
.avm-cart input[data-cart-quantity] { appearance: textfield; width: 48px; height: 42px; min-width: 0; padding: 4px; border: 0; background: #fff; color: #171e32; font: 400 16px/1.4 Helvetica, Arial, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.avm-cart input::-webkit-inner-spin-button, .avm-cart input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.avm-cart .avm-cart__remove { grid-column: 3; grid-row: 1; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; color: #596479; background: transparent; }
.avm-cart__remove:hover { color: #982f3b; background: #faf0f1; }
.avm-cart .avm-cart__foot { flex: 0 0 auto; padding: 16px 28px 18px; border-top: 1px solid #dce2ec; background: #fff; }
.avm-cart .avm-cart__summary { margin-bottom: 12px; color: #505a73; font-size: 13px; }
.avm-cart .avm-cart__continue { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 18px; background: #012fea; color: #fff; text-decoration: none; font: 700 15px/1.4 Helvetica, Arial, sans-serif; }
.avm-cart__continue[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.avm-cart__continue svg { flex: 0 0 20px; }
.avm-cart .avm-cart__browse { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px; margin-top: 4px; border: 0; background: transparent; color: #28324a; font: 400 14px/1.4 Helvetica, Arial, sans-serif; text-decoration: none; }
.avm-cart__browse:hover { background: #eff1f6; }
.avm-cart .avm-cart__note { font-size: 11px; line-height: 1.5; color: #596479; text-align: center; }
.avm-cart .avm-cart__status { font-size: 13px; color: #28324a; }
.avm-cart__status:not(:empty) { margin-bottom: 8px; }
.avm-cart .avm-cart__error { color: #982f3b; font-size: 13px; margin-bottom: 8px; }
.avm-cart .avm-cart__retry { min-height: 44px; background: #eff1f6; color: #18243d; padding: 10px 14px; border: 0; margin-bottom: 10px; }
.avm-cart__empty { padding: 44px 0; color: #596479; }
.avm-cart__empty svg { color: #8492af; margin-bottom: 20px; }
.avm-cart__empty h3 { font: 700 20px/1.4 Helvetica, Arial, sans-serif; color: #18243d; margin-bottom: 12px; }
.avm-cart__empty p { max-width: 40ch; font-size: 15px; }
.avm-cart button:disabled { opacity: .45; cursor: default; }
.avm-cart :is(button, a, input):focus-visible { outline: 2px solid #012fea; outline-offset: 2px; }
.avm-cart ::selection { background: #dce4ff; color: #18243d; }
body.avm-cart-open { overflow: hidden; }
body.avm-cart-open .popup-overlay.active { z-index: 9999990; background: rgb(8 10 29 / 72%); }
body.avm-cart-ready .added_to_cart.wc-forward { display: none !important; }
.avm-local-cart-v1 .avm-cart-total-pending { color: #9c5000; font: 700 15px/1.5 Helvetica, Arial, sans-serif; }
@media (min-width: 761px) {
    .popup.avm-cart { width: min(680px, 100%); }
    .avm-cart__item { grid-template-columns: 64px minmax(0, 1fr) 138px 44px; gap: 16px; align-items: center; padding-block: 18px; }
    .avm-cart__photo { grid-row: 1; align-self: center; }
    .avm-cart__photo img { width: 64px; height: 64px; }
    .avm-cart__quantity { grid-column: 3; grid-row: 1; display: grid; gap: 4px; }
    .avm-cart .avm-cart__remove { grid-column: 4; align-self: center; }
}
@media (max-width: 600px) {
    .avm-cart__head { padding: 22px 20px 18px; }
    .avm-cart h2 { font-size: 25px; }
    .avm-cart #avm-cart-description { font-size: 13px; }
    .avm-cart__body { padding-inline: 20px; }
    .avm-cart__item { grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 10px 12px; padding-block: 16px; }
    .avm-cart__photo img { width: 60px; height: 60px; }
    .avm-cart .avm-cart__name { font-size: 16px; }
    .avm-cart__quantity { grid-column: 2 / 4; gap: 8px; }
    .avm-cart .avm-cart__remove { width: 44px; height: 44px; }
    .avm-cart .avm-cart__foot { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
    .avm-cart__body { padding-inline: 16px; }
    .avm-cart__item { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
    .avm-cart__photo img { width: 44px; height: 44px; }
    .avm-cart__quantity label { width: 100%; }
}
@media (max-height: 500px) {
    .popup.avm-cart.active { overflow: auto; }
    .avm-cart__body { flex: 0 0 auto; overflow: visible; }
}
