/*
 * KNICS checkout redesign.
 *
 * This stylesheet only changes the presentation of the native PrestaShop
 * checkout. Products, addresses, carriers, vouchers, totals and payment
 * options continue to come from PrestaShop and the installed modules.
 */

:root {
  --knics-checkout-black: #090909;
  --knics-checkout-green: #04c950;
  --knics-checkout-green-hover: #0add5a;
  --knics-checkout-copy: #545454;
  --knics-checkout-muted: #888888;
  --knics-checkout-placeholder: #a8a8a8;
  --knics-checkout-line: #e4e4e4;
  --knics-checkout-line-strong: #d9d9d9;
  --knics-checkout-soft: #f5f5f5;
  --knics-checkout-disabled: #fafafa;
}

body#checkout,
body#checkout button,
body#checkout input,
body#checkout select,
body#checkout textarea {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body#checkout {
  color: var(--knics-checkout-black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body#checkout #wrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

body#checkout #wrapper > .container,
body#checkout #wrapper > .container-fluid,
body#checkout #inner-wrapper,
body#checkout #content-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body#checkout .breadcrumb,
body#checkout .page-header,
body#checkout .page-title {
  display: none !important;
}

body#checkout #content,
body#checkout .knics-checkout-root {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 0 72px;
}

body#checkout #content,
body#checkout #content *,
body#checkout .knics-checkout-root,
body#checkout .knics-checkout-root * {
  box-sizing: border-box;
}

.knics-checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--knics-checkout-line);
}

.knics-checkout-heading h1,
.knics-checkout-heading p {
  margin: 0;
}

.knics-checkout-heading h1 {
  color: var(--knics-checkout-black);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .9;
  text-transform: uppercase;
}

.knics-checkout-stage {
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

body#checkout #content > .row,
body#checkout #content > form > .row,
body#checkout .knics-checkout-root > .row,
body#checkout .knics-checkout-grid {
  display: grid;
  grid-template-columns: calc(50% + 94px) calc(50% - 126px);
  align-items: start;
  gap: 32px;
  margin: 0;
}

body#checkout .cart-grid-body,
body#checkout .cart-grid-right {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.knics-checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.knics-checkout-progress-item {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-align: left;
}

button.knics-checkout-progress-item:not(:disabled) {
  cursor: pointer;
}

.knics-checkout-progress-bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 9px;
  border-radius: 2px;
  background: #ededed;
}

.knics-checkout-progress-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.knics-checkout-progress-number,
.knics-checkout-progress-label {
  display: block;
  color: #c1c1c1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.knics-checkout-progress-label {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knics-checkout-progress-item.is-complete .knics-checkout-progress-bar {
  background: var(--knics-checkout-green);
}

.knics-checkout-progress-item.is-complete .knics-checkout-progress-number,
.knics-checkout-progress-item.is-complete .knics-checkout-progress-label {
  color: var(--knics-checkout-copy);
}

.knics-checkout-progress-item.is-current .knics-checkout-progress-bar {
  background: var(--knics-checkout-black);
}

.knics-checkout-progress-item.is-current .knics-checkout-progress-number {
  color: var(--knics-checkout-green);
}

.knics-checkout-progress-item.is-current .knics-checkout-progress-label {
  color: var(--knics-checkout-black);
}

body#checkout .cart-grid-body > section.checkout-step,
body#checkout .cart-grid-body .checkout-step {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--knics-checkout-line);
  border-radius: 14px;
  color: var(--knics-checkout-black);
  background: #fff;
  box-shadow: none;
  opacity: 1;
  transition: border-color .2s ease, background-color .2s ease;
}

body#checkout .cart-grid-body .checkout-step.-current {
  border-color: var(--knics-checkout-line-strong);
}

body#checkout .cart-grid-body .checkout-step.-unreachable {
  border-color: #ededed;
  background: var(--knics-checkout-disabled);
}

body#checkout section.checkout-step .step-title,
body#checkout section.checkout-step.-current .step-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 16px 22px;
  border: 0;
  color: var(--knics-checkout-black);
  font-size: 0;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

body#checkout section.checkout-step.-current .step-title {
  min-height: auto;
  padding: 25px 26px 4px;
}

body#checkout section.checkout-step.-unreachable .step-title {
  cursor: default;
}

body#checkout section.checkout-step .step-number {
  display: inline-block;
  flex: 0 0 auto;
  color: #c1c1c1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
}

body#checkout section.checkout-step.-current .step-number {
  color: var(--knics-checkout-green);
  font-size: 13px;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-number {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
  color: transparent;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-number::before {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--knics-checkout-green) url("../img/knics/checkout-check.svg") center / 12px 12px no-repeat;
  content: "";
}

.knics-checkout-step-label {
  display: inline-block;
  min-width: 0;
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

body#checkout section.checkout-step.-current .knics-checkout-step-label {
  font-size: 21px;
  letter-spacing: -.01em;
}

body#checkout section.checkout-step.-unreachable .knics-checkout-step-label {
  color: #c1c1c1;
}

.knics-checkout-step-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--knics-checkout-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

body#checkout section.checkout-step .step-title .done {
  display: none !important;
}

body#checkout section.checkout-step .step-edit,
body#checkout section.checkout-step.-reachable.-complete .h1 .step-edit,
body#checkout section.checkout-step.-reachable.-complete h1 .step-edit {
  display: none;
  flex: 0 0 auto;
  float: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-edit {
  display: block;
}

body#checkout section.checkout-step .content,
body#checkout section.checkout-step.-current .content,
body#checkout section.checkout-step.-current.-reachable.-complete .content {
  margin: 0;
  padding: 0 26px 28px;
}

body#checkout section.checkout-step.-current .content {
  display: block;
  animation: knicsCheckoutIn .25s ease-out;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .content,
body#checkout section.checkout-step.-unreachable .content {
  display: none;
}

@keyframes knicsCheckoutIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.knics-checkout-intro {
  max-width: 580px;
  margin: 4px 0 22px;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body#checkout #content a,
body#checkout .knics-checkout-root a {
  color: var(--knics-checkout-black);
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

body#checkout #content a:hover,
body#checkout #content a:focus,
body#checkout .knics-checkout-root a:hover,
body#checkout .knics-checkout-root a:focus {
  color: var(--knics-checkout-green);
}

/* Native account tabs and logged-in identity. */
body#checkout section.checkout-step .nav.nav-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px !important;
  padding: 0;
  border: 0;
}

body#checkout section.checkout-step .nav-item {
  margin: 0;
}

body#checkout section.checkout-step .nav-link {
  padding: 0 0 4px;
  border: 0;
  color: var(--knics-checkout-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

body#checkout section.checkout-step .nav-link.active {
  color: var(--knics-checkout-black);
  box-shadow: inset 0 -1px var(--knics-checkout-black);
}

body#checkout section.checkout-step .nav-separator {
  color: var(--knics-checkout-line-strong);
}

body#checkout section.checkout-step .identity {
  margin: 12px 0 6px;
  padding: 18px 20px;
  border-radius: 12px;
  color: var(--knics-checkout-black);
  background: var(--knics-checkout-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

body#checkout #personal-information-step-login {
  margin: 0 0 22px;
  padding: 20px;
  border-radius: 12px;
  background: var(--knics-checkout-soft);
}

body#checkout #personal-information-step-login .knics-login-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body#checkout #personal-information-step-login .forgot-password,
body#checkout #personal-information-step-login .form-footer {
  grid-column: 1 / -1;
}

