/* Acciones de compra siempre accesibles en el panel lateral. */
.drawer {
  height: 100dvh;
  overscroll-behavior: contain;
  scroll-padding-bottom: 155px;
}
.drawer-actions,
.cart-footer {
  position: sticky;
  bottom: -28px;
  z-index: 4;
  background: #fff;
  margin: 12px -28px -28px;
  padding: 13px 28px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #e8ece9;
  box-shadow: 0 -12px 24px rgba(27, 48, 38, 0.06);
}
.drawer-actions {
  display: block;
}
.checkout-buttons {
  display: flex;
  gap: 10px;
}
.checkout-buttons .btn {
  flex: 1;
  min-width: 0;
  min-height: 48px;
}
.drawer-actions .payment-summary {
  padding: 0 0 10px;
  border: 0;
  align-items: center;
}
.drawer-actions .payment-summary strong {
  font-size: 18px;
}
.cart-footer .total {
  margin: 0 0 13px;
}
.cart-footer .btn {
  min-height: 48px;
}
.cart-notice {
  margin: 20px 0;
}
.drawer .close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.drawer .close:hover {
  background: #f1f4f1;
}
.drawer .qty button {
  width: 36px;
  height: 36px;
}
#toast.cart-alert {
  left: auto;
  right: 24px;
  bottom: 24px;
  transform: none;
  max-width: min(480px, calc(100% - 32px));
  background: #fff;
  color: #253b31;
  border: 1px solid #e4ece5;
  border-radius: 14px;
  box-shadow: 0 12px 40px #10271f2e;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}
.cart-alert-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e4f4e9;
  color: #16804d;
  font-size: 18px;
  font-weight: 800;
}
.cart-alert-copy {
  min-width: 0;
  flex: 1;
}
.cart-alert-copy strong,
.cart-alert-copy small {
  display: block;
}
.cart-alert-copy strong {
  font-size: 12px;
}
.cart-alert-copy small {
  font-size: 11px;
  color: #718177;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-alert-action {
  border: 0;
  border-radius: 9px;
  background: #073493;
  color: #fff;
  padding: 0 13px;
  min-height: 42px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}
.cart-alert-close {
  border: 0;
  background: transparent;
  color: #819087;
  font-size: 22px;
  min-width: 32px;
  min-height: 42px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 640px) {
  .drawer {
    padding: 20px;
    scroll-padding-bottom: 145px;
  }
  .drawer-actions,
  .cart-footer {
    bottom: -20px;
    margin: 12px -20px -20px;
    padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  }
  .checkout-buttons {
    gap: 8px;
  }
  .checkout-buttons .btn {
    padding: 0 10px;
    font-size: 11px;
  }
  .drawer .wizard-steps {
    margin: 18px 0;
  }
  .drawer .form-grid {
    gap: 11px;
  }
  #toast.cart-alert {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: none;
  }
  .cart-alert-copy small {
    max-width: 180px;
  }
  .cart-alert-icon {
    width: 32px;
    height: 32px;
  }
  .cart-alert-action {
    padding: 0 10px;
  }
}
