html {
  height: 100%;
  align-content: center;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: #f7f8fa;
}

.cf-wrapper {
  max-width: 520px;
  margin: 50px auto;
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.cf-title {
  font-size: 24px;
  font-weight: 700;
  color: #071a36;
  margin: 0 0 10px 0;
  line-height: 1.18;
}

.cf-subtitle {
  color: #777;
  margin-bottom: 20px;
  line-height: 1.35;
  font-size: 15px;
}

.cf-btn {
  width: 100%;
  background: #071a36;
  padding: 14px;
  color: #fff;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  transition: 0.25s;
  border: 1px solid transparent;
}

.cf-btn:hover {
  background: #0a244a;
}

.cf-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cf-input,
textarea.cf-input {
  width: 100%;
  border: 1px solid #cfd6e4;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
  transition: 0.2s ease;
}

.cf-input:focus,
textarea.cf-input:focus {
  outline: none;
  border-color: #9db7e5;
  box-shadow: 0 0 0 4px rgba(7, 26, 54, 0.06);
}

.cf-label {
  display: block;
  margin: 0 0 8px 0;
  color: #071a36;
  font-size: 14px;
  font-weight: 600;
}

.cf-textbtn {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 14px 0;
  color: #071a36;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.cf-textbtn:hover {
  opacity: 0.8;
}

.cf-note {
  margin-top: 10px;
  padding: 12px;
  background: #eef3ff;
  border-radius: 10px;
  font-size: 14px;
  color: #071a36;
  border: 1px solid #dbe5ff;
  line-height: 1.5;
}

.cf-note.success {
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  color: #166534;
}

.cf-note.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.cf-soft-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 12px;
}

.cf-soft-card b {
  color: #071a36;
}

.cf-kpi {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cf-kpi .box {
  flex: 1;
  background: #f7f8fa;
  border: 1px solid #e3e6ee;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.cf-kpi .box b {
  display: block;
  font-size: 16px;
  margin-top: 4px;
  color: #071a36;
}

/* =========================
   Cards clickeables generales
========================= */

.cf-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cf-option-card {
  border: 1px solid #dde6f2;
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 110px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.cf-option-card:hover {
  transform: translateY(-1px);
  border-color: #bdd0ee;
  box-shadow: 0 8px 18px rgba(7, 26, 54, 0.08);
}

.cf-option-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  color: #071a36;
  flex: 0 0 auto;
}

.cf-option-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cf-option-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #071a36;
  line-height: 1.25;
}

.cf-option-card-sub {
  margin-top: 5px;
  font-size: 12px;
  color: #667085;
  line-height: 1.35;
}

/* =========================
   Tipo de mudanza
========================= */

.cf-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.cf-choice-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid #dbe5f0;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 190px;
  box-sizing: border-box;
  transition: 0.22s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.cf-choice-card:hover {
  transform: translateY(-2px);
  border-color: #bdd0ee;
  box-shadow: 0 12px 24px rgba(7, 26, 54, 0.08);
}

.cf-choice-card:focus {
  outline: none;
  border-color: #89a9df;
  box-shadow: 0 0 0 4px rgba(7, 26, 54, 0.08);
}

.cf-choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef3ff;
  color: #071a36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cf-choice-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cf-choice-title {
  font-size: 16px;
  font-weight: 800;
  color: #071a36;
  line-height: 1.25;
}

.cf-choice-copy {
  display: block;
  font-size: 13px;
  color: #667085;
  line-height: 1.5;
}

.cf-choice-copy b {
  color: #071a36;
}

.cf-choice-card.is-primary {
  border-color: #cddcf6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cf-choice-card.is-success {
  border-color: #cbe8d3;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcf7 100%);
}

.cf-choice-card.is-success .cf-choice-icon {
  background: #ecfdf3;
  color: #166534;
}

/* =========================
   Tipo de inmueble
========================= */

.cf-inmueble-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.cf-inmueble-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid #dbe5f0;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  box-sizing: border-box;
  transition: 0.22s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.cf-inmueble-card:hover {
  transform: translateY(-2px);
  border-color: #bdd0ee;
  box-shadow: 0 12px 24px rgba(7, 26, 54, 0.08);
}

.cf-inmueble-card:focus {
  outline: none;
  border-color: #89a9df;
  box-shadow: 0 0 0 4px rgba(7, 26, 54, 0.08);
}

.cf-inmueble-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #eef3ff;
  color: #071a36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cf-inmueble-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cf-inmueble-title {
  font-size: 15px;
  font-weight: 800;
  color: #071a36;
  line-height: 1.25;
}

.cf-inmueble-copy {
  display: block;
  font-size: 12px;
  color: #667085;
  line-height: 1.4;
}

/* =========================
   Grid utilitario
========================= */

.cf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* =========================
   Buscador catálogo con ícono
========================= */

.catalog-search-wrap {
  margin-bottom: 12px;
}

.catalog-search-box {
  position: relative;
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #667085;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.catalog-search-input {
  width: 100%;
  border: 1px solid #cfd6e4;
  padding: 14px 16px 14px 44px;
  border-radius: 16px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
  transition: 0.2s ease;
}

