/* Base / overlay */
.order-modal[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Contenedor del modal (sin backdrop propio) */
.order-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent; /* sin oscurecer: el overlay global ya lo hace */
  pointer-events: none; /* no bloquear clicks fuera del dialog */
  z-index: 99999; /* por encima del overlay (#body_overlay) */
}

/* El "recuadro" (card) */
.order-modal__dialog {
  pointer-events: auto; /* recibe clicks */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  width: min(860px, 92vw);
  max-height: 85dvh; /* no ocupa todo el alto; permite scroll interno */
  overflow: auto;
  padding: 20px;
}
.order-modal:not([hidden]) .order-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.order-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.order-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}
.order-modal__title {
  margin: 8px 40px 10px 4px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.order-modal__content {
  margin-top: 6px;
}
.order-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #fff 24px);
}
.order-modal__remember {
  font-size: 0.9rem;
  color: #333;
}
.order-modal__remember input {
  vertical-align: middle;
  margin-right: 0.35rem;
}
.order-modal__spacer {
  flex: 1;
}
.order-modal__btn {
  appearance: none;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #222;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}
.order-modal__btn:hover {
  background: #f6f6f6;
}
.order-modal__btn--primary {
  background: #2185d0;
  border-color: #2185d0;
  color: #fff;
}
.order-modal__btn--primary:hover {
  filter: brightness(0.95);
}
@media (max-width: 480px) {
  .order-modal__dialog {
    width: calc(100% - 1.5rem);
    padding: 16px 14px;
    border-radius: 14px;
  }
}

/* Tabs */
.order-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.order-tab {
  appearance: none;
  border: 1px solid #ddd;
  background: #f6f6f6;
  color: #222;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}
.order-tab[aria-selected="true"] {
  background: #222;
  color: #fff;
  border-color: #222;
}
/* Panels */
.order-panels > [data-panel] {
  display: none;
}
.order-panels > [data-panel].is-active {
  display: block;
}

/* Cards / features */
.order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .order-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.order-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
}
.order-card h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.05rem;
}
.order-badge {
  display: inline-block;
  margin: 0.15rem 0 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eef6ff;
  color: #1f5bb3;
  border: 1px solid #cfe3ff;
}
.order-features {
  margin: 0.35rem 0 0.35rem;
  padding-left: 1rem;
}
.order-features li {
  margin: 0.25rem 0;
  color: #444;
}
.order-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: #2185d0;
  color: #fff;
  text-decoration: none;
}
.order-cta:hover {
  filter: brightness(0.95);
}

/* Links internos comunes */
.order-modal__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.order-modal__link {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: #f3f3f3;
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
}
.order-modal__link:hover {
  background: #e9e9e9;
}
*[data-open-express-info]{
  cursor: pointer;
}
*[data-open-express-info]:hover{
  opacity: .85;
}