/* Keep the standard modal background and blur; only the layout changes. */
#productModal.product-modal-split { padding: 24px; }
#productModal.product-modal-split > .modal-content {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(980px, 100%);
  max-width: 980px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
}
#productModal.product-modal-split #modalImageContainer {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}
#productModal.product-modal-split #modalImageWrap {
  width: 100%;
  height: auto !important;
  min-height: 300px;
  max-height: none;
  aspect-ratio: 1;
}
#productModal.product-modal-split #modalImage {
  position: static;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: min(520px, 70dvh);
  object-fit: contain;
  transform: none !important;
}
#productModal.product-modal-split .classic-product-details {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 32px;
}
#productModal.product-modal-split .classic-product-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  z-index: 3;
}
#productModal.product-modal-split .classic-product-close:hover { background: rgba(255,255,255,.18); }
#productModal.product-modal-split .classic-product-close:focus-visible { outline: 2px solid #6fc7ff; outline-offset: 3px; }
#productModal.product-modal-split #modalTitle {
  box-sizing: border-box;
  margin: 0;
  padding-right: 28px;
  font-size: 25px;
  text-align: left;
  overflow-wrap: anywhere;
}
#productModal.product-modal-split #modalCategoryBadge { align-self: flex-start; margin: 0 28px 0 0; }
#productModal.product-modal-split #classicModalPrice { font-size: 23px; font-weight: 800; }
#classicModalPrice .product-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  backdrop-filter: none;
}
#classicModalPrice .old-price { font-size: 14px; opacity: .55; text-decoration: line-through; }
#classicModalPrice .new-price { font-size: inherit; color: #7ee787; }
#productModal.product-modal-split #modalDescription {
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.65;
}
#productModal.product-modal-split :is(.quantity-control, #serverSelect, .purchase-buttons-row, .purchase-button) { margin: 0; }
#productModal.product-modal-split .purchase-buttons-row { display: flex; flex-wrap: wrap; gap: 10px; }
#productModal.product-modal-split .purchase-buttons-row > .purchase-button { flex: 1 1 165px; }
#productModal.product-modal-split .purchase-button .price { padding: 4px 6px; }
#productModal.product-modal-split .purchase-button :is(.old-price, .new-price) { white-space: nowrap; }
@media (max-width: 700px) {
  #productModal.product-modal-split { padding: 12px; }
  #productModal.product-modal-split > .modal-content { grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 24px); }
  #productModal.product-modal-split #modalImageContainer { padding: 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  #productModal.product-modal-split #modalImageWrap { min-height: 0; aspect-ratio: 1.5; }
  #productModal.product-modal-split #modalImage { max-height: 260px; }
  #productModal.product-modal-split .classic-product-details { padding: 24px 20px; }
  #productModal.product-modal-split #modalTitle { font-size: 21px; }
}


/* Bundle composition needs more room than a single product description. */
#productModal.product-modal-split:has(.bundle-choice:not([hidden])) > .modal-content {
  width:min(1180px,100%);
  max-width:1180px;
}
#productModal.product-modal-split:has(.bundle-choice:not([hidden])) .classic-product-details {
  gap:12px;
  padding:24px;
}
#productModal.product-modal-split .bundle-choice { margin-top:0;padding:12px; }
#productModal.product-modal-split .bundle-choice h3 { margin-bottom:10px;font-size:16px; }
#productModal.product-modal-split .bundle-choice-grid {
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;
}
#productModal.product-modal-split .bundle-choice-row { padding:10px 8px;gap:6px;border-radius:10px; }
#productModal.product-modal-split .bundle-choice-row img { height:56px; }
#productModal.product-modal-split .bundle-choice-row span { font-size:11px;line-height:1.35; }
#productModal.product-modal-split .bundle-choice-row strong { font-size:12px; }
#productModal.product-modal-split .bundle-choice > p { margin-top:10px;font-size:12px; }
#productModal.product-modal-split .bundle-choice > .bundle-choice-progress { margin:0 0 10px; }
@media(min-width:701px) {
  #productModal.product-modal-split:has(.bundle-choice:not([hidden])) > .modal-content {
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  }
}
@media(max-width:700px) {
  #productModal.product-modal-split:has(.bundle-choice:not([hidden])) .classic-product-details { padding:20px; }
  #productModal.product-modal-split .bundle-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
