/* IONTMAX Theme managed source: 2026-08-13 */
/*
 * IONTMAX Checkout — step 1 delivery & payment
 * OWNER: Checkout – krok 1 / CSS společné
 * DEPENDS: checkout
 *
 * Only step-1 specific country/currency selectors, delivery, payment,
 * Shoptet Pay bank selection and step-1 responsive behavior.
 */

/* ─── Native radio decoration reset ─── */

body.ordering-process .shipping-billing-table .radio-wrapper > label::before,
body.ordering-process .shipping-billing-table .radio-wrapper > label::after {
  display: none !important;
  content: none !important;
}

/* ─── Základní údaje – custom selecty, 2 sloupce ─── */

body.ordering-process #select-country-payment,
body.ordering-process #select-country-payment .co-basic-information {
  display: block !important;
  width: 100% !important;
}

body.ordering-process .co-basic-information .row,
body.ordering-process .co-basic-information > .row {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

body.ordering-process .co-basic-information .row::before,
body.ordering-process .co-basic-information .row::after {
  display: none !important;
  content: none !important;
}

body.ordering-process .co-basic-information .row > [class*="col-"],
body.ordering-process .co-basic-information .row > .col-sm-6 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  flex: none !important;
  position: static !important;
}

body.ordering-process .co-basic-information .form-group,
body.ordering-process .co-basic-information .form-group-wrapped,
body.ordering-process .co-basic-information .smart-label-wrapper,
body.ordering-process .co-basic-information .smart-label-wrapper.populated {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  position: static !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.ordering-process .co-basic-information .select-label,
body.ordering-process .co-basic-information label.select-label,
body.ordering-process .co-basic-information .smart-label-wrapper.populated .select-label,
body.ordering-process .co-basic-information .smart-label-wrapper.populated label {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  order: 1 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  float: none !important;
  pointer-events: auto !important;
  background: transparent !important;
}

body.ordering-process .co-basic-information select.form-control,
body.ordering-process .co-basic-information .smart-label-wrapper.populated select.form-control {
  order: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: var(--im-checkout-control-height) !important;
  height: var(--im-checkout-control-height) !important;
  margin: 0 !important;
  padding: 0 44px 0 var(--im-checkout-control-pad-x) !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: var(--im-checkout-control-radius) !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23111214' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  color: var(--im-checkout-text) !important;
  font-family: inherit !important;
  font-size: var(--im-checkout-control-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--im-checkout-control-height) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  float: none !important;
  vertical-align: top !important;
}

body.ordering-process .co-basic-information select.form-control::-ms-expand {
  display: none !important;
}

body.ordering-process .co-basic-information select.form-control:hover {
  border-color: #d7d7d7 !important;
}

body.ordering-process .co-basic-information select.form-control:focus {
  border-color: var(--im-checkout-accent) !important;
  box-shadow: var(--im-checkout-focus-ring) !important;
  outline: none !important;
}

/* Searchable country + currency selects */

body.ordering-process .im-country-select {
  position: relative !important;
  order: 2 !important;
  width: 100% !important;
}

body.ordering-process .im-country-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

body.ordering-process .co-basic-information .im-country-select + select.form-control,
body.ordering-process .co-basic-information select.im-country-select__native {
  display: none !important;
}

body.ordering-process .im-country-select__trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: var(--im-checkout-control-height) !important;
  margin: 0 !important;
  padding: 0 var(--im-checkout-control-pad-x) !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: var(--im-checkout-control-radius) !important;
  background: #fff !important;
  color: var(--im-checkout-text) !important;
  font-family: inherit !important;
  font-size: var(--im-checkout-control-font-size) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.ordering-process .im-country-select__trigger:hover {
  border-color: #d7d7d7 !important;
}

body.ordering-process .im-country-select--open .im-country-select__trigger,
body.ordering-process .im-country-select__trigger:focus {
  border-color: var(--im-checkout-accent) !important;
  box-shadow: var(--im-checkout-focus-ring) !important;
  outline: none !important;
}

body.ordering-process .im-country-select__value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ordering-process .im-country-select__chevron {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23111214' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
  transition: transform 0.18s ease !important;
}

body.ordering-process .im-country-select--open .im-country-select__chevron {
  transform: rotate(180deg) !important;
}

body.ordering-process .im-country-select__panel {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 40 !important;
  display: none !important;
  overflow: hidden !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

body.ordering-process .im-country-select--open .im-country-select__panel {
  display: block !important;
}

body.ordering-process .im-country-select__search {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--im-checkout-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--im-checkout-text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  outline: none !important;
}

body.ordering-process .im-country-select__search::placeholder {
  color: #9aa3ab !important;
}

body.ordering-process .im-country-select__search:focus {
  border-bottom-color: var(--im-checkout-accent) !important;
}

body.ordering-process .im-country-select__list {
  max-height: 280px !important;
  overflow-y: auto !important;
  padding: 6px !important;
}

body.ordering-process .im-country-select__option {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--im-checkout-text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.ordering-process .im-country-select__option:hover,
body.ordering-process .im-country-select__option.is-selected {
  background: #f6f6f6 !important;
}

body.ordering-process .im-country-select__option.is-hidden,
body.ordering-process .im-country-select__option[hidden] {
  display: none !important;
}

body.ordering-process .im-country-select__empty {
  padding: 14px 12px !important;
  color: var(--im-checkout-muted) !important;
  font-size: 13px !important;
  text-align: center !important;
}

/* ─── Shipping & payment options ─── */

body.ordering-process .shipping-billing-table {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "info logo price" !important;
  align-items: center !important;
  gap: 4px 14px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  min-height: 56px !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info {
  grid-area: info !important;
  display: block !important;
  min-width: 0 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel {
  display: block !important;
  margin: 6px 0 0 !important;
}

body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "info price" !important;
}

body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label:has(.payment-logo) {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "info logo price" !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel-description {
  display: block !important;
  margin: 6px 0 0 !important;
  color: var(--im-checkout-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > style {
  display: none !important;
}

/* Shoptet Pay – výběr banky pod „Rychlá platba přes banku“ */

body.ordering-process .shipping-billing-table .radio-wrapper:has(.pisPaymentMethod) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper:has(.pisPaymentMethod:not(.pisPaymentMethod--hidden)) > label,
body.ordering-process .shipping-billing-table .radio-wrapper:has(.pisPaymentMethod:not(.pisPaymentMethod--hidden)):has(> input[type="radio"]:checked) > label {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .pisPaymentMethod {
  display: none !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 14px 14px !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  background: #fff !important;
  font-family: inherit !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .pisPaymentMethod:not(.pisPaymentMethod--hidden),
body.ordering-process .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) .pisPaymentMethod:not(.pisPaymentMethod--hidden) {
  display: flex !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) .pisPaymentMethod:not(.pisPaymentMethod--hidden) {
  border-color: var(--im-checkout-accent) !important;
  background: #fafafa !important;
  box-shadow: 0 0 0 1px rgba(48, 50, 51, 0.06) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection__selected {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection__bankLogo {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 22px !important;
  max-width: 72px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection__bankName {
  color: var(--im-checkout-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection__button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--im-checkout-accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankSelection__button:hover {
  border-color: #d7d7d7 !important;
  background: #f6f6f6 !important;
  color: var(--im-checkout-text) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankInformation {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--im-checkout-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankInformation__exclamation {
  flex: 0 0 auto !important;
  width: 14px !important;
  height: 14px !important;
  margin: 1px 0 0 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankInformation__description,
body.ordering-process .shipping-billing-table .radio-wrapper .bankInformation a {
  color: var(--im-checkout-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .bankInformation a {
  color: var(--im-checkout-accent) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-logo {
  grid-area: logo !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 56px !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-logo img {
  display: block !important;
  max-width: 72px !important;
  max-height: 28px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-shipping-price {
  grid-area: price !important;
  margin: 0 !important;
  color: var(--im-checkout-text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .shipping-billing-name {
  display: block !important;
  color: var(--im-checkout-text) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .sublabel a,
body.ordering-process .shipping-billing-table .radio-wrapper > label .specify-shipping-method {
  color: var(--im-checkout-accent) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) > label {
  border-color: var(--im-checkout-accent) !important;
  background: #fafafa !important;
  box-shadow: 0 0 0 1px rgba(48, 50, 51, 0.06) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper.active:not(:has(> input[type="radio"]:checked)) > label,
body.ordering-process .shipping-billing-table .radio-wrapper:not(:has(> input[type="radio"]:checked)) > label.active {
  border-color: var(--im-checkout-line) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper:not(:has(> input[type="radio"]:checked)) > label:hover {
  border-color: #d7d7d7 !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label:focus,
body.ordering-process .shipping-billing-table .radio-wrapper > label:focus-visible,
body.ordering-process .shipping-billing-table .radio-wrapper > input[type="radio"]:focus,
body.ordering-process .shipping-billing-table .radio-wrapper > input[type="radio"]:focus-visible {
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) > label:focus,
body.ordering-process .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) > label:focus-visible {
  border-color: var(--im-checkout-accent) !important;
  box-shadow: 0 0 0 1px rgba(48, 50, 51, 0.06) !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper .not-possible-info {
  display: none !important;
}

/* ─── Krok 1 – shipping/payment cards (CZ + EN, včetně in-kosik) ─── */

body.ordering-process.in-krok-1 .shipping-billing-table {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "info logo price" !important;
  align-items: center !important;
  gap: 4px 14px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  min-height: 56px !important;
  border: 1px solid var(--im-checkout-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
}

body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "info price" !important;
}

body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label:has(.payment-logo) {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "info logo price" !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-info {
  grid-area: info !important;
  display: block !important;
  min-width: 0 !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-logo {
  grid-area: logo !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 56px !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-shipping-price {
  grid-area: price !important;
  margin: 0 !important;
  color: var(--im-checkout-text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .shipping-billing-name {
  display: block !important;
  color: var(--im-checkout-text) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper:has(> input[type="radio"]:checked) > label {
  border-color: var(--im-checkout-accent) !important;
  background: #fafafa !important;
  box-shadow: 0 0 0 1px rgba(48, 50, 51, 0.06) !important;
}

body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label::before,
body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label::after {
  display: none !important;
  content: none !important;
}


/* ─── Desktop step 1 layout ─── */

@media (min-width: 992px) {
  body.ordering-process form.order-delivery-payment-form,
  body.ordering-process #order-form.order-delivery-payment-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    margin: 0 !important;
  }

  body.ordering-process form.order-delivery-payment-form > .co-box,
  body.ordering-process #order-form.order-delivery-payment-form > .co-box {
    margin: 0 !important;
    height: auto !important;
  }

  body.ordering-process .co-basic-information .row,
  body.ordering-process .co-basic-information > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-direction: row !important;
    gap: 16px !important;
  }

  body.ordering-process .co-basic-information .row > [class*="col-"]:first-child,
  body.ordering-process .co-basic-information .row > .col-sm-6:first-child {
    grid-column: 1 !important;
  }

  body.ordering-process .co-basic-information .row > [class*="col-"]:last-child,
  body.ordering-process .co-basic-information .row > .col-sm-6:last-child {
    grid-column: 2 !important;
  }
}

/* ─── Narrow desktop – krok 1 card readability ─── */

@media (min-width: 992px) and (max-width: 1439px) {
  body.ordering-process .shipping-billing-table .radio-wrapper > label,
  body.ordering-process .shipping-billing-table .radio-wrapper > label:has(.payment-logo),
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label,
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label:has(.payment-logo) {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "info info"
      "logo price" !important;
    align-items: start !important;
    gap: 10px 12px !important;
    padding: 14px 16px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)),
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "info info"
      "price price" !important;
    align-items: start !important;
    gap: 8px 12px !important;
    padding: 14px 16px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info {
    grid-area: info !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .shipping-billing-name,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .shipping-billing-name a,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info b {
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel-description {
    margin-top: 4px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-logo {
    grid-area: logo !important;
    justify-self: start !important;
    align-self: center !important;
    max-width: 72px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-shipping-price {
    grid-area: price !important;
    justify-self: end !important;
    align-self: center !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 992px) and (max-width: 1240px) {
  body.ordering-process form.order-delivery-payment-form,
  body.ordering-process #order-form.order-delivery-payment-form {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

/* ─── Mobile step 1 layout ─── */

@media (max-width: 991px) {
  body.ordering-process #select-country-payment {
    margin-bottom: 0 !important;
  }

  body.ordering-process form.order-delivery-payment-form,
  body.ordering-process #order-form.order-delivery-payment-form {
    display: block !important;
  }

  body.ordering-process form.order-delivery-payment-form > .co-box,
  body.ordering-process #order-form.order-delivery-payment-form > .co-box {
    margin: 0 0 16px !important;
    height: auto !important;
  }

  body.ordering-process .co-basic-information .row,
  body.ordering-process .co-basic-information > .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.ordering-process .co-basic-information .row > [class*="col-"],
  body.ordering-process .co-basic-information .row > .col-sm-6 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  /* Shipping/payment cards – title full width, logo + price on second row */
  body.ordering-process .shipping-billing-table .radio-wrapper > label,
  body.ordering-process .shipping-billing-table .radio-wrapper > label:has(.payment-logo),
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label,
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label:has(.payment-logo) {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "info info"
      "logo price" !important;
    align-items: start !important;
    gap: 8px 12px !important;
    padding: 14px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)),
  body.ordering-process .co-payment-method .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "info price" !important;
    align-items: center !important;
    gap: 8px 12px !important;
    padding: 14px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info {
    grid-area: info !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .shipping-billing-name,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .shipping-billing-name a,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info b {
    display: block !important;
    line-height: 1.35 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel,
  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-info .sublabel-description {
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-logo {
    grid-area: logo !important;
    justify-self: start !important;
    align-self: center !important;
    min-width: 0 !important;
    max-width: 72px !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-logo img {
    display: block !important;
    max-width: 72px !important;
    max-height: 24px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label .payment-shipping-price {
    grid-area: price !important;
    justify-self: end !important;
    align-self: center !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    text-align: right !important;
  }
  /* ─── Krok 1 mobile – kratší scroll, přehlednější ─── */

  body.ordering-process.in-krok-1 .content-inner {
    padding: 8px 0 calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ordering-process.in-krok-1 ol.cart-header {
    margin-bottom: 8px !important;
  }

  body.ordering-process.in-krok-1 ol.cart-header > li.step a,
  body.ordering-process.in-krok-1 ol.cart-header > li.step strong {
    min-height: 40px !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }

  body.ordering-process.in-krok-1 .cart-row {
    gap: 10px !important;
    padding: 0 12px !important;
  }

  body.ordering-process.in-krok-1 form.order-delivery-payment-form > .co-box,
  body.ordering-process.in-krok-1 #order-form.order-delivery-payment-form > .co-box {
    margin-bottom: 10px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.ordering-process.in-krok-1 .co-box h4,
  body.ordering-process.in-krok-1 .co-box h2 {
    margin-bottom: 10px !important;
    font-size: 16px !important;
  }

  body.ordering-process.in-krok-1 .co-basic-information .row,
  body.ordering-process.in-krok-1 .co-basic-information > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-direction: row !important;
    gap: 8px !important;
  }

  body.ordering-process.in-krok-1 .co-basic-information .smart-label-wrapper label,
  body.ordering-process.in-krok-1 .co-basic-information label.select-label {
    margin-bottom: 6px !important;
    font-size: 12px !important;
  }

  body.ordering-process.in-krok-1 .co-basic-information select.form-control,
  body.ordering-process.in-krok-1 .co-basic-information .smart-label-wrapper.populated select.form-control,
  body.ordering-process.in-krok-1 .im-country-select__trigger {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 14px !important;
  }

  body.ordering-process.in-krok-1 .co-basic-information select.form-control {
    line-height: 42px !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table {
    gap: 6px !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label,
  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label:has(.payment-logo),
  body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label,
  body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label:has(.payment-logo),
  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)),
  body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)) {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas: "info logo price" !important;
    align-items: center !important;
    gap: 8px 12px !important;
    padding: 14px 16px !important;
    min-height: var(--im-checkout-action-height) !important;
    border-radius: var(--im-checkout-action-radius) !important;
  }

  body.ordering-process.in-krok-1 .co-payment-method .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "info price" !important;
  }

  body.ordering-process.in-krok-1 .co-delivery-method .shipping-billing-table .radio-wrapper > label:not(:has(.payment-logo)) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "info price" !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .shipping-billing-name,
  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .shipping-billing-name a,
  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-info b {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-shipping-price {
    font-size: 13px !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-logo {
    min-width: 0 !important;
    max-width: 52px !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-logo img {
    max-width: 52px !important;
    max-height: 20px !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-info .sublabel-description {
    display: none !important;
  }

  body.ordering-process.in-krok-1 .shipping-billing-table .radio-wrapper > label .payment-info .sublabel {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar .checkout-box {
    display: none !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar .order-summary {
    display: none !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar > .cart-content {
    gap: 0 !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar .next-step {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid var(--im-checkout-line) !important;
    background: rgba(246, 246, 247, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06) !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar .next-step-back,
  body.ordering-process.in-krok-1 #checkoutSidebar a.next-step-back.btn-lg {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-krok-1 #checkoutSidebar .next-step-forward,
  body.ordering-process.in-krok-1 #checkoutSidebar #orderFormButton {
    flex: 1 1 auto !important;
    min-height: 48px !important;
    width: auto !important;
  }
}

/* ============================================================
   KROK 1 MOBILE – ACTION BAR FIX
   Same mobile composition as Step 2:
   small Back on the left + flexible Continue on the right.
   ============================================================ */
@media (max-width: 991px) {
  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar .next-step {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    border-top: 1px solid var(--im-checkout-line) !important;
    background: rgba(246, 246, 247, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06) !important;
  }

  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar .next-step-back,
  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar a.next-step-back.btn,
  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar a.next-step-back.btn-lg {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar #orderFormButton,
  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar button#orderFormButton.next-step-forward,
  body.ordering-process.in-krok-1:not(.in-kosik):not(.in-cart):not(.im-vl-cart)
  #checkoutSidebar .next-step-forward {
    order: 2 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
  }
}