.catalog-search-input:focus {
  outline: none;
  border-color: #9db7e5;
  box-shadow: 0 0 0 4px rgba(7, 26, 54, 0.06);
}

/* =========================
   Catálogo / accordion
========================= */

.catalog {
  margin-top: 12px;
  border: 1px solid #e3e6ee;
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px;
  max-height: 620px;
  overflow-x: visible;
  overflow-y: auto;
  position: relative;
}

.catalog::-webkit-scrollbar {
  width: 10px;
}

.catalog::-webkit-scrollbar-thumb {
  background: #d8dfeb;
  border-radius: 999px;
}

.catalog details {
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  background: #fff;
  padding: 0;
  margin-bottom: 12px;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  position: relative;
}

.catalog summary {
  cursor: pointer;
  font-weight: 800;
  color: #071a36;
  list-style: none;
  padding: 16px 18px;
  position: relative;
  font-size: 15px;
  user-select: none;
}

.catalog summary::-webkit-details-marker {
  display: none;
}

.catalog summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: #071a36;
  transition: 0.2s ease;
}

.catalog details[open] > summary::after {
  content: "−";
}

.catalog details > div {
  padding: 5px 12px;
  overflow: visible;
}

.catalog .lvl2 {
  margin: 12px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e3e6ee;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.catalog .lvl2 > summary {
  font-size: 14px;
  font-weight: 700;
  color: #243b63;
  padding: 14px 16px;
}

.catalog .lvl2 > summary::after {
  right: 16px;
  font-size: 20px;
}

.catalog-search-empty {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed #d6dee8;
  color: #667085;
  font-size: 14px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecf3;
  overflow: visible;
  position: relative;
}

.item-row:last-child {
  border-bottom: none;
}

.item-title {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #071a36;
  font-weight: 600;
  overflow: visible;
  position: relative;
}

.item-sub {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e6ee;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  flex: 0 0 auto;
}

.qty button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #071a36;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty .num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: #071a36;
}

.info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef3ff;
  color: #071a36;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #dbe5ff;
  flex: 0 0 auto;
  overflow: visible;
  z-index: 500;
}

.info:hover .tip,
.info:focus .tip,
.info:focus-within .tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  transform: none;
  width: max-content;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 32px));
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #071a36;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
}

.tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 18px;
  transform: none;
  border-width: 6px;
  border-style: solid;
  border-color: #071a36 transparent transparent transparent;
}

.tip b {
  display: block;
  margin-bottom: 6px;
}

/* =========================
   Especiales
========================= */

.especial-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid #e3e6ee;
}

.especial-main b {
  color: #071a36;
}

.especial-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  line-height: 1.35;
}

.especial-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.method-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  border: 1px solid #dbe5ff;
  background: #eef3ff;
  color: #071a36;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 0.15s;
}

.pill:hover {
  opacity: 0.9;
}

.pill.active {
  background: #071a36;
  color: #fff;
  border-color: #071a36;
}

.remove-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e3e6ee;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #071a36;
}

.remove-x:hover {
  background: #eef3ff;
}

.small-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e6ee;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
}

.small-qty button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #071a36;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.small-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.small-qty .num {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  color: #071a36;
}

/* =========================
   Step 3 - Direcciones
========================= */

.cf-step-card {
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 18px;
  margin-top: 12px;
  overflow: visible;
}

.cf-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf1ff;
  color: #071a36;
  border: 1px solid #d7e4ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cf-step-heading {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #071a36;
  margin: 0 0 8px 0;
}

.cf-step-copy {
  font-size: 14px;
  line-height: 1.5;
  color: #5b6472;
  margin: 0 0 16px 0;
}

.cf-map {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dde5ef;
  background: #eef3ff;
  margin-bottom: 14px;
}

.cf-inline-help {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
  margin: 0 0 12px 0;
}

/* =========================
   Status
========================= */

.cf-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  font-weight: 500;
}

.cf-status.success,
.cf-status.error,
.cf-status.info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: auto;
  width: auto;
}

.cf-status.success::before,
.cf-status.error::before,
.cf-status.info::before {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 1px;
}

.cf-status.success {
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  color: #166534;
  box-shadow: 0 2px 10px rgba(22, 101, 52, 0.06);
}

.cf-status.success::before {
  content: "✅";
}

.cf-status.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  box-shadow: 0 2px 10px rgba(153, 27, 27, 0.05);
}

.cf-status.error::before {
  content: "⚠️";
}

.cf-status.info {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid #d8e3f0;
  color: #334155;
  box-shadow: 0 4px 14px rgba(7, 26, 54, 0.05);
}

.cf-status.info::before {
  content: "ℹ️";
}

.cf-route-preview {
  margin-top: 14px;
  padding: 14px;
  background: #f7f8fa;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #071a36;
  display: none;
}

.cf-route-preview.success {
  display: block;
}

/* =========================
   CTA asesor global
========================= */

.cf-frame-actions {
  margin-top: 14px;
}

