

#hatural-checkout,
#hatural-checkout *,
#hatural-checkout *::before,
#hatural-checkout *::after { box-sizing: border-box; }

#hatural-checkout {
  font-family: var(--hat-font-body);
  font-size: var(--hat-fs-md);
  line-height: var(--hat-lh);
  color: var(--hat-color-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;

  --inputs-font-family: var(--hat-font-body);
  --inputs-font-size: var(--hat-fs-md);
  --inputs-font-weight: 400;
  --inputs-letter-spacing: normal;
  --inputs-text-transform: none;
  --inputs-border-radius: var(--hat-radius-input);
  --inputs-background: var(--hat-color-surface);
  --inputs-focus-background: var(--hat-color-surface);
  --inputs-border-color: var(--hat-color-border-strong);
  --inputs-text-color: var(--hat-color-text);
  --inputs-focus-text-color: var(--hat-color-text);
  --inputs-box-shadow: none;
  --inputs-border-width: 1px;
  --inputs-height: var(--hat-control-height);
  --inputs-padding: 14px;
  --inputs-checkbox-size: 20px;
  --inputs-focus-border-color: var(--hat-color-primary);
  --inputs-focus-box-shadow: var(--hat-focus-ring);
}

#hatural-checkout input,
#hatural-checkout textarea,
#hatural-checkout select {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

#hatural-checkout h1, #hatural-checkout h2, #hatural-checkout h3,
#hatural-checkout p, #hatural-checkout ul, #hatural-checkout dl,
#hatural-checkout dd, #hatural-checkout label {
  margin: 0; padding: 0;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--hat-font-body);
}

#hatural-checkout button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font-family: var(--hat-font-body);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  color: inherit;
}

#hatural-checkout input[type="text"],
#hatural-checkout input[type="tel"],
#hatural-checkout input[type="email"],
#hatural-checkout input[type="password"],
#hatural-checkout textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  min-height: var(--hat-control-height);
  border: 1px solid var(--hat-color-border-strong);
  border-radius: var(--hat-radius-input);
  padding: 14px 14px;
  font-family: var(--hat-font-body);
  font-size: var(--hat-fs-md);
  line-height: 1.4;
  background: var(--hat-color-surface);
  color: var(--hat-color-text);
  box-shadow: none;
  transition: border-color var(--hat-transition), box-shadow var(--hat-transition);
}

#hatural-checkout ::placeholder { color: var(--hat-color-text-faint); opacity: 1; }

#hatural-checkout input:focus,
#hatural-checkout textarea:focus {
  outline: none;
  border-color: var(--hat-color-primary);
  box-shadow: var(--hat-focus-ring);
}

#hatural-checkout input.is-invalid { border-color: var(--hat-color-error); }
#hatural-checkout textarea { resize: vertical; min-height: 88px; }

body.woocommerce-checkout { background: var(--hat-color-surface); overflow-x: hidden; }

.hat-x-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 80vh;
}

.hat-x-main {
  padding: var(--hat-space-12) var(--hat-space-10) var(--hat-space-12) var(--hat-space-4);
  max-width: 640px;
  width: 100%;
  justify-self: end;
}

.hat-x-aside {
  position: relative;
  background: var(--hat-color-summary);
  border-left: 1px solid var(--hat-color-divider);
}

.hat-x-aside::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 100%;
  width: 100vw;
  background: var(--hat-color-summary);
}

.hat-x-summary { position: sticky; top: 0; padding: var(--hat-space-12) var(--hat-space-6); }

@media (max-width: 900px) {
  .hat-x-grid { grid-template-columns: 1fr; }
  .hat-x-aside { order: -1; border-left: 0; border-bottom: 1px solid var(--hat-color-divider); }
  .hat-x-aside::after { display: none; }
  .hat-x-main { padding: var(--hat-space-6) var(--hat-space-4) calc(120px + env(safe-area-inset-bottom, 0px)); justify-self: stretch; max-width: none; }
  .hat-x-summary { position: static; padding: 0; }
}

.hat-x-brand {
  font-weight: var(--hat-fw-bold);
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: var(--hat-space-2);
}
.hat-x-brand span {
  display: block;
  font-size: 0.5625rem;
  font-weight: var(--hat-fw-medium);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hat-color-text-soft);
}

#hatural-checkout .hat-x-title {
  font-size: var(--hat-fs-xl);
  font-weight: var(--hat-heading-weight);
  margin-bottom: 2px;
}

.hat-x-header__sub {
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
}

.hat-x-header { margin-bottom: var(--hat-space-10); }

.hat-x-card { padding: 0; border: 0; margin-bottom: var(--hat-space-10); }

.hat-x-card__head { margin-bottom: var(--hat-space-4); }

#hatural-checkout .hat-x-card__title {
  font-size: var(--hat-fs-lg);
  font-weight: var(--hat-heading-weight);
}

#hatural-checkout .hat-x-card__hint { font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); margin: var(--hat-space-6) 0 var(--hat-space-2); }
#hatural-checkout .hat-x-card__head + .hat-x-card__hint { margin-top: 0; }

#hatural-checkout .hat-x-choices + .hat-x-note,
#hatural-checkout .hat-x-croquis + .hat-x-note { margin-top: var(--hat-space-4); }

.hat-x-choices {
  display: flex;
  flex-direction: column;
  gap: var(--hat-space-2);
}

#hatural-checkout .hat-x-choice {
  display: flex; align-items: flex-start; gap: var(--hat-space-3);
  width: 100%;
  padding: var(--hat-space-4);
  min-height: 54px;
  background: var(--hat-color-surface);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
  font-size: var(--hat-fs-md);
  text-align: left;
  transition: border-color var(--hat-transition), background var(--hat-transition);
}

#hatural-checkout .hat-x-choice:hover { border-color: var(--hat-color-border-strong); }

#hatural-checkout .hat-x-choice::before {
  content: "";
  width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 1px;
  border: 1.5px solid var(--hat-color-border-strong);
  border-radius: 50%;
  background: #fff;
  transition: all var(--hat-transition);
}

