/* Panier EShop : garder les actions accessibles dans la fenêtre. */
html:has(#colorbox[style*="display: block"] .cart-info),
html:has(#colorbox[style*="display: block"] .cart-info) body,
html:has(body.com_eshop.view-checkout),
body.com_eshop.view-checkout { overflow-x: clip; }
#colorbox:has(.cart-info) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: min(54rem, 96vw) !important;
  height: auto !important;
  max-height: 92dvh;
}
#colorbox:has(.cart-info) #cboxWrapper,
#colorbox:has(.cart-info) #cboxContent {
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}
#colorbox:has(.cart-info) #cboxWrapper { position: relative !important; }
#cboxLoadedContent:has(.cart-info) {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 86vh;
  max-height: 86dvh;
  box-sizing: border-box;
  overflow: auto !important;
  padding: 1rem;
  margin: 0;
}
#cboxLoadedContent:has(.cart-info) > :is(h1, .form-group) { flex-shrink: 0; }
#cboxLoadedContent .cart-info { min-height: 0; overflow: auto; max-height: 52dvh; }
#cboxLoadedContent .cart-info .totals {
  position: sticky;
  bottom: 0;
  padding: .3rem;
  background: #fff;
  z-index: 1;
}
#cboxLoadedContent:has(.cart-info) .controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 0;
}
@media (max-width: 600px) {
  .view-checkout #eshop-main-container select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  #cboxLoadedContent:has(.cart-info) .controls > * { flex: 1 1 44%; white-space: normal; }
  #cboxLoadedContent .cart-info img { max-width: 4rem; height: auto; }
}

.com_eshop.view-checkout #t4-main-body .sidebar-l { display: none; }
.view-checkout #eshop-main-container { max-width: 58rem; margin-inline: auto; }
.view-checkout #eshop-main-container .checkout-heading::before { display: none; }
.view-checkout #eshop-main-container .checkout-heading { padding-left: 1rem; }
.view-checkout #stripe-card-form {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem;
  color: #182334;
  background: #f4f7fb;
  border: 1px solid #bec9d8;
  border-radius: .4rem;
}
#stripe-card-form [for="stripe-card-element"] {
  width: auto;
  padding: 0;
  font-weight: 700;
  font-size: 1.15rem;
}
#stripe-card-form .ag-card-help { margin: .35rem 0 .75rem; }
#stripe-card-form #stripe-card-element {
  float: none;
  display: block;
  width: 100%;
  padding: .9rem .7rem;
  border: 2px solid #64748b;
  border-radius: .3rem;
  background: white;
}
#stripe-card-form #stripe-card-element.StripeElement--focus {
  border-color: #243d91;
  outline: 3px solid #b8caf5;
}
#stripe-card-form #stripe-card-element.StripeElement--invalid { border-color: #a51b22; }
.ag-interac { padding: .85rem; background: #f4f7fb; }
@media (max-width: 600px) {
  .view-checkout #confirm .cart-info { overflow-x: auto; }
  .view-checkout #confirm #button-confirm { float: none !important; width: 100%; }
}