.cf-advisor-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: #25d366;
  color: #ffffff;
  border: 1px solid #1ebe5b;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
  transition: 0.2s ease;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}

.cf-advisor-btn:hover {
  transform: translateY(-1px);
  background: #20c55a;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.24);
}

.cf-advisor-btn::before {
  content: "💬";
  font-size: 16px;
  line-height: 1;
}

.cf-advisor-note {
  margin-top: 8px;
  font-size: 12px;
  color: #667085;
  text-align: center;
  line-height: 1.4;
}

.cf-send-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid #e3e6ee;
  background: #f8fafc;
  color: #334155;
}

.cf-send-status.success {
  background: #ecfdf3;
  border-color: #b7ebc6;
  color: #166534;
}

.cf-send-status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* =========================
   Final summary / invoice
========================= */

.cf-invoice {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cf-invoice-card {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.cf-invoice-head {
  padding: 16px 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border-bottom: 1px solid #e3e8f0;
}

.cf-invoice-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.cf-invoice-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #071a36;
  margin: 0;
}

.cf-invoice-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #667085;
  line-height: 1.45;
}

.cf-invoice-body {
  padding: 16px 18px;
}

.cf-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cf-summary-tile {
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  padding: 12px 14px;
}

.cf-summary-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 6px;
}

.cf-summary-value {
  font-size: 15px;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.cf-summary-value.is-strong {
  font-size: 18px;
  font-weight: 800;
  color: #071a36;
}

.cf-route-line {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.cf-invoice-section {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.cf-invoice-section-head {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5ebf3;
}

.cf-invoice-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #071a36;
}

.cf-invoice-section-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #667085;
  line-height: 1.4;
}

.cf-invoice-section-body {
  padding: 14px 16px;
}

.cf-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cf-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
}

.cf-invoice-empty {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d6dee8;
  color: #667085;
  font-size: 14px;
}

.cf-line-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: #ffffff;
}

.cf-line-main {
  min-width: 0;
}

.cf-line-name {
  font-size: 15px;
  font-weight: 800;
  color: #071a36;
  line-height: 1.35;
  margin-bottom: 4px;
}

.cf-line-meta {
  font-size: 13px;
  color: #667085;
  line-height: 1.45;
}

.cf-line-side {
  text-align: right;
  min-width: 110px;
}

.cf-line-price-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.cf-line-price {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.cf-total-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  border: 1px solid #dbe5f0;
  border-radius: 16px;
}

.cf-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: #334155;
}

.cf-total-row strong {
  color: #071a36;
}

.cf-total-row.final {
  padding-top: 10px;
  border-top: 1px solid #dbe5f0;
  font-size: 17px;
  font-weight: 800;
  color: #071a36;
}

.cf-total-row.final .amount {
  font-size: 22px;
  font-weight: 900;
  color: #071a36;
}

.cf-detail-note {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fffdf7;
  border: 1px solid #f6e7b8;
  border-radius: 12px;
  color: #7a5d00;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================
   Responsive
========================= */

@media (max-width: 640px) {
  html {
    align-content: start;
  }

  .cf-wrapper {
    padding: 22px;
    margin: 24px 14px;
  }

  .cf-map {
    height: 220px;
  }

  .cf-step-card {
    padding: 14px;
  }

  .cf-step-heading {
    font-size: 18px;
  }

  .cf-kpi {
    flex-direction: column;
  }

  .cf-option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cf-choice-grid,
  .cf-inmueble-grid {
    grid-template-columns: 1fr;
  }

  .cf-choice-card {
    min-height: 165px;
    padding: 16px 14px;
  }

  .cf-inmueble-card {
    min-height: 130px;
    padding: 16px 14px;
  }

  .cf-choice-title,
  .cf-inmueble-title {
    font-size: 15px;
  }

  .cf-choice-copy,
  .cf-inmueble-copy {
    font-size: 12px;
  }

  .especial-card {
    grid-template-columns: 1fr;
  }

  .especial-actions {
    align-items: stretch;
  }

  .cf-invoice-grid {
    grid-template-columns: 1fr;
  }

  .cf-line-item {
    grid-template-columns: 1fr;
  }

  .cf-line-side {
    text-align: left;
    min-width: 0;
  }

  .cf-total-row.final .amount {
    font-size: 20px;
  }

  .catalog {
    max-height: 520px;
    padding: 10px;
  }

  .catalog summary {
    padding: 14px 16px;
  }

  .catalog .lvl2 {
    margin: 10px;
  }

  .catalog-search-input {
    font-size: 15px;
    padding: 13px 14px 13px 42px;
  }

  .cf-option-card {
    min-height: 100px;
    padding: 14px 12px;
  }

  .item-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .item-title {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .qty {
    justify-self: start;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .tip {
    left: 0;
    transform: none;
    min-width: 180px;
    max-width: calc(100vw - 24px);
  }

  .tip::after {
    left: 18px;
    transform: none;
  }
}

.cf-inline-loader {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-top-color: #071a36;
  border-radius: 999px;
  display: inline-block;
  animation: cf-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}

@keyframes cf-spin {
  to {
    transform: rotate(360deg);
  }
}