body#checkout #content.zelar-checkout {
  margin: 0 auto;
  max-width: 1180px;
  padding: 8px 15px 42px;
}

body#checkout .zelar-checkout__header {
  align-items: flex-end;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
}

body#checkout .zelar-checkout__header h2 {
  color: #161616;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-transform: none;
}

body#checkout .zelar-checkout__header p {
  color: #666;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 430px;
}

body#checkout .zelar-checkout__eyebrow {
  color: var(--palette1, #cf8795) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2 !important;
  margin-bottom: 6px !important;
  text-transform: uppercase;
}

body#checkout .zelar-checkout__grid {
  align-items: flex-start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

body#checkout .zelar-checkout__steps,
body#checkout .zelar-checkout__aside {
  float: none;
  padding: 0;
  width: auto;
}

body#checkout .checkout-step {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.04);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body#checkout .checkout-step::before {
  background: #dedede;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

body#checkout .checkout-step.-current {
  border-color: color-mix(in srgb, var(--palette1, #cf8795) 62%, #e4e4e4);
  box-shadow: 0 16px 34px rgb(0 0 0 / 0.07);
}

body#checkout .checkout-step.-current::before,
body#checkout .checkout-step.-complete::before {
  background: var(--palette1, #cf8795);
}

body#checkout .checkout-step .step-title {
  align-items: center;
  color: #161616;
  display: flex;
  font-size: 17px;
  font-weight: 700;
  gap: 14px;
  line-height: 1.25;
  margin: 0;
  min-height: 74px;
  padding: 18px 22px 18px 24px;
  text-transform: none;
}

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

body#checkout .checkout-step .step-title .zelar-checkout-step__done {
  display: none;
}

body#checkout .checkout-step.-complete .step-title .done {
  color: #fff;
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
}

body#checkout .checkout-step.-complete .step-title .zelar-checkout-step__done {
  color: #fff;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

body#checkout .zelar-checkout-step__status {
  background: #f7f7f7;
  border: 1px solid #ededed;
  border-radius: 8px;
  color: var(--palette1, #cf8795);
  display: inline-block;
  flex: 0 0 46px;
  font-size: 16px;
  font-weight: 700;
  height: 46px;
  position: relative;
  text-align: center;
  width: 46px;
}

body#checkout .zelar-checkout-step__status .step-number {
  display: block;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

body#checkout .checkout-step.-current .zelar-checkout-step__status,
body#checkout .checkout-step.-complete .zelar-checkout-step__status {
  background: #cf8795;
  border-color: #cf8795;
  border-radius: 8px;
  color: #fff;
}

body#checkout .checkout-step.-complete .step-number {
  display: none;
}

body#checkout .checkout-step.-current .step-title .zelar-checkout-step__done {
  display: none;
}

body#checkout .checkout-step.-current .step-number {
  display: block;
}

body#checkout .zelar-checkout-step__label {
  min-width: 0;
}

body#checkout .checkout-step .step-edit {
  align-items: center;
  background: transparent;
  border: 0;
  color: #666;
  display: inline-flex;
  float: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 0 auto;
  min-height: 24px;
  padding: 4px 0;
  text-transform: none;
  white-space: nowrap;
}

body#checkout .checkout-step .step-edit .edit {
  display: none;
}

body#checkout .checkout-step .step-edit:hover {
  color: var(--palette1, #cf8795);
}

body#checkout .checkout-step .content {
  border-top: 1px solid #efefef;
  padding: 22px 24px 24px;
}

body#checkout .checkout-step:not(.-current) .content {
  padding-bottom: 0;
  padding-top: 0;
}

body#checkout .checkout-step .identity {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 8px;
  color: #444;
  margin-bottom: 12px;
  padding: 14px 16px;
}

body#checkout .checkout-step .nav-inline {
  border-bottom: 1px solid #ededed;
  display: flex;
  gap: 10px;
  margin: 0 0 20px !important;
  padding-bottom: 12px;
}

body#checkout .checkout-step .nav-link {
  border-radius: 6px;
  color: #444;
  font-weight: 700;
  padding: 8px 12px;
}

