.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: rgba(15, 17, 26, 0.58);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;

  width: min(440px, 100%);
  height: 100%;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;
  padding: 22px;

  background: #ffffff;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.22);

  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-overlay.is-open .cart-panel {
  transform: translateX(0);
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.cart-panel__header h2 {
  margin: 0;
}

#cartClose {
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.cart-item img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.cart-item h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0;
  color: #667085;
}

.cart-item__remove {
  border: 0;
  background: transparent;
  color: #c53030;
  cursor: pointer;
}

.cart-summary {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

#checkoutButton {
  width: 100%;
  min-height: 46px;

  border: 0;
  border-radius: 9px;
  background: #28a745;
  color: white;

  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;

  display: inline-grid;
  place-items: center;

  border-radius: 999px;
  background: #ffffff;
  color: #e60073;
  font-size: 0.75rem;
}
/* ==============================
   ACCESO A PEDIDOS YA REALIZADOS
============================== */

.cart-guest-help {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f7f9fc;
}

.cart-guest-help[hidden] {
  display: none !important;
}

.cart-guest-help strong {
  display: block;
  margin-bottom: 6px;
  color: #182230;
}

.cart-guest-help p {
  margin: 0 0 12px;
  color: #596579;
  line-height: 1.45;
}

#cartGuestLookupButton {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e60073;
  border-radius: 9px;
  background: #ffffff;
  color: #b8005c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#cartGuestLookupButton:hover {
  background: #fff1f7;
}