body#checkout .knics-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body#checkout .knics-register-form > .knics-auth-eyebrow,
body#checkout .knics-register-form > .knics-auth-field--gender,
body#checkout .knics-register-form > .knics-auth-name-grid,
body#checkout .knics-register-form > .knics-auth-form-rule,
body#checkout .knics-register-form > .knics-auth-consents,
body#checkout .knics-register-form > .form-footer,
body#checkout .knics-register-form > .help-block,
body#checkout .knics-register-form > .alert {
  grid-column: 1 / -1;
}

body#checkout .knics-register-form .knics-auth-eyebrow {
  display: none;
}

body#checkout .knics-auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body#checkout .knics-auth-field,
body#checkout .knics-auth-field > .form-group,
body#checkout .knics-auth-field .js-input-column,
body#checkout .knics-auth-field .input-group {
  width: 100%;
  min-width: 0;
  margin: 0;
}

body#checkout .knics-auth-own-label {
  display: block;
  margin: 0 0 7px;
  color: var(--knics-checkout-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

body#checkout .knics-auth-field .input-group {
  display: flex;
  flex-wrap: nowrap;
}

body#checkout .knics-auth-field .input-group input.form-control {
  border-radius: 8px 0 0 8px;
}

body#checkout .knics-auth-field [data-action="show-password"] {
  min-width: 46px;
  border: 1px solid #c1c1c1;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--knics-checkout-copy);
  background: #fff;
}

body#checkout .knics-auth-field--gender .js-input-column {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body#checkout .knics-auth-field--gender .radio-inline {
  min-width: 104px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid #c1c1c1;
  border-radius: 999px;
  color: var(--knics-checkout-black);
  background: #fff;
  text-align: center;
}

body#checkout .knics-auth-field--gender .radio-inline:has(input:checked) {
  border-color: var(--knics-checkout-black);
  color: #fff;
  background: var(--knics-checkout-black);
}

body#checkout .knics-auth-field--gender .custom-radio {
  display: inline-flex;
}

body#checkout .knics-auth-form-rule {
  height: 1px;
  margin-top: 8px;
  background: var(--knics-checkout-line);
}

body#checkout .knics-auth-consents {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

body#checkout .knics-auth-technical-consent,
body#checkout .knics-password-strength:empty,
body#checkout .knics-auth-legal,
body#checkout .knics-auth-login-prompt {
  display: none;
}

body#checkout .knics-register-form > .form-footer {
  margin-top: 8px;
}

/* Native forms are turned into the two-column layout from the mock-up. */
body#checkout #checkout-personal-information-step .form-fields,
body#checkout #checkout-addresses-step .form-fields,
body#checkout section.checkout-step .js-address-form .form-fields,
body#checkout section.checkout-step .js-customer-form .form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body#checkout #checkout-delivery-step .form-fields {
  display: block;
}

body#checkout section.checkout-step .form-group.row,
body#checkout section.checkout-step .form-group {
  display: block;
  width: 100%;
  margin: 0;
}

body#checkout section.checkout-step .form-group.row > [class*="col-"],
body#checkout section.checkout-step .form-group > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body#checkout section.checkout-step .form-control-label,
body#checkout section.checkout-step .col-form-label,
body#checkout section.checkout-step .form-group > label {
  display: block;
  margin: 0 0 7px;
  color: var(--knics-checkout-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

body#checkout section.checkout-step .form-control,
body#checkout section.checkout-step input[type="text"],
body#checkout section.checkout-step input[type="email"],
body#checkout section.checkout-step input[type="password"],
body#checkout section.checkout-step input[type="tel"],
body#checkout section.checkout-step input[type="date"],
body#checkout section.checkout-step select,
body#checkout section.checkout-step textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
  color: var(--knics-checkout-black);
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  outline: 0;
}

body#checkout section.checkout-step textarea {
  min-height: 88px;
  resize: vertical;
}

body#checkout section.checkout-step .form-control:focus,
body#checkout section.checkout-step input:focus,
body#checkout section.checkout-step select:focus,
body#checkout section.checkout-step textarea:focus {
  border-color: var(--knics-checkout-black);
  box-shadow: 0 0 0 1px var(--knics-checkout-black);
}

body#checkout section.checkout-step input::placeholder,
body#checkout section.checkout-step textarea::placeholder {
  color: var(--knics-checkout-placeholder);
  opacity: 1;
}

body#checkout section.checkout-step .form-control-comment,
body#checkout section.checkout-step .form-text,
body#checkout section.checkout-step .help-block {
  display: block;
  margin: 7px 0 0;
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body#checkout section.checkout-step .form-footer,
body#checkout section.checkout-step footer.form-footer,
body#checkout section.checkout-step .clearfix:has(> .continue) {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  text-align: left;
}

body#checkout section.checkout-step .checkbox-field,
body#checkout section.checkout-step .radio-field,
body#checkout section.checkout-step .form-group:has(input[type="checkbox"]),
body#checkout section.checkout-step .form-group:has(input[type="radio"]) {
  grid-column: 1 / -1;
}

body#checkout section.checkout-step .checkbox-field div,
body#checkout section.checkout-step .radio-field {
  margin-top: 0;
}

body#checkout .custom-checkbox,
body#checkout .custom-radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

body#checkout .custom-checkbox > input,
body#checkout .custom-radio > input,
body#checkout input[type="checkbox"],
body#checkout input[type="radio"] {
  accent-color: var(--knics-checkout-green);
}

body#checkout .custom-checkbox > span,
body#checkout .custom-radio > span {
  border-color: #c1c1c1;
}

body#checkout .custom-radio input[type="radio"]:checked + span {
  background: var(--knics-checkout-green);
}

body#checkout .custom-checkbox input[type="checkbox"]:checked + span:not(.color) {
  border-color: var(--knics-checkout-green);
  background: var(--knics-checkout-green);
}

body#checkout .custom-checkbox input[type="checkbox"]:checked + span .checkbox-checked {
  color: var(--knics-checkout-black);
}

body#checkout .custom-checkbox label,
body#checkout .custom-radio label {
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

/* Addresses. */
body#checkout section.checkout-step .address-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body#checkout section.checkout-step .address-item {
  position: relative;
  flex: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--knics-checkout-line);
  border-radius: 12px;
  background: #fff;
}

body#checkout section.checkout-step .address-item:has(input[type="radio"]:checked) {
  border-color: var(--knics-checkout-black);
  background: var(--knics-checkout-soft);
}

body#checkout section.checkout-step .address-item .radio-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 17px 20px 8px;
  text-align: left;
}

body#checkout section.checkout-step .address-alias {
  color: var(--knics-checkout-black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

body#checkout section.checkout-step .address {
  padding: 0 20px 14px;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

body#checkout section.checkout-step .address-footer {
  display: flex;
  gap: 14px;
  padding: 11px 20px 14px;
  border-top: 1px solid var(--knics-checkout-line);
  text-align: left;
}

body#checkout section.checkout-step .delete-address,
body#checkout section.checkout-step .edit-address {
  margin: 0;
  color: var(--knics-checkout-copy);
  font-size: 12px;
}

body#checkout section.checkout-step .add-address {
  margin-top: 14px;
}

body#checkout section.checkout-step .add-address a,
body#checkout section.checkout-step .cancel-address {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 11px 20px;
  border: 1px dashed #c1c1c1;
  border-radius: 999px;
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

body#checkout section.checkout-step #delivery-addresses,
body#checkout section.checkout-step #invoice-addresses {
  margin-top: 18px;
}

/* Marketplace carriers: keep every dynamic carrier and relay widget. */
body#checkout #checkout-delivery-step .warehouse_list,
body#checkout #checkout-delivery-step .warehouse_carriers_wrapper {
  width: 100%;
}

body#checkout #checkout-delivery-step .warehouse_carriers_wrapper {
  margin: 0 0 22px;
}

