/* Chocolenka checkout – steps 2 and 3 */
body.ordering-process {
  --ch-checkout-brown: #351d0d;
  --ch-checkout-brown-soft: #6a3b17;
  --ch-checkout-caramel: #d9801a;
  --ch-checkout-caramel-dark: #b96617;
  --ch-checkout-cream: #f8f2e9;
  --ch-checkout-paper: #fffdf9;
  --ch-checkout-line: #eadbc9;
  --ch-checkout-muted: #75665a;
  --ch-checkout-green: #3d7b35;
  --ch-checkout-green-bg: #edf6e9;
  background: #f6f3ef;
  color: var(--ch-checkout-brown);
}

body.ordering-process #content {
  background:
    radial-gradient(circle at 10% 4%, rgba(217, 128, 26, .055), transparent 26%),
    #f6f3ef;
}

body.ordering-process #content .content-inner {
  width: 100%;
  max-width: none;
  padding: 34px 0 70px;
}

body.ordering-process .cart-inner {
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
}

body.ordering-process .cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin: 0;
}

body.ordering-process #checkoutContent,
body.ordering-process #checkoutSidebar {
  width: auto;
  min-width: 0;
  float: none;
  padding: 0;
}

body.ordering-process #checkoutContent {
  grid-column: 1;
  grid-row: 1;
}

body.ordering-process #checkoutSidebar {
  grid-column: 2;
  grid-row: 1;
}

body.ordering-process #checkoutContent > .cart-content,
body.ordering-process #checkoutSidebar > .cart-content {
  padding: 0;
  background: transparent;
}

/* Progress */
body.ordering-process #checkoutContent .cart-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--ch-checkout-line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 10px 28px rgba(53, 29, 13, .055);
}

body.ordering-process #checkoutContent .cart-header .step {
  width: auto;
  min-height: 104px;
  margin: 0;
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-right: 1px solid var(--ch-checkout-line);
  background: transparent;
  color: #918478;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

body.ordering-process #checkoutContent .cart-header .step:last-child {
  border-right: 0;
}

body.ordering-process #checkoutContent .cart-header .step::before {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
}

body.ordering-process #checkoutContent .cart-header .step.active {
  position: relative;
  color: var(--ch-checkout-brown);
  background: #fffaf3;
}

body.ordering-process #checkoutContent .cart-header .step.active::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ch-checkout-caramel);
}

body.ordering-process #checkoutContent .cart-header .step.completed {
  color: #76685d;
}

@media (min-width: 641px) {
  body.ordering-process #checkoutContent .cart-header .step > strong,
  body.ordering-process #checkoutContent .cart-header .step > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0 !important;
    color: inherit;
    font: inherit;
    text-align: center;
    text-decoration: none;
  }

  body.ordering-process #checkoutContent .cart-header .step.active > strong {
    border-bottom: 0 !important;
  }
}

/* Intro message */
body.ordering-process .site-msg-custom.step-1 {
  margin: 0 0 20px;
  padding: 18px 22px;
  border: 1px solid #ead8bf;
  border-radius: 14px;
  background: #fff8ec;
  color: #665345;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

body.ordering-process .site-msg-custom.step-1 p:last-child {
  margin-bottom: 0;
}

/* Main content cards */
body.ordering-process #checkoutContent .co-box,
body.ordering-process #checkoutContent .co-billing-address {
  margin: 0 0 18px;
  padding: 28px;
  border: 1px solid var(--ch-checkout-line);
  border-radius: 18px;
  background: var(--ch-checkout-paper);
  box-shadow: 0 10px 28px rgba(53, 29, 13, .045);
}

body.ordering-process #checkoutContent .co-billing-address > .box {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ordering-process #checkoutContent .co-box h2,
body.ordering-process #checkoutContent .co-billing-address h2,
body.ordering-process #checkoutContent .form-legend {
  margin: 0 0 22px;
  color: var(--ch-checkout-brown);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.01em;
}

body.ordering-process #checkoutContent .order-icon {
  min-height: 42px;
  padding-left: 58px;
  display: flex;
  align-items: center;
}

/* Fields */
body.ordering-process #checkoutContent .form-group {
  margin-bottom: 14px;
}

body.ordering-process #checkoutContent .form-group--inline {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body.ordering-process #checkoutContent .form-group--inline > label,
body.ordering-process #checkoutContent .form-group--inline > .label {
  width: auto;
  margin: 0;
  color: #5f5147;
  font-weight: 700;
}

