/* Checkout layout safeguards. Keep carrier artwork from defining the step height. */
.em-checkout,
.em-checkout > .row,
.em-checkout .checkout-step,
.em-checkout .checkout-step .content,
.em-checkout .delivery-options-list,
.em-checkout .delivery-options,
.em-checkout .delivery-option,
.em-checkout .delivery-option-2 {
  min-width: 0;
  max-width: 100%;
}

.em-checkout .delivery-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line, #d5dee3);
  border-radius: 10px;
  background: #fff;
}

.em-checkout .delivery-option > .col-sm-1,
.em-checkout .delivery-option > .delivery-option-2 {
  float: none;
  width: auto;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.em-checkout .delivery-option .custom-radio {
  float: none !important;
  margin: 0;
}

.em-checkout .delivery-option-2 {
  display: block;
  cursor: pointer;
}

.em-checkout .delivery-option-2 > .row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(120px, 1fr) minmax(80px, auto);
  align-items: center;
  gap: 10px 18px;
  margin: 0;
}

.em-checkout .delivery-option-2 > .row > [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.em-checkout .delivery-option .carrier {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
}

.em-checkout .delivery-option .carrier:not(.carrier-hasLogo) {
  grid-template-columns: minmax(0, 1fr);
}

.em-checkout .delivery-option .carrier > [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.em-checkout .carrier-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 48px;
  overflow: hidden;
}

.em-checkout .carrier-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 64px !important;
  max-height: 48px !important;
  object-fit: contain;
}

.em-checkout .carrier-name,
.em-checkout .carrier-delay,
.em-checkout .carrier-price {
  display: block;
  overflow-wrap: anywhere;
}

.em-checkout .carrier-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.em-checkout .carrier-delay {
  color: var(--muted, #5c6e78);
  font-size: 13px;
  line-height: 1.45;
}

.em-checkout .carrier-price {
  color: var(--navy, #0a3d56);
  font-weight: 700;
  text-align: right;
}

.em-checkout .carrier-extra-content {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100%;
  max-height: 240px !important;
  max-block-size: min(240px, 55dvh) !important;
  margin: 10px 0 14px;
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.em-checkout .carrier-extra-content > * {
  max-width: 100%;
}

.em-checkout .carrier-extra-content :is(img, picture, svg, video) {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 480px) !important;
  max-height: 220px !important;
  margin: 14px auto;
  object-fit: contain;
}

.em-checkout .carrier-extra-content iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}

.em-checkout .carrier-extra-content [style*="background"] {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.em-checkout :is(#hook-display-before-carrier, #hook-display-after-carrier, #extra_carrier) {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  overflow: visible;
}

.em-checkout :is(#hook-display-before-carrier, #hook-display-after-carrier, #extra_carrier)
  :is(img, picture, svg, video, canvas, iframe, object, embed) {
  display: block;
  max-width: 100% !important;
}

.em-checkout .em-carrier-extra--unbounded {
  max-height: none !important;
  max-block-size: none !important;
  overflow: visible !important;
}

.em-checkout .em-carrier-extra--unbounded :is(img, picture, svg, video, canvas, iframe, object, embed) {
  max-height: none !important;
}

.em-checkout .order-options textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  resize: vertical;
}

@media (max-width: 1023.98px) {
  .em-checkout .em-cartgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .em-checkout .cart-grid-right {
    position: static;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .em-checkout .checkout-step .content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .em-checkout .delivery-option {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  .em-checkout .delivery-option-2 > .row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .em-checkout .delivery-option-2 > .row > :first-child {
    grid-column: 1 / -1;
  }

  .em-checkout .carrier-price {
    white-space: nowrap;
  }

  .em-checkout .carrier-extra-content :is(img, picture, svg, video) {
    max-height: 160px !important;
  }

  .em-checkout .carrier-extra-content {
    max-height: 190px !important;
    max-block-size: min(190px, 48dvh) !important;
  }

}

@media (max-width: 420px) {
  .em-checkout .delivery-option .carrier {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .em-checkout .carrier-logo {
    width: 52px !important;
    height: 42px;
  }

  .em-checkout .carrier-logo img {
    max-width: 52px !important;
    max-height: 42px !important;
  }
}