body#checkout .checkout-step .nav-link.active,
body#checkout .checkout-step .nav-link:hover {
  background: color-mix(in srgb, var(--palette1, #cf8795) 12%, #fff);
  color: var(--palette1, #cf8795);
  text-decoration: none;
}

body#checkout .checkout-step .nav-separator {
  display: none;
}

body#checkout .form-control,
body#checkout input[type="email"],
body#checkout input[type="password"],
body#checkout input[type="tel"],
body#checkout input[type="text"],
body#checkout select {
  border-color: #dedede;
  border-radius: 6px;
}

body#checkout .form-control:focus,
body#checkout input[type="email"]:focus,
body#checkout input[type="password"]:focus,
body#checkout input[type="tel"]:focus,
body#checkout input[type="text"]:focus,
body#checkout select:focus {
  border-color: var(--palette1, #cf8795);
}

body#checkout .btn-primary,
body#checkout button.continue {
  background: var(--palette1, #cf8795);
  border-color: var(--palette1, #cf8795);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

body#checkout .btn-primary:hover,
body#checkout .btn-primary:focus,
body#checkout button.continue:hover,
body#checkout button.continue:focus {
  background: var(--btn-primary-hover-bg-color, #b97482);
  border-color: var(--btn-primary-hover-bg-color, #b97482);
  color: #fff;
}

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

body#checkout .address-item {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: none;
  margin: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body#checkout .address-item.selected,
body#checkout .address-item:hover {
  border-color: var(--palette1, #cf8795);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.05);
}

body#checkout .delivery-option {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px;
}

body#checkout .delivery-option:hover {
  border-color: var(--palette1, #cf8795);
}

body#checkout .zelar-checkout__aside {
  position: sticky;
  top: 18px;
}

body#checkout .zelar-checkout-summary {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.04);
  overflow: hidden;
}

body#checkout .zelar-checkout-summary__header {
  border-bottom: 1px solid #ededed;
  padding: 18px 20px 14px;
}

body#checkout .zelar-checkout-summary__header span {
  color: var(--palette1, #cf8795);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  text-transform: uppercase;
}

body#checkout .zelar-checkout-summary__header strong {
  color: #161616;
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

body#checkout .zelar-checkout-summary .card-block {
  padding: 18px 20px;
}

body#checkout .zelar-checkout-summary .cart-summary-line,
body#checkout .zelar-checkout-summary .cart-summary-totals {
  border-color: #ededed;
}

body#checkout .zelar-checkout-summary .cart-summary-line .label,
body#checkout .zelar-checkout-summary .cart-summary-line .value {
  color: #444;
}

body#checkout .zelar-checkout-summary .cart-summary-line.cart-total .label,
body#checkout .zelar-checkout-summary .cart-summary-line.cart-total .value {
  color: #161616;
  font-weight: 800;
}

body#checkout #conditions-to-approve {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 14px 16px;
}

@media (max-width: 991px) {
  body#checkout #content.zelar-checkout {
    padding-inline: 15px;
  }

  body#checkout .zelar-checkout__grid {
    grid-template-columns: 1fr;
  }

  body#checkout .zelar-checkout__aside {
    order: -1;
    position: static;
  }
}

@media (max-width: 767px) {
  body#checkout #content.zelar-checkout {
    padding-inline: 0;
  }

  body#checkout .zelar-checkout__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-inline: var(--xxxs-spacing, 10px);
  }

  body#checkout .zelar-checkout__header h2 {
    font-size: 23px;
  }

  body#checkout .zelar-checkout__header p {
    max-width: none;
  }

  body#checkout .checkout-step {
    margin-inline: var(--xxxs-spacing, 10px);
  }

  body#checkout .checkout-step .step-title {
    align-items: flex-start;
    gap: 12px;
    min-height: 68px;
    padding: 16px 18px 16px 20px;
  }

  body#checkout .zelar-checkout-step__status {
    flex-basis: 42px;
    height: 42px;
    width: 42px;
  }

  body#checkout .checkout-step .step-edit {
    margin-left: 0;
    padding-top: 4px;
  }

  body#checkout .checkout-step .content {
    padding: 18px 20px 20px;
  }

  body#checkout .address-selector {
    grid-template-columns: 1fr;
  }

  body#checkout .zelar-checkout__aside {
    margin-inline: var(--xxxs-spacing, 10px);
  }
}

/* Ajuste del campo de indicaciones de entrega: evita que el min-height global de textarea lo haga demasiado alto. */
body#checkout #delivery_message {
  min-height: 72px;
  height: 72px;
  resize: vertical;
}