#hatural-checkout .hat-x-choice.is-active {
  border-color: var(--hat-color-primary);
  background: var(--hat-color-primary-tint);
}
#hatural-checkout .hat-x-choice.is-active::before { border-color: var(--hat-color-primary); border-width: 6px; }
#hatural-checkout .hat-x-choice[disabled] { color: var(--hat-color-text-faint); cursor: default; background: var(--hat-color-summary); }

.hat-x-choice__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hat-x-choice__name { font-weight: var(--hat-fw-medium); }
.hat-x-choice.is-active .hat-x-choice__name { font-weight: var(--hat-fw-bold); }
.hat-x-choice__sub { font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); }

.hat-x-choice__icon { flex: 0 0 22px; margin-top: 1px; color: var(--hat-color-text-soft); }
.hat-x-choice__icon svg { width: 22px; height: 22px; display: block; }
.hat-x-choice.is-active .hat-x-choice__icon { color: var(--hat-color-primary); }

.hat-x-calbox { min-height: 96px; }

.hat-x-placeholder {
  max-width: 420px;
  background: var(--hat-color-summary);
  border-radius: var(--hat-radius-md);
  color: var(--hat-color-text-soft);
  font-size: var(--hat-fs-sm);
  padding: var(--hat-space-5);
  display: flex;
  align-items: center;
  gap: var(--hat-space-3);
  min-height: 64px;
}

.hat-x-days {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hat-space-2);
}

#hatural-checkout .hat-x-daychip {
  flex: 0 0 auto;
  min-width: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: var(--hat-space-3) var(--hat-space-3);
  min-height: 68px;
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
  background: var(--hat-color-surface);
  transition: border-color var(--hat-transition), background var(--hat-transition);
}
#hatural-checkout .hat-x-daychip:hover { border-color: var(--hat-color-border-strong); }
#hatural-checkout .hat-x-daychip.is-active { border-color: var(--hat-color-primary); background: var(--hat-color-primary-tint); }

.hat-x-daychip__dow { font-size: var(--hat-fs-xs); color: var(--hat-color-text-soft); text-transform: capitalize; }
.hat-x-daychip.is-active .hat-x-daychip__dow { color: var(--hat-color-primary); font-weight: var(--hat-fw-medium); }
.hat-x-daychip__num { font-size: var(--hat-fs-lg); font-weight: var(--hat-fw-bold); line-height: 1.1; }
#hatural-checkout .hat-x-daychip--more {
  flex: 1 1 100%;
  flex-direction: row;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  color: var(--hat-color-text-soft);
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
}
#hatural-checkout .hat-x-daychip--more:hover { color: var(--hat-color-text); }

.hat-x-days,
.hat-x-cal { animation: hat-desplegar 0.22s ease; }

#hatural-checkout .hat-x-cal-volver {
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
  text-decoration: underline;
  margin-bottom: var(--hat-space-3);
}

.hat-x-cal {
  max-width: 360px;
  background: var(--hat-color-surface);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
  padding: var(--hat-space-4);
}

.hat-x-cal__head.is-solo { justify-content: center; }
.hat-x-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--hat-space-3); }
.hat-x-cal__month { font-weight: var(--hat-fw-bold); font-size: var(--hat-fs-md); text-transform: capitalize; }

#hatural-checkout .hat-x-cal__nav {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hat-color-border);
  border-radius: 50%;
  font-size: 16px;
  color: var(--hat-color-text);
  transition: border-color var(--hat-transition), background var(--hat-transition);
}
#hatural-checkout .hat-x-cal__nav:hover { border-color: var(--hat-color-border-strong); background: var(--hat-color-summary); }
#hatural-checkout .hat-x-cal__nav[disabled] { opacity: 0.25; cursor: default; }

.hat-x-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.hat-x-cal__dow {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--hat-color-text-faint);
  padding: var(--hat-space-2) 0 var(--hat-space-3);
  font-weight: var(--hat-fw-bold);
  text-transform: uppercase;
}

#hatural-checkout .hat-x-cal__day {
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--hat-radius-sm);
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
  font-variant-numeric: tabular-nums;
  color: var(--hat-color-text);
  transition: background var(--hat-transition), color var(--hat-transition);
}

#hatural-checkout .hat-x-cal__day:not([disabled]):hover { background: var(--hat-color-primary-tint); }
#hatural-checkout .hat-x-cal__day[disabled] { color: var(--hat-color-border-strong); cursor: default; font-weight: 400; }
#hatural-checkout .hat-x-cal__day.is-selected { background: var(--hat-color-primary); color: #fff; font-weight: var(--hat-fw-bold); }
#hatural-checkout .hat-x-cal__day.is-selected:not([disabled]):hover { background: var(--hat-color-primary-hover); color: #fff; }
#hatural-checkout .hat-x-cal__day.is-empty { visibility: hidden; }

.hat-x-slots { margin-top: var(--hat-space-4); flex-direction: row; }
.hat-x-slots .hat-x-choice { flex: 1 1 0; min-width: 0; }
@media (max-width: 560px) { .hat-x-slots { flex-direction: column; } .hat-x-slots .hat-x-choice { flex: none; } }

.hat-x-slot__plazas { font-size: var(--hat-fs-xs); color: var(--hat-color-success); font-weight: var(--hat-fw-medium); }
.hat-x-slot__plazas.is-completa { color: var(--hat-color-text-faint); }

.hat-x-metodo {
  display: flex; align-items: center; justify-content: space-between; gap: var(--hat-space-3);
  margin-top: var(--hat-space-4);
  padding: var(--hat-space-4);
  background: var(--hat-color-primary-tint);
  border: 1px solid var(--hat-color-primary);
  border-radius: var(--hat-radius-md);
  font-size: var(--hat-fs-sm);
}
.hat-x-metodo b { font-weight: var(--hat-fw-bold); white-space: nowrap; }

.hat-x-banner {
  margin-top: var(--hat-space-4);
  padding: var(--hat-space-4);
  background: var(--hat-color-warn-soft);
  border-radius: var(--hat-radius-md);
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
}
.hat-x-banner strong { color: var(--hat-color-text); }