body#checkout #checkout-delivery-step .warehouse_title {
  margin: 0 0 12px;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body#checkout #checkout-delivery-step .warehouse_title strong {
  color: var(--knics-checkout-black);
  font-weight: 600;
}

body#checkout #checkout-delivery-step .delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

body#checkout #checkout-delivery-step .delivery-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px !important;
  border: 1px solid var(--knics-checkout-line);
  border-radius: 12px;
  background: #fff;
}

body#checkout #checkout-delivery-step .delivery-option:has(input[type="radio"]:checked) {
  border-color: var(--knics-checkout-black);
  background: var(--knics-checkout-soft);
}

body#checkout #checkout-delivery-step .delivery-option > input[type="radio"] {
  grid-column: 1;
  width: 17px;
  height: 17px;
  margin: 0;
}

body#checkout #checkout-delivery-step .delivery-option > label {
  display: flex;
  grid-column: 2 / 4;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

body#checkout #checkout-delivery-step .delivery-option .carrier_name {
  font-weight: 700;
}

body#checkout #checkout-delivery-step .delivery-option .delivery-option-extra-infos,
body#checkout #checkout-delivery-step .delivery-option .ori-carrier-extra-content,
body#checkout #checkout-delivery-step .delivery-option .sendcloud-spp {
  grid-column: 2 / 4;
  width: 100%;
  margin: 2px 0 0;
}

body#checkout #checkout-delivery-step .delivery-option .sendcloud-spp {
  padding: 14px 0 0;
  border-top: 1px solid var(--knics-checkout-line);
  border-radius: 0;
  background: transparent;
}

body#checkout #checkout-delivery-step .sendcloud-spp .sendcloud-spp__selection-trigger button,
body#checkout #checkout-delivery-step .ori-carrier-extra-content button {
  width: auto;
  min-height: 40px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--knics-checkout-black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

body#checkout #checkout-delivery-step hr {
  display: none;
}

body#checkout #checkout-delivery-step .order-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--knics-checkout-line);
}

body#checkout #checkout-delivery-step #delivery > label {
  display: block;
  margin: 0 0 8px;
  color: var(--knics-checkout-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Payment. */
body#checkout #checkout-payment-step .payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}

body#checkout #checkout-payment-step .payment-options > div {
  margin: 0;
}

body#checkout #checkout-payment-step .payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--knics-checkout-line);
  border-radius: 12px;
  background: #fff;
}

body#checkout #checkout-payment-step .payment-option:has(input[type="radio"]:checked) {
  border-color: var(--knics-checkout-black);
  background: var(--knics-checkout-soft);
}

body#checkout #checkout-payment-step .payment-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body#checkout #checkout-payment-step .payment-option img {
  max-width: 82px;
  max-height: 26px;
  object-fit: contain;
}

body#checkout #checkout-payment-step .additional-information {
  margin: 8px 0 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--knics-checkout-soft);
  color: var(--knics-checkout-copy);
  font-size: 13px;
  line-height: 1.45;
}

body#checkout #conditions-to-approve {
  margin: 4px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--knics-checkout-line);
}

body#checkout #conditions-to-approve ul,
body#checkout #conditions-to-approve li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body#checkout #conditions-to-approve li + li {
  margin-top: 11px;
}

body#checkout #conditions-to-approve label {
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

body#checkout #payment-confirmation {
  margin-top: 22px;
}

body#checkout #payment-confirmation .btn,
body#checkout #payment-confirmation button {
  width: 100%;
}

.knics-checkout-payment-note {
  margin: 12px 0 0;
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Primary and secondary actions, while preserving native submit elements. */
body#checkout section.checkout-step .btn-primary,
body#checkout section.checkout-step button.continue,
body#checkout section.checkout-step .continue.btn,
body#checkout #payment-confirmation button {
  min-height: 48px;
  margin: 0;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  color: var(--knics-checkout-black);
  background: var(--knics-checkout-green);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

body#checkout section.checkout-step .btn-primary:hover,
body#checkout section.checkout-step button.continue:hover,
body#checkout #payment-confirmation button:hover {
  color: var(--knics-checkout-black);
  background: var(--knics-checkout-green-hover);
}

body#checkout section.checkout-step .btn-primary:disabled,
body#checkout section.checkout-step .btn-primary.disabled,
body#checkout #payment-confirmation button:disabled,
body#checkout #payment-confirmation button.disabled {
  color: var(--knics-checkout-placeholder);
  background: #ededed;
  cursor: not-allowed;
  opacity: 1;
}

body#checkout .js-alert-payment-conditions {
  margin: 12px 0 0;
  border: 0;
  color: #8a5400;
  background: #fff7df;
  font-size: 13px;
}

/* Dynamic order summary. */
body#checkout .cart-grid-right {
  position: sticky;
  top: 24px;
}

body#checkout #js-checkout-summary,
body#checkout .cart-grid-right .cart-summary,
body#checkout .knics-checkout-summary {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--knics-checkout-soft);
  box-shadow: none;
}

.knics-checkout-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 4px;
}

.knics-checkout-summary-title {
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.knics-checkout-summary-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--knics-checkout-copy);
  background: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body#checkout #js-checkout-summary > .card,
body#checkout #js-checkout-summary .card,
body#checkout .cart-grid-right .cart-summary > .card,
body#checkout .cart-grid-right .card-block,
body#checkout .cart-grid-right .card-body {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#checkout .cart-grid-right .card-block,
body#checkout .cart-grid-right .card-body {
  padding: 18px 22px;
}

body#checkout #cart-summary-product-list,
body#checkout .cart-summary-products {
  margin: 0;
}

body#checkout #cart-summary-product-list {
  border-bottom: 1px solid var(--knics-checkout-line) !important;
}

body#checkout .cart-summary-products > p,
body#checkout .cart-summary-products > .h1,
body#checkout .cart-summary-products > .h2,
body#checkout .cart-summary-products > .h3,
body#checkout .cart-summary-products > .h4,
body#checkout .cart-summary-products > .h5,
body#checkout .cart-summary-products > .h6 {
  display: none;
}

body#checkout #cart-summary-product-list .cart-summary-product {
  margin: 0;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--knics-checkout-line) !important;
}

body#checkout #cart-summary-product-list .cart-summary-product:last-child {
  border-bottom: 0 !important;
}

body#checkout #cart-summary-product-list .media {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

body#checkout #cart-summary-product-list .media-left {
  width: 78px;
  max-width: 78px;
  margin: 0;
  padding: 0;
}

body#checkout #cart-summary-product-list img {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

body#checkout #cart-summary-product-list .media-body {
  min-width: 0;
}

body#checkout #cart-summary-product-list .product-name,
body#checkout #cart-summary-product-list .media-heading,
body#checkout #cart-summary-product-list a {
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

body#checkout #cart-summary-product-list .product-attributes,
body#checkout #cart-summary-product-list .product-line-info,
body#checkout #cart-summary-product-list .product-line-grid-body,
body#checkout #cart-summary-product-list .label,
body#checkout .knics-checkout-product-meta {
  margin-top: 5px;
  color: var(--knics-checkout-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

body#checkout .knics-checkout-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

body#checkout .knics-checkout-product-meta span::after {
  display: none;
  content: none;
}

body#checkout .knics-checkout-product-condition::before {
  margin: 0 5px;
  content: "·";
}

body#checkout .knics-checkout-product-seller {
  flex: 0 0 100%;
  width: 100%;
}

body#checkout .knics-checkout-product-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

body#checkout .knics-checkout-product-bottom .product-quantity {
  color: var(--knics-checkout-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

body#checkout #cart-summary-product-list .product-price,
body#checkout #cart-summary-product-list .current-price,
body#checkout #cart-summary-product-list .value {
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 900;
}

