.aruzas-website-quota { margin: 1rem 0; padding: 1rem; border: 1px solid #d4c5ab; border-radius: 6px; background: #fffcf6; color: #302b24; }
.aruzas-website-quota[hidden] { display: none !important; }
.aruzas-website-quota h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.aruzas-website-quota p, .aruzas-website-quota ul { margin: .6rem 0; }
.aruzas-website-quota button, .aruzas-website-quota a { display: inline-block; margin: .4rem .8rem .4rem 0; }
.aruzas-website-quota button { padding: .7rem 1rem; cursor: pointer; }
.aruzas-website-quota button:disabled { opacity: .6; cursor: wait; }
.aruzas-website-quota.aruzas-selected-cart { box-sizing: border-box; flex-basis: 100%; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--az-ink, #111); font-family: var(--az-font-body, inherit); }
body.woocommerce-cart .aruzas-selected-cart { width: min(calc(100% - 6rem), 1200px); margin: clamp(2rem, 5vw, 4rem) auto; }
/* The selected Bag supplies the visible heading; retain the native page title
   for assistive technology without showing a second, unstyled Cart heading. */
body.woocommerce-cart.aruzas-selected-cart-enabled .wp-block-post-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.aruzas-selected-cart__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.aruzas-selected-cart__heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; letter-spacing: -.02em; }
.aruzas-selected-cart__tools { display: flex; align-items: center; gap: 1.5rem; }
.aruzas-selected-cart__select-all { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: .8125rem; cursor: pointer; white-space: nowrap; }
.aruzas-selected-cart input[type=checkbox] { box-sizing: border-box; width: 18px; height: 18px; margin: 0; accent-color: #111; cursor: pointer; }
.aruzas-selected-cart__more { position: relative; }
.aruzas-selected-cart__more > summary { display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; list-style: none; font: 1.5rem/1 sans-serif; cursor: pointer; border-radius: 50%; }
.aruzas-selected-cart__more > summary::-webkit-details-marker { display: none; }
.aruzas-selected-cart__more > summary:hover, .aruzas-selected-cart__more[open] > summary { background: var(--az-warm, #f5f3ee); }
.aruzas-selected-cart__menu { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 10; min-width: 220px; padding: .4rem; border: 1px solid var(--az-divider, #e4e4e4); background: var(--az-surface, #fff); box-shadow: 0 8px 24px rgb(0 0 0 / 8%); }
.aruzas-selected-cart__more:not([open]) > .aruzas-selected-cart__menu { display: none; }
.aruzas-selected-cart .aruzas-selected-cart__menu button { display: block; width: 100%; margin: 0; padding: .8rem; border: 0; border-radius: 0; background: transparent; color: #111; text-align: left; font: inherit; font-size: .8125rem; }
.aruzas-selected-cart .aruzas-selected-cart__menu button:hover { background: var(--az-warm, #f5f3ee); }
.aruzas-selected-cart__rows { border-top: 1px solid var(--az-divider, #e4e4e4); }
.aruzas-selected-cart__layout { display: grid; grid-template-columns: minmax(0, 65fr) minmax(260px, 35fr); align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
.aruzas-selected-cart__products { min-width: 0; }
.aruzas-selected-cart__row { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr) 72px minmax(80px, .3fr); gap: 1rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--az-divider, #e4e4e4); }
.aruzas-selected-cart .aruzas-selected-cart__image { display: block; width: 96px; height: 96px; margin: 0; background: var(--az-warm, #f5f3ee); }
.aruzas-selected-cart__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.aruzas-selected-cart__info { min-width: 0; overflow-wrap: anywhere; }
.aruzas-selected-cart .aruzas-selected-cart__name { display: inline; margin: 0; color: #111; font-size: 1rem; font-weight: 500; text-decoration: none; line-height: 1.5; }
.aruzas-selected-cart__name:hover { text-decoration: underline; }
.aruzas-selected-cart p.aruzas-selected-cart__variation { margin: .4rem 0 0; color: #666; font-size: .75rem; line-height: 1.65; }
.aruzas-selected-cart p.aruzas-selected-cart__unit-price { margin: .55rem 0 0; font-size: .875rem; }
.aruzas-selected-cart p.aruzas-selected-cart__availability { margin: .5rem 0 0; color: #75533e; font-size: .75rem; line-height: 1.5; }
.aruzas-selected-cart__row[data-availability="sold_out"] p.aruzas-selected-cart__availability { color: #b42318; font-weight: 500; }
body.woocommerce-cart.aruzas-selected-cart-enabled .aruzas-selected-cart__availability-notice { display: none !important; }
.aruzas-selected-cart__row input[type=number] { box-sizing: border-box; min-width: 0; max-width: 100%; width: 72px; height: 42px; padding: .5rem; border: 1px solid #d0d0d0; border-radius: 0; background: #fff; color: #111; text-align: center; font: inherit; font-size: .875rem; }
.aruzas-selected-cart__subtotal { justify-self: end; min-width: 0; font-size: .9375rem; text-align: right; overflow-wrap: anywhere; }
.aruzas-selected-cart__summary { box-sizing: border-box; min-width: 0; padding: .25rem 0 0 1.5rem; border: 0; border-left: 1px solid var(--az-divider, #e4e4e4); background: transparent; }
.aruzas-selected-cart__summary h2 { margin: 0 0 1.5rem; font-size: 1.125rem; font-weight: 500; }
.aruzas-selected-cart__detail-lines { margin-top: 1rem; }
.aruzas-selected-cart__detail-line { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--az-divider, #e4e4e4); font-size: .8125rem; }
.aruzas-selected-cart__detail-line > :last-child { flex-shrink: 0; text-align: right; }
.aruzas-selected-cart__estimate { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.25rem 0 .75rem; font-size: .875rem; }
.aruzas-selected-cart__coupon { margin-top: 1rem; font-size: .8125rem; }
.aruzas-selected-cart__coupon > summary { cursor: pointer; padding: .5rem 0; }
.aruzas-selected-cart__coupon form { display: flex; gap: .5rem; padding: .5rem 0; }
.aruzas-selected-cart__coupon input { box-sizing: border-box; min-width: 0; width: 100%; padding: .6rem; border: 1px solid #d0d0d0; border-radius: 0; font: inherit; }
.aruzas-selected-cart .aruzas-selected-cart__coupon button { flex-shrink: 0; margin: 0; padding: .6rem 1rem; background: #111; color: #fff; border: 1px solid #111; border-radius: 0; font: inherit; }
.aruzas-selected-cart__coupon-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .35rem 0; font-size: .75rem; }
.aruzas-selected-cart .aruzas-selected-cart__coupon-row button { margin: 0; padding: .25rem 0; border: 0; background: transparent; color: #111; font: inherit; text-decoration: underline; cursor: pointer; }
.aruzas-selected-cart__estimate strong { font-size: 1.125rem; font-weight: 500; text-align: right; white-space: nowrap; }
.aruzas-selected-cart p.aruzas-selected-cart__selection { margin: 0; color: #666; font-size: .8125rem; }
.aruzas-selected-cart__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.aruzas-selected-cart .aruzas-selected-cart__actions button { flex: 1; margin: 0; padding: 1rem .75rem; border: 1px solid #111; border-radius: 0; font: inherit; font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.aruzas-selected-cart .aruzas-selected-cart__checkout { background: #111; color: #fff; }
.aruzas-selected-cart .aruzas-selected-cart__checkout:hover { background: #333; }
.aruzas-selected-cart .aruzas-selected-cart__quote { background: transparent; color: #111; }
.aruzas-selected-cart .aruzas-selected-cart__quote:hover { background: var(--az-warm, #f5f3ee); }
.aruzas-selected-cart button:disabled { opacity: .4; cursor: default; }
.aruzas-selected-cart p.aruzas-selected-cart__note { margin: 0; color: #666; font-size: .75rem; line-height: 1.5; }
.aruzas-selected-cart p.aruzas-selected-cart__error { margin: 0 0 1rem; padding: .75rem 0; color: #8a302c; font-size: .8125rem; }
.aruzas-selected-cart p.aruzas-selected-cart__empty { margin: 2rem 0; font-size: .9375rem; }
.aruzas-selected-cart :is(a, input, button, summary):focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.aruzas-selected-cart__dialog { box-sizing: border-box; width: min(600px, calc(100% - 2rem)); max-height: min(80vh, 800px); overflow: auto; padding: 2rem; border: 1px solid var(--az-divider, #e4e4e4); background: var(--az-surface, #fff); color: #111; font-family: var(--az-font-body, inherit); }
.aruzas-selected-cart__dialog::backdrop { background: rgb(0 0 0 / 40%); }
.aruzas-selected-cart__dialog h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 500; }
.aruzas-selected-cart__dialog h3 { margin: 1.5rem 0 .5rem; font-size: .9rem; font-weight: 500; }
.aruzas-selected-cart__dialog p, .aruzas-selected-cart__dialog li { font-size: .8125rem; line-height: 1.65; }
.aruzas-selected-cart__dialog ul { padding-left: 1.25rem; margin: 0; }
.aruzas-selected-cart__dialog li { margin: .4rem 0; }
.aruzas-selected-cart__dialog [role=alert] { color: #8a302c; }
.aruzas-selected-cart__dialog .aruzas-selected-cart__actions { flex-direction: row; }
.aruzas-selected-cart__dialog button { flex: 1; margin: 0; padding: .9rem .5rem; border: 1px solid #111; border-radius: 0; font: inherit; font-size: .8125rem; cursor: pointer; }
.aruzas-selected-cart__dialog .aruzas-selected-cart__checkout { background: #111; color: #fff; }
.aruzas-selected-cart__dialog .aruzas-selected-cart__quote { background: transparent; color: #111; }
.aruzas-selected-cart__dialog button:disabled { opacity: .4; cursor: default; }
.aruzas-selected-cart__dialog :is(button):focus-visible { outline: 2px solid #111; outline-offset: 4px; }
/* Product availability is a small note beside the normal buying controls. */
.aruzas-website-quota.aruzas-product-quota { box-sizing: border-box; flex-basis: 100%; width: 100%; min-width: 0; max-width: none; grid-column: 1 / -1; align-self: stretch; margin: .75rem 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.aruzas-product-quota p, .aruzas-product-bag-feedback { margin: .4rem 0; font-size: .75rem; line-height: 1.5; color: #666; }
.aruzas-product-quota button[data-product-quota-button] { margin: .3rem 0 0; padding: .3rem 0; border: 0; border-radius: 0; background: transparent; color: #111; font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: .2rem; }
.aruzas-product-bag-feedback { color: #8a302c; }
body.aruzas-selected-cart-enabled .wc-block-cart-items, body.aruzas-selected-cart-enabled form.woocommerce-cart-form .shop_table { display: none; }
body.aruzas-selected-cart-enabled .wc-block-cart__main:not(:has(.aruzas-selected-cart)) { display: none; }
/* Full-bag totals are not the payable selected scope. Publish the final native
   amount on Checkout and give the Bag one explicit reviewed checkout action. */
body.woocommerce-cart.aruzas-shared-stock-review-first .cart_totals,
body.woocommerce-cart.aruzas-shared-stock-review-first a.checkout-button,
body.woocommerce-cart.aruzas-shared-stock-review-first .wc-block-cart__sidebar,
body.woocommerce-cart.aruzas-shared-stock-review-first .wc-block-cart__submit-button { display: none !important; }
body.aruzas-shared-stock-review-first #wc-stripe-express-checkout-element, body.aruzas-shared-stock-review-first #wc-stripe-payment-request-wrapper, body.aruzas-shared-stock-review-first .wc-block-cart__payment-options { display: none !important; }
@media(min-width: 700px) and (max-width: 1050px) {
  .aruzas-selected-cart__row { grid-template-columns: 18px 64px minmax(0, 1fr) 54px; gap: .6rem; }
  .aruzas-selected-cart .aruzas-selected-cart__image { width: 64px; height: 64px; }
  .aruzas-selected-cart__row input[type=number] { width: 54px; }
  .aruzas-selected-cart__subtotal { grid-column: 3 / 5; }
  .aruzas-selected-cart__tools { gap: .5rem; }
  .aruzas-selected-cart__summary { padding-left: 1rem; }
}
@media(max-width: 699px) {
  body.woocommerce-cart .aruzas-selected-cart { width: calc(100% - 2rem); margin: 2rem auto; }
  .aruzas-selected-cart__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .aruzas-selected-cart__heading { align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
  .aruzas-selected-cart__tools { gap: .5rem; }
  .aruzas-selected-cart__row { grid-template-columns: 20px 80px minmax(0, 1fr); gap: .6rem .75rem; align-items: start; padding: 1.25rem 0; }
  .aruzas-selected-cart__row > input[type=checkbox] { margin-top: .15rem; grid-column: 1; grid-row: 1; }
  .aruzas-selected-cart .aruzas-selected-cart__image { width: 80px; height: 80px; grid-column: 2; grid-row: 1 / 4; }
  .aruzas-selected-cart__info { grid-column: 3; grid-row: 1; }
  .aruzas-selected-cart .aruzas-selected-cart__name { font-size: .875rem; }
  .aruzas-selected-cart__row input[type=number] { grid-column: 3; grid-row: 2; width: 72px; height: 38px; }
  .aruzas-selected-cart__subtotal { grid-column: 3; grid-row: 3; justify-self: start; font-size: .8125rem; }
  .aruzas-selected-cart__summary { padding: 0; border-left: 0; }
  .aruzas-selected-cart__dialog { padding: 1.25rem; }
}