.hat-x-card__sub { font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); margin-top: 2px; }

.hat-x-walink { color: var(--hat-color-primary); font-weight: var(--hat-fw-medium); text-decoration: underline; }

.hat-x-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hat-space-3); }
.hat-x-headrow__link { font-size: var(--hat-fs-sm); color: var(--hat-color-text); text-decoration: underline; }

.hat-x-checkrow,
.hat-x-terms {
  display: flex; align-items: flex-start; gap: var(--hat-space-3);
  cursor: pointer;
}
#hatural-checkout .hat-x-checkrow { margin-top: var(--hat-space-3); font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); }
.hat-x-checkrow span { line-height: 1.5; padding-top: 1px; }
#hatural-checkout .hat-x-fields + .hat-x-checkrow { margin-top: var(--hat-space-5); }

#hatural-checkout .hat-x-checkrow input,
#hatural-checkout .hat-x-terms input {
  -webkit-appearance: none;
  appearance: none;
  margin: 1px 0 0;
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 1.5px solid var(--hat-color-border-strong);
  border-radius: 6px;
  background: var(--hat-color-surface);
  cursor: pointer;
  transition: all var(--hat-transition);
}
#hatural-checkout .hat-x-checkrow input:checked,
#hatural-checkout .hat-x-terms input:checked {
  border-color: var(--hat-color-primary);
  background-color: var(--hat-color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
#hatural-checkout .hat-x-checkrow input:focus,
#hatural-checkout .hat-x-terms input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--hat-color-primary-tint);
}

.hat-x-tip {
  position: absolute;
  right: 14px; top: calc(var(--hat-control-height) / 2);
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hat-color-border-strong);
  border-radius: 50%;
  font-size: 12px;
  color: var(--hat-color-text-faint);
  cursor: help;
}

.hat-x-item__meta { display: block; font-size: var(--hat-fs-xs); color: var(--hat-color-text-soft); margin-top: 2px; }

.hat-x-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hat-space-3); margin-top: var(--hat-space-3); }
.hat-x-field { grid-column: 1 / -1; }
.hat-x-field--half { grid-column: auto / span 1; }
@media (max-width: 560px) { .hat-x-field--half { grid-column: 1 / -1; } }

.hat-x-ffield { position: relative; }

#hatural-checkout .hat-x-ffield input { padding: 24px 14px 8px; }

.hat-x-ffield label {
  position: absolute;
  left: 15px;
  /* 0.21.43: centrada en el campo (no en el bloque): con un error debajo la etiqueta no baja. */
  top: calc(var(--hat-control-height) / 2);
  transform: translateY(-50%);
  color: var(--hat-color-text-faint);
  font-size: var(--hat-fs-md);
  pointer-events: none;
  transition: all var(--hat-transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 30px);
}

.hat-x-ffield input:focus + label,
.hat-x-ffield input:not(:placeholder-shown) + label {
  top: 9px;
  transform: none;
  font-size: 11px;
  color: var(--hat-color-text-soft);
}

.hat-x-req { color: var(--hat-color-error); text-decoration: none; margin-left: 1px; }

#hatural-checkout .hat-x-field-error {
  font-size: var(--hat-fs-xs);
  color: var(--hat-color-error);
  margin-top: 4px;
}

/* 0.21.30: aviso dentro de la seccion que falta por completar (fecha, pago, condiciones...). */
#hatural-checkout .hat-x-sec-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--hat-space-2) 0 0;
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
  color: var(--hat-color-error);
}
#hatural-checkout .hat-x-sec-error::before {
  content: "!";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hat-color-error);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
#hatural-checkout .hat-x-terms.is-invalid input[type="checkbox"] { outline: 2px solid var(--hat-color-error); outline-offset: 2px; }

#hatural-checkout .hat-x-note { font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); margin-top: var(--hat-space-3); }
#hatural-checkout .hat-x-note--ok { color: var(--hat-color-success); font-weight: var(--hat-fw-medium); }
#hatural-checkout .hat-x-note--bad { color: var(--hat-color-error); font-weight: var(--hat-fw-medium); }

#hatural-checkout .hat-x-note--loading { color: var(--hat-color-text-soft); }
#hatural-checkout .hat-x-note--loading::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: hat-puntos 1.2s steps(4, end) infinite;
}
@keyframes hat-puntos {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.hat-x-lugar { margin-top: var(--hat-space-3); }

.hat-x-lugar__dir { position: relative; }
.hat-x-lugar__pin {
  position: absolute;
  left: 14px; top: calc(var(--hat-control-height) / 2);
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--hat-color-text-soft);
  pointer-events: none;
  z-index: 3;
}
#hatural-checkout .hat-x-lugar__dir input { padding: 24px 40px 8px 44px; }
.hat-x-lugar__dir label { left: 44px; z-index: 3; }

.hat-x-lugar__spin {
  display: none;
  position: absolute;
  right: 14px; top: calc(var(--hat-control-height) / 2);
  margin-top: -9px;
  width: 18px; height: 18px;
  border: 2px solid var(--hat-color-border);
  border-top-color: var(--hat-color-primary);
  border-radius: 50%;
  z-index: 3;
}
.hat-x-lugar.is-busy .hat-x-lugar__spin { display: block; animation: hat-girar 0.7s linear infinite; }
.hat-x-lugar.is-busy input { pointer-events: none; }
.hat-x-lugar.is-busy .hat-x-lugar__mapwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  z-index: 2;
  border-radius: var(--hat-radius-md);
}
@keyframes hat-girar { to { transform: rotate(360deg); } }