body#checkout .knics-checkout-product-bottom .product-price {
  line-height: 1;
}

body#checkout #js-checkout-summary.knics-summary-collapsed #cart-summary-product-list,
body#checkout .knics-checkout-summary.knics-summary-collapsed #cart-summary-product-list {
  display: none !important;
}

body#checkout .knics-checkout-summary:not(.knics-summary-collapsed) #cart-summary-product-list,
body#checkout .knics-checkout-summary[data-knics-summary-state="expanded"] #cart-summary-product-list {
  display: block !important;
}

body#checkout .knics-checkout-edit-cart {
  display: none !important;
}

body#checkout .knics-checkout-edit-cart a,
body#checkout .knics-checkout-edit-cart .step-edit {
  color: var(--knics-checkout-copy);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#checkout .cart-summary-subtotals-container,
body#checkout .cart-summary-totals {
  padding: 16px 22px;
}

body#checkout .cart-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

body#checkout .cart-summary-line + .cart-summary-line {
  margin-top: 9px;
}

body#checkout .cart-summary-line::after {
  display: none;
}

body#checkout .cart-summary-line .label {
  float: none;
  margin: 0;
  color: var(--knics-checkout-copy);
  font-size: inherit;
  font-weight: inherit;
}

body#checkout .cart-summary-line .value {
  float: none;
  margin-left: auto;
  color: var(--knics-checkout-black);
  font-weight: 400;
  text-align: right;
}

body#checkout .cart-summary-line.cart-total,
body#checkout .cart-summary-totals .cart-total {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid var(--knics-checkout-line);
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body#checkout .cart-summary-line.cart-total .value,
body#checkout .cart-summary-totals .cart-total .value {
  color: var(--knics-checkout-black);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

body#checkout .cart-voucher {
  margin: 0 22px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--knics-checkout-line);
  background: transparent !important;
  box-shadow: none !important;
}

body#checkout #js-checkout-summary > .block-promo,
body#checkout #js-checkout-summary .cart-voucher-area,
body#checkout #js-checkout-summary .promo-code {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#checkout #js-checkout-summary > .block-promo {
  margin: 0 !important;
  padding: 0 !important;
}

body#checkout .cart-voucher .promo-code {
  display: block;
}

body#checkout .cart-voucher .promo-input {
  display: flex;
  gap: 8px;
}

body#checkout .cart-voucher .input-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

body#checkout .cart-voucher .voucher-icon {
  display: none;
}

body#checkout .cart-voucher .input-group-append {
  flex: 0 0 auto;
}

body#checkout .cart-voucher input,
body#checkout .cart-voucher .form-control {
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}

body#checkout .cart-voucher button,
body#checkout .cart-voucher .btn {
  flex: 0 0 auto;
  min-height: 42px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid var(--knics-checkout-black);
  border-radius: 8px;
  color: var(--knics-checkout-black);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase !important;
}

.knics-checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 4px 0;
}

.knics-checkout-trust-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--knics-checkout-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.knics-checkout-trust-row svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--knics-checkout-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

body#checkout .cart-grid-right > [id*="reassurance"],
body#checkout .cart-grid-right > .blockreassurance_product,
body#checkout .cart-grid-right > .block-reassurance {
  margin-top: 16px;
}

/* Native validation and module messages remain visible. */
body#checkout .alert {
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

body#checkout .help-block li,
body#checkout .form-control-feedback {
  color: #b42318;
}

/* The confirmation view from the supplied flow, using native order data. */
body#order-confirmation,
body#order-confirmation button,
body#order-confirmation input,
body#order-confirmation select,
body#order-confirmation textarea {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body#order-confirmation #wrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

body#order-confirmation #wrapper > .container,
body#order-confirmation #wrapper > .container-fluid,
body#order-confirmation #inner-wrapper,
body#order-confirmation #content-wrapper,
body#order-confirmation #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body#order-confirmation .breadcrumb,
body#order-confirmation .page-header,
body#order-confirmation .page-title {
  display: none !important;
}

body#order-confirmation #content-hook_order_confirmation,
body#order-confirmation #content.page-order-confirmation,
body#order-confirmation #content-hook_payment_return,
body#order-confirmation #registration-form,
body#order-confirmation #content-hook-order-confirmation-footer {
  width: min(760px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

body#order-confirmation #content-hook_order_confirmation {
  margin-top: 56px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#order-confirmation #content-hook_order_confirmation .card-block {
  padding: 0;
}

body#order-confirmation #content-hook_order_confirmation .card-title {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--knics-checkout-black);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: uppercase;
}

body#order-confirmation #content-hook_order_confirmation .card-title .done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 18px 0 0;
  border-radius: 50%;
  color: var(--knics-checkout-black);
  background: var(--knics-checkout-green);
  font-size: 26px;
  vertical-align: middle;
}

body#order-confirmation #content-hook_order_confirmation p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--knics-checkout-copy);
  font-size: 16px;
  line-height: 1.55;
}

body#order-confirmation #content.page-order-confirmation {
  margin-bottom: 28px;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: var(--knics-checkout-soft);
  box-shadow: none;
}

body#order-confirmation #content.page-order-confirmation .card-block {
  padding: 0;
}

body#order-confirmation #content.page-order-confirmation img {
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

body#order-confirmation #content.page-order-confirmation .order-line,
body#order-confirmation #content.page-order-confirmation #order-details {
  color: var(--knics-checkout-copy);
  font-size: 14px;
  line-height: 1.5;
}

body#order-confirmation #content.page-order-confirmation .card-title,
body#order-confirmation #content.page-order-confirmation .h3,
body#order-confirmation #content.page-order-confirmation h3 {
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body#order-confirmation #content-hook_payment_return,
body#order-confirmation #registration-form,
body#order-confirmation #content-hook-order-confirmation-footer {
  margin-bottom: 28px;
}

body#order-confirmation #content-hook_payment_return {
  border: 1px solid var(--knics-checkout-line);
  border-radius: 14px;
  box-shadow: none;
}

body#order-confirmation a,
body#order-confirmation .btn-primary {
  color: var(--knics-checkout-black);
}

@media (max-width: 991.98px) {
  body#checkout #content,
  body#checkout .knics-checkout-root {
    width: min(calc(100% - 32px), 720px);
    padding: 24px 0 56px;
  }

  body#checkout #content > .row,
  body#checkout #content > form > .row,
  body#checkout .knics-checkout-root > .row,
  body#checkout .knics-checkout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body#checkout .cart-grid-right {
    position: static;
    top: auto;
  }
}