body.ordering-process #checkoutContent input.form-control,
body.ordering-process #checkoutContent select.form-control,
body.ordering-process #checkoutContent textarea.form-control,
body.ordering-process #checkoutContent .phone-combined-input {
  min-height: 50px;
  border: 1px solid #ddcdbb;
  border-radius: 11px;
  background: #fff;
  color: var(--ch-checkout-brown);
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.ordering-process #checkoutContent input.form-control:focus,
body.ordering-process #checkoutContent select.form-control:focus,
body.ordering-process #checkoutContent textarea.form-control:focus {
  border-color: var(--ch-checkout-caramel);
  box-shadow: 0 0 0 3px rgba(217, 128, 26, .13);
}

body.ordering-process #checkoutContent .login-button,
body.ordering-process #checkoutContent .btn-secondary {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #cda77e;
  border-radius: 10px;
  background: #fffaf4;
  color: var(--ch-checkout-brown);
  font-weight: 800;
}

/* Country and currency */
body.ordering-process .co-basic-information .row {
  margin: 0 -8px;
}

body.ordering-process .co-basic-information .col-sm-6 {
  padding: 0 8px;
}

body.ordering-process .co-basic-information label {
  margin-bottom: 7px;
  color: #66564a;
  font-weight: 700;
}

/* Shipping and payment cards */
body.ordering-process .shipping-billing-table {
  display: grid;
  gap: 10px;
}

body.ordering-process .shipping-billing-table .radio-wrapper {
  margin: 0;
  overflow: visible;
  border: 1px solid var(--ch-checkout-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.ordering-process .shipping-billing-table .radio-wrapper:hover {
  border-color: #d8b78f;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(53, 29, 13, .065);
}

body.ordering-process .shipping-billing-table .radio-wrapper.active {
  border-color: var(--ch-checkout-caramel);
  background: #fffaf2;
  box-shadow: 0 0 0 3px rgba(217, 128, 26, .10);
}

body.ordering-process .shipping-billing-table .radio-wrapper > input {
  position: absolute;
  margin: 0;
  opacity: 0;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label {
  min-height: 76px;
  margin: 0;
  padding: 14px 16px 14px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 86px;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  border: 2px solid #bda991;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

/* Shoptet adds its own checked dot through label::after. The redesigned
   radio already draws the complete selected state in label::before. */
body.ordering-process .shipping-billing-table .radio-wrapper > label::after {
  content: none !important;
  display: none !important;
}

body.ordering-process .shipping-billing-table .radio-wrapper.active > label::before {
  border-color: var(--ch-checkout-caramel);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--ch-checkout-caramel);
}

body.ordering-process .shipping-billing-table .payment-info {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  color: #4e4036;
}

body.ordering-process .shipping-billing-table .shipping-billing-name {
  display: block;
  line-height: 1.4;
  font-weight: 800;
}

/* Present Shoptet's shipping-method tooltip copy as a calm secondary line.
   The localized text stays sourced from data-original-title. */
body.ordering-process .shipping-billing-table .radio-wrapper > label .question-tooltip {
  width: auto;
  height: auto;
  margin: 4px 0 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  text-align: left !important;
  cursor: default;
  pointer-events: none;
}

body.ordering-process .shipping-billing-table .payment-info > span:has(.question-tooltip) {
  width: 100%;
  display: block;
  text-align: left;
}

body.ordering-process .shipping-billing-table .radio-wrapper > label .question-tooltip::after {
  content: attr(data-original-title);
  display: block;
  color: #817266;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

body.ordering-process .shipping-billing-table .payment-logo {
  width: 118px;
  text-align: center;
}

body.ordering-process .shipping-billing-table .payment-logo img {
  width: auto;
  max-width: 108px;
  max-height: 38px;
  object-fit: contain;
}

body.ordering-process .shipping-billing-table .payment-shipping-price {
  color: var(--ch-checkout-green);
  font-size: 14px;
  text-align: right;
}

body.ordering-process .shipping-billing-table .sublabel {
  width: 100%;
  margin: 8px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--ch-checkout-green-bg);
  color: #4e6448;
  box-sizing: border-box;
}

/* Match the custom Basileus pickup-point control to Shoptet's native
   delivery-point row used by Balíkovna. */
body.ordering-process #shipping-574.active {
  position: relative;
}

body.ordering-process #shipping-574.active > label {
  min-height: 118px;
  padding-bottom: 58px;
}

body.ordering-process #shipping-574.active .basileus-picker {
  position: absolute;
  left: 58px;
  bottom: 14px;
  width: calc(100% - 318px);
  min-height: 39px;
  margin: 0;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  background: var(--ch-checkout-green-bg);
  color: #4e6448;
  box-sizing: border-box;
}