.hat-x-envstatus {
  margin-top: var(--hat-space-3);
  padding: var(--hat-space-3) var(--hat-space-4);
  border-radius: var(--hat-radius-md);
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
}
.hat-x-envstatus.is-loading {
  color: var(--hat-color-text-soft);
  font-weight: 400;
  background: linear-gradient(100deg, #f3f2ef 30%, #faf9f7 45%, #f3f2ef 60%);
  background-size: 220% 100%;
  animation: hat-shimmer 1.1s linear infinite;
}
.hat-x-envstatus.is-ok { background: var(--hat-color-primary-tint); color: var(--hat-color-success); }
.hat-x-envstatus.is-bad { background: var(--hat-color-error-soft); color: var(--hat-color-error); }
@keyframes hat-shimmer { to { background-position: -220% 0; } }

/* CP sin cobertura: salidas en vez de seguir con la direccion. */
#hatural-checkout .hat-x-cpblock {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hat-space-2);
  margin-top: var(--hat-space-3);
}
#hatural-checkout .hat-x-cpblock[hidden],
#hatural-checkout [data-hat-zona-dir][hidden] { display: none; }

.hat-x-lugar__mapwrap { position: relative; margin-top: var(--hat-space-3); }

.hat-x-pickmap {
  height: 230px;
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
  overflow: hidden;
  background: var(--hat-color-summary);
}

#hatural-checkout .hat-x-lugar__geo {
  position: absolute;
  right: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  background: var(--hat-color-surface);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-pill);
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: border-color var(--hat-transition);
}
#hatural-checkout .hat-x-lugar__geo:hover { border-color: var(--hat-color-primary); }
.hat-x-lugar__geo svg { width: 16px; height: 16px; color: var(--hat-color-primary); }
#hatural-checkout .hat-x-note--legal {
  background: var(--hat-color-warn-soft);
  border-radius: var(--hat-radius-md);
  padding: var(--hat-space-4);
}

#hatural-checkout .hat-x-count { text-align: right; font-size: var(--hat-fs-xs); color: var(--hat-color-text-faint); margin-top: 6px; }
.hat-x-map { width: 100%; height: 220px; border: 1px solid var(--hat-color-border); border-radius: var(--hat-radius-md); margin-top: var(--hat-space-4); }

#hatural-checkout #hat-f-dedicatoria { min-height: 68px; }

.hat-x-notas-details,
.hat-x-login { margin-top: var(--hat-space-5); }
.hat-x-notas-details summary,
.hat-x-login summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--hat-space-2);
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
}
.hat-x-notas-details summary:hover,
.hat-x-login summary:hover { color: var(--hat-color-text); }
.hat-x-notas-details summary::-webkit-details-marker,
.hat-x-login summary::-webkit-details-marker { display: none; }

.hat-x-notas-details summary::after,
.hat-x-login summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--hat-transition);
}
.hat-x-notas-details[open] summary::after,
.hat-x-login[open] summary::after { transform: rotate(225deg) translateY(-2px); }

#hatural-checkout .hat-x-notas-details textarea { margin-top: var(--hat-space-3); min-height: 56px; }
.hat-x-notas-details[open] textarea,
.hat-x-login[open] .hat-x-login__form { animation: hat-desplegar 0.2s ease; }

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

/* el login vive justo bajo el titulo, antes de todo */
.hat-x-login { margin-top: calc(-1 * var(--hat-space-6)); margin-bottom: var(--hat-space-8); }
.hat-x-login[open] summary { margin-bottom: var(--hat-space-2); }
.hat-x-login__actions { display: flex; align-items: center; gap: var(--hat-space-4); margin-top: var(--hat-space-3); }
#hatural-checkout .hat-x-login__actions .hat-x-btn { min-height: 46px; padding: 0 var(--hat-space-6); }
.hat-x-login__actions a { font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); text-decoration: underline; }

.hat-x-croquis { margin-top: var(--hat-space-5); }
#hatural-checkout .hat-x-croquis__label {
  font-size: var(--hat-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hat-color-text-faint);
  margin-bottom: var(--hat-space-2);
}
.hat-x-croquis__card {
  max-width: 340px;
  background: var(--hat-color-card);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-sm);
  padding: var(--hat-space-6) var(--hat-space-5);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.hat-x-croquis__texto {
  font-size: var(--hat-fs-md);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#hatural-checkout .hat-x-croquis__firma {
  margin-top: var(--hat-space-4);
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
  font-style: italic;
}

.hat-x-fiscal { margin-top: var(--hat-space-8); border-top: 1px solid var(--hat-color-divider); }
.hat-x-switchrow { display: flex; align-items: center; justify-content: space-between; gap: var(--hat-space-3); padding: var(--hat-space-5) 0 var(--hat-space-2); font-weight: var(--hat-fw-medium); font-size: var(--hat-fs-sm); }
.hat-x-switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; cursor: pointer; }
.hat-x-switch input { position: absolute; opacity: 0; }
.hat-x-switch span { position: absolute; inset: 0; background: var(--hat-color-border-strong); border-radius: var(--hat-radius-pill); transition: background var(--hat-transition); }
.hat-x-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: transform var(--hat-transition); }
.hat-x-switch input:checked + span { background: var(--hat-color-primary); }
.hat-x-switch input:checked + span::after { transform: translateX(18px); }

.hat-x-paylist {
  display: flex; flex-direction: column;
  gap: var(--hat-space-2);
}

#hatural-checkout .hat-x-pay {
  display: flex; align-items: flex-start; gap: var(--hat-space-3);
  padding: var(--hat-space-4);
  background: var(--hat-color-surface);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
  cursor: pointer;
  transition: border-color var(--hat-transition), background var(--hat-transition);
}
#hatural-checkout .hat-x-pay:hover { border-color: var(--hat-color-border-strong); }
#hatural-checkout .hat-x-pay.is-active { border-color: var(--hat-color-primary); background: var(--hat-color-primary-tint); }
#hatural-checkout .hat-x-pay input {
  -webkit-appearance: none;
  appearance: none;
  margin: 1px 0 0;
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 1.5px solid var(--hat-color-border-strong);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all var(--hat-transition);
}
#hatural-checkout .hat-x-pay input:checked { border-color: var(--hat-color-primary); border-width: 6px; }
.hat-x-pay__title { display: block; font-weight: var(--hat-fw-medium); font-size: var(--hat-fs-md); }

.hat-x-pay__desc { display: none; font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); margin-top: var(--hat-space-2); line-height: 1.55; }
.hat-x-pay.is-active .hat-x-pay__desc { display: block; animation: hat-desplegar 0.2s ease; }