@media (max-width: 575.98px) {
  body#checkout #content,
  body#checkout .knics-checkout-root {
    width: 100%;
    max-width: none;
    padding: 22px 16px 48px;
  }

  .knics-checkout-heading {
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .knics-checkout-heading h1 {
    font-size: 34px;
  }

  .knics-checkout-stage {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .knics-checkout-progress {
    gap: 6px;
    margin-bottom: 18px;
  }

  .knics-checkout-progress-copy {
    display: block;
  }

  .knics-checkout-progress-number {
    margin-bottom: 4px;
  }

  .knics-checkout-progress-label {
    font-size: 9px;
    letter-spacing: .025em;
    text-overflow: clip;
  }

  body#checkout section.checkout-step .step-title,
  body#checkout section.checkout-step.-current .step-title {
    gap: 9px;
    padding: 15px 16px;
  }

  body#checkout section.checkout-step.-current .step-title {
    padding: 21px 18px 4px;
  }

  body#checkout section.checkout-step.-current .knics-checkout-step-label {
    font-size: 18px;
  }

  .knics-checkout-step-summary {
    display: none;
  }

  body#checkout section.checkout-step .step-edit,
  body#checkout section.checkout-step.-reachable.-complete .h1 .step-edit,
  body#checkout section.checkout-step.-reachable.-complete h1 .step-edit {
    font-size: 12px;
  }

  body#checkout section.checkout-step .content,
  body#checkout section.checkout-step.-current .content,
  body#checkout section.checkout-step.-current.-reachable.-complete .content {
    padding: 0 18px 22px;
  }

  .knics-checkout-intro {
    margin: 5px 0 18px;
    font-size: 13px;
  }

  body#checkout #checkout-personal-information-step .form-fields,
  body#checkout #checkout-addresses-step .form-fields,
  body#checkout section.checkout-step .js-address-form .form-fields,
  body#checkout section.checkout-step .js-customer-form .form-fields,
  body#checkout section.checkout-step .address-selector,
  body#checkout #personal-information-step-login .knics-login-fields,
  body#checkout .knics-register-form,
  body#checkout .knics-auth-name-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body#checkout .knics-register-form > .knics-auth-eyebrow,
  body#checkout .knics-register-form > .knics-auth-field--gender,
  body#checkout .knics-register-form > .knics-auth-name-grid,
  body#checkout .knics-register-form > .knics-auth-form-rule,
  body#checkout .knics-register-form > .knics-auth-consents,
  body#checkout .knics-register-form > .form-footer,
  body#checkout .knics-register-form > .help-block,
  body#checkout .knics-register-form > .alert,
  body#checkout #personal-information-step-login .forgot-password,
  body#checkout #personal-information-step-login .form-footer {
    grid-column: 1;
  }

  body#checkout section.checkout-step .form-footer,
  body#checkout section.checkout-step footer.form-footer,
  body#checkout section.checkout-step .clearfix:has(> .continue),
  body#checkout section.checkout-step .checkbox-field,
  body#checkout section.checkout-step .radio-field,
  body#checkout section.checkout-step .form-group:has(input[type="checkbox"]),
  body#checkout section.checkout-step .form-group:has(input[type="radio"]) {
    grid-column: 1;
  }

  body#checkout section.checkout-step .btn-primary,
  body#checkout section.checkout-step button.continue,
  body#checkout section.checkout-step .continue.btn {
    width: 100%;
  }

  body#checkout #checkout-delivery-step .delivery-option {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 15px !important;
  }

  body#checkout #checkout-delivery-step .delivery-option > label,
  body#checkout #checkout-delivery-step .delivery-option .delivery-option-extra-infos,
  body#checkout #checkout-delivery-step .delivery-option .ori-carrier-extra-content,
  body#checkout #checkout-delivery-step .delivery-option .sendcloud-spp {
    grid-column: 2;
  }

  body#checkout #checkout-delivery-step .delivery-option > label {
    align-items: flex-start;
    font-size: 14px;
  }

  body#checkout #checkout-payment-step .payment-option {
    padding: 15px;
  }

  body#checkout #checkout-payment-step .payment-option label {
    font-size: 14px;
  }

  .knics-checkout-summary-header {
    padding: 18px 18px 4px;
  }

  body#checkout .cart-grid-right .card-block,
  body#checkout .cart-grid-right .card-body,
  body#checkout .cart-summary-subtotals-container,
  body#checkout .cart-summary-subtotals,
  body#checkout .cart-summary-totals {
    padding-right: 18px;
    padding-left: 18px;
  }

  body#checkout .cart-voucher {
    margin-right: 18px;
    margin-left: 18px;
  }

  body#checkout .cart-summary-line.cart-total .value,
  body#checkout .cart-summary-totals .cart-total .value {
    font-size: 26px;
  }

  body#checkout #cart-summary-product-list .media {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  body#checkout #cart-summary-product-list .media-left,
  body#checkout #cart-summary-product-list img {
    width: 70px;
    max-width: 70px;
    height: 70px;
  }

  body#checkout .knics-checkout-summary .cart-summary-subtotals-container,
  body#checkout .knics-checkout-summary .js-cart-summary-subtotals-container,
  body#checkout .knics-checkout-summary .cart-summary-subtotals,
  body#checkout .knics-checkout-summary .cart-summary-totals {
    width: 100%;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  body#checkout .knics-checkout-summary .cart-summary-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    column-gap: 12px;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body#checkout .knics-checkout-summary .cart-summary-line .label {
    grid-column: 1;
    justify-self: start;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body#checkout .knics-checkout-summary .cart-summary-line .value {
    grid-column: 2;
    justify-self: end;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    white-space: nowrap;
  }

  body#checkout .knics-checkout-summary .knics-checkout-product-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    column-gap: 12px;
    width: 100%;
  }

  body#checkout .knics-checkout-summary .knics-checkout-product-bottom .product-quantity {
    grid-column: 1;
    justify-self: start;
    margin: 0;
    text-align: left;
  }

  body#checkout .knics-checkout-summary .knics-checkout-product-bottom .product-price {
    grid-column: 2;
    justify-self: end;
    margin: 0 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }
}

/* Guest identity — the native fields keep their names, validation and submit
   action; only their presentation and visual order follow the checkout UI. */
body#checkout #checkout-personal-information-step .knics-checkout-guest-intro {
  max-width: 580px;
  margin: 8px 0 22px;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body#checkout #checkout-personal-information-step .knics-checkout-guest-intro a {
  font-weight: 500;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body#checkout #checkout-personal-information-step .knics-register-form {
  align-items: start;
  gap: 14px;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-name-grid {
  grid-column: 1 / -1;
  order: 1;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-field--email {
  grid-column: 1;
  order: 2;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-field--password {
  grid-column: 2;
  order: 2;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-profile-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 14px;
  order: 3;
  width: 100%;
}

body#checkout #checkout-personal-information-step .knics-auth-profile-grid > .knics-auth-field--birthday,
body#checkout #checkout-personal-information-step .knics-auth-profile-grid > .knics-auth-field--gender {
  width: 100%;
  min-width: 0;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-form-rule {
  order: 4;
  margin-top: 10px;
}

body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-consents {
  order: 5;
}

body#checkout #checkout-personal-information-step .knics-register-form > .form-footer {
  order: 6;
}

body#checkout #checkout-personal-information-step .knics-auth-field .form-group > label,
body#checkout #checkout-personal-information-step .knics-auth-field .form-control-comment,
body#checkout #checkout-personal-information-step .knics-password-strength {
  display: none !important;
}

body#checkout #checkout-personal-information-step .knics-auth-field--password [data-action="show-password"],
body#checkout #checkout-personal-information-step .knics-auth-field--password .input-group-append {
  display: none !important;
}

body#checkout #checkout-personal-information-step .knics-auth-field--password .input-group input.form-control {
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body#checkout #checkout-personal-information-step .knics-auth-field--password .input-group {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
}

body#checkout #checkout-personal-information-step .knics-auth-field--birthday input[type="date"] {
  padding-right: 14px;
  background-image: none !important;
  text-transform: uppercase;
}

body#checkout #checkout-personal-information-step .knics-auth-field--birthday input[type="date"]::-webkit-calendar-picker-indicator {
  width: 0;
  margin: 0;
  opacity: 0;
}

body#checkout #checkout-personal-information-step .knics-auth-field--gender .js-input-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: none;
}

body#checkout #checkout-personal-information-step .knics-auth-field--gender .radio-inline {
  width: 100%;
  min-width: 0;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

body#checkout #checkout-personal-information-step .knics-auth-help {
  margin: 7px 0 0;
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body#checkout #checkout-personal-information-step .knics-register-form > .form-footer {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