body.ordering-process #shipping-574.active .basileus-selection {
  min-width: 0;
  overflow: hidden;
  color: #4e6448;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.ordering-process #shipping-574.active .basileus-open {
  flex: 0 0 auto;
  color: var(--ch-checkout-brown-soft);
  font-weight: 700;
}

/* Additional options */
body.ordering-process #checkoutContent .form-option-block,
body.ordering-process #checkoutContent .co-box-additional .form-group {
  padding: 12px 0;
  border-bottom: 1px solid #efe3d6;
}

body.ordering-process #checkoutContent .co-box-additional {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Sidebar */
body.ordering-process #checkoutSidebar {
  position: sticky;
  top: 18px;
}

body.ordering-process #checkoutSidebar .order-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.ordering-process #checkoutSidebar .order-summary-inner {
  order: -1;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--ch-checkout-line);
  border-radius: 18px;
  background: var(--ch-checkout-paper);
  box-shadow: 0 12px 30px rgba(53, 29, 13, .075);
}

body.ordering-process #checkoutSidebar .order-summary-inner > h2 {
  margin: 0 0 17px;
  color: var(--ch-checkout-brown);
  font-size: 21px;
  font-weight: 800;
}

body.ordering-process #checkoutSidebar .cart-items {
  margin: 0 0 16px;
  border-top: 1px solid #eee1d4;
}

body.ordering-process #checkoutSidebar .cart-item {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 82px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #eee1d4;
}

body.ordering-process #checkoutSidebar .cart-item-name {
  min-width: 0;
}

body.ordering-process #checkoutSidebar .cart-item-name a {
  color: var(--ch-checkout-brown-soft);
  font-weight: 700;
}

body.ordering-process #checkoutSidebar .cart-item-amount,
body.ordering-process #checkoutSidebar .cart-item-price {
  text-align: right;
}

body.ordering-process #checkoutSidebar .gift-items {
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: var(--ch-checkout-green-bg);
}

body.ordering-process #checkoutSidebar .gift-items .cart-item {
  display: block;
  padding: 0;
  border: 0;
}

body.ordering-process #checkoutSidebar .for-free {
  color: var(--ch-checkout-green);
}

body.ordering-process #checkoutSidebar .order-summary-item.helper,
body.ordering-process #checkoutSidebar .recapitulation-single {
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body.ordering-process #checkoutSidebar .order-summary-item.price {
  margin: 14px -22px -22px;
  padding: 20px 22px 22px;
  border-top: 2px solid var(--ch-checkout-caramel);
  background: #fffaf3;
}

body.ordering-process #checkoutSidebar .price-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  align-items: end;
}

body.ordering-process #checkoutSidebar .price-primary.price {
  color: var(--ch-checkout-brown);
  font-size: 32px;
  font-weight: 800;
}

body.ordering-process #checkoutSidebar .next-step {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

body.ordering-process #checkoutSidebar .btn-conversion,
body.ordering-process #checkoutSidebar .next-step-forward,
body.ordering-process #checkoutSidebar .next-step-finish {
  min-height: 56px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: var(--ch-checkout-caramel);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(217, 128, 26, .22);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.ordering-process #checkoutSidebar .btn-conversion:hover,
body.ordering-process #checkoutSidebar .next-step-forward:hover,
body.ordering-process #checkoutSidebar .next-step-finish:hover {
  background: var(--ch-checkout-caramel-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(217, 128, 26, .28);
}

body.ordering-process #checkoutSidebar .next-step-back {
  color: #77695e;
}

body.ordering-process #checkoutSidebar .checkout-box {
  order: 2;
  overflow: hidden;
  border: 1px solid var(--ch-checkout-line);
  border-radius: 16px;
  background: var(--ch-checkout-paper);
  box-shadow: 0 8px 22px rgba(53, 29, 13, .045);
}

body.ordering-process #checkoutSidebar .toggle-contacts {
  margin: 0;
  padding: 15px 18px;
  border: 0;
  background: var(--ch-checkout-brown-soft);
  color: #fff;
  font-weight: 800;
}

body.ordering-process #checkoutSidebar .checkout-box > .box {
  margin: 0;
  padding: 18px;
  border: 0;
  background: transparent;
}