#hatural-checkout .hat-x-terms { margin-top: var(--hat-space-6); font-size: var(--hat-fs-md); color: var(--hat-color-text); }
.hat-x-terms a { color: var(--hat-color-primary); text-decoration: underline; }
.hat-x-terms span { line-height: 1.5; padding-top: 1px; }

.hat-x-finish { margin-top: var(--hat-space-8); }
.hat-x-finish .hat-x-btn { width: 100%; min-height: 56px; font-size: var(--hat-fs-md); }
#hatural-checkout .hat-x-finish__safe { text-align: center; font-size: var(--hat-fs-xs); color: var(--hat-color-text-faint); margin-top: var(--hat-space-3); }
#hatural-checkout .hat-x-finish__help { text-align: center; font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); margin-top: var(--hat-space-2); }
.hat-x-finish__help a { color: var(--hat-color-text); font-weight: var(--hat-fw-medium); }
#hatural-checkout .hat-x-finish__trust {
  text-align: center;
  font-size: var(--hat-fs-xs);
  color: var(--hat-color-text-faint);
  margin-top: var(--hat-space-5);
  padding-top: var(--hat-space-4);
  border-top: 1px solid var(--hat-color-divider);
}

#hatural-checkout .hat-x-summary__title {
  font-size: var(--hat-fs-md);
  font-weight: var(--hat-heading-weight);
  margin-bottom: var(--hat-space-5);
}

#hatural-checkout .hat-x-summary__items { list-style: none; display: flex; flex-direction: column; gap: var(--hat-space-5); margin-bottom: var(--hat-space-6); }

.hat-x-item { display: flex; align-items: flex-start; gap: var(--hat-space-3); }
.hat-x-item__img { position: relative; flex: 0 0 56px; width: 56px; }
.hat-x-item__img img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--hat-radius-md); border: 1px solid var(--hat-color-divider); display: block; background: #fff; }
.hat-x-item__img b {
  position: absolute; top: -7px; right: -7px;
  background: var(--hat-color-text); color: #fff;
  border-radius: var(--hat-radius-pill);
  min-width: 19px; height: 19px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: var(--hat-fw-bold);
}
.hat-x-item__name { flex: 1; font-size: var(--hat-fs-sm); line-height: 1.4; font-weight: var(--hat-fw-medium); }
.hat-x-item__unit { display: block; font-size: var(--hat-fs-xs); color: var(--hat-color-text-soft); font-weight: 400; margin-top: 1px; }
.hat-x-item__price { font-size: var(--hat-fs-sm); font-weight: var(--hat-fw-medium); white-space: nowrap; }

.hat-x-item__controls { display: flex; align-items: center; gap: var(--hat-space-3); margin-top: var(--hat-space-2); font-weight: 400; }

.hat-x-item__stepgroup {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hat-color-border-strong);
  border-radius: var(--hat-radius-pill);
  overflow: hidden;
}
#hatural-checkout .hat-x-item__step {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  color: var(--hat-color-text);
  transition: background var(--hat-transition);
}
#hatural-checkout .hat-x-item__step:hover { background: var(--hat-color-primary-tint); }
#hatural-checkout .hat-x-item__step[disabled] { opacity: 0.4; cursor: wait; }
.hat-x-item__qty { min-width: 22px; text-align: center; font-size: var(--hat-fs-sm); font-variant-numeric: tabular-nums; }

.hat-x-item__remove {
  font-size: var(--hat-fs-xs);
  color: var(--hat-color-text-faint);
  text-decoration: underline;
}
.hat-x-item__remove:hover { color: var(--hat-color-error); }

#hatural-checkout .hat-x-savings {
  display: none;
  color: var(--hat-color-savings);
  font-size: var(--hat-fs-sm);
  font-weight: var(--hat-fw-medium);
  margin-bottom: var(--hat-space-4);
}
.hat-x-savings.is-visible { display: block; }

.hat-x-coupon-details {
  border-top: 1px solid var(--hat-color-divider);
  padding-top: var(--hat-space-4);
  margin-bottom: var(--hat-space-4);
}
.hat-x-coupon-details summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
  text-decoration: underline;
}
.hat-x-coupon-details summary::-webkit-details-marker { display: none; }
.hat-x-coupon-details[open] summary { margin-bottom: var(--hat-space-3); }

.hat-x-coupon { display: flex; flex-wrap: nowrap; gap: var(--hat-space-2); }
#hatural-checkout .hat-x-coupon input { flex: 1 1 0; width: 0; min-width: 0; min-height: 46px; padding: 10px 12px; }
#hatural-checkout .hat-x-coupon .hat-x-btn { flex: 0 0 auto; min-height: 46px; padding: 0 var(--hat-space-5); }

#hatural-checkout .hat-x-btn--ghost {
  background: var(--hat-color-summary);
  border: 1px solid var(--hat-color-border);
  color: var(--hat-color-text);
  font-weight: var(--hat-fw-medium);
}
#hatural-checkout .hat-x-btn--ghost:hover { border-color: var(--hat-color-border-strong); background: var(--hat-color-summary); }

.hat-x-coupon-list { display: flex; flex-wrap: wrap; gap: var(--hat-space-2); }
.hat-x-coupon-chip {
  display: inline-flex; align-items: center; gap: var(--hat-space-2);
  background: var(--hat-color-primary-tint);
  border: 1px solid var(--hat-color-primary);
  color: var(--hat-color-primary);
  border-radius: var(--hat-radius-sm);
  padding: 3px 9px;
  font-size: var(--hat-fs-xs);
  font-weight: var(--hat-fw-bold);
}
.hat-x-coupon-chip button { color: inherit; font-size: 14px; line-height: 1; }