body#checkout #checkout-personal-information-step .knics-register-form > .form-footer .continue,
body#checkout #checkout-personal-information-step .knics-register-form > .form-footer .knics-auth-button {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body#checkout #checkout-personal-information-step .knics-auth-consents a {
  color: var(--knics-checkout-black);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body#checkout #checkout-personal-information-step .knics-checkout-required-marker {
  margin-left: 4px;
  color: #d83030;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-name-grid,
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-field--email,
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-field--password,
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-profile-grid,
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-form-rule,
  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-consents,
  body#checkout #checkout-personal-information-step .knics-register-form > .form-footer {
    grid-column: 1;
  }

  body#checkout #checkout-personal-information-step .knics-register-form > .knics-auth-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body#checkout #checkout-personal-information-step .knics-register-form > .form-footer .continue,
  body#checkout #checkout-personal-information-step .knics-register-form > .form-footer .knics-auth-button {
    width: 100% !important;
  }
}

/* Payment and completed-step fidelity pass — supplied checkout reference. */
body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-title {
  display: grid;
  grid-template-columns: 16px max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 22px;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-number {
  width: 16px;
  height: 16px;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-number::before {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2304C950' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .knics-checkout-step-label {
  white-space: nowrap;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .knics-checkout-step-summary {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-edit {
  align-self: center;
  justify-self: end;
  width: 72px;
  margin-left: 0;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}

body#checkout #checkout-payment-step .content > .knics-checkout-intro {
  max-width: none;
  margin: 8px 0 20px;
}

body#checkout #checkout-payment-step .payment-options {
  gap: 10px;
  margin-bottom: 0;
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment,
body#checkout #checkout-payment-step .payment-option.knics-online-payment:has(input[type="radio"]:checked) {
  min-height: 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--knics-checkout-soft);
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment > .custom-radio,
body#checkout #checkout-payment-step .payment-option.knics-online-payment > .custom-radio > span {
  flex: 0 0 17px;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  border-radius: 50%;
  box-sizing: border-box;
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment > .custom-radio > span {
  border: 1px solid #c1c1c1;
  background: #fff;
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment > .custom-radio > input:checked + span {
  border: 5px solid var(--knics-checkout-green);
  background: #fff;
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  cursor: pointer;
}

body#checkout #checkout-payment-step .knics-payment-copy {
  display: block;
  min-width: 0;
}

body#checkout #checkout-payment-step .knics-payment-title {
  display: block;
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

body#checkout #checkout-payment-step .knics-payment-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--knics-checkout-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

body#checkout #checkout-payment-step .payment-option.knics-online-payment label > img {
  display: none;
}

body#checkout #checkout-payment-step .knics-stripe-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--knics-checkout-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body#checkout #checkout-payment-step .knics-stripe-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

body#checkout #checkout-payment-step #conditions-to-approve {
  margin: 20px 0 0;
  padding: 0;
  border-top: 0;
}

body#checkout #checkout-payment-step #conditions-to-approve .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

body#checkout #checkout-payment-step #conditions-to-approve .custom-checkbox > span {
  flex: 0 0 17px;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
}

body#checkout #checkout-payment-step #conditions-to-approve label {
  margin: -2px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

body#checkout #checkout-payment-step #conditions-to-approve label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#checkout #checkout-payment-step #payment-confirmation {
  margin-top: 22px;
}

body#checkout #checkout-payment-step #payment-confirmation button {
  min-height: 0;
  padding: 19px 32px;
  font-size: 16px;
  letter-spacing: .03em;
}

body#checkout #checkout-payment-step .knics-checkout-payment-note {
  margin-top: 12px;
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-title {
    grid-template-columns: 16px max-content minmax(0, 1fr) max-content;
    gap: 9px;
    padding: 15px 16px;
  }

  body#checkout section.checkout-step.-reachable.-complete:not(.-current) .knics-checkout-step-label {
    font-size: 11px;
  }

  body#checkout section.checkout-step.-reachable.-complete:not(.-current) .knics-checkout-step-summary {
    display: block;
    font-size: 12px !important;
  }

  body#checkout #checkout-payment-step .payment-option.knics-online-payment {
    align-items: flex-start;
    padding: 16px;
  }

  body#checkout #checkout-payment-step .payment-option.knics-online-payment label {
    align-items: flex-start;
  }

  body#checkout #checkout-payment-step .knics-stripe-badge {
    margin-top: 2px;
  }
}

/* Expédition — structure et proportions de la maquette KNICS. */
body#checkout #checkout-delivery-step .content > .knics-checkout-intro,
body#checkout #checkout-delivery-step .order-options {
  display: none !important;
}

body#checkout #checkout-delivery-step .delivery-options-list,
body#checkout #checkout-delivery-step #js-delivery,
body#checkout #checkout-delivery-step #js-delivery > .form-fields,
body#checkout #checkout-delivery-step .warehouse_list,
body#checkout #checkout-delivery-step .warehouse_carriers_wrapper {
  display: block;
  width: 100%;
  max-width: none;
}

body#checkout #checkout-delivery-step #js-delivery {
  margin: 0;
}

body#checkout #checkout-delivery-step .warehouse_carriers_wrapper {
  margin: 0 0 22px;
}

body#checkout #checkout-delivery-step .warehouse_title {
  margin: 8px 0 20px;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body#checkout #checkout-delivery-step .warehouse_title strong {
  color: var(--knics-checkout-black);
  font-weight: 600;
}

body#checkout #checkout-delivery-step .delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

body#checkout #checkout-delivery-step .delivery-option {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center !important;
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  margin: 0;
  padding: 16px 18px !important;
  border: 1px solid var(--knics-checkout-line);
  border-radius: 12px;
  background: #fff;
}

body#checkout #checkout-delivery-step .delivery-option:has(> input[type="radio"]:checked) {
  border-color: var(--knics-checkout-black);
  background: var(--knics-checkout-soft);
}

body#checkout #checkout-delivery-step .delivery-option > input[type="radio"] {
  appearance: none;
  grid-column: 1;
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #c1c1c1;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

body#checkout #checkout-delivery-step .delivery-option > input[type="radio"]:checked {
  border-color: var(--knics-checkout-green);
  background: var(--knics-checkout-green);
}

body#checkout #checkout-delivery-step .delivery-option > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 2;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

body#checkout #checkout-delivery-step .knics-carrier-copy {
  display: block;
  min-width: 0;
}

body#checkout #checkout-delivery-step .delivery-option .carrier_name,
body#checkout #checkout-delivery-step .delivery-option .carrier-name {
  display: block;
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

body#checkout #checkout-delivery-step .knics-carrier-delay {
  display: block;
  margin-top: 4px;
  color: var(--knics-checkout-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

body#checkout #checkout-delivery-step .delivery-option .carrier-price {
  color: var(--knics-checkout-black);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body#checkout #checkout-delivery-step .knics-carrier-extra {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--knics-checkout-line);
}

body#checkout #checkout-delivery-step .knics-carrier-relay:has(> input[type="radio"]:checked) > .knics-carrier-extra {
  display: flex;
}

body#checkout #checkout-delivery-step .knics-carrier-relay-copy {
  flex: 1 1 auto;
  color: var(--knics-checkout-copy) !important;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.4;
}

body#checkout #checkout-delivery-step .knics-carrier-extra .delivery-option-extra-infos,
body#checkout #checkout-delivery-step .knics-carrier-extra .ori-carrier-extra-content,
body#checkout #checkout-delivery-step .knics-carrier-extra .sendcloud-spp {
  grid-column: auto;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body#checkout #checkout-delivery-step .knics-carrier-extra-copy-source {
  display: none !important;
}

