.rey-cart-primary,.rey-cart-secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
  padding: .65rem 1rem; border: 1px solid #a8440c; border-radius: .5rem;
  background: #a8440c; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.rey-cart-secondary { background: #fff; color: #84370d; }
.rey-cart-primary:disabled,.rey-cart-stepper button:disabled { opacity: .55; cursor: default; }
.rey-cart-header { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: inherit; text-decoration: none; font-weight: 700; }
.rey-cart-header svg { width: 24px; height: 24px; }
.rey-cart-add { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin: 1rem 0; }
.rey-cart-add label,.rey-cart-freight label { display: grid; gap: .35rem; font-weight: 600; }
.rey-cart-add input,.rey-cart-freight input { min-height: 44px; border: 1px solid #89939e; border-radius: .45rem; font: inherit; padding: .4rem .55rem; }
.rey-cart-add input { width: 5rem; }
.rey-cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(100%, 560px); height: 100%; max-height: none; max-width: none; box-shadow: -8px 0 32px #0002; }
.rey-cart-drawer::backdrop { background: #17212a80; }
html:has(.rey-cart-drawer[open]) { overflow: hidden; }
.rey-cart-drawer-layout { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; color: #202832; }
.rey-cart-drawer header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #e4e8eb; }
.rey-cart-drawer header h2 { margin: 0; font-size: 1.25rem; }
.rey-cart-drawer header button { padding: .15rem .6rem; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.rey-cart-drawer-items { overflow: auto; padding: 0 1.5rem; }
.rey-cart-drawer footer { display: grid; gap: .6rem; padding: 1rem 1.5rem; border-top: 1px solid #e4e8eb; background: #fff; }
.rey-cart-items { list-style: none; margin: 0; padding: 0; }
.rey-cart-items li { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: .85rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid #e4e8eb; }
.rey-cart-items img { width: 68px; height: 68px; object-fit: contain; }
.rey-cart-item-info { grid-column: 2; display: grid; gap: .45rem; overflow-wrap: anywhere; }
.rey-cart-item-info span { font-size: .9rem; }
.rey-cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rey-cart-stepper { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #89939e; border-radius: .4rem; overflow: hidden; }
.rey-cart-stepper button,.rey-cart-remove { min-height: 36px; border: 0; background: white; color: #202832; font: inherit; cursor: pointer; }
.rey-cart-stepper button { min-width: 36px; }
.rey-cart-remove { color: #84370d; text-decoration: underline; }
.rey-cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: .4rem 0 .8rem; }
.rey-cart-page { max-width: 1160px; margin: 0 auto; padding: 1.5rem 1rem 3rem; color: #202832; }
.rey-cart-page-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,360px); gap: 2rem; align-items: start; }
.rey-cart-continue { margin-top: 1rem; }
.rey-cart-continue:hover { background: #fff3e9; }
.rey-cart-page aside { padding: 1.25rem; border: 1px solid #e4e8eb; border-radius: .75rem; }
.rey-cart-page aside h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.rey-cart-freight > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.rey-cart-freight input { flex: 1 1 5.5rem; width: 100%; min-width: 0; }
.rey-cart-options { display: grid; gap: .5rem; padding: .65rem; margin: 0 0 1rem; border: 1px solid #e4e8eb; }
.rey-cart-options label { display: flex; align-items: baseline; gap: .45rem; }
@media (max-width: 700px) {
  .rey-cart-drawer { width: 100%; }
  .rey-cart-page-layout { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .rey-cart-items li { grid-template-columns: 52px minmax(0,1fr); }
  .rey-cart-items img { width: 52px; height: 52px; }
  .rey-cart-line-total { grid-column: 2; }
}
.rey-cart-count { display: inline-grid; place-items: center; min-width: 1.25rem; min-height: 1.25rem; padding: 0 .15rem; border-radius: 1rem; background: #a8440c; color: white; font-size: .75rem; }

.rey-cart-page h1 { margin-bottom: .2rem; }
.rey-cart-count-summary { margin: 0 0 1rem; color: #4d5965; }
.rey-cart-page .rey-cart-items { display: grid; gap: .75rem; }
.rey-cart-page .rey-cart-items li { grid-template-columns: 92px minmax(0,1fr) auto; border: 1px solid #e0e4e8; border-radius: .75rem; padding: 1rem; background: #fff; }
.rey-cart-photo { display: grid; place-items: center; width: 92px; aspect-ratio: 1; border-radius: .5rem; background: #f5f6f7; }
.rey-cart-page .rey-cart-photo img { width: 82px; height: 82px; }
.rey-cart-item-info a { color: inherit; text-decoration: none; }
.rey-cart-item-info a:hover { text-decoration: underline; }
.rey-cart-meta { color: #4d5965; }
.rey-cart-page .rey-cart-stepper { gap: 0; }
.rey-cart-page .rey-cart-stepper :is(button,input), .rey-cart-page .rey-cart-remove { min-height: 44px; }
.rey-cart-page .rey-cart-stepper button { min-width: 44px; }
.rey-cart-page .rey-cart-stepper input { width: 3.1rem; border: 0; border-inline: 1px solid #e0e4e8; text-align: center; font: inherit; color: inherit; }
.rey-cart-page :focus-visible { outline: 2px solid #075b9a; outline-offset: 2px; }
.rey-cart-stepper input:focus-visible { outline-offset: -3px; }
.rey-cart-page aside { background: #fff; }
.rey-cart-page .rey-cart-freight button { border-color: #89939e; color: #202832; }
.rey-cart-page .rey-cart-freight button:not(:disabled):hover { background: #f5f6f7; }
.rey-cart-freight-status:empty { margin: 0; }
.rey-cart-cep-summary, .rey-cart-costs div, .rey-cart-undo { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; }
.rey-cart-undo { margin-top: .8rem; padding-inline: .75rem; background: #f5f7f9; border-radius: .4rem; }
.rey-cart-options label { display: grid; grid-template-columns: auto minmax(0,1fr) auto; min-height: 44px; align-items: center; }
.rey-cart-options small, .rey-cart-mobile-total small { display: block; color: #4d5965; }
.rey-cart-costs { margin: .85rem 0; border-top: 1px solid #e0e4e8; padding-top: .6rem; }
.rey-cart-costs div { padding: .24rem 0; }
.rey-cart-costs dd { margin: 0; text-align: right; white-space: nowrap; }
.rey-cart-costs .rey-cart-estimate { background: #f3f5f6; border-radius: .4rem; padding: .65rem; margin-top: .4rem; font-weight: 700; }
.rey-cart-login-note { color: #4d5965; font-size: .9rem; }
.rey-cart-checkout-action > a { box-sizing: border-box; width: 100%; background: #17643c; border-color: #17643c; color: #fff; }
.rey-cart-checkout-action > a:hover { background: #104c2d; border-color: #104c2d; }
.rey-cart-checkout-hint { margin: .65rem 0 0; color: #4d5965; font-size: .875rem; line-height: 1.45; }
.rey-cart-mobile-total { display: none; }
@media (min-width: 701px) {
  .rey-cart-page aside { position: sticky; top: 1rem; }
}
@media (max-width: 700px) {
  .rey-cart-page-filled { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .rey-cart-page .rey-cart-items li { grid-template-columns: 58px minmax(0,1fr); gap: .6rem; padding: .7rem; }
  .rey-cart-photo { width: 58px; }
  .rey-cart-page .rey-cart-photo img { width: 54px; height: 54px; }
  .rey-cart-checkout-action { position: fixed; z-index: 8; inset: auto 0 0; display: flex; align-items: center; gap: .55rem; justify-content: space-between; padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e0e4e8; }
  .rey-cart-mobile-total { display: block; min-width: 0; }
  .rey-cart-checkout-action > a { width: auto; max-width: 65%; text-align: center; padding-inline: .65rem; }
}

@media (max-width: 700px) {
  #rey-cart-page:has(.rey-cart-page-filled) ~ .home-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
  #rey-cart-page .rey-cart-page-filled { padding-bottom: 2rem; }
}

.rey-cart-reorder {
  margin: .75rem 0;
  padding: .85rem 1rem;
  border: 1px solid #bdddc9;
  border-radius: .5rem;
  background: #eaf5ee;
  color: #216349;
}
.rey-cart-reorder ul { margin: .45rem 0 0; padding-inline-start: 1.2rem; }