#hatural-checkout .hat-x-totals { border-top: 1px solid var(--hat-color-divider); padding-top: var(--hat-space-4); }
.hat-x-totals div { display: flex; justify-content: space-between; padding: 3px 0; font-size: var(--hat-fs-sm); }
.hat-x-totals div[hidden] { display: none !important; }
.hat-x-totals dt { color: var(--hat-color-text-soft); font-weight: 400; }
.hat-x-totals dd { font-weight: var(--hat-fw-medium); }
.hat-x-totals dd.is-pending { color: var(--hat-color-text-soft); font-weight: 400; font-style: italic; }
.hat-x-totals__total { padding-top: var(--hat-space-3) !important; }
.hat-x-totals__total dt { color: var(--hat-color-text); font-weight: var(--hat-fw-bold); font-size: var(--hat-fs-md); }
.hat-x-totals__total dd { font-size: 1.25rem; font-weight: var(--hat-fw-bold); }

.hat-x-summary__meta { font-size: var(--hat-fs-xs); color: var(--hat-color-text-soft); min-height: 1em; margin-top: var(--hat-space-2); }

#hatural-checkout .hat-x-summary__cta { width: 100%; margin-top: var(--hat-space-5); }
.hat-x-summary .hat-x-finish__safe { margin-top: var(--hat-space-2); }
@media (max-width: 900px) {
  #hatural-checkout .hat-x-summary__cta,
  .hat-x-summary .hat-x-finish__safe { display: none; }
}

.hat-x-summary__toggle { display: none; }

@media (max-width: 900px) {
  #hatural-checkout .hat-x-summary__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: var(--hat-space-4);
    font-size: var(--hat-fs-sm);
    font-weight: var(--hat-fw-medium);
    color: var(--hat-color-primary);
  }
  .hat-x-summary__toggle b { font-size: var(--hat-fs-md); color: var(--hat-color-text); }
  .hat-x-summary__body { display: none; padding: 0 var(--hat-space-4) var(--hat-space-4); }
  .hat-x-summary.is-open .hat-x-summary__body { display: block; }
}

#hatural-checkout .hat-x-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--hat-control-height);
  padding: 0 var(--hat-space-5);
  border-radius: var(--hat-radius-input);
  font-size: var(--hat-fs-md);
  font-weight: var(--hat-fw-bold);
  transition: background var(--hat-transition), opacity var(--hat-transition);
}
#hatural-checkout .hat-x-btn--primary { background: var(--hat-color-primary); color: var(--hat-color-primary-contrast); }
#hatural-checkout .hat-x-btn--primary:hover { background: var(--hat-color-primary-hover); color: var(--hat-color-primary-contrast); }
.hat-x-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.hat-x-btn.is-loading { pointer-events: none; }
.hat-x-btn.is-loading span::after { content: "…"; }

.hat-x-paybar { display: none; }
@media (max-width: 900px) {
  .hat-x-paybar {
    display: flex; align-items: center; gap: var(--hat-space-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: var(--hat-color-surface);
    border-top: 1px solid var(--hat-color-border);
    padding: var(--hat-space-3) var(--hat-space-4);
    padding-bottom: calc(var(--hat-space-3) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }
  .hat-x-paybar__total {
    font-weight: var(--hat-fw-bold);
    font-size: var(--hat-fs-lg);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline dotted var(--hat-color-text-faint);
    text-underline-offset: 4px;
  }
  .hat-x-paybar .hat-x-btn { flex: 1; }

  #hatural-checkout input[type="text"],
  #hatural-checkout input[type="tel"],
  #hatural-checkout input[type="email"],
  #hatural-checkout input[type="password"],
  #hatural-checkout textarea {
    font-size: 16px;
  }
}

.hat-x-alert {
  background: var(--hat-color-error-soft);
  border: 1px solid var(--hat-color-error);
  color: var(--hat-color-error);
  border-radius: var(--hat-radius-md);
  padding: var(--hat-space-4);
  margin-top: var(--hat-space-6);
  margin-bottom: var(--hat-space-4);
  font-size: var(--hat-fs-sm);
}
.hat-x-alert ul { margin: 0; padding-left: 1.2em; }

.hat-x-empty { text-align: center; padding: var(--hat-space-12) var(--hat-space-4); font-family: var(--hat-font-body); }
#hatural-checkout .hat-x-empty h2 { font-size: var(--hat-fs-xl); margin-bottom: var(--hat-space-2); }
#hatural-checkout .hat-x-empty p { color: var(--hat-color-text-soft); margin-bottom: var(--hat-space-6); }

/* Extras de entrega: hora orientativa y avisos (contrato Pablo B4/B11) */
.hat-x-entrega-extra {
  display: flex; flex-direction: column; gap: var(--hat-space-2);
  margin-top: var(--hat-space-5);
  padding-top: var(--hat-space-5);
  border-top: 1px solid var(--hat-color-border);
}

/* El espacio de este bloque lo reparte el gap del contenedor. Las filas NO deben
   traer ademas su margen propio: en un flex, gap y margin se suman y quedaba el
   doble de aire entre las dos casillas, que son una pareja y deben leerse juntas.
   El id hace falta: la regla global del margen es #hatural-checkout .hat-x-checkrow
   y sin el ganaria ella. */
#hatural-checkout .hat-x-entrega-extra .hat-x-note,
#hatural-checkout .hat-x-entrega-extra .hat-x-checkrow { margin: 0; }

/* Unico salto grande del bloque: del desplegable con su nota al grupo de avisos.
   La nota explica la hora, asi que va pegada a ella; las casillas van juntas. */
#hatural-checkout .hat-x-entrega-extra .hat-x-note + .hat-x-checkrow { margin-top: var(--hat-space-3); }

/* Selector de hora: mismo aspecto que los campos de texto, pero con la etiqueta
   siempre arriba (el truco de :placeholder-shown no aplica a un select). */
#hatural-checkout .hat-x-ffield select {
  width: 100%;
  margin: 0;
  min-height: var(--hat-control-height);
  border: 1px solid var(--hat-color-border-strong);
  border-radius: var(--hat-radius-input);
  padding: 22px 14px 6px;
  font-family: var(--hat-font-body);
  font-size: var(--hat-fs-md);
  line-height: 1.4;
  background: var(--hat-color-surface);
  color: var(--hat-color-text);
  transition: border-color var(--hat-transition), box-shadow var(--hat-transition);
}
.hat-x-ffield select + label {
  top: 9px;
  transform: none;
  font-size: 11px;
  color: var(--hat-color-text-soft);
}