body#checkout #checkout-delivery-step .knics-carrier-action-source {
  flex: 0 0 auto;
  margin-left: auto !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body#checkout #checkout-delivery-step .knics-carrier-extra button,
body#checkout #checkout-delivery-step .knics-carrier-extra [role="button"],
body#checkout #checkout-delivery-step .knics-carrier-extra a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--knics-checkout-black) !important;
  box-shadow: none;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1 !important;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body#checkout #checkout-delivery-step .knics-shipping-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  margin: 24px 0 0 !important;
}

body#checkout #checkout-delivery-step .knics-shipping-actions .continue.btn,
body#checkout #checkout-delivery-step .knics-shipping-actions button.continue {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 16px 32px !important;
}

@media (max-width: 575.98px) {
  body#checkout #checkout-delivery-step .warehouse_title {
    margin-bottom: 16px;
    font-size: 13px;
  }

  body#checkout #checkout-delivery-step .delivery-option {
    padding: 15px !important;
  }

  body#checkout #checkout-delivery-step .delivery-option .carrier_name,
  body#checkout #checkout-delivery-step .delivery-option .carrier-name {
    font-size: 14px;
  }

  body#checkout #checkout-delivery-step .knics-carrier-delay {
    font-size: 12px;
  }

  body#checkout #checkout-delivery-step .delivery-option .carrier-price {
    font-size: 14px;
  }

  body#checkout #checkout-delivery-step .knics-carrier-extra {
    align-items: stretch;
    flex-direction: column;
  }

  body#checkout #checkout-delivery-step .knics-carrier-action-source,
  body#checkout #checkout-delivery-step .knics-carrier-extra button,
  body#checkout #checkout-delivery-step .knics-carrier-extra [role="button"],
  body#checkout #checkout-delivery-step .knics-carrier-extra a.btn {
    width: 100% !important;
    margin-left: 0 !important;
  }

  body#checkout #checkout-delivery-step .knics-shipping-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  body#checkout #checkout-delivery-step .knics-shipping-actions .continue.btn,
  body#checkout #checkout-delivery-step .knics-shipping-actions button.continue {
    width: 100% !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Checkout address forms: compact field order and spacing from the final UI. */
body#checkout #checkout-addresses-step .knics-address-fields {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  grid-auto-flow: row dense;
  column-gap: 14px !important;
  row-gap: 14px !important;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start;
  row-gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field > label {
  margin: 0 !important;
}

body#checkout #checkout-addresses-step .knics-address-field > .js-input-column,
body#checkout #checkout-addresses-step .knics-address-field > .js-input-column > .custom-select2,
body#checkout #checkout-addresses-step .knics-address-field--phone .iti {
  width: 100% !important;
  min-width: 0;
}

body#checkout #checkout-addresses-step .knics-address-field > .form-control-comment {
  display: none !important;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--firstname {
  grid-column: 1 / 5;
  order: 10;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--lastname {
  grid-column: 5 / 9;
  order: 10;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--address1 {
  order: 20;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--postcode {
  grid-column: 1 / 3;
  order: 30;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--city {
  grid-column: 3 / 9;
  order: 30;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--id-country {
  grid-column: 1 / 9;
  order: 31;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--phone {
  order: 40;
}

body#checkout #checkout-addresses-step .knics-address-field--phone .iti__tel-input {
  width: 100% !important;
}

body#checkout #checkout-addresses-step .knics-address-phone-help {
  padding-right: 0 !important;
  padding-left: 0 !important;
  color: var(--knics-checkout-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body#checkout #checkout-addresses-step .knics-address-optional-toggle {
  grid-column: 1 / -1;
  justify-self: start;
  order: 50;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  color: var(--knics-checkout-black);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field.knics-address-field--optional {
  display: none !important;
}

body#checkout #checkout-addresses-step .is-optional-open .knics-address-fields > .knics-address-field.knics-address-field--optional {
  display: grid !important;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--address2 {
  grid-column: 1 / 5;
  order: 60;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--alias {
  grid-column: 5 / 9;
  order: 60;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--company {
  grid-column: 1 / 5;
  order: 61;
}

body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field--vat-number {
  grid-column: 5 / 9;
  order: 61;
}

body#checkout #checkout-addresses-step .knics-address-field--use-same-address {
  order: 70;
  margin-top: 4px !important;
}

body#checkout #checkout-addresses-step .knics-address-field--use-same-address > [class*="col-"] {
  display: none !important;
}

body#checkout #checkout-addresses-step .knics-address-different-billing {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: auto !important;
  margin: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  color: var(--knics-checkout-black) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  cursor: pointer;
}

body#checkout #checkout-addresses-step .knics-address-different-billing-input {
  position: absolute;
  width: 17px;
  height: 17px;
  margin: 0;
  opacity: 0;
}

body#checkout #checkout-addresses-step .knics-address-checkbox-marker {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #a8a8a8;
  background: #fff;
}

body#checkout #checkout-addresses-step .knics-address-different-billing-input:checked + .knics-address-checkbox-marker {
  border-color: var(--knics-checkout-green);
  background: var(--knics-checkout-green) url("../img/knics/checkout-check.svg") center / 12px 12px no-repeat;
}

body#checkout #checkout-addresses-step .knics-use-saved-address {
  display: inline-flex !important;
  grid-column: 1 / -1;
  justify-self: start;
  order: 35;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--knics-checkout-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body#checkout #checkout-addresses-step .knics-checkout-address-form .form-footer,
body#checkout #checkout-addresses-step .knics-checkout-address-form footer.form-footer,
body#checkout #checkout-addresses-step .knics-address-form-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 18px;
  width: 100% !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

@media (max-width: 767.98px) {
  body#checkout #checkout-addresses-step .knics-address-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body#checkout #checkout-addresses-step .knics-address-fields > .knics-address-field,
  body#checkout #checkout-addresses-step .knics-address-optional-toggle,
  body#checkout #checkout-addresses-step .knics-use-saved-address {
    grid-column: 1 !important;
  }
}

@media (max-width: 575.98px) {
  body#checkout #checkout-addresses-step .knics-checkout-address-form .form-footer,
  body#checkout #checkout-addresses-step .knics-checkout-address-form footer.form-footer,
  body#checkout #checkout-addresses-step .knics-address-form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#checkout section.checkout-step.-current .content {
    animation: none;
  }
}

/* Fidelity pass — isolates the checkout from Warehouse's display font and
   follows the supplied 1440 px address-step reference precisely. */
body#checkout .knics-checkout-heading,
body#checkout .knics-checkout-heading h1,
body#checkout .knics-checkout-stage,
body#checkout .knics-checkout-progress,
body#checkout .knics-checkout-progress-item,
body#checkout .knics-checkout-progress-number,
body#checkout .knics-checkout-progress-label,
body#checkout section.checkout-step .step-title,
body#checkout section.checkout-step .knics-checkout-step-label,
body#checkout section.checkout-step .knics-checkout-step-summary,
body#checkout section.checkout-step .step-edit,
body#checkout section.checkout-step .content,
body#checkout section.checkout-step .content p,
body#checkout section.checkout-step .content label,
body#checkout section.checkout-step .content button,
body#checkout section.checkout-step .content input,
body#checkout section.checkout-step .content select,
body#checkout section.checkout-step .content textarea,
body#checkout #js-checkout-summary,
body#checkout #js-checkout-summary h2,
body#checkout #js-checkout-summary a,
body#checkout #js-checkout-summary button,
body#checkout #js-checkout-summary input,
body#checkout .knics-checkout-trust {
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}

body#checkout section.checkout-step.-current .knics-checkout-step-label {
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  line-height: 1 !important;
}

