/* MK Cable cart and checkout — v2
   Visual-only overrides scoped to the Shoptet ordering process. */

body.ordering-process {
  --mkco-blue: #0266ff;
  --mkco-blue-dark: #0054d6;
  --mkco-blue-soft: #edf3ff;
  --mkco-navy: #141e31;
  --mkco-text: #2f394a;
  --mkco-muted: #667085;
  --mkco-line: #e2e7f0;
  --mkco-soft: #f6f8fc;
  --mkco-green: #178a45;
  --mkco-white: #fff;
}

body.ordering-process #content-wrapper {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  padding-top: 22px;
  padding-bottom: 58px;
}

body.ordering-process #content,
body.ordering-process #content .content-inner {
  width: 100%;
  min-width: 0;
}

/* Progress indicator */
body.ordering-process .cart-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--mkco-line);
  border-radius: 12px;
  background: var(--mkco-white);
  box-shadow: 0 10px 30px rgba(20, 30, 49, .07);
  list-style: none;
}

body.ordering-process .cart-header .step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  margin: 0;
  padding: 8px 12px 8px 54px;
  border-radius: 9px;
  color: var(--mkco-muted);
  line-height: 1.25;
}

body.ordering-process .cart-header .step::before {
  top: 50%;
  left: 10px;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid #d6dce7;
  border-radius: 50%;
  background: var(--mkco-soft);
  color: var(--mkco-muted);
  line-height: 32px;
  transform: translateY(-50%);
}

body.ordering-process .cart-header .step.active {
  background: var(--mkco-blue-soft);
  color: var(--mkco-navy);
}

body.ordering-process .cart-header .step.active::before {
  border-color: var(--mkco-blue);
  background: var(--mkco-blue);
  color: var(--mkco-white);
}

body.ordering-process .cart-header .step.completed::before {
  border-color: var(--mkco-green);
  background: var(--mkco-green);
  color: var(--mkco-white);
}

body.ordering-process .cart-header a,
body.ordering-process .cart-header strong {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

/* Shared cards and controls */
body.ordering-process .cart-inner,
body.ordering-process .co-box,
body.ordering-process .order-summary {
  color: var(--mkco-text);
}

body.ordering-process .co-box,
body.ordering-process #checkoutSidebar .cart-content,
body.ordering-process #checkoutSidebar .order-summary {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--mkco-line);
  border-radius: 11px;
  background: var(--mkco-white);
  box-shadow: 0 8px 24px rgba(20, 30, 49, .055);
}

body.ordering-process .co-box h2,
body.ordering-process .order-summary h2 {
  margin-top: 0;
  color: var(--mkco-navy);
  font-weight: 800;
  line-height: 1.2;
}

body.ordering-process .form-control,
body.ordering-process select {
  min-height: 46px;
  border: 1px solid #cdd5e1;
  border-radius: 7px;
  background: var(--mkco-white);
  box-shadow: none;
}

/* Shoptet's floating labels need more vertical room than ordinary controls. */
body.ordering-process #content input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.ordering-process #content select {
  min-height: 60px;
}

body.ordering-process .form-control:focus,
body.ordering-process select:focus {
  border-color: var(--mkco-blue);
  outline: 3px solid rgba(2, 102, 255, .12);
}

body.ordering-process .btn-conversion,
body.ordering-process .next-step-forward,
body.ordering-process .next-step-finish {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--mkco-blue);
  border-radius: 7px;
  background: var(--mkco-blue);
  color: var(--mkco-white);
  font-weight: 800;
  box-shadow: none;
}

body.ordering-process .btn-conversion:hover,
body.ordering-process .next-step-forward:hover,
body.ordering-process .next-step-finish:hover {
  border-color: var(--mkco-blue-dark);
  background: var(--mkco-blue-dark);
}

body.ordering-process .next-step-back {
  min-height: 44px;
  padding: 11px 0;
  color: var(--mkco-muted);
  font-weight: 700;
}

/* Cart */
body.in-cart #cart-wrapper .cart-inner {
  overflow: hidden;
  border: 1px solid var(--mkco-line);
  border-radius: 12px;
  background: var(--mkco-white);
  box-shadow: 0 10px 30px rgba(20, 30, 49, .07);
}