/* Revisa tu pedido antes de pagar (v0.21.0). */
#hatural-checkout .hat-x-confirm {
  margin-top: var(--hat-space-4);
  padding: var(--hat-space-3) var(--hat-space-4);
  background: var(--hat-color-summary);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
}
#hatural-checkout .hat-x-confirm__title {
  margin: 0 0 var(--hat-space-2);
  font-weight: var(--hat-fw-bold);
}
#hatural-checkout .hat-x-confirm__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--hat-space-2) var(--hat-space-3);
  margin: 0;
  font-size: var(--hat-fs-sm);
}
#hatural-checkout .hat-x-confirm__list dt { color: var(--hat-color-text-soft); }
#hatural-checkout .hat-x-confirm__list dd { margin: 0; font-weight: var(--hat-fw-medium); }
#hatural-checkout .hat-x-confirm__list dd.is-pending { color: var(--hat-color-error); font-weight: 400; }

/* Prefijo telefonico delante del numero (v0.21.0). El select lo inserta checkout-flow.js.
   Selector con "select." para ganar a la regla general "#hatural-checkout .hat-x-ffield select"
   (ancho completo, borde y relleno), que lo estiraba y tapaba el numero (v0.21.5). */
#hatural-checkout .hat-x-ffield.has-prefijo { position: relative; }
#hatural-checkout .hat-x-ffield select.hat-x-prefijo {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 84px;
  min-height: 0;
  height: 32px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid var(--hat-color-border);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text);
  cursor: pointer;
}
#hatural-checkout .hat-x-ffield.has-prefijo input { padding-left: 100px; }
#hatural-checkout .hat-x-ffield.has-prefijo label { left: 100px; }

/* Venta cruzada en el resumen (v0.21.0). */
#hatural-checkout .hat-x-cross {
  margin-top: var(--hat-space-4);
  padding-top: var(--hat-space-3);
  border-top: 1px solid var(--hat-color-border);
}
#hatural-checkout .hat-x-cross__title { margin: 0 0 var(--hat-space-2); font-weight: var(--hat-fw-bold); }
#hatural-checkout .hat-x-cross__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hat-space-2); }
#hatural-checkout .hat-x-cross__item { display: flex; align-items: center; gap: var(--hat-space-3); }
#hatural-checkout .hat-x-cross__item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--hat-radius-sm); flex: none; }
#hatural-checkout .hat-x-cross__name { flex: 1; font-size: var(--hat-fs-sm); }
#hatural-checkout .hat-x-cross__price { display: block; color: var(--hat-color-text-soft); }

/* Pagina de gracias (0.21.13): misma rejilla y tokens que el checkout. */
#hatural-checkout .hat-x-gracias__ok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--hat-space-4);
  border-radius: var(--hat-radius-pill);
  background: var(--hat-color-primary-tint);
  color: var(--hat-color-primary);
}
#hatural-checkout .hat-x-gracias__ok svg { width: 24px; height: 24px; }
#hatural-checkout .hat-x-gracias .hat-x-header__sub { font-size: var(--hat-fs-md); margin-top: var(--hat-space-2); }
#hatural-checkout .hat-x-gracias .hat-x-header__sub strong { color: var(--hat-color-text); font-weight: var(--hat-fw-medium); }

#hatural-checkout .hat-x-gracias__aviso {
  display: flex; flex-direction: column; gap: var(--hat-space-1);
  margin: 0 0 var(--hat-space-10);
  padding: var(--hat-space-4) var(--hat-space-5);
  background: var(--hat-color-warn-soft);
  border-radius: var(--hat-radius-md);
  font-size: var(--hat-fs-sm);
  color: var(--hat-color-text-soft);
}
#hatural-checkout .hat-x-gracias__aviso strong { color: var(--hat-color-text); font-size: var(--hat-fs-md); font-weight: var(--hat-fw-bold); }

#hatural-checkout .hat-x-gracias__box {
  display: flex; flex-direction: column; gap: var(--hat-space-4);
  padding: var(--hat-space-5);
  border: 1px solid var(--hat-color-border);
  border-radius: var(--hat-radius-md);
}
#hatural-checkout .hat-x-gracias__fila { display: flex; align-items: flex-start; gap: var(--hat-space-3); }
#hatural-checkout .hat-x-gracias__fila .hat-x-choice__icon { color: var(--hat-color-primary); }
#hatural-checkout .hat-x-gracias__fila b { display: block; font-weight: var(--hat-fw-bold); }
#hatural-checkout .hat-x-gracias__sub { display: block; font-size: var(--hat-fs-sm); color: var(--hat-color-text-soft); }
#hatural-checkout .hat-x-gracias__dedicatoria {
  margin: 0; padding: var(--hat-space-4);
  background: var(--hat-color-card);
  border-radius: var(--hat-radius-sm);
  font-style: italic;
}
#hatural-checkout .hat-x-gracias__dedicatoria .hat-x-gracias__sub { font-style: normal; margin-top: var(--hat-space-2); }

#hatural-checkout .hat-x-gracias__datos { display: flex; flex-direction: column; }
#hatural-checkout .hat-x-gracias__datos div {
  display: flex; justify-content: space-between; gap: var(--hat-space-4);
  padding: var(--hat-space-3) 0;
  border-bottom: 1px solid var(--hat-color-divider);
  font-size: var(--hat-fs-sm);
}
#hatural-checkout .hat-x-gracias__datos dt { color: var(--hat-color-text-soft); }
#hatural-checkout .hat-x-gracias__datos dd { margin: 0; text-align: right; font-weight: var(--hat-fw-medium); overflow-wrap: anywhere; }

#hatural-checkout .hat-x-gracias__acciones .hat-x-btn { width: 100%; min-height: 56px; }
#hatural-checkout .hat-x-gracias .hat-x-totals + .hat-x-note { margin-top: var(--hat-space-2); text-align: right; font-size: var(--hat-fs-xs); }
#hatural-checkout .hat-x-gracias__extra:empty { display: none; }
#hatural-checkout.hat-x--gracias .woocommerce-notices-wrapper,
#hatural-checkout.hat-x--gracias form.woocommerce-form,
#hatural-checkout.hat-x--gracias > .woocommerce-order > p { max-width: 640px; margin: var(--hat-space-10) auto; padding: 0 var(--hat-space-4); }