body#checkout .knics-checkout-step-summary {
  font-size: 14px !important;
  font-weight: 400 !important;
}

body#checkout .knics-checkout-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 0;
  padding: 18px 20px;
}

body#checkout .knics-checkout-account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body#checkout .knics-checkout-account-title {
  color: var(--knics-checkout-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

body#checkout .knics-checkout-account-title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

body#checkout .knics-checkout-identity-email {
  margin-top: 4px;
  color: var(--knics-checkout-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

body#checkout .knics-checkout-switch-account {
  flex: 0 0 auto;
  color: var(--knics-checkout-black);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#checkout .knics-checkout-logout-warning {
  display: none;
}

body#checkout #checkout-addresses-step .knics-checkout-intro {
  margin: 8px 0 22px;
}

body#checkout #checkout-addresses-step .knics-checkout-native-address-copy {
  display: none !important;
}

body#checkout #checkout-addresses-step #delivery-addresses,
body#checkout #checkout-addresses-step #invoice-addresses {
  margin-top: 0;
}

body#checkout #checkout-addresses-step .address-item {
  min-height: 160px;
  overflow: hidden;
}

body#checkout #checkout-addresses-step .address-item > hr {
  display: none;
}

body#checkout #checkout-addresses-step .address-item .radio-block {
  padding: 18px 20px 8px;
}

body#checkout #checkout-addresses-step .address-item .custom-radio,
body#checkout #checkout-addresses-step .address-item .custom-radio > span {
  width: 15px;
  min-width: 15px;
  height: 15px;
}

body#checkout #checkout-addresses-step .address-item .custom-radio {
  position: relative;
  display: inline-block;
  flex: 0 0 15px;
  border: 1px solid #c1c1c1;
  border-radius: 50%;
  background: #fff;
}

body#checkout #checkout-addresses-step .address-item .custom-radio > input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

body#checkout #checkout-addresses-step .address-item .custom-radio > span {
  display: none !important;
}

body#checkout #checkout-addresses-step .address-item .custom-radio > span::before,
body#checkout #checkout-addresses-step .address-item .custom-radio > span::after {
  display: none !important;
  content: none !important;
}

body#checkout #checkout-addresses-step .address-item .custom-radio:has(input:checked) {
  border-color: var(--knics-checkout-green);
  background: var(--knics-checkout-green);
  box-shadow: none;
}

body#checkout #checkout-addresses-step .address {
  padding: 0 20px 18px;
}

body#checkout #checkout-addresses-step .address .address-postcode,
body#checkout #checkout-addresses-step .address .address-city,
body#checkout #checkout-addresses-step .address .address-country {
  display: inline !important;
}

body#checkout #checkout-addresses-step .address .address-country::before {
  content: ", ";
}

body#checkout #checkout-addresses-step .address-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  justify-content: flex-end;
  padding: 8px 14px;
  border: 0;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0), rgba(245, 245, 245, .98) 28%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

body#checkout #checkout-addresses-step .address-item:hover .address-footer,
body#checkout #checkout-addresses-step .address-footer:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body#checkout #checkout-addresses-step .add-address {
  display: block;
  width: 100%;
  margin: 14px 0 0 !important;
  text-align: left !important;
}

body#checkout #checkout-addresses-step .add-address .fa {
  display: none;
}

body#checkout #checkout-addresses-step .add-address a {
  padding: 12px 22px;
}

body#checkout #checkout-addresses-step .knics-checkout-different-invoice {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--knics-checkout-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

body#checkout #checkout-addresses-step p:has(> .knics-checkout-different-invoice) {
  display: block;
  width: 100%;
  margin: 18px 0 0 !important;
  text-align: left !important;
}

body#checkout #checkout-addresses-step .knics-checkout-billing-toggle {
  margin: 20px 0 0 !important;
}

body#checkout #checkout-addresses-step .knics-checkout-billing-toggle--duplicate {
  display: none !important;
}

body#checkout #checkout-addresses-step .knics-checkout-different-invoice::before {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #a8a8a8;
  background: #fff;
  content: "";
}

body#checkout #checkout-addresses-step .knics-checkout-different-invoice.is-selected::before {
  border-color: var(--knics-checkout-green);
  background: var(--knics-checkout-green) url("../img/knics/checkout-check.svg") center / 12px 12px no-repeat;
}

body#checkout #checkout-addresses-step .knics-checkout-delivery-native-heading {
  display: none !important;
}

body#checkout #checkout-addresses-step .knics-checkout-invoice-heading {
  margin: 26px 0 0 !important;
  padding: 26px 0 0 !important;
  border-top: 1px solid var(--knics-checkout-line);
  color: var(--knics-checkout-black);
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  line-height: 1 !important;
  text-transform: uppercase;
}

body#checkout #checkout-addresses-step .knics-checkout-invoice-intro {
  margin: 10px 0 0 !important;
  color: var(--knics-checkout-copy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body#checkout #checkout-addresses-step .knics-checkout-invoice-intro + #invoice-addresses {
  margin-top: 22px !important;
}

body#checkout #checkout-addresses-step .knics-checkout-invoice-intro + #invoice-address {
  margin-top: 18px !important;
}

body#checkout section.checkout-step .knics-checkout-step-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  text-align: left;
}

body#checkout #checkout-addresses-step .knics-checkout-step-actions,
body#checkout #checkout-addresses-step .form-footer.knics-checkout-step-actions,
body#checkout #checkout-addresses-step footer.form-footer.knics-checkout-step-actions {
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

body#checkout section.checkout-step .knics-checkout-step-actions form {
  margin: 0;
}

body#checkout section.checkout-step .continue.btn,
body#checkout section.checkout-step button.continue {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  min-height: 49px;
  padding: 16px 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--knics-checkout-black) !important;
  background: var(--knics-checkout-green) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body#checkout #checkout-addresses-step .continue.btn,
body#checkout #checkout-addresses-step button.continue {
  min-width: 313px;
}

body#checkout section.checkout-step .continue.btn:hover,
body#checkout section.checkout-step button.continue:hover {
  color: var(--knics-checkout-black) !important;
  background: var(--knics-checkout-green-hover) !important;
}

body#checkout .knics-checkout-back {
  margin: 0;
  padding: 10px 0;
  border: 0;
  color: var(--knics-checkout-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

body#checkout #checkout-addresses-step .cancel-address.knics-checkout-back,
body#checkout #checkout-addresses-step a.knics-checkout-back {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--knics-checkout-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body#checkout .knics-checkout-protection .value {
  color: var(--knics-checkout-green) !important;
  font-weight: 600 !important;
}

body#checkout .cart-voucher .alert.js-error:has(.js-error-text:empty) {
  display: none;
}

body#checkout .cart-voucher button,
body#checkout .cart-voucher .btn {
  color: var(--knics-checkout-black) !important;
  background: #fff !important;
}

body#checkout #js-checkout-summary > .card-body:not(.cart-summary-totals) {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  body#checkout .knics-checkout-account-card {
    align-items: flex-start;
    flex-direction: column;
  }

  body#checkout #checkout-addresses-step .address-item {
    min-height: 0;
  }

  body#checkout section.checkout-step .knics-checkout-step-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  body#checkout section.checkout-step .knics-checkout-step-actions form,
  body#checkout section.checkout-step .continue.btn,
  body#checkout section.checkout-step button.continue {
    width: 100% !important;
  }

  body#checkout #checkout-addresses-step .continue.btn,
  body#checkout #checkout-addresses-step button.continue {
    min-width: 0;
    padding-right: 20px !important;
    padding-left: 20px !important;
    font-size: 13px;
    white-space: nowrap;
  }
}