body.ordering-process #checkoutSidebar .contact-box ul {
  margin: 0;
}

body.ordering-process #checkoutSidebar .contact-box li {
  margin-bottom: 8px;
}

/* Consents */
body.ordering-process #checkoutSidebar .consents {
  margin: 13px 0 0;
  color: #66584e;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 991px) {
  body.ordering-process .cart-inner {
    width: min(100% - 24px, 760px);
  }

  body.ordering-process .cart-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ordering-process #checkoutSidebar {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  body.ordering-process #checkoutContent {
    grid-column: 1;
    grid-row: auto;
  }

  body.ordering-process #checkoutSidebar .order-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.ordering-process #content .content-inner {
    padding: 18px 0 42px;
  }

  body.ordering-process .cart-inner {
    width: calc(100% - 16px);
  }

  body.ordering-process #checkoutContent .cart-header {
    border-radius: 14px;
  }

  body.ordering-process #checkoutContent .cart-header .step {
    min-height: 72px;
    padding: 12px 8px;
    gap: 6px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
  }

  body.ordering-process #checkoutContent .cart-header .step::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 13px;
  }

  body.ordering-process #checkoutContent .cart-header .step.active::after {
    right: 10px;
    left: 10px;
  }

  body.ordering-process #checkoutContent .co-box,
  body.ordering-process #checkoutContent .co-billing-address {
    padding: 18px 15px;
    border-radius: 15px;
  }

  body.ordering-process #checkoutContent .co-box h2,
  body.ordering-process #checkoutContent .co-billing-address h2,
  body.ordering-process #checkoutContent .form-legend {
    margin-bottom: 17px;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.ordering-process #checkoutContent .order-icon {
    min-height: 34px;
    padding-left: 43px;
  }

  body.ordering-process #checkoutContent .site-msg-custom {
    padding: 17px 15px;
    font-size: 13px;
    line-height: 1.5;
  }

  body.ordering-process #checkoutContent .site-msg-custom p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  body.ordering-process #checkoutContent .site-msg-custom p:last-child {
    margin-bottom: 0;
  }

  body.ordering-process #checkoutContent .form-group--inline {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body.ordering-process #checkoutContent .form-group--inline > label,
  body.ordering-process #checkoutContent .form-group--inline > .label {
    font-size: 13px;
  }

  body.ordering-process .co-basic-information .col-sm-6 {
    margin-bottom: 12px;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label {
    min-height: 88px;
    padding: 13px 12px 13px 43px;
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  body.ordering-process .shipping-billing-table .radio-wrapper > label::before {
    left: 13px;
  }

  body.ordering-process .shipping-billing-table .payment-info {
    grid-column: 1;
    grid-row: 1 / 3;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  body.ordering-process .shipping-billing-table .payment-logo {
    grid-column: 2;
    grid-row: 1;
    width: 82px;
  }

  body.ordering-process .shipping-billing-table .payment-logo img {
    max-width: 78px;
    max-height: 30px;
  }

  body.ordering-process .shipping-billing-table .payment-shipping-price {
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    font-size: 12px;
    text-align: center;
  }

  body.ordering-process .shipping-billing-table .shipping-billing-name {
    font-size: 12px;
  }

  body.ordering-process .shipping-billing-table .sublabel {
    width: 100%;
    margin: 7px 0 0;
  }

  body.ordering-process #shipping-574.active > label {
    min-height: 124px;
    padding-bottom: 58px;
  }

  body.ordering-process #shipping-574.active .basileus-picker {
    left: 54px;
    bottom: 13px;
    width: calc(100% - 167px);
    min-height: 40px;
    padding: 10px 12px;
  }

  body.ordering-process #checkoutSidebar .order-summary-inner {
    padding: 18px 15px;
    border-radius: 15px;
  }

  body.ordering-process #checkoutSidebar .cart-item {
    grid-template-columns: minmax(0, 1fr) 36px 70px;
    font-size: 12px;
  }

  body.ordering-process #checkoutSidebar .order-summary-item.price {
    margin-right: -15px;
    margin-bottom: -18px;
    margin-left: -15px;
    padding: 18px 15px;
  }

  body.ordering-process #checkoutSidebar .price-primary.price {
    font-size: 27px;
  }

  body.ordering-process #checkoutSidebar .next-step {
    grid-template-columns: 1fr;
  }

  body.ordering-process #checkoutSidebar .next-step-back {
    order: 2;
    text-align: center;
  }
}