@media (max-width: 900px) {
  #hatural-checkout .hat-x-gracias .hat-x-aside { order: 0; border-bottom: 0; border-top: 1px solid var(--hat-color-divider); }
  #hatural-checkout .hat-x-gracias .hat-x-main { padding-bottom: var(--hat-space-6); }
  #hatural-checkout .hat-x-gracias .hat-x-summary { padding: var(--hat-space-6) var(--hat-space-4) var(--hat-space-10); }
  #hatural-checkout .hat-x-gracias .hat-x-summary__body { display: block; padding: 0; }
}
#hatural-checkout .hat-x-gracias__dedicatoria::before,
#hatural-checkout .hat-x-gracias__dedicatoria::after { content: none; display: none; }
#hatural-checkout .hat-x-gracias__dedicatoria { font-size: var(--hat-fs-md); line-height: var(--hat-lh); border: 0; color: var(--hat-color-text); }
#hatural-checkout .hat-x-gracias__cab { display: flex; align-items: center; gap: var(--hat-space-4); }
#hatural-checkout .hat-x-gracias__cab .hat-x-gracias__ok { flex: 0 0 44px; margin-bottom: 0; }
#hatural-checkout .hat-x-gracias__cab .hat-x-header__sub { margin-top: 2px; }
#hatural-checkout .hat-x-gracias__mapa {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  margin-top: var(--hat-space-2);
  color: var(--hat-color-primary);
  font-size: var(--hat-fs-sm); font-weight: var(--hat-fw-bold);
  text-decoration: underline; text-underline-offset: 3px;
}
#hatural-checkout .hat-x-gracias__mapa svg { width: 14px; height: 14px; }
@media (max-width: 560px) { #hatural-checkout .hat-x-gracias__cab { align-items: flex-start; } }
/* 0.21.16: cabecera centrada, check arriba (sustituye a la fila de la 0.21.15) */
#hatural-checkout .hat-x-gracias__cab { flex-direction: column; align-items: center; text-align: center; gap: var(--hat-space-3); }
@media (max-width: 560px) { #hatural-checkout .hat-x-gracias__cab { align-items: center; } }
#hatural-checkout .hat-x-gracias__box { background: var(--hat-color-surface); }

/* 0.21.20: calle y CP en la misma linea; el estado del CP va en el propio campo. */
#hatural-checkout .hat-x-dirrow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--hat-space-3); }
#hatural-checkout .hat-x-dirrow .hat-x-field { grid-column: auto; }
/* 0.21.40: CP | Calle | Nº (en movil: CP arriba; calle y numero debajo) */
#hatural-checkout .hat-x-dirrow.has-num { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); grid-template-areas: "cp calle num"; }
#hatural-checkout .hat-x-dirrow.has-num .hat-x-dirrow__cp { grid-area: cp; }
#hatural-checkout .hat-x-dirrow.has-num .hat-x-lugar__dir { grid-area: calle; }
#hatural-checkout .hat-x-dirrow.has-num .hat-x-dirrow__num { grid-area: num; }
#hatural-checkout .hat-x-dirrow__num input:disabled { background: var(--hat-color-summary); cursor: not-allowed; }
#hatural-checkout .hat-x-dirrow__num input:disabled + label { color: var(--hat-color-text-faint); }
#hatural-checkout .hat-x-dirrow__num.is-bad input { border-color: var(--hat-color-error); }
/* 0.21.41: indicacion flotante dentro del mapa (no ocupa sitio en la pagina) */
#hatural-checkout .hat-x-maphint {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  max-width: calc(100% - 80px);
  padding: 9px 13px;
  background: rgba(28, 28, 28, 0.88); color: #fff;
  border-radius: 10px;
  font-size: var(--hat-fs-sm); line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
#hatural-checkout .hat-x-maphint[hidden] { display: none; }
#hatural-checkout [data-hat-geo-msg]:empty { display: none; }
#hatural-checkout .hat-x-dirrow__cp input { transition: border-color var(--hat-transition), background-color var(--hat-transition); }
#hatural-checkout .hat-x-dirrow__cp.is-ok input { border-color: var(--hat-color-success); background-color: var(--hat-color-primary-tint); }
#hatural-checkout .hat-x-dirrow__cp.is-bad input { border-color: var(--hat-color-error); background-color: var(--hat-color-error-soft); }
#hatural-checkout .hat-x-lugar__dir.is-bad input { border-color: var(--hat-color-error); }
#hatural-checkout .hat-x-lugar__dir input:disabled { background: var(--hat-color-summary); cursor: not-allowed; }
#hatural-checkout .hat-x-lugar__dir input:disabled + label { color: var(--hat-color-text-faint); }
#hatural-checkout [data-hat-cp-msg] { margin-top: var(--hat-space-3); }
#hatural-checkout [data-hat-zona-dir] .hat-x-lugar__mapwrap { margin-top: var(--hat-space-3); }
@media (max-width: 560px) {
  #hatural-checkout .hat-x-dirrow { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
  #hatural-checkout .hat-x-dirrow.has-num { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); grid-template-areas: "cp cp" "calle num"; }
}

/* 0.21.20: Impreza pinta su propia marca (negra) en los checkbox con ::before/::after; se quita
   para que solo quede la nuestra, blanca sobre el verde. */
#hatural-checkout .hat-x-checkrow input::before,
#hatural-checkout .hat-x-checkrow input::after,
#hatural-checkout .hat-x-terms input::before,
#hatural-checkout .hat-x-terms input::after,
#hatural-checkout .hat-x-pay input::before,
#hatural-checkout .hat-x-pay input::after { content: none !important; display: none !important; }
/* 0.21.42: el radio de pago, igual que el de envio/recogida (aro verde de 6 px y centro blanco). */
#hatural-checkout .hat-x-pay input:checked { background: #fff !important; box-shadow: none !important; }