body.in-cart .cart-table {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

body.in-cart .cart-table tr {
  border-bottom: 1px solid var(--mkco-line);
}

body.in-cart .cart-table td {
  padding-top: 20px;
  padding-bottom: 20px;
  border: 0;
  vertical-align: middle;
}

body.in-cart .cart-table .p-name a {
  color: var(--mkco-navy);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

body.in-cart .cart-table .availability-label {
  color: var(--mkco-green);
  font-weight: 800;
}

body.in-cart .cart-table .p-quantity .quantity {
  overflow: hidden;
  border: 1px solid var(--mkco-line);
  border-radius: 7px;
}

body.in-cart .cart-inner > .summary {
  margin: 0;
  padding: 24px 26px;
  border-top: 0;
  background: var(--mkco-soft);
}

body.in-cart .summary .price-wrapper {
  color: var(--mkco-text);
}

body.in-cart .summary .price-wrapper .price,
body.in-cart .summary .price-wrapper strong {
  color: var(--mkco-navy);
}

body.in-cart .next-step--cart {
  margin-top: 20px;
}

/* Delivery and payment */
body.in-step-1 #select-country-payment .co-basic-information {
  margin-bottom: 18px;
  padding: 14px 18px;
  box-shadow: none;
}

body.in-step-1 .co-delivery-method,
body.in-step-1 .co-payment-method {
  height: 100%;
}

body.in-step-1 .shipping-billing-table {
  border: 0;
}

body.in-step-1 .radio-wrapper {
  margin: 0 0 10px;
  padding: 15px 16px;
  border: 1px solid var(--mkco-line);
  border-radius: 9px;
  background: var(--mkco-white);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.in-step-1 .radio-wrapper:hover {
  border-color: #b9c7da;
  background: var(--mkco-soft);
}

body.in-step-1 .radio-wrapper.active {
  border-color: var(--mkco-blue);
  background: var(--mkco-blue-soft);
  box-shadow: 0 0 0 2px rgba(2, 102, 255, .1);
}

body.in-step-1 .radio-wrapper:last-child {
  margin-bottom: 0;
}

body.in-step-1 .radio-wrapper label {
  color: var(--mkco-navy);
  font-weight: 700;
}

body.in-step-1 .radio-wrapper .payment-shipping-price {
  color: var(--mkco-navy);
  font-weight: 800;
}

body.in-step-1 .next-step--step-1 {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--mkco-line);
}

/* Customer information and order summary */
body.in-step-2 #checkoutContent,
body.in-step-2 #checkoutSidebar {
  min-width: 0;
}

body.in-step-2 #checkoutContent .co-box {
  margin-bottom: 16px;
}

body.in-step-2 .co-box-additional {
  background: var(--mkco-soft);
  box-shadow: none;
}

body.in-step-2 #checkoutSidebar .cart-content,
body.in-step-2 #checkoutSidebar .order-summary {
  padding: 20px;
}

body.in-step-2 #checkoutSidebar .order-summary {
  background: var(--mkco-soft);
}

body.in-step-2 #checkoutSidebar .cart-item-name a {
  color: var(--mkco-navy);
  font-weight: 700;
  text-decoration: none;
}

body.in-step-2 #checkoutSidebar .cart-item-price,
body.in-step-2 #checkoutSidebar .order-summary strong {
  color: var(--mkco-navy);
}

body.in-step-2 .consents {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--mkco-line);
  border-radius: 9px;
  background: var(--mkco-soft);
  color: var(--mkco-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.in-step-2 .consents a {
  color: var(--mkco-blue-dark);
  font-weight: 700;
}

body.in-step-2 .next-step--step-2 {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mkco-line);
}

body.in-step-2 #submit-order {
  min-width: 260px;
}

/* At tablet widths the checkout header search must remain on one line. */
@media (min-width: 768px) and (max-width: 991px) {
  body.ordering-process #formSearchForm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 360px;
  }

  body.ordering-process #formSearchForm fieldset {
    display: contents;
  }

  body.ordering-process #formSearchForm .search-input {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    border-radius: 7px 0 0 7px;
  }

  body.ordering-process #formSearchForm .search-button {
    grid-column: 2;
    width: auto;
    min-width: 92px;
    border-radius: 0 7px 7px 0;
  }
}

@media (max-width: 850px) {
  body.ordering-process #content-wrapper {
    width: min(calc(100% - 28px), 760px);
    padding-bottom: 42px;
  }

  body.ordering-process .cart-header {
    gap: 6px;
    padding: 10px;
  }

  body.ordering-process .cart-header .step {
    min-height: 48px;
    padding: 7px 8px 7px 43px;
  }

  body.ordering-process .cart-header .step::before {
    left: 7px;
    width: 29px;
    height: 29px;
    line-height: 27px;
  }

  body.ordering-process .cart-header a,
  body.ordering-process .cart-header strong {
    font-size: 12px;
  }

  body.in-step-1 #checkoutContent,
  body.in-step-1 #checkoutSidebar,
  body.in-step-2 #checkoutContent,
  body.in-step-2 #checkoutSidebar {
    float: none;
    width: 100%;
  }

  body.in-step-2 #checkoutSidebar {
    margin-top: 18px;
  }

  body.in-step-2 #submit-order {
    min-width: 0;
  }
}

@media (max-width: 540px) {
  body.ordering-process #content-wrapper {
    width: calc(100% - 20px);
    padding-top: 14px;
  }

  body.ordering-process .cart-header {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.ordering-process .cart-header .step {
    min-height: 42px;
  }

  body.ordering-process .cart-header .step:not(.active):not(.completed) {
    display: none;
  }

  body.ordering-process .co-box,
  body.ordering-process #checkoutSidebar .cart-content,
  body.ordering-process #checkoutSidebar .order-summary {
    padding: 18px 15px;
  }

  body.in-cart #cart-wrapper .cart-inner {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  body.in-cart .cart-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--mkco-line);
    border-radius: 10px;
    background: var(--mkco-white);
  }

  body.in-cart .cart-inner > .summary {
    padding: 20px 16px;
    border: 1px solid var(--mkco-line);
    border-radius: 10px;
  }

  body.ordering-process .next-step-forward,
  body.ordering-process .next-step-finish {
    width: 100%;
  }
}
