/* SuperKlima checkout layout: grouped forms and cart in a two-column grid. */
body#checkout,
body#checkout #content {
  font-family: Manrope, sans-serif;
  color: #323232;
}

body#checkout .page-title-wrapper h1,
body#checkout h1.page-title,
body#checkout .page-header h1 {
  color: #323232;
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}

body#checkout #content > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

body#checkout #content > .row > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
}

body#checkout .cart-grid-body,
body#checkout .cart-grid-right { display: contents; }

/* Guest checkout only: hide sign-in and the optional account creation fields. */
body#checkout .sk-checkout-login-tab,
body#checkout .sk-checkout-login-pane,
body#checkout .form-informations { display: none !important; }

body#checkout .sk-checkout-guest-tab { display: none !important; }

/* Remove the gender selector and the account-profile privacy explanation. */
body#checkout #customer-form .form-group:has(input[name="id_gender"]),
body#checkout #customer-form .form-group:has(select[name="id_gender"]),
body#checkout #customer-form .form-group:has(input[name="gender"]),
body#checkout #customer-form .form-group:has(select[name="gender"]) { display: none !important; }

body#checkout #customer-form .form-group:has(input[name="customer_privacy"]) em,
body#checkout #customer-form .form-group:has(input[name="customer_privacy"]) small { display: none !important; }

body#checkout .sk-checkout-account-tabs { justify-content: center; }

body#checkout section.checkout-step {
  margin: 0 0 18px;
  padding: 0 14px 16px;
  border: 1px solid #111;
  border-top: 2px solid #00b8df;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

body#checkout section.checkout-step .step-title {
  padding: 10px 0 9px;
  border-bottom: 1px solid #111;
  color: #246fb6;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
}

body#checkout section.checkout-step.-unreachable .step-title { color: #246fb6; }

body#checkout section.checkout-step.-reachable .content,
body#checkout section.checkout-step.-reachable.-complete .content { display: block !important; }

body#checkout section.checkout-step .content { padding-top: 14px; }

body#checkout .form-group.row { margin-bottom: 12px; }

body#checkout .form-control,
body#checkout input.form-control,
body#checkout select.form-control {
  min-height: 40px;
  border: 1px solid #d3dce5;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #323232;
  font-family: Manrope, sans-serif;
}

body#checkout .form-control:focus,
body#checkout input.form-control:focus,
body#checkout select.form-control:focus {
  border-color: #69bde3;
  box-shadow: 0 0 0 2px rgba(36, 111, 182, .12);
}

body#checkout .btn-primary,
body#checkout #payment-confirmation button {
  border-color: #246fb6;
  border-radius: 4px;
  background: #246fb6;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 700;
}

body#checkout .btn-primary:hover,
body#checkout #payment-confirmation button:hover {
  border-color: #1e5e9b;
  background: #1e5e9b;
}

/* Completed steps show a muted Continue button while the next step is active. */
body#checkout section.checkout-step.-complete .form-footer .continue,
body#checkout section.checkout-step.-complete .form-footer button[type="submit"] {
  border-color: #8a8f94;
  background: #8a8f94;
}

body#checkout section.checkout-step.-complete .form-footer .continue:hover,
body#checkout section.checkout-step.-complete .form-footer button[type="submit"]:hover {
  border-color: #747a80;
  background: #747a80;
}

body#checkout label,
body#checkout .form-informations,
body#checkout .text-muted,
body#checkout small {
  color: #626d78;
  font-family: Manrope, sans-serif;
}

body#checkout .form-control-comment,
body#checkout .form-text { color: #7a858f; }

body#checkout .sk-checkout-summary-under-payment .cart-summary {
  margin: 18px 0 0;
  border: 1px solid #111;
  border-top: 2px solid #00b8df;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

body#checkout #js-checkout-summary .order-summary-title {
  border-bottom: 1px solid #111 !important;
  color: #246fb6 !important;
  opacity: 1 !important;
  padding: 10px 10px 9px !important;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
}

/* Keep Romania selected and submitted, while hiding the country selector. */
body#checkout #invoice-address .form-group:has(select[name="id_country"]),
body#checkout .js-address-form .form-group:has(select[name="id_country"]) {
  display: none !important;
}

body#checkout .sk-checkout-summary-under-payment .cart-summary .card-block { padding: 12px 14px; }

@media (min-width: 992px) {
  body#checkout #content > .row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  body#checkout #checkout-personal-information-step { grid-column: 1; }
  body#checkout #checkout-addresses-step { grid-column: 1; }
  body#checkout #checkout-delivery-step { grid-column: 1; }
  body#checkout #checkout-payment-step { grid-column: 2; grid-row: 1; }
  body#checkout #js-checkout-summary {
    position: absolute;
    top: 300px;
    right: 0;
    width: calc(50% - 10px);
    margin: 0;
  }
}

@media (max-width: 991px) {
  body#checkout #content > .row { gap: 12px; }
  body#checkout section.checkout-step { padding-right: 12px; padding-left: 12px; }
  body#checkout .sk-checkout-summary-under-payment .cart-summary { margin-top: 14px; }
  body#checkout #js-checkout-summary { position: static; width: 100%; margin: 0 0 18px; }
}
