/* Multiple selections share the existing drawer and its sticky checkout actions. */
.med-cart-footer .med-cart-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:1fr;align-items:stretch;
}
.med-cart-footer .med-cart-actions>.med-cart-continue,
.med-cart-footer .med-cart-actions>.med-cart-checkout{
  box-sizing:border-box;min-width:0;height:100%;
  /* Keep both actions pill-shaped on desktop and mobile; override legacy mobile radii. */
  border-radius:999px!important;
}
@media(max-width:390px){
  .med-cart-footer .med-cart-actions{grid-template-columns:minmax(0,1fr)!important}
}
.med-cart-items{flex:0 0 auto;min-width:0}
.med-cart-items .med-cart-product{margin:0}
.med-cart-status{
  flex:0 0 auto;margin:0;padding:12px 20px;background:#f4f3ed;color:#35352e;
  font-size:.8rem;line-height:1.45;border-bottom:1px solid #e6e5dd;
}
.med-cart-status[hidden]{display:none!important}
/* Quantity is intentionally compact: product name and price keep visual priority. */
.med-cart-quantity-label{
  display:block!important;gap:0!important;margin:3px 0 6px!important;
  font-size:.56rem!important;line-height:1.1!important;font-weight:760!important;
  letter-spacing:.075em;text-transform:uppercase;color:#8b8b84!important;
}
.med-cart-quantity{
  display:inline-flex;align-items:center;gap:0;width:max-content;max-width:100%;
  margin:0 0 11px;border:1px solid #deded7;border-radius:999px;overflow:hidden;
  background:#f5f5f1;box-shadow:none;
}
.med-cart-quantity button,.med-cart-quantity input{
  box-sizing:border-box;height:30px!important;min-height:30px!important;padding:0!important;
  border:0!important;color:#1f1f1d!important;font:inherit!important;text-align:center;
  border-radius:0!important;-webkit-tap-highlight-color:transparent;
}
.med-cart-quantity button{
  width:30px!important;min-width:30px!important;background:#f5f5f1!important;
  color:#74746d!important;font-size:.76rem!important;font-weight:720!important;cursor:pointer;
}
.med-cart-quantity input{
  width:34px!important;min-width:34px!important;background:#fff!important;
  border-left:1px solid #deded7!important;border-right:1px solid #deded7!important;
  font-size:.75rem!important;font-weight:780!important;font-variant-numeric:tabular-nums;
  -moz-appearance:textfield;appearance:textfield;
}
.med-cart-quantity input::-webkit-inner-spin-button,
.med-cart-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.med-cart-quantity button:disabled,.med-cart-quantity input:disabled{
  color:#9a9a93!important;background:#f1f1ed!important;cursor:default;
}
.med-cart-quantity :focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
.med-cart-quantity :focus-visible,.med-cart-remove:focus-visible{
  outline:2px solid #171717;outline-offset:-2px;position:relative;z-index:1;
}
.med-cart-unit-price{font-size:.72rem;color:#66665e;margin:0 0 6px}
/* MED_CART_HIERARCHY_V2: give each piece of information breathing room. */
.med-cart-product-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0}
.med-cart-product-copy .med-cart-product-name{margin:0 0 5px!important}
.med-cart-product-copy>p:not(.med-cart-issue){margin:0 0 9px!important;line-height:1.45!important}
.med-cart-remove{margin-top:1px!important;padding:4px 0!important;font-size:.78rem!important;color:#686861!important;background:transparent!important;border:0!important;text-decoration:underline;text-underline-offset:3px}

.med-cart-product-copy .med-cart-issue{color:#963724!important;font-size:.76rem!important;line-height:1.45!important;margin:4px 0 8px!important}
.med-cart-remove{min-height:32px;min-width:44px;text-align:left}
.med-cart-checkout[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.med-cart-items .med-cart-price{white-space:normal;text-align:right;overflow-wrap:anywhere}
@media(min-width:621px){
  .med-cart-items .med-cart-product{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:18px 20px}
  .med-cart-items .med-cart-thumb{width:64px;height:76px}
  .med-cart-items .med-cart-price{grid-column:2;text-align:left;margin-top:-5px}
}
/* One small visible X with a 44px touch target. Keyboard focus follows the
   visible mark, so opening the drawer never draws a second oversized ring. */
body .med-cart-close {
  box-sizing:border-box!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  padding:0!important;border:0!important;background:transparent!important;
  font-size:0!important;line-height:0!important;color:transparent!important;
  position:relative!important;display:grid!important;place-items:center!important;
  -webkit-tap-highlight-color:transparent!important;
  outline:none!important;box-shadow:none!important;
}
body .med-cart-close::before {content:none!important;display:none!important}
body .med-cart-close .med-cart-close-mark {
  display:grid!important;place-items:center!important;width:26px!important;height:26px!important;
  border:1px solid #deded8!important;border-radius:50%!important;background:#fff!important;color:#111!important;
  font-size:16px!important;line-height:1!important;font-weight:500!important;box-sizing:border-box!important;
}
body .med-cart-close:hover {background:transparent!important;transform:none!important}
body .med-cart-close:hover .med-cart-close-mark {border-color:#111!important}
body .med-cart-close:focus-visible .med-cart-close-mark {
  outline:2px solid #111!important;outline-offset:2px!important;
}
