:root {
  --customer-accent: var(--accent, #d6a76b);
  --customer-line: var(--line, rgba(20, 24, 32, .12));
}
.customer-topbar-v138 .nav-actions-v18 { gap: 10px; }
.customer-auth-page-v138,
.customer-dashboard-page-v138 { padding-top: 22px; }
.customer-auth-shell-v138,
.customer-dashboard-shell-v138 { max-width: min(1260px, calc(100vw - 28px)); }
.customer-auth-hero-v138,
.customer-dashboard-hero-v138 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}
.customer-auth-hero-v138 h1,
.customer-dashboard-hero-v138 h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.05; }
.customer-auth-hero-v138 p,
.customer-dashboard-hero-v138 p { max-width: 820px; color: var(--text-soft); margin: 0; }
.customer-hero-tags-v138 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.customer-hero-tags-v138 span,
.password-checklist-v138 span,
.customer-workflow-v138 span {
  border: 1px solid var(--customer-line);
  background: color-mix(in srgb, var(--surface) 88%, var(--customer-accent) 12%);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text-soft);
  font-size: .86rem;
}
.customer-auth-grid-v138 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 18px; align-items: start; }
.customer-form-v138,
.customer-login-panel-v138 { display: grid; gap: 16px; }
.form-heading-v138 h2,
.customer-login-panel-v138 h2 { margin: 0; }
.form-heading-v138 p,
.customer-auth-note-v138 p,
.customer-helper-v138 { color: var(--text-soft); margin: 0; line-height: 1.5; }
.customer-name-grid-v138 { align-items: start; }
.customer-email-grid-v138 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.customer-code-row-v138 { display: grid; grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.customer-radio-card-v138 { border: 1px solid var(--customer-line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.customer-radio-card-v138 legend { padding: 0 6px; color: var(--text-strong); font-weight: 800; }
.customer-radio-card-v138 label,
.customer-checkbox-v138 { display: flex; align-items: center; gap: 8px; color: var(--text-soft); }
.password-control-v138 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.password-control-v138 button { min-width: 42px; min-height: 42px; border: 1px solid var(--customer-line); border-radius: 14px; background: var(--surface-soft); cursor: pointer; }
.password-checklist-v138 { display: flex; flex-wrap: wrap; gap: 8px; }
.password-checklist-v138 span.is-valid { color: #137a35; border-color: color-mix(in srgb, #137a35 45%, transparent); background: color-mix(in srgb, #137a35 12%, var(--surface) 88%); }
.customer-actions-v138 { display: flex; gap: 10px; flex-wrap: wrap; }
.customer-status-v138 { border-radius: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--customer-accent) 35%, transparent); background: color-mix(in srgb, var(--customer-accent) 12%, var(--surface) 88%); color: var(--text-soft); }
.customer-mini-login-v138 { display: grid; gap: 12px; }
.customer-google-button-v138 { width: 100%; border: 1px dashed var(--customer-line); background: var(--surface-soft); border-radius: 18px; min-height: 54px; display: grid; justify-items: center; gap: 2px; cursor: not-allowed; color: var(--text-strong); font-weight: 800; }
.customer-google-button-v138 span { color: var(--text-soft); font-size: .78rem; font-weight: 600; }
.customer-auth-note-v138 { border-top: 1px solid var(--customer-line); padding-top: 14px; }
.notification-bell-v138 { position: relative; min-width: 44px; min-height: 42px; border: 1px solid var(--customer-line); border-radius: 999px; background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; }
.notification-bell-v138 strong { position: absolute; top: -7px; right: -5px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--customer-accent); color: #111; display: grid; place-items: center; font-size: .72rem; }
.customer-verified-card-v138 { border: 1px solid var(--customer-line); border-radius: 20px; padding: 14px 16px; background: var(--surface-soft); min-width: 260px; display: grid; gap: 4px; }
.customer-verified-card-v138 span,
.customer-verified-card-v138 small { color: var(--text-soft); }
.customer-dashboard-grid-v138 { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.customer-sidebar-v138 { position: sticky; top: 88px; display: grid; gap: 8px; padding: 12px; }
.customer-sidebar-v138 button { text-align: left; border: 1px solid transparent; border-radius: 14px; padding: 11px 12px; background: transparent; color: var(--text-soft); font-weight: 800; cursor: pointer; }
.customer-sidebar-v138 button.is-active { background: color-mix(in srgb, var(--customer-accent) 16%, var(--surface) 84%); border-color: color-mix(in srgb, var(--customer-accent) 38%, transparent); color: var(--text-strong); }
.customer-content-v138 { min-width: 0; }
.customer-panel-v138 { display: none; gap: 16px; }
.customer-panel-v138.is-active { display: grid; }
.customer-stat-grid-v138 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.customer-stat-v138 { display: grid; gap: 4px; padding: 16px; }
.customer-stat-v138 span,
.customer-stat-v138 small { color: var(--text-soft); }
.customer-stat-v138 strong { font-size: 2rem; line-height: 1; }
.customer-empty-v138 { padding: 22px; display: grid; gap: 10px; }
.customer-empty-v138 h2,
.customer-empty-v138 h3 { margin: 0; }
.customer-empty-v138 p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.customer-panel-head-v138 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.customer-panel-head-v138 h2 { margin: 0; }
.customer-alert-grid-v138,
.customer-role-grid-v138 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.customer-setting-v138,
.customer-role-card-v138 { display: grid; gap: 8px; padding: 16px; }
.customer-setting-v138 span,
.customer-role-card-v138 p { color: var(--text-soft); margin: 0; line-height: 1.45; }
.customer-workflow-v138 { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-profile-form-v138 { display: grid; gap: 14px; }
@media (max-width: 980px) {
  .customer-auth-hero-v138,
  .customer-dashboard-hero-v138,
  .customer-auth-grid-v138,
  .customer-dashboard-grid-v138 { grid-template-columns: 1fr; }
  .customer-sidebar-v138 { position: static; display: flex; overflow-x: auto; }
  .customer-sidebar-v138 button { white-space: nowrap; }
  .customer-stat-grid-v138,
  .customer-alert-grid-v138,
  .customer-role-grid-v138 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .customer-email-grid-v138,
  .customer-code-row-v138,
  .customer-stat-grid-v138,
  .customer-alert-grid-v138,
  .customer-role-grid-v138 { grid-template-columns: 1fr; }
  .customer-auth-page-v138,
  .customer-dashboard-page-v138 { padding-top: 12px; }
  .customer-verified-card-v138 { min-width: 0; }
}

/* ===== v139 Portal del Cliente conectado a backend real ===== */
.customer-real-list-v139 {
  display: grid;
  gap: 12px;
}
.customer-favorite-card-v139,
.customer-list-card-v139,
.customer-notification-row-v139 {
  display: grid;
  gap: 8px;
}
.customer-favorite-card-v139 {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
}
.customer-favorite-thumb-v139 {
  min-height: 88px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.customer-favorite-thumb-v139 span {
  position: absolute;
  left: -32px;
  right: -32px;
  top: 34px;
  transform: rotate(-18deg);
  text-align: center;
  font-weight: 900;
  letter-spacing: .18em;
  color: #fff;
  background: rgba(210, 40, 40, .92);
  padding: 6px 0;
  box-shadow: 0 10px 20px rgba(0,0,0,.24);
}
.customer-favorite-card-v139.is-sold {
  opacity: .86;
}
.customer-notification-row-v139 {
  border-left: 4px solid color-mix(in srgb, var(--accent) 68%, transparent);
}
.customer-notification-row-v139.is-read {
  opacity: .72;
  border-left-color: var(--line);
}
@media (max-width: 640px) {
  .customer-favorite-card-v139 {
    grid-template-columns: 1fr;
  }
}


/* ===== v146 Fix login customer layout ===== */
.customer-auth-hero-v138 {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
}
.customer-auth-hero-copy-v146 {
  display: grid;
  gap: 10px;
}
.customer-auth-hero-copy-v146 .kicker,
.customer-auth-hero-copy-v146 h1,
.customer-auth-hero-copy-v146 p {
  margin: 0;
}
.customer-auth-hero-v138 .customer-hero-tags-v138 {
  margin-top: 0;
}
.customer-auth-hero-v138 .customer-hero-tags-v138 span {
  white-space: nowrap;
}
@media (min-width: 981px) {
  .customer-auth-grid-v138 {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}


/* ===== v147 Acceso cliente profesional: login primero ===== */
.customer-auth-shell-v147 {
  max-width: min(1180px, calc(100vw - 28px));
}
.customer-auth-page-v147 .customer-auth-hero-v147 {
  margin-bottom: 16px;
}
.customer-auth-stack-v147 {
  display: grid;
  gap: 18px;
}
.customer-login-primary-v147 {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.customer-login-form-v147 {
  display: grid;
  gap: 13px;
}
.customer-remember-v147 {
  justify-content: flex-start;
  margin-top: -2px;
}
.customer-register-question-v147 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--customer-accent) 12%);
  color: var(--text-soft);
}
.customer-register-question-v147 a {
  color: var(--text-strong);
  font-weight: 900;
  text-decoration: none;
}
.customer-register-question-v147 a:hover {
  text-decoration: underline;
}
.customer-register-card-v147 {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 16px;
  scroll-margin-top: 92px;
}
.password-control-v147 button {
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}
.customer-google-button-v147 {
  margin-top: 2px;
}
@media (min-width: 981px) {
  .customer-register-card-v147 .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .customer-login-primary-v147,
  .customer-register-card-v147 {
    max-width: none;
  }
  .customer-register-question-v147 {
    justify-content: flex-start;
  }
}


/* ===== v148 Acceso cliente: registro colapsado y enlaces profesionales ===== */
.customer-register-card-v148[hidden] {
  display: none !important;
}
.customer-link-button-v148 {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.customer-link-button-v148:hover,
.customer-link-button-v148:focus-visible {
  text-decoration: underline;
}
.customer-register-heading-v148 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.customer-back-login-v148 {
  white-space: nowrap;
  margin-top: 3px;
}
.customer-login-question-v148 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  border-top: 1px solid var(--customer-line);
  padding-top: 14px;
}
@media (max-width: 760px) {
  .customer-register-heading-v148 {
    display: grid;
  }
  .customer-back-login-v148 {
    justify-self: start;
  }
}


/* ===== v149 Acceso cliente: login primero y registro en pantalla separada ===== */
.customer-auth-page-v149 .customer-register-card-v147,
.customer-auth-page-v149 [data-customer-register-form] {
  display: none !important;
}
.customer-auth-shell-v149 {
  max-width: min(1120px, calc(100vw - 28px));
}
.customer-auth-hero-v149 {
  grid-template-columns: 1fr;
}
.customer-auth-stack-v149 {
  max-width: 760px;
  margin: 0 auto;
}
.customer-login-primary-v149 {
  max-width: 760px;
}
.customer-login-heading-v149 p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}
.customer-register-question-v149 a {
  color: var(--text-strong);
  font-weight: 900;
  text-decoration: none;
}
.customer-register-question-v149 a:hover,
.customer-register-question-v149 a:focus-visible {
  text-decoration: underline;
}
.customer-register-page-card-v149 {
  max-width: 980px;
  margin: 0 auto;
}
.customer-register-page-card-v149 .form-heading-v138 p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===== v182 Portal del Cliente: acciones visibles, punto azul y metadatos ===== */
.customer-action-row-v182 {
  position: relative;
}
.customer-action-head-v182 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.customer-unread-dot-v182 {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0a84ff;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0a84ff 16%, transparent);
  flex: 0 0 auto;
}
.customer-action-meta-v182 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-soft);
}
.customer-notification-row-v139.is-unread {
  border-left-color: #0a84ff;
}
.customer-notification-row-v139.is-read .customer-unread-dot-v182 {
  display: none;
}

/* ===== v202 · Usuario: login, recuperación y perfil editable ===== */
.customer-login-switch-v202 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.customer-switch-card-v202 {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.customer-switch-card-v202:hover,
.customer-switch-card-v202:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--customer-accent) 44%, var(--customer-line));
}
.customer-switch-card-v202.is-active {
  background: color-mix(in srgb, var(--customer-accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--customer-accent) 52%, var(--customer-line));
}
.customer-switch-card-v202 strong {
  color: var(--text-strong);
}
.customer-switch-card-v202 span {
  color: var(--text-soft);
  line-height: 1.45;
  font-size: .92rem;
}
.customer-wide-button-v202 {
  width: 100%;
  justify-content: center;
}
.customer-reset-box-v202[hidden] {
  display: none !important;
}
.customer-reset-box-v202,
.customer-reset-form-v202 {
  display: grid;
  gap: 13px;
}
.customer-reset-box-v202 {
  border-color: color-mix(in srgb, var(--customer-accent) 35%, var(--customer-line));
  background: color-mix(in srgb, var(--customer-accent) 8%, var(--surface));
}
.customer-password-checklist-v202 span {
  border: 1px solid var(--customer-line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-weight: 800;
}
.customer-password-checklist-v202 span::before {
  content: '• ';
}
.customer-password-checklist-v202 span.is-valid::before {
  content: '✓ ';
}
.customer-profile-actions-v202 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.customer-profile-readonly-v202 {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0;
}
.customer-profile-preference-v202 {
  display: grid;
  gap: 8px;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface-soft);
}
.customer-profile-preference-v202 legend {
  color: var(--text-soft);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  padding: 0 6px;
}
.customer-profile-preference-v202 label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 750;
}
.customer-profile-preference-v202 input[type='radio'] {
  width: auto;
}
@media (max-width: 820px) {
  .customer-login-switch-v202 {
    grid-template-columns: 1fr;
  }
}

/* ===== v217 Portal del comprador logueado ===== */
.customer-summary-real-v217 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 14px;
}

.customer-summary-card-v217 {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.customer-summary-card-v217 h2,
.customer-summary-card-v217 p {
  margin: 0;
}

.customer-summary-card-v217 p,
.customer-muted-v217 {
  color: var(--text-soft);
  line-height: 1.55;
}

.customer-summary-wide-v217 {
  grid-column: 1 / -1;
}

.customer-summary-head-v217 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-summary-head-v217 a {
  color: var(--text-strong);
  font-weight: 900;
  text-decoration: none;
}

.customer-summary-head-v217 a:hover,
.customer-summary-head-v217 a:focus-visible {
  text-decoration: underline;
}

.customer-card-actions-v217 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-mini-list-v217,
.customer-favorite-mini-grid-v217 {
  display: grid;
  gap: 8px;
}

.customer-mini-list-v217 a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--customer-line, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, var(--customer-accent) 12%);
  color: var(--text-strong);
  text-decoration: none;
}

.customer-mini-list-v217 a small {
  color: var(--text-soft);
  white-space: nowrap;
}

.customer-favorite-mini-grid-v217 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-favorite-mini-grid-v217 a {
  display: grid;
  gap: 7px;
  color: var(--text-strong);
  text-decoration: none;
}

.customer-favorite-mini-grid-v217 span {
  min-height: 118px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.customer-favorite-mini-grid-v217 b {
  position: absolute;
  left: -30px;
  right: -30px;
  top: 42px;
  transform: rotate(-16deg);
  display: block;
  text-align: center;
  color: #fff;
  background: rgba(210, 40, 40, .92);
  padding: 5px;
  letter-spacing: .14em;
}

.customer-favorite-card-v217 {
  align-items: stretch;
}

.customer-favorite-card-v217 .customer-favorite-thumb-v139 {
  min-height: 112px;
  display: block;
}

.customer-favorite-body-v217,
.customer-search-card-v217 {
  display: grid;
  gap: 10px;
}

.customer-favorite-body-v217 p,
.customer-search-card-v217 p {
  margin: 4px 0;
  color: var(--text-soft);
}

.customer-action-row-v182 .customer-card-actions-v217 {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .customer-summary-real-v217,
  .customer-favorite-mini-grid-v217 {
    grid-template-columns: 1fr;
  }

  .customer-mini-list-v217 a {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .customer-mini-list-v217 a small {
    grid-column: 2;
  }
}


/* ===== v218 · portal comprador limpio, miniaturas y seguridad real ===== */
.customer-favorite-thumb-v139:empty::after,
.customer-favorite-mini-grid-v217 span:empty::after {
  content: 'Sin imagen';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 900;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--surface-alt) 92%, var(--surface)));
}

.customer-security-grid-v218 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-security-card-v218 {
  display: grid;
  gap: 6px;
}

.customer-security-card-v218 span {
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-security-card-v218 strong {
  color: var(--heading);
  font-size: 1.05rem;
}

.customer-security-card-v218 small {
  color: var(--text-soft);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .customer-security-grid-v218 {
    grid-template-columns: 1fr;
  }
}


/* ===== v219 · miniaturas reales visibles en favoritos/resumen ===== */
.customer-favorite-thumb-v219,
.customer-favorite-mini-thumb-v219 {
  position: relative;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.customer-favorite-img-v219,
.customer-favorite-mini-img-v219 {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
}
.customer-favorite-thumb-v219 em,
.customer-favorite-mini-thumb-v219 em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--surface-alt) 92%, var(--surface)));
}
.customer-favorite-card-v217 .customer-favorite-thumb-v219 {
  min-height: 112px;
}
.customer-favorite-mini-thumb-v219 {
  min-height: 118px;
  border-radius: 18px;
}


/* ===== v239 · portal comprador más orientado a acciones ===== */
.customer-action-row-v182 .customer-card-actions-v217 {
  margin-top: 10px;
}
.customer-summary-card-v217 p {
  line-height: 1.5;
}

/* ===== v240 Centro de alertas reales del comprador ===== */
.customer-panel-subtitle-v240 {
  margin: 6px 0 0;
  color: var(--text-soft);
  max-width: 780px;
  line-height: 1.55;
}
.customer-alert-live-v240 {
  display: grid;
  gap: 14px;
}
.customer-alert-summary-v240 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.customer-alert-summary-v240 h3,
.customer-alert-summary-v240 p {
  margin: 0;
}
.customer-alert-summary-v240 p {
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 860px;
}
.customer-alert-grid-v240 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.customer-alert-card-v240 {
  display: grid;
  gap: 12px;
  padding: 16px;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}
.customer-alert-card-v240::after {
  content: '';
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--customer-accent) 45%, transparent);
  opacity: .28;
}
.customer-alert-card-v240.is-configured::after {
  opacity: .88;
}
.customer-alert-top-v240 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.customer-alert-top-v240 span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--customer-accent) 14%, var(--surface) 86%);
}
.customer-alert-top-v240 strong {
  line-height: 1.2;
}
.customer-alert-card-v240 p {
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}
.customer-alert-meta-v240 {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-bottom: 8px;
}
.customer-alert-meta-v240 b {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--customer-accent) 12%, var(--surface) 88%);
  border: 1px solid color-mix(in srgb, var(--customer-accent) 35%, transparent);
}
.customer-alert-meta-v240 small {
  color: var(--text-soft);
  line-height: 1.35;
}
@media (max-width: 1120px) {
  .customer-alert-grid-v240 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .customer-alert-summary-v240 { align-items: start; flex-direction: column; }
  .customer-alert-grid-v240 { grid-template-columns: 1fr; }
}


/* V243 - Conversaciones reales comprador-vendedor */
.customer-conversations-board-v243 { display: block; }
.customer-conversations-layout-v243 { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); gap: 18px; align-items: start; }
.customer-conversation-list-v243 { display: grid; gap: 12px; }
.customer-conversation-card-v243 { display: grid; gap: 10px; border-left: 4px solid rgba(44, 201, 181, .28); }
.customer-conversation-card-v243.is-unread { border-left-color: var(--customer-accent); box-shadow: 0 14px 34px rgba(10, 132, 118, .13); }
.customer-conversation-card-v243 p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.customer-conversation-detail-v243 { display: grid; gap: 16px; position: sticky; top: 12px; }
.customer-conversation-detail-head-v243 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-conversation-detail-head-v243 h3 { margin: 0; }
.customer-conversation-detail-head-v243 p { margin: 4px 0 0; color: var(--text-muted); }
.customer-thread-v243 { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.customer-thread-item-v243 { border: 1px solid var(--customer-line); border-radius: 18px; padding: 12px 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.customer-thread-item-v243.is-customer { margin-left: 32px; background: color-mix(in srgb, var(--customer-accent) 10%, var(--surface)); }
.customer-thread-item-v243.is-seller { margin-right: 32px; }
.customer-thread-item-v243 div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.customer-thread-item-v243 strong { font-size: .95rem; }
.customer-thread-item-v243 small { color: var(--text-muted); font-size: .78rem; }
.customer-thread-item-v243 p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.55; }
.customer-conversation-reply-v243 { display: grid; gap: 10px; border-top: 1px solid var(--customer-line); padding-top: 12px; }
.customer-conversation-reply-v243 label { display: grid; gap: 6px; }
.customer-conversation-reply-v243 textarea { width: 100%; min-height: 110px; border-radius: 16px; border: 1px solid var(--customer-line); padding: 12px 14px; background: var(--surface); color: var(--text); resize: vertical; }
@media (max-width: 920px) { .customer-conversations-layout-v243 { grid-template-columns: 1fr; } .customer-conversation-detail-v243 { position: static; } }

/* V244 - Chat UX mas claro para comprador */
.customer-chat-panel-v244 {
  border-left: 4px solid color-mix(in srgb, var(--customer-accent) 48%, transparent);
}
.customer-chat-helper-v244 {
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--customer-accent) 7%, var(--surface) 93%);
  line-height: 1.5;
}
.customer-chat-thread-v244 {
  padding: 10px;
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.customer-chat-reply-v244 {
  border: 1px solid color-mix(in srgb, var(--customer-accent) 34%, var(--customer-line));
  border-radius: 18px;
  padding: 12px;
  background: color-mix(in srgb, var(--customer-accent) 6%, var(--surface) 94%);
}


/* V244.1 - chat comprador-vendedor claro */
.customer-chat-locked-v244 {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 18px;
  padding: 14px;
}
.customer-chat-locked-v244 strong { color: var(--text); }
.customer-chat-locked-v244 p { margin: 0; color: var(--muted); line-height: 1.55; }
.customer-conversation-card-v243.is-chat-locked { border-style: dashed; }
.customer-conversation-card-v243.is-chat-open { border-color: rgba(16, 185, 129, 0.35); }
.customer-chat-panel-v244.is-reply-locked .customer-chat-thread-v244 { margin-bottom: 10px; }


/* V244.2 - visibilidad del composer de chat del comprador */
.customer-conversation-reply-v243.customer-chat-reply-v244 {
  border: 2px solid rgba(20, 184, 166, .45);
  background: rgba(20, 184, 166, .08);
  padding: 14px;
  border-radius: 18px;
}
.customer-main-chat-textarea-v2442 {
  min-height: 150px !important;
  border: 2px solid rgba(20, 184, 166, .45) !important;
}
.customer-chat-locked-v244 {
  border: 1px dashed rgba(245, 158, 11, .55);
  background: rgba(245, 158, 11, .08);
  padding: 12px;
  border-radius: 16px;
}

/* V244.3: badges visibles en navegación del portal comprador */
.customer-sidebar-v138 button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}

.customer-sidebar-v138 button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-tab-count-v2443 {
  flex: 0 0 auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .38rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4b45f;
  color: #1b1b1b;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(244, 180, 95, .18);
}

.customer-tab-count-v2443[hidden] {
  display: none !important;
}

/* ===== v244.4 Limpieza UX: chat real sin tarjetas redundantes ===== */
.notification-bell-v138.has-unread strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-weight: 800;
}
.customer-chat-layout-v2444 {
  align-items: stretch;
}
.customer-chat-list-v2444 {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.customer-chat-thread-button-v2444 {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .78);
  color: inherit;
  border-radius: 18px;
  padding: .9rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: .35rem;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.customer-chat-thread-button-v2444:hover,
.customer-chat-thread-button-v2444.is-selected {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, .75);
  background: rgba(30, 41, 59, .94);
}
.customer-chat-thread-button-v2444.is-unread {
  border-color: rgba(59, 130, 246, .95);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .2);
}
.customer-chat-thread-title-v2444 {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.customer-chat-thread-button-v2444 span:not(.customer-chat-thread-title-v2444) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: .86;
}
.customer-chat-thread-button-v2444 small {
  color: var(--muted, #94a3b8);
}
.customer-chat-panel-v244.is-reply-enabled,
.customer-chat-panel-v244.is-reply-locked {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.customer-chat-thread-v244 {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(2, 6, 23, .32);
  border: 1px solid rgba(148, 163, 184, .18);
  min-height: 260px;
}
.customer-chat-bubble-v2444 {
  max-width: min(78%, 680px);
  border: 0;
  padding: .85rem 1rem;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .16);
}
.customer-chat-bubble-v2444.is-customer {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(14, 165, 233, .9));
  color: #fff;
}
.customer-chat-bubble-v2444.is-seller {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, .93);
  color: #0f172a;
}
.customer-chat-bubble-meta-v2444 {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .35rem;
  font-size: .78rem;
  opacity: .78;
}
.customer-chat-bubble-v2444 p {
  margin: 0;
  line-height: 1.45;
}
.customer-chat-reply-v244 {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 1rem;
}
.customer-chat-reply-v244 textarea {
  min-height: 110px;
}
@media (max-width: 860px) {
  .customer-chat-layout-v2444 {
    grid-template-columns: 1fr;
  }
  .customer-chat-bubble-v2444 {
    max-width: 94%;
  }
}
[data-theme='light'] .customer-chat-thread-button-v2444 {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .12);
}
[data-theme='light'] .customer-chat-thread-button-v2444:hover,
[data-theme='light'] .customer-chat-thread-button-v2444.is-selected {
  background: #f8fafc;
}
[data-theme='light'] .customer-chat-thread-v244 {
  background: #f8fafc;
}


/* V246.7 - Estados persistidos del chat para comprador */
.customer-chat-delivery-status-v2469 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
}

.customer-chat-delivery-status-v2469 > span {
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.14em;
}

.customer-chat-delivery-status-v2469 em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.customer-chat-delivery-status-v2469.is-sent {
  color: #8a93a3;
}

.customer-chat-delivery-status-v2469.is-delivered {
  color: #38bdf8;
}

.customer-chat-delivery-status-v2469.is-read {
  color: #2563eb;
}

.customer-thread-item-v243.is-customer .customer-chat-delivery-status-v2469 {
  justify-content: flex-end;
}

.customer-thread-item-v243.is-seller .customer-chat-delivery-status-v2469 {
  justify-content: flex-start;
}


/* V246.9 - checks de chat visibles en portal cliente */
.customer-chat-bubble-meta-v2469 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.customer-chat-message-meta-v2469 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.customer-chat-delivery-status-v2469 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
}
.customer-chat-delivery-status-v2469.is-sent { color: #8a93a3 !important; }
.customer-chat-delivery-status-v2469.is-delivered { color: #38bdf8 !important; }
.customer-chat-delivery-status-v2469.is-read { color: #2563eb !important; }

/* V247.07 · Evento de llamada interna visible para comprador */
.customer-internal-call-card-v24707 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, #eff6ff 84%, var(--surface, #fff) 16%);
  border: 1px solid color-mix(in srgb, #2563eb 22%, var(--border, #d9dee8) 78%);
}

:root[data-theme='dark'] .customer-internal-call-card-v24707,
body.dark .customer-internal-call-card-v24707 {
  background: color-mix(in srgb, #172554 38%, var(--surface, #0f172a) 62%);
  border-color: color-mix(in srgb, #60a5fa 28%, var(--border, #334155) 72%);
}

.customer-internal-call-card-v24707 strong,
.customer-internal-call-card-v24707 p,
.customer-internal-call-card-v24707 small {
  display: block;
  margin: 0;
}

.customer-internal-call-card-v24707 p {
  margin-top: 4px;
  color: var(--text, #111827);
}

.customer-internal-call-card-v24707 small {
  margin-top: 7px;
  color: var(--text-soft, #64748b);
  font-weight: 800;
}

.customer-internal-call-pulse-v24707 {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .42);
  animation: customerCallPulseV24707 1.8s ease-out infinite;
}

.customer-thread-item-v243.is-internal-call-v24707 {
  max-width: min(94%, 560px);
}

@keyframes customerCallPulseV24707 {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .42); }
  70% { box-shadow: 0 0 0 11px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* V247.08 - estados visuales de llamada interna en chat del comprador */
.customer-thread-item-v243.is-call-missed .customer-internal-call-card-v24707 {
  background: color-mix(in srgb, #fef2f2 84%, var(--surface, #fff) 16%);
  border-color: color-mix(in srgb, #ef4444 24%, var(--border, #d9dee8) 76%);
}

.customer-thread-item-v243.is-call-seller_hung_up .customer-internal-call-card-v24707 {
  background: color-mix(in srgb, #fff7ed 84%, var(--surface, #fff) 16%);
  border-color: color-mix(in srgb, #f97316 28%, var(--border, #d9dee8) 72%);
}

.customer-thread-item-v243.is-call-missed .customer-internal-call-pulse-v24707,
.customer-thread-item-v243.is-call-seller_hung_up .customer-internal-call-pulse-v24707 {
  background: linear-gradient(135deg, #dc2626, #f97316);
  animation-duration: 2.2s;
}

:root[data-theme='dark'] .customer-thread-item-v243.is-call-missed .customer-internal-call-card-v24707,
body.dark .customer-thread-item-v243.is-call-missed .customer-internal-call-card-v24707 {
  background: color-mix(in srgb, #450a0a 38%, var(--surface, #0f172a) 62%);
  border-color: color-mix(in srgb, #f87171 28%, var(--border, #334155) 72%);
}

:root[data-theme='dark'] .customer-thread-item-v243.is-call-seller_hung_up .customer-internal-call-card-v24707,
body.dark .customer-thread-item-v243.is-call-seller_hung_up .customer-internal-call-card-v24707 {
  background: color-mix(in srgb, #431407 38%, var(--surface, #0f172a) 62%);
  border-color: color-mix(in srgb, #fb923c 28%, var(--border, #334155) 72%);
}

/* V247.09 - Llamada interna live: modal entrante comprador */
.customer-incoming-call-overlay-v24709 {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 12, 24, 0.68);
  backdrop-filter: blur(10px);
}

.customer-incoming-call-modal-v24709 {
  width: min(430px, 94vw);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(145deg, #ffffff, #eef6ff);
  color: #102033;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.customer-incoming-call-avatar-v24709 {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 16px 35px rgba(22, 163, 74, 0.32);
}

.customer-incoming-call-avatar-v24709 i {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(22, 163, 74, 0.42);
  border-radius: inherit;
  animation: ciIncomingRingV24709 1.7s ease-out infinite;
}

.customer-incoming-call-avatar-v24709 i:nth-child(2) { animation-delay: .35s; }
.customer-incoming-call-avatar-v24709 i:nth-child(3) { animation-delay: .7s; }

@keyframes ciIncomingRingV24709 {
  from { opacity: .85; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.34); }
}

.customer-incoming-call-copy-v24709 .kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0369a1;
}

.customer-incoming-call-copy-v24709 h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.customer-incoming-call-copy-v24709 p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #36506d;
}

.customer-incoming-call-copy-v24709 small {
  display: block;
  color: #0f766e;
  font-weight: 800;
}

.customer-incoming-call-actions-v24709 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.customer-incoming-call-actions-v24709 .btn-danger,
.btn.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.customer-incoming-call-actions-v24709 .btn-danger:hover,
.btn.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .customer-incoming-call-modal-v24709 {
    background: linear-gradient(145deg, #07111f, #10243a);
    color: #f8fafc;
    border-color: rgba(56, 189, 248, .26);
  }
  .customer-incoming-call-copy-v24709 p { color: #cbd5e1; }
}


/* V247.12 - llamadas internas: icono telefónico claro, sin emojis confusos */
.ci-internal-call-icon-v24712 {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: currentColor;
}

.customer-internal-call-pulse-v24707 .ci-internal-call-icon-v24712 {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.customer-incoming-call-avatar-v24709 .ci-internal-call-icon-v24712 {
  width: 52px;
  height: 52px;
  color: #ffffff;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, .3));
}

.customer-thread-item-v243.is-internal-call-v24707 .customer-internal-call-card-v24707 {
  position: relative;
  overflow: hidden;
}

.customer-thread-item-v243.is-internal-call-v24707 .customer-internal-call-card-v24707::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.customer-thread-item-v243.is-call-missed .customer-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #ef4444, #f97316);
}

.customer-thread-item-v243.is-call-completed .customer-internal-call-card-v24707::before,
.customer-thread-item-v243.is-call-answered .customer-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #16a34a, #22c55e);
}

.customer-thread-item-v243.is-call-rejected .customer-internal-call-card-v24707::before,
.customer-thread-item-v243.is-call-seller_hung_up .customer-internal-call-card-v24707::before,
.customer-thread-item-v243.is-call-customer_hung_up .customer-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #f97316, #f59e0b);
}


/* V247.13 - llamadas internas: centrar icono SVG dentro del círculo en chat y modal entrante */
.customer-internal-call-pulse-v24707,
.customer-incoming-call-avatar-v24709,
.customer-incoming-call-avatar-v24709 > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-internal-call-pulse-v24707 {
  flex: 0 0 42px;
  line-height: 0;
  overflow: visible;
}

.customer-internal-call-pulse-v24707 .ci-internal-call-icon-v24712,
.customer-incoming-call-avatar-v24709 .ci-internal-call-icon-v24712 {
  position: static;
  flex: 0 0 auto;
  display: block;
  margin: auto;
  transform: none;
  transform-origin: center;
  overflow: visible;
}

.customer-internal-call-pulse-v24707 .ci-internal-call-icon-v24712 {
  width: 22px;
  height: 22px;
}

/* V247.14 - desbloqueo manual de audio remoto en llamada interna */
.customer-call-audio-unlock-v24714 {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, .18);
  cursor: pointer;
}
.customer-call-audio-unlock-v24714:hover { transform: translateY(-1px); }

/* V247.15 - llamadas internas profesionales: acciones de llamada activa */
.customer-incoming-call-actions-v24709 .customer-call-mute-v24715 {
  border: 1px solid rgba(15, 23, 42, .14);
  background: #ffffff;
  color: #1f2937;
  border-radius: 999px;
  font-weight: 900;
}
:root[data-theme='dark'] .customer-incoming-call-actions-v24709 .customer-call-mute-v24715,
body.dark .customer-incoming-call-actions-v24709 .customer-call-mute-v24715 {
  background: rgba(255, 255, 255, .1);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .2);
}

/* V248.57 buyer counterpart flow: favoritos, visitas y contacto protegido */
.customer-favorites-professional-v24857,
.customer-visits-list-v24857 {
  display: grid;
  gap: 1rem;
}

.customer-favorites-toolbar-v24857 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, .04);
}

.customer-favorites-toolbar-v24857 h3,
.customer-favorites-toolbar-v24857 p {
  margin: .15rem 0;
}

.customer-favorites-grid-v24857 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.customer-favorite-card-v24857 {
  overflow: hidden;
}

.customer-favorite-body-v24857 {
  display: grid;
  gap: .8rem;
}

.customer-flow-badge-v24857 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: .45rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #0f172a;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, .12);
}

.customer-flow-badge-v24857.is-info_requested,
.customer-flow-badge-v24857.is-seller_replied {
  background: #dbeafe;
  color: #1e3a8a;
}

.customer-flow-badge-v24857.is-visit_requested {
  background: #fef3c7;
  color: #92400e;
}

.customer-flow-badge-v24857.is-contact_enabled,
.customer-flow-badge-v24857.is-visit_scheduled,
.customer-flow-badge-v24857.is-visit_rescheduled {
  background: #dcfce7;
  color: #166534;
}

.customer-flow-badge-v24857.is-visit_cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.customer-visit-card-v24857 {
  display: grid;
  gap: .85rem;
  border-left: 4px solid rgba(37, 99, 235, .55);
}

.customer-visit-card-v24857.is-contact-enabled {
  border-left-color: rgba(22, 163, 74, .8);
}

.customer-visit-head-v24857 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.customer-visit-head-v24857 h3,
.customer-visit-head-v24857 p {
  margin: .15rem 0;
}

.customer-visit-meta-v24857 {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  color: var(--muted, #64748b);
}

.customer-contact-locked-v24857,
.customer-contact-enabled-v24857 {
  display: grid;
  gap: .4rem;
  padding: .85rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, .5);
  background: rgba(148, 163, 184, .08);
}

.customer-contact-enabled-v24857 {
  border-style: solid;
  border-color: rgba(22, 163, 74, .35);
  background: rgba(22, 163, 74, .08);
}

.customer-whatsapp-btn-v24857 {
  border-color: rgba(37, 211, 102, .75) !important;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, .14) inset;
}

@media (max-width: 720px) {
  .customer-favorites-toolbar-v24857,
  .customer-visit-head-v24857 {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== V248.58: navegación comprador siempre visible y estable ===== */
.customer-sidebar-v138 {
  z-index: 24;
}

@media (max-width: 980px) {
  .customer-dashboard-grid-v138 {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-sidebar-v138 {
    position: sticky;
    top: 72px;
    z-index: 35;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    max-width: 100%;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 94%, var(--customer-accent) 6%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
    scrollbar-width: thin;
  }

  .customer-sidebar-v138 button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .customer-sidebar-v138 {
    top: 58px;
    margin-inline: -2px;
  }
}

/* ===== V248.59: comprador emula política de contacto del vendedor, sin publicar datos crudos ===== */
.customer-contact-counterpart-v24859 {
  display: grid;
  gap: 10px;
  width: 100%;
}

.customer-contact-policy-v24859 {
  border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--border, #e5e7eb));
  border-radius: 20px;
  padding: 13px 14px;
  background: color-mix(in srgb, #f59e0b 10%, var(--surface, #ffffff));
  display: grid;
  gap: 4px;
  color: var(--text, #334155);
}

.customer-contact-policy-v24859 strong {
  color: var(--heading, #111827);
  font-weight: 950;
}

.customer-contact-policy-v24859 span {
  color: var(--text-soft, #64748b);
  line-height: 1.45;
  font-size: .92rem;
}

.customer-contact-policy-v24859.is-open {
  border-color: color-mix(in srgb, #16a34a 38%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 10%, var(--surface, #ffffff));
}

.customer-secure-contact-actions-v24859 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-secure-contact-btn-v24859 {
  min-height: 38px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1.1;
  background: var(--surface, #ffffff);
  color: var(--heading, #111827);
  font-weight: 950;
  font-size: .78rem;
  text-decoration: none;
  cursor: pointer;
}

.customer-secure-contact-btn-v24859.is-disabled,
.customer-secure-contact-btn-v24859:disabled {
  opacity: .72;
  cursor: not-allowed;
  filter: grayscale(.12);
}

.customer-secure-contact-btn-v24859.is-call {
  border-color: color-mix(in srgb, #8b5e34 38%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #8b5e34 8%, var(--surface, #ffffff));
}

.customer-secure-contact-btn-v24859.is-carrier {
  border-color: color-mix(in srgb, #0ea5e9 46%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #0ea5e9 10%, var(--surface, #ffffff));
}

.customer-secure-contact-btn-v24859.is-email {
  border-color: color-mix(in srgb, #6366f1 36%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #6366f1 8%, var(--surface, #ffffff));
}

.customer-secure-contact-btn-v24859.is-whatsapp {
  border-color: #25D366 !important;
  background: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .22);
}

.customer-secure-contact-btn-v24859.is-whatsapp.is-disabled,
.customer-secure-contact-btn-v24859.is-whatsapp:disabled {
  background: color-mix(in srgb, #25D366 22%, var(--surface, #ffffff)) !important;
  color: var(--text-soft, #64748b) !important;
  border-color: color-mix(in srgb, #25D366 40%, var(--border, #e5e7eb)) !important;
  box-shadow: none !important;
}

.customer-whatsapp-glyph-v24859 {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: currentColor;
}

.customer-visit-management-v24859 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-favorite-card-v24857 .customer-contact-counterpart-v24859 {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .customer-secure-contact-actions-v24859 {
    grid-template-columns: 1fr;
  }

  .customer-secure-contact-btn-v24859 {
    justify-content: center;
    width: 100%;
  }
}

/* V248.90 · Comprador visual desde base V248.78 estable.
   Solo UX/visual: chat por propiedad, miniatura legible, acciones bajo el chat,
   contraste profesional en modo claro y badges del panel izquierdo conservados. */
.notification-bell-v138 strong,
.auth-nav-customer-bell-v217 strong {
  background: #ef4444 !important;
  color: #fff !important;
  border: 2px solid var(--surface, #fffaf4);
  box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
}
.notification-bell-v138 strong[hidden],
.auth-nav-customer-bell-v217 strong[hidden] { display: none !important; }

.customer-chat-layout-v24890 {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.customer-chat-property-list-v24890 {
  max-height: min(72vh, 860px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.customer-chat-property-card-v24890 {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  min-height: 128px;
}
.customer-chat-property-image-v24890 {
  display: block;
  min-height: 108px;
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--customer-accent, #b77943) 11%, var(--surface-soft, #f7efe5));
  border: 1px solid color-mix(in srgb, var(--customer-accent, #b77943) 18%, transparent);
}
.customer-chat-property-image-v24890 img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  display: block;
}
.customer-chat-property-thumb-placeholder-v24890 {
  width: 100%;
  height: 100%;
  min-height: 108px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: color-mix(in srgb, var(--customer-accent, #b77943) 70%, #111827);
}
.customer-chat-property-copy-v24890 {
  display: grid !important;
  gap: 5px;
  min-width: 0;
  opacity: 1 !important;
}
.customer-chat-property-title-v24890 strong {
  font-size: .98rem;
  line-height: 1.18;
}
.customer-chat-property-location-v24890 {
  color: var(--text-soft, #64748b);
  font-size: .82rem;
  line-height: 1.22;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 1 !important;
}
.customer-chat-property-meta-v24890 {
  display: flex !important;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 1 !important;
}
.customer-chat-property-meta-v24890 b,
.customer-chat-property-meta-v24890 small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
}
.customer-chat-property-meta-v24890 b {
  color: #14532d;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .22);
}
.customer-chat-property-meta-v24890 b.is-sold { color: #7f1d1d; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .22); }
.customer-chat-property-meta-v24890 b.is-paused { color: #713f12; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .24); }
.customer-chat-property-time-v24890 {
  color: var(--text-soft, #64748b);
  font-size: .77rem;
  opacity: 1 !important;
}
.customer-chat-thread-button-v2444.customer-chat-property-card-v24890 span:not(.customer-chat-thread-title-v2444) {
  -webkit-line-clamp: unset;
}
.customer-chat-panel-v24890 {
  min-height: 620px;
  border-radius: 24px;
}
.customer-chat-detail-head-v24890 {
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.customer-chat-thread-v24890 {
  flex: 1 1 auto;
  max-height: min(54vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, .08) !important;
}
.customer-chat-panel-v24890 .customer-chat-bubble-v2444.is-seller {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, .08);
}
.customer-chat-panel-v24890 .customer-chat-bubble-v2444.is-customer {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
}
.customer-chat-reply-v24890 {
  display: grid;
  gap: 10px;
}
.customer-chat-send-row-v24890 {
  display: flex;
  justify-content: flex-end;
}
.customer-chat-send-main-v24890 {
  min-width: 170px;
  font-weight: 950;
}
.customer-chat-detail-actions-v24890 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.customer-chat-detail-actions-v24890 .btn,
.customer-chat-detail-actions-v24890 button {
  justify-content: center;
  min-height: 38px;
  white-space: normal;
}
.customer-chat-secondary-action-v24890.is-complete,
.customer-chat-detail-actions-v24890 .btn.is-complete {
  opacity: .7;
  cursor: not-allowed;
  border-color: rgba(34, 197, 94, .28) !important;
  background: rgba(34, 197, 94, .08) !important;
  color: var(--text-soft, #64748b) !important;
}
.customer-chat-locked-v24890 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .08);
}
.customer-chat-panel-v24890 .customer-contact-counterpart-v24859 {
  margin-top: 8px;
}
@media (max-width: 980px) {
  .customer-chat-layout-v24890 { grid-template-columns: 1fr; }
  .customer-chat-property-card-v24890 { grid-template-columns: 104px minmax(0, 1fr); }
  .customer-chat-detail-actions-v24890 { grid-template-columns: 1fr; }
}
html[data-theme='dark'] .customer-chat-thread-v24890,
body.theme-dark .customer-chat-thread-v24890,
.dark .customer-chat-thread-v24890 {
  background: rgba(2, 6, 23, .58) !important;
  border-color: rgba(148, 163, 184, .18) !important;
}
html[data-theme='dark'] .customer-chat-panel-v24890 .customer-chat-bubble-v2444.is-seller,
body.theme-dark .customer-chat-panel-v24890 .customer-chat-bubble-v2444.is-seller,
.dark .customer-chat-panel-v24890 .customer-chat-bubble-v2444.is-seller {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .12);
}

/* V248.96 · Mi cuenta > Chat: clonar visual y lógica del chat lateral de la ficha pública.
   Alcance: solo panel derecho del chat comprador. No toca tarjetas/miniaturas/punto azul de la lista. */
.customer-chat-detail-clone-v24896 {
  display: grid;
  gap: 12px;
  min-height: 620px;
  align-self: start;
}
@media (min-width: 981px) {
  .customer-chat-detail-clone-v24896 {
    position: sticky;
    top: 92px;
  }
}
.customer-detail-side-panel-v24860 {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #b98a5c) 28%, var(--border, #e5e7eb));
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--accent, #b98a5c) 5%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
}
.customer-detail-side-head-v24860 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.customer-detail-side-head-v24860 h3,
.customer-detail-thread-title-v24860 strong,
.customer-detail-visit-box-v24860 strong,
.customer-detail-contact-box-v24860 strong {
  color: var(--heading, #111827);
}
.customer-detail-side-head-v24860 h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.18;
}
.customer-detail-stage-v24860 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #f59e0b 36%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 12%, var(--surface, #fff));
  color: var(--heading, #111827);
  font-size: .74rem;
  font-weight: 950;
  line-height: 1.15;
  flex: 0 0 auto;
  max-width: 150px;
}
.customer-detail-stage-v24860.is-seller-replied,
.customer-detail-stage-v24860.is-visit-requested {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 44%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 14%, var(--surface, #fff));
}
.customer-detail-stage-v24860.is-contact-enabled {
  border-color: color-mix(in srgb, #16a34a 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 12%, var(--surface, #fff));
}
.customer-detail-thread-box-v24860,
.customer-detail-visit-box-v24860,
.customer-detail-contact-box-v24860 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #ffffff);
}
.customer-detail-thread-title-v24860 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.customer-detail-thread-title-v24860 span {
  color: var(--text-soft, #64748b);
  font-size: .78rem;
  font-weight: 800;
}
.customer-detail-thread-scroll-shell-v24897 {
  position: relative;
  min-width: 0;
}
.customer-detail-thread-scroll-v24860 {
  display: grid;
  align-content: start;
  gap: 9px;
  max-height: min(52vh, 620px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt, #f8fafc) 82%, transparent);
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  scroll-behavior: auto;
}
.customer-detail-thread-jump-v24897 {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, #2563eb 36%, var(--border, #e5e7eb));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, #2563eb 8%);
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .18);
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.customer-detail-thread-jump-v24897[hidden] {
  display: none !important;
}
.customer-detail-thread-jump-v24897.is-visible {
  animation: customerThreadJumpPulseV24897 1.6s ease-in-out infinite;
}
.customer-detail-thread-jump-v24897:hover,
.customer-detail-thread-jump-v24897:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .24);
  outline: none;
}
@keyframes customerThreadJumpPulseV24897 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}
.customer-detail-thread-bubble-v24860 {
  display: grid;
  gap: 5px;
  max-width: 92%;
  padding: 9px 10px;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  color: var(--text, #334155);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.customer-detail-thread-bubble-v24860.is-customer {
  justify-self: end;
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 35%, var(--border, #e5e7eb));
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
}
.customer-detail-thread-bubble-v24860.is-seller {
  justify-self: start;
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, .08);
}
.customer-detail-thread-bubble-v24860.is-customer p,
.customer-detail-thread-bubble-v24860.is-customer small,
.customer-detail-thread-bubble-v24860.is-customer strong {
  color: #ffffff;
}
.customer-detail-thread-meta-v24860 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--heading, #111827);
  font-size: .8rem;
}
.customer-detail-thread-meta-v24860 small {
  color: var(--text-soft, #64748b);
  font-weight: 700;
}
.customer-detail-thread-meta-right-v24862 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  text-align: right;
}
.customer-detail-thread-bubble-v24860 p,
.customer-detail-visit-box-v24860 p,
.customer-detail-contact-box-v24860 p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.4;
  font-size: .88rem;
}
.customer-detail-thread-empty-v24860,
.customer-detail-thread-locked-v24860 {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 15px;
  border: 1px dashed color-mix(in srgb, #f59e0b 42%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 7%, var(--surface, #fff));
  color: var(--text-soft, #64748b);
}
.customer-detail-thread-reply-v24860 {
  display: grid;
  gap: 9px;
}
.customer-detail-thread-reply-v24860 label {
  display: grid;
  gap: 6px;
}
.customer-detail-thread-reply-v24860 label span {
  font-weight: 900;
  color: var(--heading, #111827);
}
.customer-detail-thread-reply-v24860 textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border-radius: 15px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text, #334155);
  padding: 10px 11px;
  line-height: 1.45;
}
.customer-detail-visit-actions-v24860,
.customer-detail-contact-grid-v24860 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.customer-detail-visit-actions-v24860 .btn.is-blocked,
.customer-detail-visit-actions-v24860 .btn[disabled].is-blocked {
  opacity: .62;
  cursor: not-allowed;
  border-style: dashed;
}
.customer-detail-contact-box-v24860 {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 7%, var(--surface, #fff));
}
.customer-detail-contact-box-v24860.is-open {
  border-color: color-mix(in srgb, #16a34a 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 8%, var(--surface, #fff));
}
.customer-detail-contact-btn-v24860 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  color: var(--heading, #111827);
  font-weight: 900;
  font-size: .82rem;
  text-decoration: none;
  cursor: pointer;
}
.customer-detail-wa-icon-v24860,
.customer-detail-wa-icon-v24860 svg {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled) {
  border-color: rgba(34, 197, 94, .52);
  background: #22c55e;
  color: #ffffff;
}
.customer-detail-contact-btn-v24860.is-internal:not(.is-disabled) {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 52%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 12%, #ffffff);
}
.customer-detail-contact-btn-v24860.is-disabled,
.customer-detail-contact-btn-v24860[disabled] {
  opacity: .62;
  cursor: not-allowed;
  border-style: dashed;
}
.customer-detail-contact-btn-v24860.is-dialing-v24873 {
  opacity: .88;
  cursor: progress;
}
.customer-detail-contact-btn-v24860.is-dialing-v24873 span:last-child {
  font-weight: 800;
}
.customer-detail-delivery-v24862 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: -2px;
  color: #94a3b8;
  line-height: 1;
}
.customer-detail-delivery-v24862.is-delivered { color: #64748b; }
.customer-detail-delivery-v24862.is-read { color: #2563eb; }
.customer-detail-thread-bubble-v24860.is-unread-for-customer {
  border-color: color-mix(in srgb, #2563eb 42%, var(--border, #e5e7eb));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .12);
}
.customer-detail-thread-bubble-v24860.is-unread-for-customer::before {
  content: "Nuevo";
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #2563eb 12%, var(--surface, #fff));
  color: #2563eb;
  font-size: .68rem;
  font-weight: 950;
}
.buyer-outbound-call-overlay-v24874 {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}
.buyer-outbound-call-modal-v24874 {
  position: relative;
  width: min(460px, 94vw);
  border-radius: 28px;
  padding: 30px 26px 24px;
  background: linear-gradient(145deg, #ffffff, #f3faf7);
  color: #111827;
  border: 1px solid rgba(34, 197, 94, .24);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  text-align: center;
}
.buyer-outbound-call-close-v24874 {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.buyer-outbound-call-avatar-v24874 {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(22, 163, 74, .32);
}
.buyer-outbound-call-avatar-v24874 i {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(22, 163, 74, .36);
  border-radius: inherit;
  animation: buyerOutboundCallPulseV24874 1.65s ease-out infinite;
}
.buyer-outbound-call-avatar-v24874 i:nth-child(2) { animation-delay: .32s; }
.buyer-outbound-call-avatar-v24874 i:nth-child(3) { animation-delay: .64s; }
@keyframes buyerOutboundCallPulseV24874 {
  from { opacity: .85; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.34); }
}
.buyer-outbound-call-copy-v24874 .kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent, #b98a5c);
}
.buyer-outbound-call-copy-v24874 h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.07;
}
.buyer-outbound-call-copy-v24874 p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.45;
}
.buyer-outbound-call-badges-v24874 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.buyer-outbound-call-badges-v24874 span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
  font-size: .86rem;
}
.buyer-outbound-call-wave-v24874 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  border: 1px solid rgba(185, 138, 92, .28);
  border-radius: 18px;
  background: #fff;
  margin: 0 0 18px;
}
.buyer-outbound-call-wave-v24874 i {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
  animation: buyerOutboundWaveV24874 .88s ease-in-out infinite;
}
.buyer-outbound-call-wave-v24874 i:nth-child(2n) { animation-delay: .08s; }
.buyer-outbound-call-wave-v24874 i:nth-child(3n) { animation-delay: .16s; }
.buyer-outbound-call-wave-v24874 i:nth-child(4n) { animation-delay: .24s; }
@keyframes buyerOutboundWaveV24874 {
  0%, 100% { transform: scaleY(.55); opacity: .72; }
  50% { transform: scaleY(1.55); opacity: 1; }
}
.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-avatar-v24874 {
  background: #dc2626;
  box-shadow: 0 18px 42px rgba(220, 38, 38, .28);
}
.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-avatar-v24874 i {
  border-color: rgba(220, 38, 38, .28);
  animation: none;
}
.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-wave-v24874 { display: none; }
/* V249.00 · Estado online/offline del vendedor en el chat del comprador. */
.customer-chat-detail-heading-copy-v24900 {
  min-width: 0;
}

.customer-chat-detail-title-row-v24900 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.customer-chat-detail-title-row-v24900 h3 {
  margin: 0;
  min-width: 0;
}

.customer-chat-seller-presence-v24900 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.customer-chat-seller-presence-v24900 i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.customer-chat-seller-presence-v24900.is-online {
  color: #15803d;
  background: color-mix(in srgb, #22c55e 13%, #ffffff);
}

.customer-chat-seller-presence-v24900.is-offline,
.customer-chat-seller-presence-v24900.is-unknown {
  color: #dc2626;
  background: color-mix(in srgb, #ef4444 10%, #ffffff);
}

html[data-theme='dark'] .customer-detail-thread-bubble-v24860.is-seller,
body.theme-dark .customer-detail-thread-bubble-v24860.is-seller,
.dark .customer-detail-thread-bubble-v24860.is-seller {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255,255,255,.12);
}
html[data-theme='dark'] .customer-detail-thread-jump-v24897,
body.theme-dark .customer-detail-thread-jump-v24897,
.dark .customer-detail-thread-jump-v24897 {
  background: color-mix(in srgb, #0f172a 88%, #2563eb 12%);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, .28);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .38);
}
html[data-theme='dark'] .buyer-outbound-call-modal-v24874,
body.theme-dark .buyer-outbound-call-modal-v24874,
.dark .buyer-outbound-call-modal-v24874 {
  background: linear-gradient(145deg, #07111f, #10243a);
  color: #f8fafc;
  border-color: rgba(74, 222, 128, .22);
}
html[data-theme='dark'] .buyer-outbound-call-close-v24874,
body.theme-dark .buyer-outbound-call-close-v24874,
.dark .buyer-outbound-call-close-v24874 { color: #f8fafc; }
html[data-theme='dark'] .buyer-outbound-call-copy-v24874 p,
body.theme-dark .buyer-outbound-call-copy-v24874 p,
.dark .buyer-outbound-call-copy-v24874 p { color: #cbd5e1; }
html[data-theme='dark'] .buyer-outbound-call-badges-v24874 span,
html[data-theme='dark'] .buyer-outbound-call-wave-v24874,
body.theme-dark .buyer-outbound-call-badges-v24874 span,
body.theme-dark .buyer-outbound-call-wave-v24874,
.dark .buyer-outbound-call-badges-v24874 span,
.dark .buyer-outbound-call-wave-v24874 { background: rgba(15, 23, 42, .88); color: #e2e8f0; }
@media (max-width: 980px) {
  .customer-chat-detail-clone-v24896 { min-height: auto; position: static; }
  .customer-detail-side-head-v24860,
  .customer-detail-thread-title-v24860 { align-items: flex-start; flex-direction: column; }
  .customer-detail-contact-grid-v24860,
  .customer-detail-visit-actions-v24860 { grid-template-columns: 1fr; }
}
.customer-action-status-v140 {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text, #334155);
  box-shadow: var(--shadow-md, 0 16px 38px rgba(15,23,42,.16));
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.customer-action-status-v140.is-visible { opacity: 1; transform: translateY(0); }
.customer-action-status-v140[data-status="success"] { border-color: color-mix(in srgb, #22c55e 55%, var(--line, #e5e7eb)); }
.customer-action-status-v140[data-status="warning"] { border-color: color-mix(in srgb, #f59e0b 55%, var(--line, #e5e7eb)); }
.customer-action-status-v140[data-status="error"] { border-color: color-mix(in srgb, #ef4444 60%, var(--line, #e5e7eb)); }


/* V249.02 · Campanita inteligente del comprador sin romper chat V248.99/V249.00. */
.customer-header-bell-wrap-v24902 {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notification-bell-v138.has-unread {
  border-color: color-mix(in srgb, #ef4444 38%, var(--customer-line, #e5e7eb));
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 10%, transparent);
}
.notification-bell-v138.has-unread strong {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
}
.notification-bell-v138.has-mix::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .68;
}
.customer-attention-menu-v24902 {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 250;
  width: min(360px, calc(100vw - 24px));
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: var(--surface, #fff);
  color: var(--text, #182238);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  padding: 10px;
}
.customer-attention-menu-v24902[hidden] { display: none !important; }
.customer-attention-menu-head-v24902 {
  padding: 8px 10px 10px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  margin-bottom: 6px;
}
.customer-attention-menu-head-v24902 strong,
.customer-attention-menu-head-v24902 small,
.customer-attention-menu-row-v24902 strong,
.customer-attention-menu-row-v24902 small { display: block; }
.customer-attention-menu-head-v24902 small,
.customer-attention-menu-row-v24902 small {
  opacity: .72;
  font-size: .78rem;
  line-height: 1.25;
}
.customer-attention-menu-row-v24902 {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
}
.customer-attention-menu-row-v24902:hover,
.customer-attention-menu-row-v24902:focus-visible {
  background: color-mix(in srgb, currentColor 7%, transparent);
  outline: none;
}
.customer-attention-menu-row-v24902 b {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: .82rem;
  padding: 0 8px;
}
html[data-theme='dark'] .customer-attention-menu-v24902,
body.theme-dark .customer-attention-menu-v24902,
.dark .customer-attention-menu-v24902 {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255,255,255,.14);
}
@media (max-width: 680px) {
  .customer-attention-menu-v24902 {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(340px, calc(100vw - 20px));
  }
}

/* V249.03: el portal comprador ya no usa la sección Historial de actividad; cualquier residuo legacy queda oculto sin afectar Admin. */
.customer-sidebar-v138 [data-customer-tab="notificaciones"],
.customer-content-v138 [data-customer-panel="notificaciones"] { display: none !important; }


/* V249.05 · Ajuste de cabecera del chat comprador y botón Ver inmueble.
   Alcance: solo panel derecho de Mi cuenta > Chat. No toca scroll, campanita, miniaturas ni punto azul. */
.customer-chat-detail-clone-v24896 .customer-detail-side-head-v24860 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.customer-chat-detail-heading-copy-v24905 {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.customer-chat-detail-heading-copy-v24905 .kicker {
  display: block;
  max-width: 100%;
  color: color-mix(in srgb, var(--accent, #b98a5c) 72%, #7c2d12);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.22;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.customer-chat-detail-clone-v24896 .customer-chat-detail-title-row-v24900 {
  max-width: 100%;
  min-width: 0;
}

.customer-chat-detail-clone-v24896 .customer-chat-detail-title-row-v24900 h3 {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-detail-head-actions-v24905 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 168px;
}

.customer-detail-head-actions-v24905 .customer-detail-stage-v24860 {
  max-width: 168px;
  margin: 0;
}

.customer-detail-property-link-v24905 {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 980px) {
  .customer-chat-detail-clone-v24896 .customer-detail-side-head-v24860 {
    grid-template-columns: 1fr;
  }
  .customer-detail-head-actions-v24905 {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .customer-detail-head-actions-v24905 .customer-detail-stage-v24860 {
    max-width: min(100%, 220px);
  }
}

/* ===== V249.06: Comprador · Visitas agendadas como agenda profesional, sin contacto directo ===== */
.customer-visits-agenda-v24906 {
  gap: 14px;
}

.customer-visit-agenda-card-v24906 {
  border-left-width: 5px;
  overflow: hidden;
}

.customer-visit-agenda-card-v24906.is-visit_requested {
  border-left-color: color-mix(in srgb, #f59e0b 74%, var(--border, #e5e7eb));
}

.customer-visit-agenda-card-v24906.is-visit_scheduled,
.customer-visit-agenda-card-v24906.is-visit_rescheduled,
.customer-visit-agenda-card-v24906.is-reprogram_requested {
  border-left-color: color-mix(in srgb, #16a34a 78%, var(--border, #e5e7eb));
}

.customer-visit-agenda-card-v24906.is-visit_cancelled {
  border-left-color: color-mix(in srgb, #ef4444 74%, var(--border, #e5e7eb));
}

.customer-visit-agenda-main-v24906 {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.customer-visit-thumb-v24906 {
  min-height: 128px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 80%, transparent);
  background: color-mix(in srgb, var(--customer-accent, #2563eb) 7%, var(--surface, #ffffff));
  display: grid;
  place-items: center;
}

.customer-visit-thumb-v24906 img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  display: block;
}

.customer-visit-thumb-v24906 .customer-chat-property-thumb-placeholder-v24890 {
  width: 100%;
  height: 100%;
  min-height: 128px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--text-soft, #64748b);
}

.customer-visit-agenda-body-v24906 {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.customer-visit-head-v24906 {
  align-items: flex-start;
}

.customer-visit-titleblock-v24906 {
  min-width: 0;
}

.customer-visit-titleblock-v24906 h3 {
  overflow-wrap: anywhere;
  line-height: 1.16;
}

.customer-visit-titleblock-v24906 p {
  color: var(--text-soft, #64748b);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-flow-badge-v24857.is-reprogram_requested,
.customer-flow-badge-v24857.is-visit_reprogram_requested {
  background: #ede9fe;
  color: #5b21b6;
}

.customer-visit-status-wrap-v24906 {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 84%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--customer-accent, #2563eb) 4%, var(--surface, #ffffff));
}

.customer-visit-status-title-v24906 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .78rem;
  color: var(--text-soft, #64748b);
}

.customer-visit-status-title-v24906 strong {
  color: var(--heading, #111827);
  font-weight: 950;
  text-align: right;
}

.customer-visit-statusbar-v24906 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.customer-visit-statusbar-v24906 span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, #94a3b8 12%, var(--surface, #ffffff));
  color: var(--text-soft, #64748b);
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
  border: 1px solid color-mix(in srgb, #94a3b8 24%, var(--border, #e5e7eb));
}

.customer-visit-statusbar-v24906 span.is-done {
  background: color-mix(in srgb, #22c55e 16%, var(--surface, #ffffff));
  color: #166534;
  border-color: color-mix(in srgb, #22c55e 38%, var(--border, #e5e7eb));
}

.customer-visit-statusbar-v24906 span.is-active {
  background: color-mix(in srgb, #2563eb 18%, var(--surface, #ffffff));
  color: #1e3a8a;
  border-color: color-mix(in srgb, #2563eb 42%, var(--border, #e5e7eb));
  box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
}

.customer-visit-statusbar-v24906.is-visit_cancelled span.is-active {
  background: color-mix(in srgb, #ef4444 17%, var(--surface, #ffffff));
  color: #991b1b;
  border-color: color-mix(in srgb, #ef4444 42%, var(--border, #e5e7eb));
}

.customer-visit-statusbar-v24906.is-reprogram_requested span.is-active,
.customer-visit-statusbar-v24906.is-visit_rescheduled span.is-active {
  background: color-mix(in srgb, #8b5cf6 17%, var(--surface, #ffffff));
  color: #5b21b6;
  border-color: color-mix(in srgb, #8b5cf6 42%, var(--border, #e5e7eb));
}

.customer-visit-meta-v24906 {
  gap: 6px 14px;
}

.customer-visit-agenda-note-v24906,
.customer-visit-agenda-wait-v24906 {
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, #0ea5e9 7%, var(--surface, #ffffff));
  border: 1px solid color-mix(in srgb, #0ea5e9 22%, var(--border, #e5e7eb));
  color: var(--text, #334155);
  font-size: .88rem;
  line-height: 1.42;
}

.customer-visit-agenda-wait-v24906 {
  background: color-mix(in srgb, #f59e0b 9%, var(--surface, #ffffff));
  border-color: color-mix(in srgb, #f59e0b 28%, var(--border, #e5e7eb));
  color: #92400e;
  font-weight: 850;
}

.customer-visit-agenda-actions-v24906 .is-danger-soft-v24906 {
  border-color: color-mix(in srgb, #ef4444 32%, var(--border, #e5e7eb));
  color: #991b1b;
  background: color-mix(in srgb, #ef4444 7%, var(--surface, #ffffff));
}

:root[data-theme='dark'] .customer-visit-status-title-v24906 strong,
body.dark .customer-visit-status-title-v24906 strong {
  color: #f8fafc;
}

:root[data-theme='dark'] .customer-visit-statusbar-v24906 span.is-active,
body.dark .customer-visit-statusbar-v24906 span.is-active {
  color: #dbeafe;
}

:root[data-theme='dark'] .customer-visit-agenda-actions-v24906 .is-danger-soft-v24906,
body.dark .customer-visit-agenda-actions-v24906 .is-danger-soft-v24906 {
  color: #fecaca;
}

@media (max-width: 760px) {
  .customer-visit-agenda-main-v24906 {
    grid-template-columns: 1fr;
  }

  .customer-visit-thumb-v24906,
  .customer-visit-thumb-v24906 img,
  .customer-visit-thumb-v24906 .customer-chat-property-thumb-placeholder-v24890 {
    min-height: 180px;
  }

  .customer-visit-statusbar-v24906 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .customer-visit-status-title-v24906 {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-visit-status-title-v24906 strong {
    text-align: left;
  }
}

/* ===== V249.07: Comprador · Visitas más compactas, progreso real y cierre con motivo ===== */
.customer-visit-agenda-main-v24906 {
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.customer-visit-thumb-v24906 {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  align-self: start;
  border-radius: 16px;
}

.customer-visit-thumb-v24906 img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.customer-visit-thumb-v24906 .customer-chat-property-thumb-placeholder-v24890 {
  min-height: 0;
  height: 100%;
  aspect-ratio: 16 / 10;
}

.customer-visit-head-v24906 {
  gap: 12px;
}

.customer-visit-titleblock-v24906 .customer-flow-badge-v24857 {
  margin-bottom: 7px;
}

.customer-visit-progress-v24907 {
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
}

.customer-visit-progress-track-v24907 {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, #94a3b8 20%, var(--surface, #ffffff));
  border: 1px solid color-mix(in srgb, #94a3b8 22%, var(--border, #e5e7eb));
}

.customer-visit-progress-track-v24907 span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b 0%, #22c55e 66%, #64748b 100%);
  transition: width .25s ease;
}

.customer-visit-progress-v24907.is-visit_rescheduled .customer-visit-progress-track-v24907 span,
.customer-visit-progress-v24907.is-reprogram_requested .customer-visit-progress-track-v24907 span {
  background: linear-gradient(90deg, #f59e0b 0%, #8b5cf6 66%, #64748b 100%);
}

.customer-visit-progress-v24907.is-visit_cancelled .customer-visit-progress-track-v24907 span {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 66%, #64748b 100%);
}

.customer-visit-progress-v24907.is-visit_closed .customer-visit-progress-track-v24907 span {
  background: linear-gradient(90deg, #f59e0b 0%, #22c55e 66%, #64748b 100%);
}

.customer-visit-progress-labels-v24907 {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 6px;
  color: var(--text-soft, #64748b);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.1;
}

.customer-visit-progress-labels-v24907 span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-visit-progress-labels-v24907 span:nth-child(2) {
  text-align: center;
}

.customer-visit-progress-labels-v24907 span:nth-child(3) {
  text-align: right;
}

.customer-visit-progress-labels-v24907 .is-reached {
  color: var(--heading, #111827);
}

.customer-visit-agenda-note-v24906,
.customer-visit-agenda-wait-v24906 {
  display: none;
}

.customer-visit-agenda-actions-v24906 {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-visit-agenda-actions-v24906 .is-close-soft-v24907 {
  border-color: color-mix(in srgb, #64748b 30%, var(--border, #e5e7eb));
  color: var(--heading, #111827);
  background: color-mix(in srgb, #64748b 6%, var(--surface, #ffffff));
}

.customer-visit-close-overlay-v24907 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
}

.customer-visit-close-modal-v24907 {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 86%, transparent);
  background: var(--surface, #ffffff);
  color: var(--text, #334155);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.customer-visit-close-modal-v24907 > strong {
  color: var(--heading, #111827);
  font-size: 1.05rem;
}

.customer-visit-close-modal-v24907 > p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.42;
}

.customer-visit-close-x-v24907 {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #ffffff) 90%, transparent);
  color: var(--text, #334155);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.customer-visit-close-options-v24907 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-visit-close-options-v24907 label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface, #ffffff) 94%, var(--customer-accent, #2563eb));
  cursor: pointer;
}

.customer-visit-close-options-v24907 label:has(input:checked) {
  border-color: color-mix(in srgb, var(--customer-accent, #2563eb) 58%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--customer-accent, #2563eb) 9%, var(--surface, #ffffff));
}

.customer-visit-close-options-v24907 input {
  margin-top: 3px;
}

.customer-visit-close-options-v24907 span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-visit-close-options-v24907 b {
  color: var(--heading, #111827);
  font-size: .9rem;
}

.customer-visit-close-options-v24907 small {
  color: var(--text-soft, #64748b);
  line-height: 1.28;
}

.customer-visit-close-other-v24907 {
  display: grid;
  gap: 6px;
  color: var(--heading, #111827);
  font-weight: 850;
  font-size: .88rem;
}

.customer-visit-close-other-v24907 textarea {
  width: 100%;
  resize: vertical;
  min-height: 86px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  padding: 10px 12px;
  font: inherit;
  color: var(--text, #334155);
  background: var(--surface, #ffffff);
}

.customer-visit-close-actions-v24907 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

:root[data-theme='dark'] .customer-visit-progress-labels-v24907 .is-reached,
body.dark .customer-visit-progress-labels-v24907 .is-reached,
:root[data-theme='dark'] .customer-visit-close-modal-v24907 > strong,
body.dark .customer-visit-close-modal-v24907 > strong,
:root[data-theme='dark'] .customer-visit-close-options-v24907 b,
body.dark .customer-visit-close-options-v24907 b,
:root[data-theme='dark'] .customer-visit-close-other-v24907,
body.dark .customer-visit-close-other-v24907 {
  color: #f8fafc;
}

:root[data-theme='dark'] .customer-visit-close-modal-v24907,
body.dark .customer-visit-close-modal-v24907,
:root[data-theme='dark'] .customer-visit-close-other-v24907 textarea,
body.dark .customer-visit-close-other-v24907 textarea {
  background: #0f172a;
  color: #e5e7eb;
}

@media (max-width: 760px) {
  .customer-visit-agenda-main-v24906 {
    grid-template-columns: 1fr;
  }

  .customer-visit-thumb-v24906,
  .customer-visit-thumb-v24906 img,
  .customer-visit-thumb-v24906 .customer-chat-property-thumb-placeholder-v24890 {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .customer-visit-close-options-v24907 {
    grid-template-columns: 1fr;
  }
}


/* ===== V249.08: Comprador · la agenda cambia de estado, no agrega pasos extra ===== */
.customer-visit-progress-v24907.is-visit_cancelled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #991b1b;
}

.customer-visit-progress-v24907.is-visit_rescheduled .customer-visit-progress-labels-v24907 span:nth-child(2),
.customer-visit-progress-v24907.is-reprogram_requested .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #5b21b6;
}

.customer-visit-progress-v24907.is-visit_closed .customer-visit-progress-labels-v24907 span:nth-child(3) {
  color: var(--heading, #111827);
}

:root[data-theme='dark'] .customer-visit-progress-v24907.is-visit_cancelled .customer-visit-progress-labels-v24907 span:nth-child(2),
body.dark .customer-visit-progress-v24907.is-visit_cancelled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #fecaca;
}

:root[data-theme='dark'] .customer-visit-progress-v24907.is-visit_rescheduled .customer-visit-progress-labels-v24907 span:nth-child(2),
:root[data-theme='dark'] .customer-visit-progress-v24907.is-reprogram_requested .customer-visit-progress-labels-v24907 span:nth-child(2),
body.dark .customer-visit-progress-v24907.is-visit_rescheduled .customer-visit-progress-labels-v24907 span:nth-child(2),
body.dark .customer-visit-progress-v24907.is-reprogram_requested .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #ddd6fe;
}

/* ===== V249.09: Comprador · reprogramar/cancelar cambian el estado de agenda, no agregan otro paso ===== */
.customer-visit-agenda-actions-v24906 .is-muted-v24909,
.customer-visit-agenda-actions-v24906 button[disabled] {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.15);
}

.customer-visit-progress-labels-v24907 span:nth-child(2) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.customer-visit-progress-v24907.is-visit_scheduled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #166534;
}

.customer-visit-progress-v24907.is-reprogram_requested .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #5b21b6;
}

.customer-visit-progress-v24907.is-visit_cancelled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #991b1b;
}

.customer-visit-progress-v24907.is-visit_rescheduled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #5b21b6;
}

:root[data-theme='dark'] .customer-visit-progress-v24907.is-visit_scheduled .customer-visit-progress-labels-v24907 span:nth-child(2),
body.dark .customer-visit-progress-v24907.is-visit_scheduled .customer-visit-progress-labels-v24907 span:nth-child(2) {
  color: #bbf7d0;
}


/* ===== V249.10: aceptación legal cliente ===== */
.customer-checkbox-v138.legal-acceptance-v24910 {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 28%, var(--border, #e5e7eb));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, #0f766e) 5%, var(--surface, #fff));
  font-size: .92rem;
  line-height: 1.45;
}
.customer-checkbox-v138.legal-acceptance-v24910 input {
  margin-top: 4px;
  flex: 0 0 auto;
}
.customer-checkbox-v138.legal-acceptance-v24910 a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.customer-checkbox-v138.legal-acceptance-v24910.is-missing {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 8%, var(--surface, #fff));
}
:root[data-theme='dark'] .customer-checkbox-v138.legal-acceptance-v24910,
body.dark .customer-checkbox-v138.legal-acceptance-v24910 {
  background: color-mix(in srgb, var(--accent, #2dd4bf) 10%, #0f172a);
}


/* ===== V249.21 · Mobile-first Portal del comprador: navegación compacta y mejor uso de espacio =====
   Alcance: solo CSS del portal comprador en móvil/tablet. No toca chat/scroll/lógica de llamadas. */
@media (max-width: 680px) {
  .customer-dashboard-page-v138 {
    padding-top: 10px !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .customer-dashboard-shell-v138,
  .customer-auth-shell-v138 {
    max-width: none !important;
    width: 100% !important;
    padding-inline: 12px !important;
  }

  .customer-dashboard-hero-v138 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
  }

  .customer-dashboard-hero-v138 .kicker {
    font-size: .7rem !important;
    letter-spacing: .17em !important;
    line-height: 1.1 !important;
  }

  .customer-dashboard-hero-v138 h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 6px !important;
  }

  .customer-dashboard-hero-v138 p {
    font-size: .88rem !important;
    line-height: 1.38 !important;
  }

  .customer-verified-card-v138 {
    padding: 12px 14px !important;
    border-radius: 16px !important;
    min-width: 0 !important;
  }

  .customer-dashboard-grid-v138 {
    gap: 12px !important;
  }

  .customer-sidebar-v138 {
    position: sticky !important;
    top: calc(58px + env(safe-area-inset-top, 0px)) !important;
    z-index: 42 !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto 12px !important;
    padding: 8px !important;
    gap: 6px !important;
    border-radius: 18px !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: color-mix(in srgb, var(--surface, #ffffff) 93%, var(--customer-accent, #d6a76b) 7%) !important;
  }

  .customer-sidebar-v138::-webkit-scrollbar { display: none; }

  .customer-sidebar-v138 button {
    flex: 0 0 auto !important;
    scroll-snap-align: center;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
    min-width: max-content !important;
  }

  .customer-sidebar-v138 button.is-active {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  }

  .customer-content-v138,
  .customer-panel-v138,
  .customer-panel-v138.is-active {
    min-width: 0 !important;
  }

  .customer-panel-head-v138 {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .customer-panel-head-v138 .btn,
  .customer-panel-head-v138 a.btn,
  .customer-panel-head-v138 button.btn {
    width: 100%;
    justify-content: center;
  }

  .customer-stat-grid-v138 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .customer-stat-v138 {
    padding: 13px 12px !important;
    border-radius: 18px !important;
  }

  .customer-stat-v138 strong {
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
  }

  .customer-stat-v138 span,
  .customer-stat-v138 small {
    line-height: 1.2 !important;
  }

  .customer-empty-v138,
  .customer-setting-v138,
  .customer-role-card-v138,
  .customer-favorite-card-v139,
  .customer-list-card-v139,
  .customer-notification-row-v139 {
    border-radius: 18px !important;
  }
}

@media (max-width: 390px) {
  .customer-dashboard-shell-v138,
  .customer-auth-shell-v138 {
    padding-inline: 10px !important;
  }

  .customer-stat-grid-v138 {
    grid-template-columns: 1fr !important;
  }

  .customer-sidebar-v138 {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* ===== V249.22 · Portal del cliente: limpieza de hero y retiro de tarjeta Estado de cuenta =====
   Alcance: solo presentación del portal del cliente. No toca chat, scroll, campanita, visitas ni backend. */
.customer-dashboard-hero-v138 {
  grid-template-columns: minmax(0, 1fr) !important;
}
.customer-dashboard-hero-v138 .customer-verified-card-v138 {
  display: none !important;
}
.customer-dashboard-hero-v138 h1 {
  text-wrap: balance;
}
@media (max-width: 680px) {
  .customer-dashboard-hero-v138 {
    padding: 14px 16px !important;
  }
  .customer-dashboard-hero-v138 p {
    max-width: 100% !important;
  }
}

/* ===== V249.23 · Mobile chat stability: una sola vista y sin parpadeo =====
   Alcance: solo portal del cliente > Chat en móvil. No toca backend, llamadas, visitas ni campanita. */
.customer-chat-mobile-back-v24923 {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--customer-accent, #b77943) 34%, var(--border, #e5e7eb));
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, var(--customer-accent, #b77943) 8%);
  color: var(--heading, #111827);
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
}
.customer-chat-loading-v24923 {
  min-height: 160px;
  display: grid;
  align-content: center;
}
@media (max-width: 680px) {
  .customer-conversations-layout-v243.customer-chat-layout-v24890 {
    display: block !important;
    min-width: 0 !important;
  }
  .customer-conversations-layout-v243.customer-chat-layout-v24890 > [data-customer-conversation-detail] {
    display: none !important;
  }
  .customer-conversations-layout-v243.customer-chat-layout-v24890.is-mobile-detail-open-v24923 .customer-chat-property-list-v24890 {
    display: none !important;
  }
  .customer-conversations-layout-v243.customer-chat-layout-v24890.is-mobile-detail-open-v24923 > [data-customer-conversation-detail] {
    display: block !important;
    min-width: 0 !important;
  }
  .customer-chat-mobile-back-v24923 {
    display: inline-flex;
  }
  .customer-chat-detail-clone-v24896,
  .customer-detail-side-panel-v24860 {
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .customer-detail-side-panel-v24860 {
    padding: 10px !important;
    border-radius: 18px !important;
  }
  .customer-detail-side-head-v24860,
  .customer-chat-detail-title-row-v24900 {
    min-width: 0 !important;
  }
  .customer-detail-thread-scroll-v24860 {
    max-height: min(58vh, 560px) !important;
    -webkit-overflow-scrolling: touch;
  }
  .customer-detail-thread-bubble-v24860 {
    max-width: 96% !important;
  }
}

/* ===== V249.24 Centro de alertas limpio + badges por sección ===== */
.customer-alert-empty-v24924 {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--customer-accent, #d6a76b) 8%);
}

.customer-alert-summary-v24924 {
  align-items: flex-start;
}

.customer-general-alert-list-v24924 {
  display: grid;
  gap: 12px;
}

.customer-general-alert-row-v24924 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.customer-general-alert-row-v24924.is-unread {
  border-color: color-mix(in srgb, var(--customer-accent, #d6a76b) 42%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--customer-accent, #d6a76b) 12%, transparent);
}

.customer-general-alert-main-v24924 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.customer-general-alert-type-v24924 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--customer-accent, #d6a76b) 35%, transparent);
  background: color-mix(in srgb, var(--customer-accent, #d6a76b) 12%, var(--surface, #fff) 88%);
  color: var(--text-strong, #1f2937);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.customer-general-alert-row-v24924 p {
  margin: 6px 0 0;
  color: var(--text-soft, #64748b);
  line-height: 1.5;
}

html[data-theme='dark'] .customer-alert-empty-v24924,
body.theme-dark .customer-alert-empty-v24924,
.dark .customer-alert-empty-v24924 {
  background: color-mix(in srgb, var(--surface, #111827) 88%, var(--customer-accent, #d6a76b) 12%);
}

@media (max-width: 760px) {
  .customer-general-alert-row-v24924 {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .customer-general-alert-main-v24924 {
    grid-template-columns: 1fr;
  }

  .customer-general-alert-type-v24924 {
    width: fit-content;
  }
}

/* ===== V249.26 · Portal del cliente: Favoritos limpios + novedades reales ===== */
.customer-favorites-clean-v24926 .customer-favorites-toolbar-v24857 p {
  color: #475569;
  max-width: 720px;
}

:root[data-theme='dark'] .customer-favorites-clean-v24926 .customer-favorites-toolbar-v24857 p,
body.dark .customer-favorites-clean-v24926 .customer-favorites-toolbar-v24857 p {
  color: #cbd5e1;
}

.customer-favorite-card-clean-v24926 {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
}

.customer-favorite-card-clean-v24926 .customer-favorite-thumb-v139,
.customer-favorite-card-clean-v24926 .customer-favorite-thumb-v219 {
  min-height: 170px;
}

.customer-favorite-body-clean-v24926 {
  align-content: space-between;
}

.customer-favorite-main-v24926 {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.customer-favorite-main-v24926 > strong {
  color: #0f172a;
  line-height: 1.25;
}

.customer-favorite-main-v24926 > p {
  margin: 0;
}

.customer-favorite-price-v24926 {
  color: #0f172a;
  font-weight: 800;
}

.customer-favorite-status-v24926 {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .35rem;
  padding: .24rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #e2e8f0;
  color: #0f172a;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.customer-favorite-status-v24926.is-available {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, .25);
}

.customer-favorite-status-v24926.is-sold {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(153, 27, 27, .24);
}

.customer-favorite-status-v24926.is-paused,
.customer-favorite-status-v24926.is-review,
.customer-favorite-status-v24926.is-negotiation {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, .24);
}

.customer-favorite-changes-v24926 {
  display: grid;
  gap: .45rem;
  margin-top: .35rem;
}

.customer-favorite-change-v24926 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  padding: .62rem .72rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(239, 246, 255, .84);
}

.customer-favorite-change-v24926.is-price {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(255, 251, 235, .9);
}

.customer-favorite-change-v24926.is-status {
  border-color: rgba(37, 99, 235, .2);
  background: rgba(239, 246, 255, .9);
}

.customer-favorite-change-v24926.is-new {
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.customer-favorite-change-v24926 > span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .16rem .48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #0f172a;
  font-size: .72rem;
  font-weight: 900;
}

.customer-favorite-change-v24926 b,
.customer-favorite-change-v24926 small {
  display: block;
  line-height: 1.3;
}

.customer-favorite-change-v24926 b {
  color: #0f172a;
  font-size: .9rem;
}

.customer-favorite-change-v24926 small {
  margin-top: .1rem;
  color: #475569;
}

.customer-favorite-actions-v24926 {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.customer-favorite-actions-v24926 .btn {
  min-width: 148px;
  justify-content: center;
}

:root[data-theme='dark'] .customer-favorites-toolbar-v24857,
body.dark .customer-favorites-toolbar-v24857 {
  background: rgba(15, 23, 42, .72);
}

:root[data-theme='dark'] .customer-favorite-main-v24926 > strong,
:root[data-theme='dark'] .customer-favorite-price-v24926,
:root[data-theme='dark'] .customer-favorite-change-v24926 b,
:root[data-theme='dark'] .customer-favorite-change-v24926 > span,
body.dark .customer-favorite-main-v24926 > strong,
body.dark .customer-favorite-price-v24926,
body.dark .customer-favorite-change-v24926 b,
body.dark .customer-favorite-change-v24926 > span {
  color: #f8fafc;
}

:root[data-theme='dark'] .customer-favorite-change-v24926,
body.dark .customer-favorite-change-v24926 {
  background: rgba(30, 41, 59, .82);
  border-color: rgba(148, 163, 184, .22);
}

:root[data-theme='dark'] .customer-favorite-change-v24926 small,
body.dark .customer-favorite-change-v24926 small {
  color: #cbd5e1;
}

:root[data-theme='dark'] .customer-favorite-change-v24926 > span,
body.dark .customer-favorite-change-v24926 > span {
  background: rgba(15, 23, 42, .78);
}

@media (max-width: 680px) {
  .customer-favorite-card-clean-v24926 {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .customer-favorite-card-clean-v24926 .customer-favorite-thumb-v139,
  .customer-favorite-card-clean-v24926 .customer-favorite-thumb-v219 {
    min-height: 150px;
  }

  .customer-favorite-actions-v24926 .btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* ===== V249.27 · Favoritos: miniatura más ancha en desktop ===== */
@media (min-width: 761px) {
  .customer-favorite-card-v24857,
  .customer-favorite-card-v217,
  .customer-favorite-card-v139 {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }

  .customer-favorite-card-v24857 .customer-favorite-thumb-v139,
  .customer-favorite-card-v24857 .customer-favorite-thumb-v219,
  .customer-favorite-card-v217 .customer-favorite-thumb-v139,
  .customer-favorite-card-v217 .customer-favorite-thumb-v219,
  .customer-favorite-card-v139 .customer-favorite-thumb-v139,
  .customer-favorite-card-v139 .customer-favorite-thumb-v219 {
    min-height: 168px;
    height: 100%;
  }
}

/* ===== V249.30 · Favoritos: miniaturas menos verticales, cuadradas o ligeramente horizontales ===== */
@media (min-width: 761px) and (max-width: 1199px) {
  .customer-favorite-card-v24857,
  .customer-favorite-card-v217,
  .customer-favorite-card-v139 {
    grid-template-columns: 172px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px;
  }

  .customer-favorite-card-v24857 .customer-favorite-thumb-v139,
  .customer-favorite-card-v24857 .customer-favorite-thumb-v219,
  .customer-favorite-card-v217 .customer-favorite-thumb-v139,
  .customer-favorite-card-v217 .customer-favorite-thumb-v219,
  .customer-favorite-card-v139 .customer-favorite-thumb-v139,
  .customer-favorite-card-v139 .customer-favorite-thumb-v219 {
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    align-self: start;
    border-radius: 20px;
  }

  .customer-favorite-card-v24857 .customer-favorite-img-v219,
  .customer-favorite-card-v217 .customer-favorite-img-v219,
  .customer-favorite-card-v139 .customer-favorite-img-v219,
  .customer-favorite-card-v24857 .customer-favorite-img-v139,
  .customer-favorite-card-v217 .customer-favorite-img-v139,
  .customer-favorite-card-v139 .customer-favorite-img-v139 {
    min-height: 0 !important;
    height: 100% !important;
  }
}

@media (min-width: 1200px) {
  .customer-favorite-card-v24857,
  .customer-favorite-card-v217,
  .customer-favorite-card-v139 {
    grid-template-columns: 208px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 15px;
  }

  .customer-favorite-card-v24857 .customer-favorite-thumb-v139,
  .customer-favorite-card-v24857 .customer-favorite-thumb-v219,
  .customer-favorite-card-v217 .customer-favorite-thumb-v139,
  .customer-favorite-card-v217 .customer-favorite-thumb-v219,
  .customer-favorite-card-v139 .customer-favorite-thumb-v139,
  .customer-favorite-card-v139 .customer-favorite-thumb-v219 {
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    align-self: start;
    border-radius: 20px;
  }

  .customer-favorite-card-v24857 .customer-favorite-img-v219,
  .customer-favorite-card-v217 .customer-favorite-img-v219,
  .customer-favorite-card-v139 .customer-favorite-img-v219,
  .customer-favorite-card-v24857 .customer-favorite-img-v139,
  .customer-favorite-card-v217 .customer-favorite-img-v139,
  .customer-favorite-card-v139 .customer-favorite-img-v139 {
    min-height: 0 !important;
    height: 100% !important;
  }
}

/* ===== V249.31 · Favoritos: resaltar más el estado del inmueble =====
   Objetivo: hacer que el estado se note mejor visualmente, con colores claros por estado.
   Disponible inicia en verde; negociación/revisión/pausada en ámbar; vendida en rojo. */
.customer-favorite-status-v24926 {
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  min-height: 30px;
  padding: .34rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #e2e8f0;
  color: #0f172a;
  font-size: .80rem;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.customer-favorite-status-v24926::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
  flex: 0 0 auto;
}

.customer-favorite-status-v24926.is-available {
  background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
  color: #166534;
  border-color: rgba(22, 101, 52, .24);
}

.customer-favorite-status-v24926.is-sold {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-color: rgba(153, 27, 27, .22);
}

.customer-favorite-status-v24926.is-paused,
.customer-favorite-status-v24926.is-review,
.customer-favorite-status-v24926.is-negotiation {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: rgba(146, 64, 14, .22);
}

.customer-favorite-status-v24926.is-draft,
.customer-favorite-status-v24926.is-pending,
.customer-favorite-status-v24926.is-reserved {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, .20);
}

:root[data-theme='dark'] .customer-favorite-status-v24926,
body.dark .customer-favorite-status-v24926 {
  box-shadow: none;
}

:root[data-theme='dark'] .customer-favorite-status-v24926.is-available,
body.dark .customer-favorite-status-v24926.is-available {
  background: rgba(22, 101, 52, .22);
  color: #86efac;
  border-color: rgba(134, 239, 172, .24);
}

:root[data-theme='dark'] .customer-favorite-status-v24926.is-sold,
body.dark .customer-favorite-status-v24926.is-sold {
  background: rgba(153, 27, 27, .22);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, .24);
}

:root[data-theme='dark'] .customer-favorite-status-v24926.is-paused,
:root[data-theme='dark'] .customer-favorite-status-v24926.is-review,
:root[data-theme='dark'] .customer-favorite-status-v24926.is-negotiation,
body.dark .customer-favorite-status-v24926.is-paused,
body.dark .customer-favorite-status-v24926.is-review,
body.dark .customer-favorite-status-v24926.is-negotiation {
  background: rgba(146, 64, 14, .24);
  color: #fcd34d;
  border-color: rgba(252, 211, 77, .24);
}

:root[data-theme='dark'] .customer-favorite-status-v24926.is-draft,
:root[data-theme='dark'] .customer-favorite-status-v24926.is-pending,
:root[data-theme='dark'] .customer-favorite-status-v24926.is-reserved,
body.dark .customer-favorite-status-v24926.is-draft,
body.dark .customer-favorite-status-v24926.is-pending,
body.dark .customer-favorite-status-v24926.is-reserved {
  background: rgba(29, 78, 216, .22);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, .24);
}


/* ===== v249.33 · rótulo diagonal SOLD OUT en favoritos y chats del comprador ===== */
.customer-chat-property-image-v24890 {
  position: relative;
}

.customer-sold-ribbon-v24933 {
  position: absolute;
  top: 14px;
  left: -46px;
  width: 172px;
  padding: 7px 0;
  border-radius: 3px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  text-align: center;
  font-size: .66rem;
  font-weight: 1000;
  letter-spacing: .16em;
  line-height: 1;
  transform: rotate(-35deg);
  box-shadow: 0 10px 22px rgba(127, 29, 29, .28);
  z-index: 2;
  pointer-events: none;
}

.customer-sold-ribbon-v24933.is-mini {
  top: 12px;
  left: -50px;
  width: 158px;
  padding: 6px 0;
  font-size: .58rem;
}

.customer-sold-ribbon-v24933.is-chat {
  top: 12px;
  left: -48px;
  width: 164px;
  padding: 6px 0;
  font-size: .6rem;
}

.customer-chat-sold-chip-v24933 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, .12);
  border: 1px solid rgba(220, 38, 38, .2);
  color: #991b1b;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  .customer-sold-ribbon-v24933 {
    top: 12px;
    left: -52px;
    width: 150px;
    font-size: .58rem;
  }

  .customer-sold-ribbon-v24933.is-chat,
  .customer-sold-ribbon-v24933.is-mini {
    width: 144px;
  }
}


/* ===== V249.35 · Favoritos: botones compactos y mejor aprovechamiento de espacio =====
   Objetivo UX: mantener Favoritos limpio, con solo "Ver inmueble" y "Quitar de favoritos",
   pero reduciendo el peso visual de esos botones para evitar espacios vacíos innecesarios. */
.customer-favorite-card-clean-v24926 {
  align-items: start !important;
}

.customer-favorite-body-clean-v24926 {
  align-content: start !important;
  align-self: start;
  gap: .64rem;
}

.customer-favorite-main-v24926 {
  gap: .28rem;
}

.customer-favorite-main-v24926 > strong {
  max-width: 42ch;
}

.customer-favorite-price-v24926 {
  margin-top: .12rem;
}

.customer-favorite-actions-v24926 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .42rem;
  margin-top: .18rem;
}

.customer-favorite-actions-v24926 .btn {
  min-width: 0 !important;
  width: auto !important;
  min-height: 34px;
  height: 34px;
  padding: .38rem .82rem;
  border-radius: 999px;
  font-size: .86rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none !important;
}

.customer-favorite-actions-v24926 .btn:first-child {
  padding-left: .95rem;
  padding-right: .95rem;
}

.customer-favorite-actions-v24926 [data-customer-remove-favorite] {
  color: #475569;
  background: rgba(255, 255, 255, .74);
}

.customer-favorite-actions-v24926 [data-customer-remove-favorite]:hover {
  color: #991b1b;
  border-color: rgba(153, 27, 27, .24);
  background: #fff7f7;
}

@media (min-width: 1040px) {
  .customer-favorite-card-clean-v24926 {
    grid-template-columns: 208px minmax(0, 1fr) !important;
  }

  .customer-favorite-body-clean-v24926 {
    min-height: 0;
  }

  .customer-favorite-actions-v24926 {
    max-width: 100%;
  }
}

@media (min-width: 1280px) {
  .customer-favorite-actions-v24926 {
    gap: .5rem;
  }

  .customer-favorite-actions-v24926 .btn {
    min-height: 33px;
    height: 33px;
    padding: .36rem .78rem;
    font-size: .84rem;
  }
}

@media (max-width: 760px) {
  .customer-favorite-actions-v24926 {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .44rem;
  }

  .customer-favorite-actions-v24926 .btn {
    width: 100% !important;
    justify-content: center;
  }
}

:root[data-theme='dark'] .customer-favorite-actions-v24926 [data-customer-remove-favorite],
body.dark .customer-favorite-actions-v24926 [data-customer-remove-favorite] {
  color: #cbd5e1;
  background: rgba(15, 23, 42, .72);
}

/* ===== V249.36 · Favoritos: botones en una sola fila en desktop/tablet =====
   Objetivo UX: aprovechar mejor el espacio de la tarjeta de Favoritos y eliminar vacío inferior.
   Regla: en desktop/tablet ambos botones quedan en la misma fila; en móvil muy estrecho se apilan. */
@media (min-width: 681px) {
  .customer-favorite-actions-v24926 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .38rem !important;
    margin-top: .06rem !important;
    width: 100%;
  }

  .customer-favorite-actions-v24926 .btn {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 31px !important;
    height: 31px !important;
    padding: .32rem .58rem !important;
    border-radius: 999px;
    font-size: .78rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .customer-favorite-actions-v24926 .btn:first-child {
    padding-left: .72rem !important;
    padding-right: .72rem !important;
  }

  .customer-favorite-actions-v24926 [data-customer-remove-favorite] {
    padding-left: .62rem !important;
    padding-right: .62rem !important;
  }
}

@media (min-width: 1040px) {
  .customer-favorite-actions-v24926 .btn {
    min-height: 32px !important;
    height: 32px !important;
    padding-top: .34rem !important;
    padding-bottom: .34rem !important;
    font-size: .80rem !important;
  }
}

@media (max-width: 420px) {
  .customer-favorite-actions-v24926 {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .customer-favorite-actions-v24926 .btn {
    width: 100% !important;
  }
}

/* ===== V249.45 · Resumen con Alertas generales sin duplicar panel izquierdo ===== */
.customer-sidebar-v138 [data-customer-tab="alertas"] {
  display: none !important;
}

.customer-summary-real-v24945 {
  align-items: stretch;
}

.customer-summary-alert-card-v24945 {
  align-content: start;
}

.customer-summary-alert-count-v24945 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--customer-accent, #d6a76b) 34%, transparent);
  background: color-mix(in srgb, var(--customer-accent, #d6a76b) 11%, var(--surface, #fff) 89%);
  color: var(--text-strong, #111827);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.customer-general-alert-list-v24945 {
  display: grid;
  gap: 10px;
}

.customer-general-alert-row-v24945 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--customer-line, var(--border));
  background: color-mix(in srgb, var(--surface, #fff) 91%, var(--customer-accent, #d6a76b) 9%);
}

.customer-general-alert-row-v24945.is-unread {
  border-color: color-mix(in srgb, var(--customer-accent, #d6a76b) 44%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--customer-accent, #d6a76b) 11%, transparent);
}

.customer-general-alert-main-v24945 {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.customer-general-alert-main-v24945 .customer-unread-dot-v182 {
  margin-top: 9px;
}

.customer-general-alert-type-v24945 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--customer-accent, #d6a76b) 34%, transparent);
  background: color-mix(in srgb, var(--customer-accent, #d6a76b) 12%, var(--surface, #fff) 88%);
  color: var(--text-strong, #111827);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.customer-general-alert-row-v24945 strong {
  display: block;
  color: var(--text-strong, #111827);
  line-height: 1.25;
}

.customer-general-alert-row-v24945 p {
  margin: 4px 0 0;
  color: var(--text-soft, #64748b);
  line-height: 1.45;
}

.customer-general-alert-row-v24945 small {
  display: inline-block;
  margin-top: 5px;
  color: var(--text-soft, #64748b);
  font-weight: 700;
}

.customer-general-alert-row-v24945 .customer-card-actions-v217 {
  justify-content: flex-end;
}

.customer-general-alert-list-v24945.is-summary-v24945 .customer-general-alert-row-v24945 {
  padding: 10px 11px;
}

.customer-alert-empty-summary-v24945 {
  padding: 14px;
}

.customer-alert-empty-summary-v24945 h3,
.customer-alert-empty-summary-v24945 p {
  margin: 0;
}

.customer-alert-empty-summary-v24945 p {
  margin-top: 6px;
  color: var(--text-soft, #64748b);
  line-height: 1.45;
}

html[data-theme='dark'] .customer-summary-alert-count-v24945,
html[data-theme='dark'] .customer-general-alert-row-v24945,
html[data-theme='dark'] .customer-general-alert-type-v24945,
body.theme-dark .customer-summary-alert-count-v24945,
body.theme-dark .customer-general-alert-row-v24945,
body.theme-dark .customer-general-alert-type-v24945,
.dark .customer-summary-alert-count-v24945,
.dark .customer-general-alert-row-v24945,
.dark .customer-general-alert-type-v24945 {
  background: color-mix(in srgb, var(--surface, #111827) 88%, var(--customer-accent, #d6a76b) 12%);
}

@media (max-width: 760px) {
  .customer-general-alert-row-v24945 {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .customer-general-alert-main-v24945 {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-general-alert-type-v24945 {
    grid-column: 2;
    justify-self: start;
  }

  .customer-general-alert-main-v24945 > div {
    grid-column: 1 / -1;
  }

  .customer-general-alert-row-v24945 .customer-card-actions-v217 {
    justify-content: flex-start;
  }
}


/* ===== V249.46 · Seguridad integrada dentro de Mi perfil ===== */
.customer-profile-security-v24946 {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 124, 101, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}
.customer-profile-security-head-v24946 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.customer-profile-security-head-v24946 span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.customer-profile-security-head-v24946 strong {
  border: 1px solid rgba(22, 163, 74, 0.26);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
  font-size: 0.72rem;
  padding: 6px 10px;
}
.customer-profile-security-grid-v24946 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.customer-profile-security-grid-v24946 div {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}
.customer-profile-security-grid-v24946 small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.customer-profile-security-grid-v24946 b {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .customer-profile-security-head-v24946 { align-items: flex-start; flex-direction: column; }
  .customer-profile-security-grid-v24946 { grid-template-columns: 1fr; }
}

/* ===== V249.57 · Alertas generales: lectura automática y acciones solo cuando existen ===== */
.customer-general-alert-row-v24945 {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 14px 16px !important;
}

.customer-general-alert-row-v24945.is-clickable-v24957 {
  cursor: pointer;
}

.customer-general-alert-row-v24945.is-clickable-v24957:hover {
  border-color: color-mix(in srgb, var(--customer-accent, #d6a76b) 52%, transparent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--customer-accent, #d6a76b) 12%, transparent);
}

.customer-general-alert-main-v24945 {
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100%;
}

.customer-general-alert-content-v24957 {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.customer-general-alert-titleline-v24957 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.customer-general-alert-titleline-v24957 strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-general-alert-titleline-v24957 small {
  flex: 0 0 auto;
  margin-top: 1px !important;
  white-space: nowrap;
}

.customer-general-alert-row-v24945 p {
  max-width: 62ch;
  overflow-wrap: anywhere;
}

.customer-general-alert-actions-v24957 {
  justify-content: flex-start !important;
  padding-left: 0;
}

.customer-general-alert-actions-v24957 .btn {
  min-width: 0;
}

.customer-general-alert-row-v24945.is-read {
  opacity: .78;
}

@media (max-width: 760px) {
  .customer-general-alert-main-v24945 {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .customer-general-alert-type-v24945 {
    grid-column: 2 !important;
    justify-self: start;
  }

  .customer-general-alert-content-v24957 {
    grid-column: 1 / -1 !important;
  }

  .customer-general-alert-titleline-v24957 {
    display: grid;
    gap: 3px;
  }

  .customer-general-alert-titleline-v24957 small {
    white-space: normal;
  }
}

/* ===== V249.72 · Correcciones visuales modo oscuro Portal del Cliente =====
   Alcance: solo contraste, legibilidad, nombre compacto y paginación visual de alertas.
   No cambia lógica de chat, llamadas, inmuebles ni emails. */
html[data-theme='dark'] .customer-summary-alert-card-v24945,
body.theme-dark .customer-summary-alert-card-v24945,
.dark .customer-summary-alert-card-v24945,
html[data-theme='dark'] .customer-general-alert-row-v24945,
body.theme-dark .customer-general-alert-row-v24945,
.dark .customer-general-alert-row-v24945 {
  background: #111827 !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: #e5e7eb !important;
}
html[data-theme='dark'] .customer-summary-alert-card-v24945 strong,
body.theme-dark .customer-summary-alert-card-v24945 strong,
.dark .customer-summary-alert-card-v24945 strong,
html[data-theme='dark'] .customer-general-alert-titleline-v24957 strong,
body.theme-dark .customer-general-alert-titleline-v24957 strong,
.dark .customer-general-alert-titleline-v24957 strong {
  color: #f8fafc !important;
}
html[data-theme='dark'] .customer-general-alert-row-v24945 p,
body.theme-dark .customer-general-alert-row-v24945 p,
.dark .customer-general-alert-row-v24945 p,
html[data-theme='dark'] .customer-general-alert-titleline-v24957 small,
body.theme-dark .customer-general-alert-titleline-v24957 small,
.dark .customer-general-alert-titleline-v24957 small {
  color: #cbd5e1 !important;
}
html[data-theme='dark'] .customer-general-alert-type-v24945,
body.theme-dark .customer-general-alert-type-v24945,
.dark .customer-general-alert-type-v24945 {
  background: rgba(37, 99, 235, .16) !important;
  border-color: rgba(96, 165, 250, .34) !important;
  color: #bfdbfe !important;
}
.customer-general-alert-pager-v24972 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 72%, transparent);
}
.customer-general-alert-pager-v24972 span {
  color: var(--text-soft, #64748b);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}
html[data-theme='dark'] .customer-general-alert-pager-v24972,
body.theme-dark .customer-general-alert-pager-v24972,
.dark .customer-general-alert-pager-v24972 {
  border-color: rgba(148, 163, 184, .22);
}
html[data-theme='dark'] .customer-general-alert-pager-v24972 span,
body.theme-dark .customer-general-alert-pager-v24972 span,
.dark .customer-general-alert-pager-v24972 span {
  color: #cbd5e1;
}
.customer-initials-only-v24972 {
  max-width: 92px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-theme='dark'] .customer-profile-form-v138,
body.theme-dark .customer-profile-form-v138,
.dark .customer-profile-form-v138,
html[data-theme='dark'] .customer-profile-security-v24946,
body.theme-dark .customer-profile-security-v24946,
.dark .customer-profile-security-v24946 {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: #e5e7eb !important;
}
html[data-theme='dark'] .customer-profile-readonly-v202,
body.theme-dark .customer-profile-readonly-v202,
.dark .customer-profile-readonly-v202 {
  color: #cbd5e1 !important;
}
html[data-theme='dark'] .customer-profile-security-head-v24946 span,
html[data-theme='dark'] .customer-profile-security-head-v24946 strong,
body.theme-dark .customer-profile-security-head-v24946 span,
body.theme-dark .customer-profile-security-head-v24946 strong,
.dark .customer-profile-security-head-v24946 span,
.dark .customer-profile-security-head-v24946 strong {
  color: #f8fafc !important;
}
html[data-theme='dark'] .customer-profile-security-grid-v24946 > div,
body.theme-dark .customer-profile-security-grid-v24946 > div,
.dark .customer-profile-security-grid-v24946 > div {
  background: #1f2937 !important;
  border-color: rgba(148, 163, 184, .22) !important;
  color: #e5e7eb !important;
}
html[data-theme='dark'] .customer-profile-security-grid-v24946 small,
body.theme-dark .customer-profile-security-grid-v24946 small,
.dark .customer-profile-security-grid-v24946 small {
  color: #dbeafe !important;
}
html[data-theme='dark'] .customer-profile-security-grid-v24946 b,
body.theme-dark .customer-profile-security-grid-v24946 b,
.dark .customer-profile-security-grid-v24946 b {
  color: #ffffff !important;
}

html[data-theme='dark'] .customer-internal-call-card-v24707,
body.theme-dark .customer-internal-call-card-v24707,
.dark .customer-internal-call-card-v24707 {
  background: #172554 !important;
  border-color: rgba(96, 165, 250, .36) !important;
  color: #f8fafc !important;
}
html[data-theme='dark'] .customer-internal-call-card-v24707 strong,
html[data-theme='dark'] .customer-internal-call-card-v24707 p,
body.theme-dark .customer-internal-call-card-v24707 strong,
body.theme-dark .customer-internal-call-card-v24707 p,
.dark .customer-internal-call-card-v24707 strong,
.dark .customer-internal-call-card-v24707 p {
  color: #f8fafc !important;
}
html[data-theme='dark'] .customer-internal-call-card-v24707 small,
body.theme-dark .customer-internal-call-card-v24707 small,
.dark .customer-internal-call-card-v24707 small {
  color: #cbd5e1 !important;
}

html[data-theme='dark'] .customer-chat-property-card-v24890,
body.theme-dark .customer-chat-property-card-v24890,
.dark .customer-chat-property-card-v24890 {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, .22) !important;
}
html[data-theme='dark'] .customer-chat-property-card-v24890.is-selected,
body.theme-dark .customer-chat-property-card-v24890.is-selected,
.dark .customer-chat-property-card-v24890.is-selected {
  background: #10233f !important;
  border-color: rgba(96, 165, 250, .62) !important;
}
html[data-theme='dark'] .customer-chat-property-title-v24890 strong,
body.theme-dark .customer-chat-property-title-v24890 strong,
.dark .customer-chat-property-title-v24890 strong {
  color: #f8fafc !important;
}
html[data-theme='dark'] .customer-chat-property-location-v24890,
html[data-theme='dark'] .customer-chat-property-time-v24890,
body.theme-dark .customer-chat-property-location-v24890,
body.theme-dark .customer-chat-property-time-v24890,
.dark .customer-chat-property-location-v24890,
.dark .customer-chat-property-time-v24890 {
  color: #cbd5e1 !important;
}
html[data-theme='dark'] .customer-chat-property-meta-v24890 b,
body.theme-dark .customer-chat-property-meta-v24890 b,
.dark .customer-chat-property-meta-v24890 b {
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, .18) !important;
  border-color: rgba(74, 222, 128, .36) !important;
}
html[data-theme='dark'] .customer-chat-property-meta-v24890 b.is-paused,
body.theme-dark .customer-chat-property-meta-v24890 b.is-paused,
.dark .customer-chat-property-meta-v24890 b.is-paused {
  color: #fde68a !important;
  background: rgba(245, 158, 11, .20) !important;
  border-color: rgba(251, 191, 36, .38) !important;
}
html[data-theme='dark'] .customer-chat-property-meta-v24890 b.is-sold,
body.theme-dark .customer-chat-property-meta-v24890 b.is-sold,
.dark .customer-chat-property-meta-v24890 b.is-sold {
  color: #fecaca !important;
  background: rgba(239, 68, 68, .20) !important;
  border-color: rgba(248, 113, 113, .38) !important;
}
html[data-theme='dark'] .customer-chat-property-meta-v24890 small,
body.theme-dark .customer-chat-property-meta-v24890 small,
.dark .customer-chat-property-meta-v24890 small {
  color: #bfdbfe !important;
  background: rgba(37, 99, 235, .16) !important;
  border-color: rgba(96, 165, 250, .32) !important;
}

html[data-theme='dark'] .customer-contact-enabled-actions-v24859,
body.theme-dark .customer-contact-enabled-actions-v24859,
.dark .customer-contact-enabled-actions-v24859,
html[data-theme='dark'] .customer-contact-policy-v24859,
body.theme-dark .customer-contact-policy-v24859,
.dark .customer-contact-policy-v24859 {
  background: rgba(6, 78, 59, .26) !important;
  border-color: rgba(52, 211, 153, .34) !important;
  color: #e5e7eb !important;
}
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn,
html[data-theme='dark'] .customer-chat-detail-actions-v24890 .btn,
body.theme-dark .customer-contact-enabled-actions-v24859 .btn,
body.theme-dark .customer-chat-detail-actions-v24890 .btn,
.dark .customer-contact-enabled-actions-v24859 .btn,
.dark .customer-chat-detail-actions-v24890 .btn {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: rgba(255, 255, 255, .72) !important;
}
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn.btn-primary,
html[data-theme='dark'] .customer-chat-detail-actions-v24890 .btn.btn-primary,
body.theme-dark .customer-contact-enabled-actions-v24859 .btn.btn-primary,
body.theme-dark .customer-chat-detail-actions-v24890 .btn.btn-primary,
.dark .customer-contact-enabled-actions-v24859 .btn.btn-primary,
.dark .customer-chat-detail-actions-v24890 .btn.btn-primary {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #22c55e !important;
}
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn[disabled],
html[data-theme='dark'] .customer-chat-detail-actions-v24890 .btn[disabled],
body.theme-dark .customer-contact-enabled-actions-v24859 .btn[disabled],
body.theme-dark .customer-chat-detail-actions-v24890 .btn[disabled],
.dark .customer-contact-enabled-actions-v24859 .btn[disabled],
.dark .customer-chat-detail-actions-v24890 .btn[disabled] {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, .22) !important;
  border-color: rgba(148, 163, 184, .24) !important;
  opacity: .72 !important;
}

@media (max-width: 760px) {
  .customer-general-alert-titleline-v24957 {
    display: grid !important;
    gap: 4px !important;
  }
  .customer-general-alert-pager-v24972 {
    justify-content: space-between;
  }
}


/* ===== V249.86 · Portal cliente: contraste premium en menú lateral modo oscuro =====
   Corrige selección/hover invisibles en modo oscuro sin tocar lógica ni datos. */
.customer-sidebar-v138 button:hover,
.customer-sidebar-v138 button:focus-visible {
  background: linear-gradient(135deg, color-mix(in srgb, var(--customer-accent, #d6a76b) 18%, var(--surface, #ffffff) 82%), color-mix(in srgb, var(--surface, #ffffff) 92%, #ffffff 8%)) !important;
  border-color: color-mix(in srgb, var(--customer-accent, #d6a76b) 46%, transparent) !important;
  color: var(--text-strong, #111827) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255,255,255,.42) !important;
}

.customer-sidebar-v138 button.is-active,
.customer-sidebar-v138 button.is-active:hover,
.customer-sidebar-v138 button.is-active:focus-visible {
  background: linear-gradient(135deg, color-mix(in srgb, var(--customer-accent, #d6a76b) 22%, var(--surface, #ffffff) 78%), color-mix(in srgb, var(--surface, #ffffff) 88%, #ffffff 12%)) !important;
  border-color: color-mix(in srgb, var(--customer-accent, #d6a76b) 62%, transparent) !important;
  color: var(--text-strong, #111827) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.48) !important;
}

html[data-theme='dark'] .customer-sidebar-v138 button,
body.theme-dark .customer-sidebar-v138 button,
body.dark .customer-sidebar-v138 button,
.dark .customer-sidebar-v138 button {
  color: rgba(226, 232, 240, .82) !important;
}

html[data-theme='dark'] .customer-sidebar-v138 button:hover,
html[data-theme='dark'] .customer-sidebar-v138 button:focus-visible,
html[data-theme='dark'] .customer-sidebar-v138 button.is-active,
html[data-theme='dark'] .customer-sidebar-v138 button.is-active:hover,
html[data-theme='dark'] .customer-sidebar-v138 button.is-active:focus-visible,
body.theme-dark .customer-sidebar-v138 button:hover,
body.theme-dark .customer-sidebar-v138 button:focus-visible,
body.theme-dark .customer-sidebar-v138 button.is-active,
body.theme-dark .customer-sidebar-v138 button.is-active:hover,
body.theme-dark .customer-sidebar-v138 button.is-active:focus-visible,
body.dark .customer-sidebar-v138 button:hover,
body.dark .customer-sidebar-v138 button:focus-visible,
body.dark .customer-sidebar-v138 button.is-active,
body.dark .customer-sidebar-v138 button.is-active:hover,
body.dark .customer-sidebar-v138 button.is-active:focus-visible,
.dark .customer-sidebar-v138 button:hover,
.dark .customer-sidebar-v138 button:focus-visible,
.dark .customer-sidebar-v138 button.is-active,
.dark .customer-sidebar-v138 button.is-active:hover,
.dark .customer-sidebar-v138 button.is-active:focus-visible {
  background: linear-gradient(135deg, rgba(214, 167, 107, .28), rgba(15, 23, 42, .92)) !important;
  border-color: rgba(214, 167, 107, .68) !important;
  color: #f8fafc !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

/* ===== V249.88 · Portal cliente / Resumen: contraste premium para badge de estado en modo oscuro ===== */
:root[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945,
html[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945,
body.theme-dark .customer-summary-head-v217 .customer-summary-alert-count-v24945,
.dark .customer-summary-head-v217 .customer-summary-alert-count-v24945 {
  color: #F8FAFC !important;
  background: linear-gradient(135deg, rgba(214, 167, 107, 0.28), rgba(214, 167, 107, 0.14)) !important;
  border-color: rgba(214, 167, 107, 0.62) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42) !important;
}

:root[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945 *,
html[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945 *,
body.theme-dark .customer-summary-head-v217 .customer-summary-alert-count-v24945 *,
.dark .customer-summary-head-v217 .customer-summary-alert-count-v24945 * {
  color: #F8FAFC !important;
}

:root[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945:hover,
html[data-theme="dark"] .customer-summary-head-v217 .customer-summary-alert-count-v24945:hover,
body.theme-dark .customer-summary-head-v217 .customer-summary-alert-count-v24945:hover,
.dark .customer-summary-head-v217 .customer-summary-alert-count-v24945:hover {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, rgba(214, 167, 107, 0.36), rgba(214, 167, 107, 0.18)) !important;
  border-color: rgba(239, 198, 139, 0.76) !important;
}

/* V249.96 · Portal cliente > Chat: contraste premium de contacto habilitado en modo oscuro.
   Alcance visual únicamente: no cambia lógica, contadores, chat, llamadas, WebRTC, SSE ni notificaciones. */
html[data-theme='dark'] .customer-chat-panel-v24890 .customer-contact-counterpart-v24859,
body.theme-dark .customer-chat-panel-v24890 .customer-contact-counterpart-v24859,
.dark .customer-chat-panel-v24890 .customer-contact-counterpart-v24859 {
  --customer-chat-contact-panel-bg-v24996: rgba(6, 78, 59, .20);
  --customer-chat-contact-panel-border-v24996: rgba(34, 197, 94, .42);
  --customer-chat-contact-text-v24996: #f8fafc;
  --customer-chat-contact-muted-v24996: #cbd5e1;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open,
body.theme-dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open,
.dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open {
  background: linear-gradient(135deg, rgba(6, 78, 59, .34), rgba(15, 23, 42, .78)) !important;
  border-color: var(--customer-chat-contact-panel-border-v24996) !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open strong,
body.theme-dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open strong,
.dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open strong {
  color: var(--customer-chat-contact-text-v24996) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .24);
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open span,
body.theme-dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open span,
.dark .customer-chat-panel-v24890 .customer-contact-policy-v24859.is-open span {
  color: var(--customer-chat-contact-muted-v24996) !important;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859 {
  background: linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .98)) !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:not(.is-disabled):not(:disabled):hover,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:not(.is-disabled):not(:disabled):hover,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:not(.is-disabled):not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, .42) !important;
  box-shadow: 0 18px 34px rgba(2, 6, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .10);
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-call,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-call,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-call {
  border-color: rgba(245, 158, 11, .34) !important;
  background: linear-gradient(180deg, rgba(120, 53, 15, .26), rgba(15, 23, 42, .98)) !important;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-carrier,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-carrier,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-carrier {
  border-color: rgba(56, 189, 248, .34) !important;
  background: linear-gradient(180deg, rgba(14, 116, 144, .25), rgba(15, 23, 42, .98)) !important;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-email,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-email,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-email {
  border-color: rgba(129, 140, 248, .36) !important;
  background: linear-gradient(180deg, rgba(67, 56, 202, .24), rgba(15, 23, 42, .98)) !important;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-disabled,
html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:disabled,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-disabled,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:disabled,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-disabled,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859:disabled {
  opacity: 1 !important;
  color: rgba(203, 213, 225, .92) !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, .78), rgba(15, 23, 42, .92)) !important;
  border-color: rgba(148, 163, 184, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

.customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .16);
}

.customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp .customer-whatsapp-glyph-v24859 {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: transparent !important;
  color: #ffffff !important;
  border-radius: 0;
  filter: none !important;
  opacity: 1 !important;
}

.customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp .customer-whatsapp-glyph-v24859 svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
  fill: currentColor !important;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp.is-disabled,
.customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp:disabled {
  background: color-mix(in srgb, #25D366 22%, var(--surface, #ffffff)) !important;
  border-color: color-mix(in srgb, #25D366 42%, var(--border, #e5e7eb)) !important;
  color: color-mix(in srgb, #075E54 74%, var(--text-soft, #64748b)) !important;
  text-shadow: none !important;
}

html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp.is-disabled,
html[data-theme='dark'] .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp:disabled,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp.is-disabled,
body.theme-dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp:disabled,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp.is-disabled,
.dark .customer-chat-panel-v24890 .customer-secure-contact-btn-v24859.is-whatsapp:disabled {
  background: linear-gradient(180deg, rgba(37, 211, 102, .18), rgba(15, 23, 42, .96)) !important;
  border-color: rgba(37, 211, 102, .34) !important;
  color: #bbf7d0 !important;
}


/* V249.97 · Portal cliente > Conversaciones: corrección exacta de botones de contacto dentro del chat.
   Alcance visual. No toca lógica, contadores, sonidos, llamadas, WebRTC ni SSE.
   Se aplica sin depender de .customer-chat-panel-v24890 porque el bloque puede renderizarse dentro de variantes/clones del chat. */
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open,
body.theme-dark .customer-contact-counterpart-v24859.is-open,
body.dark .customer-contact-counterpart-v24859.is-open,
.dark .customer-contact-counterpart-v24859.is-open {
  color-scheme: dark !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open,
body.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open,
.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open {
  background: linear-gradient(135deg, rgba(6, 78, 59, .42), rgba(15, 23, 42, .90)) !important;
  border-color: rgba(34, 197, 94, .56) !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .30), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open strong,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open span,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open strong,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open span,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open strong,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open span,
body.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open strong,
body.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open span,
.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open strong,
.dark .customer-contact-counterpart-v24859.is-open .customer-contact-policy-v24859.is-open span {
  color: #f8fafc !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.22) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 {
  opacity: 1 !important;
  filter: none !important;
  color: #f8fafc !important;
  text-shadow: none !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, .98), rgba(15, 23, 42, .98)) !important;
  border-color: rgba(148, 163, 184, .38) !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call {
  border-color: rgba(251, 191, 36, .50) !important;
  background: linear-gradient(180deg, rgba(120, 53, 15, .34), rgba(15, 23, 42, .98)) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier {
  border-color: rgba(56, 189, 248, .50) !important;
  background: linear-gradient(180deg, rgba(14, 116, 144, .34), rgba(15, 23, 42, .98)) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email {
  border-color: rgba(129, 140, 248, .52) !important;
  background: linear-gradient(180deg, rgba(67, 56, 202, .32), rgba(15, 23, 42, .98)) !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span {
  color: inherit !important;
}

.customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
.customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859 {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

.customer-secure-contact-btn-v24859 .customer-contact-icon-v24997 svg,
.customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859 svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  fill: currentColor !important;
  stroke: none !important;
  shape-rendering: geometricPrecision !important;
}

.customer-secure-contact-btn-v24859.is-whatsapp,
a.customer-secure-contact-btn-v24859.is-whatsapp {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(37, 211, 102, .24) !important;
}

.customer-secure-contact-btn-v24859.is-whatsapp .customer-whatsapp-glyph-v24859,
a.customer-secure-contact-btn-v24859.is-whatsapp .customer-whatsapp-glyph-v24859 {
  color: #ffffff !important;
  background: transparent !important;
  filter: none !important;
}

/* Refuerzo contra reglas globales de botones blancos en modo oscuro dentro de #conversaciones. */
:root[data-theme="dark"] #customerPanelChat .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
html[data-theme="dark"] #customerPanelChat .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
body.theme-dark #customerPanelChat .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
.dark #customerPanelChat .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 {
  color: #f8fafc !important;
}


/* V249.98 · Corrección visual de emergencia y alcance exacto: Portal cliente > Chat > Contacto habilitado.
   Motivo: V249.96/V249.97 no alcanzaron el estado real visible en customer-account.html#conversaciones.
   Alcance: solo contraste/legibilidad de botones de contacto dentro del chat del cliente. No toca lógica, eventos, contadores, sonidos, llamadas, WebRTC, SSE ni backend.
   Decisión: reglas de alta especificidad e independientes del detector de tema para vencer estilos de botón blanco y estilos nativos disabled del navegador. */
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-actions-v24859 {
  gap: 10px !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp),
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open button.customer-secure-contact-btn-v24859:not(.is-whatsapp),
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open a.customer-secure-contact-btn-v24859:not(.is-whatsapp) {
  appearance: none !important;
  -webkit-appearance: none !important;
  opacity: 1 !important;
  filter: none !important;
  min-height: 42px !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, .98), rgba(15, 23, 42, .98)) !important;
  border: 1px solid rgba(148, 163, 184, .38) !important;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .30), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  text-shadow: none !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp) span,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp) strong,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp) .customer-contact-icon-v24997,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp) svg {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
  stroke: currentColor !important;
  fill: none !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call:not(.is-whatsapp) {
  border-color: rgba(251, 191, 36, .55) !important;
  background: linear-gradient(180deg, rgba(120, 53, 15, .38), rgba(15, 23, 42, .98)) !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-carrier:not(.is-whatsapp) {
  border-color: rgba(56, 189, 248, .54) !important;
  background: linear-gradient(180deg, rgba(14, 116, 144, .38), rgba(15, 23, 42, .98)) !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-email:not(.is-whatsapp) {
  border-color: rgba(129, 140, 248, .56) !important;
  background: linear-gradient(180deg, rgba(67, 56, 202, .36), rgba(15, 23, 42, .98)) !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled:not(.is-whatsapp),
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp):disabled {
  opacity: .92 !important;
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, .86), rgba(15, 23, 42, .94)) !important;
  border-color: rgba(148, 163, 184, .32) !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled:not(.is-whatsapp) span,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp):disabled span,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled:not(.is-whatsapp) .customer-contact-icon-v24997,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp):disabled .customer-contact-icon-v24997,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled:not(.is-whatsapp) svg,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:not(.is-whatsapp):disabled svg {
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
  opacity: 1 !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open a.customer-secure-contact-btn-v24859.is-whatsapp {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(37, 211, 102, .24) !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp span,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp svg,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp .customer-whatsapp-glyph-v24859 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859 {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997 svg,
body[data-page="customer-account"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859 svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  shape-rendering: geometricPrecision !important;
}

/* ===== V250.36: Comprador · detalle protagonista de visitas y lectura granular ===== */
.customer-visit-agenda-card-v24906.is-unread-v25036 {
  position: relative;
  box-shadow: 0 18px 44px rgba(10, 132, 255, .10);
}

.customer-visit-agenda-card-v24906.is-unread-v25036::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, #0a84ff 34%, transparent);
}

.customer-visit-badge-line-v25036 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.customer-visit-badge-line-v25036 .customer-flow-badge-v24857 {
  margin-bottom: 0;
}

.customer-visit-new-hint-v25036 {
  color: #0a84ff;
  font-weight: 900;
}

.customer-visit-actions-wrap-v25036 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-visit-actions-wrap-v25036 .customer-visit-agenda-actions-v24906 {
  display: contents;
}

.customer-visit-detail-overlay-v25036 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(5px);
}

.customer-visit-detail-modal-v25036 {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 82%, transparent);
  background: var(--surface, #ffffff);
  color: var(--text, #334155);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .30);
}

.customer-visit-detail-x-v25036 {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #ffffff) 90%, transparent);
  color: var(--text, #334155);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.customer-visit-detail-hero-v25036 {
  display: grid;
  gap: 7px;
  padding-right: 44px;
}

.customer-visit-detail-hero-v25036 h2 {
  margin: 0;
  color: var(--heading, #111827);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.customer-visit-detail-hero-v25036 p,
.customer-visit-detail-notes-v25036 p,
.customer-visit-detail-highlight-v25036 p,
.customer-visit-detail-muted-v25036 p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.45;
}

.customer-visit-detail-grid-v25036 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-visit-detail-row-v25036,
.customer-visit-detail-notes-v25036,
.customer-visit-detail-highlight-v25036,
.customer-visit-detail-muted-v25036 {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 84%, transparent);
  background: color-mix(in srgb, var(--customer-accent, #2563eb) 4%, var(--surface, #ffffff));
}

.customer-visit-detail-row-v25036 small,
.customer-visit-detail-notes-v25036 small,
.customer-visit-detail-highlight-v25036 small,
.customer-visit-detail-muted-v25036 small {
  color: var(--text-soft, #64748b);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.customer-visit-detail-row-v25036 strong {
  color: var(--heading, #111827);
  font-size: .96rem;
  line-height: 1.28;
}

.customer-visit-detail-notes-v25036 {
  background: color-mix(in srgb, #0ea5e9 7%, var(--surface, #ffffff));
  border-color: color-mix(in srgb, #0ea5e9 22%, var(--border, #e5e7eb));
}

.customer-visit-detail-notes-v25036 p {
  color: var(--text, #334155);
  white-space: pre-wrap;
}

.customer-visit-detail-sensitive-v25036 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-visit-detail-highlight-v25036 {
  background: color-mix(in srgb, #22c55e 8%, var(--surface, #ffffff));
  border-color: color-mix(in srgb, #22c55e 26%, var(--border, #e5e7eb));
}

.customer-visit-detail-muted-v25036 {
  background: color-mix(in srgb, #64748b 6%, var(--surface, #ffffff));
}

.customer-visit-detail-actions-v25036 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

:root[data-theme='dark'] .customer-visit-new-hint-v25036,
body.dark .customer-visit-new-hint-v25036 {
  color: #93c5fd;
}

:root[data-theme='dark'] .customer-visit-detail-modal-v25036,
body.dark .customer-visit-detail-modal-v25036,
:root[data-theme='dark'] .customer-visit-detail-x-v25036,
body.dark .customer-visit-detail-x-v25036 {
  background: #0f172a;
  color: #e5e7eb;
}

:root[data-theme='dark'] .customer-visit-detail-hero-v25036 h2,
body.dark .customer-visit-detail-hero-v25036 h2,
:root[data-theme='dark'] .customer-visit-detail-row-v25036 strong,
body.dark .customer-visit-detail-row-v25036 strong {
  color: #f8fafc;
}

:root[data-theme='dark'] .customer-visit-detail-notes-v25036 p,
body.dark .customer-visit-detail-notes-v25036 p {
  color: #e5e7eb;
}

@media (max-width: 760px) {
  .customer-visit-detail-grid-v25036,
  .customer-visit-detail-sensitive-v25036 {
    grid-template-columns: 1fr;
  }

  .customer-visit-detail-modal-v25036 {
    padding: 18px;
  }
}


/* V250.40: cancelación de visita con mensaje automático, sin prompt nativo ni caja de texto. */
.customer-visit-cancel-overlay-v25040 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(5px);
}

.customer-visit-cancel-modal-v25040 {
  position: relative;
  width: min(540px, 100%);
  display: grid;
  gap: 13px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, #ef4444 24%, var(--border, #e5e7eb));
  background: var(--surface, #ffffff);
  color: var(--text, #334155);
  box-shadow: 0 26px 86px rgba(15, 23, 42, .28);
}

.customer-visit-cancel-modal-v25040 h2 {
  margin: 0;
  color: var(--heading, #111827);
  font-size: 1.22rem;
  line-height: 1.18;
}

.customer-visit-cancel-modal-v25040 > p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.45;
}

.customer-visit-cancel-kicker-v25040 {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ef4444 34%, var(--border, #e5e7eb));
  color: #991b1b;
  background: color-mix(in srgb, #ef4444 9%, var(--surface, #ffffff));
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.customer-visit-cancel-x-v25040 {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #ffffff) 90%, transparent);
  color: var(--text, #334155);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.customer-visit-cancel-message-v25040 {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #ef4444 24%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #ef4444 7%, var(--surface, #ffffff));
}

.customer-visit-cancel-message-v25040 small {
  color: var(--text-soft, #64748b);
  font-weight: 850;
}

.customer-visit-cancel-message-v25040 strong {
  color: var(--heading, #111827);
  font-size: 1rem;
}

.customer-visit-cancel-message-v25040 p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.4;
}

.customer-visit-cancel-actions-v25040 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

:root[data-theme='dark'] .customer-visit-cancel-modal-v25040,
body.dark .customer-visit-cancel-modal-v25040,
:root[data-theme='dark'] .customer-visit-cancel-x-v25040,
body.dark .customer-visit-cancel-x-v25040 {
  background: #0f172a;
  color: #e5e7eb;
}

:root[data-theme='dark'] .customer-visit-cancel-modal-v25040 h2,
body.dark .customer-visit-cancel-modal-v25040 h2,
:root[data-theme='dark'] .customer-visit-cancel-message-v25040 strong,
body.dark .customer-visit-cancel-message-v25040 strong {
  color: #f8fafc;
}

:root[data-theme='dark'] .customer-visit-cancel-kicker-v25040,
body.dark .customer-visit-cancel-kicker-v25040 {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(248, 113, 113, .42);
}

:root[data-theme='dark'] .customer-visit-cancel-message-v25040,
body.dark .customer-visit-cancel-message-v25040 {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(248, 113, 113, .34);
}


/* V250.41: respuesta visible y bloqueo profesional al confirmar cancelación de visita. */
.customer-visit-cancel-status-v25041 {
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #2563eb 26%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #2563eb 7%, var(--surface, #ffffff));
  color: var(--text, #334155);
  font-weight: 850;
  line-height: 1.35;
}

.customer-visit-cancel-status-v25041[hidden] {
  display: none !important;
}

.customer-visit-cancel-status-v25041[data-status-type='success'] {
  border-color: color-mix(in srgb, #16a34a 34%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 9%, var(--surface, #ffffff));
  color: #166534;
}

.customer-visit-cancel-status-v25041[data-status-type='error'] {
  border-color: color-mix(in srgb, #dc2626 38%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #dc2626 9%, var(--surface, #ffffff));
  color: #991b1b;
}

.customer-visit-cancel-modal-v25040[data-busy='1'] .customer-visit-cancel-x-v25040,
.customer-visit-cancel-modal-v25040[data-busy='1'] [data-customer-visit-cancel-dismiss] {
  opacity: .55;
  cursor: not-allowed;
}

:root[data-theme='dark'] .customer-visit-cancel-status-v25041,
body.dark .customer-visit-cancel-status-v25041 {
  background: rgba(59, 130, 246, .13);
  border-color: rgba(147, 197, 253, .35);
  color: #dbeafe;
}

:root[data-theme='dark'] .customer-visit-cancel-status-v25041[data-status-type='success'],
body.dark .customer-visit-cancel-status-v25041[data-status-type='success'] {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(134, 239, 172, .35);
  color: #bbf7d0;
}

:root[data-theme='dark'] .customer-visit-cancel-status-v25041[data-status-type='error'],
body.dark .customer-visit-cancel-status-v25041[data-status-type='error'] {
  background: rgba(239, 68, 68, .14);
  border-color: rgba(252, 165, 165, .36);
  color: #fecaca;
}

/* ===== v250.53 Registro comprador clásico: selects país/teléfono sin traslape ===== */
.customer-register-page-card-v149 .grid-2 > .field,
.customer-register-card-v147 .grid-2 > .field,
body[data-page="customer-register"] .grid-2 > .field {
  min-width: 0;
}

.customer-register-page-card-v149 .field input,
.customer-register-page-card-v149 .field select,
.customer-register-card-v147 .field input,
.customer-register-card-v147 .field select,
body[data-page="customer-register"] .field input,
body[data-page="customer-register"] .field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-page="customer-register"] select[data-country-calling-select] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 761px) {
  body[data-page="customer-register"] [data-customer-register-form] > .grid-2:has(select[data-country-calling-select]) {
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
  }
}


/* ===== V251.26 · Solo colores modo oscuro: botones de contacto dentro del chat comprador =====
   Alcance: CSS visual únicamente. No toca JS, backend, llamadas, visitas, emails, WhatsApp ni estados. */
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 {
  background: linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .98)) !important;
  border-color: rgba(148, 163, 184, .42) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: none !important;
  filter: none !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:disabled,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:disabled,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:disabled,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:disabled,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-disabled,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859:disabled {
  background: linear-gradient(180deg, rgba(30, 41, 59, .88), rgba(15, 23, 42, .96)) !important;
  border-color: rgba(148, 163, 184, .36) !important;
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-call {
  background: linear-gradient(180deg, rgba(120, 53, 15, .42), rgba(15, 23, 42, .98)) !important;
  border-color: rgba(251, 191, 36, .58) !important;
  color: #fff7ed !important;
  -webkit-text-fill-color: #fff7ed !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859.is-whatsapp {
  background: linear-gradient(180deg, rgba(37, 211, 102, .30), rgba(15, 23, 42, .96)) !important;
  border-color: rgba(37, 211, 102, .56) !important;
  color: #dcfce7 !important;
  -webkit-text-fill-color: #dcfce7 !important;
}

:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 strong,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 svg,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
:root[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 strong,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 svg,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
html[data-theme="dark"] .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 strong,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 svg,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
body.theme-dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 strong,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 svg,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
body.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 span,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 strong,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 svg,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-contact-icon-v24997,
.dark .customer-contact-counterpart-v24859.is-open .customer-secure-contact-btn-v24859 .customer-whatsapp-glyph-v24859 {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
}


/* ===== V251.27 · Corrección real de contraste: botones de contacto del chat comprador en modo oscuro =====
   Alcance: CSS visual + cache-bust HTML. No toca lógica JS, visitas, emails, WhatsApp ni estados. */
html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860,
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn,
body.theme-dark .customer-contact-enabled-actions-v24859 .btn,
body.dark .customer-contact-enabled-actions-v24859 .btn,
.dark .customer-contact-enabled-actions-v24859 .btn,
html[data-theme='dark'] .customer-chat-detail-actions-v24890 .btn,
body.theme-dark .customer-chat-detail-actions-v24890 .btn,
body.dark .customer-chat-detail-actions-v24890 .btn,
.dark .customer-chat-detail-actions-v24890 .btn {
  background: linear-gradient(180deg, rgba(30, 41, 59, .98), rgba(15, 23, 42, .98)) !important;
  border: 1px solid rgba(148, 163, 184, .50) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: 0 12px 26px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 span,
html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 svg,
html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 span,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 svg,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 span,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 svg,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 span,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 svg,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860,
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn span,
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn svg,
body.theme-dark .customer-contact-enabled-actions-v24859 .btn span,
body.theme-dark .customer-contact-enabled-actions-v24859 .btn svg,
body.dark .customer-contact-enabled-actions-v24859 .btn span,
body.dark .customer-contact-enabled-actions-v24859 .btn svg,
.dark .customer-contact-enabled-actions-v24859 .btn span,
.dark .customer-contact-enabled-actions-v24859 .btn svg {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-disabled,
html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860[disabled],
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-disabled,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860[disabled],
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-disabled,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860[disabled],
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-disabled,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860[disabled],
html[data-theme='dark'] .customer-contact-enabled-actions-v24859 .btn[disabled],
body.theme-dark .customer-contact-enabled-actions-v24859 .btn[disabled],
body.dark .customer-contact-enabled-actions-v24859 .btn[disabled],
.dark .customer-contact-enabled-actions-v24859 .btn[disabled] {
  background: linear-gradient(180deg, rgba(51, 65, 85, .92), rgba(30, 41, 59, .96)) !important;
  border-color: rgba(148, 163, 184, .46) !important;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  opacity: .92 !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-internal,
html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-dialing-v24873,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-internal,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-dialing-v24873,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-internal,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-dialing-v24873,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-internal,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-dialing-v24873 {
  background: linear-gradient(180deg, rgba(146, 64, 14, .62), rgba(30, 41, 59, .98)) !important;
  border-color: rgba(251, 191, 36, .66) !important;
  color: #fff7ed !important;
  -webkit-text-fill-color: #fff7ed !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-whatsapp,
body.theme-dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-whatsapp,
body.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-whatsapp,
.dark .customer-detail-contact-box-v24860.is-open .customer-detail-contact-btn-v24860.is-whatsapp {
  background: linear-gradient(180deg, rgba(22, 101, 52, .60), rgba(21, 83, 45, .92)) !important;
  border-color: rgba(74, 222, 128, .68) !important;
  color: #ecfdf5 !important;
  -webkit-text-fill-color: #ecfdf5 !important;
}

/* V251.97 - email protegido comprador: modal accesible para portal y ficha */
.customer-protected-email-overlay-v25197 {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, .68);
  backdrop-filter: blur(12px);
}

.customer-protected-email-modal-v25197 {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .34);
  padding: 24px;
}

.customer-protected-email-modal-v25197 h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.08;
}

.customer-protected-email-modal-v25197 p,
.customer-protected-email-note-v25197 {
  color: #475569;
  line-height: 1.55;
}

.customer-protected-email-x-v25197 {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-weight: 800;
}

.customer-protected-email-context-v25197 {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.customer-protected-email-context-v25197 span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 12px;
  background: rgba(226, 232, 240, .52);
  padding: 10px 12px;
}

.customer-protected-email-context-v25197 strong,
.customer-protected-email-field-v25197 span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}

.customer-protected-email-field-v25197 {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.customer-protected-email-field-v25197 textarea {
  width: 100%;
  resize: vertical;
  min-height: 132px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  padding: 12px 14px;
  font: inherit;
}

.customer-protected-email-status-v25197 {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, .12);
  color: #991b1b;
}

.customer-protected-email-actions-v25197 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.customer-protected-email-result-icon-v25197 {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(34, 197, 94, .16);
  color: #047857;
  font-weight: 900;
}

.customer-protected-email-modal-v25197.is-error .customer-protected-email-result-icon-v25197 {
  background: rgba(239, 68, 68, .14);
  color: #b91c1c;
}

html[data-theme="dark"] .customer-protected-email-modal-v25197,
body.theme-dark .customer-protected-email-modal-v25197,
body.dark .customer-protected-email-modal-v25197,
.dark .customer-protected-email-modal-v25197 {
  background: #101826;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .22);
}

html[data-theme="dark"] .customer-protected-email-modal-v25197 p,
html[data-theme="dark"] .customer-protected-email-note-v25197,
body.theme-dark .customer-protected-email-modal-v25197 p,
body.theme-dark .customer-protected-email-note-v25197,
body.dark .customer-protected-email-modal-v25197 p,
body.dark .customer-protected-email-note-v25197,
.dark .customer-protected-email-modal-v25197 p,
.dark .customer-protected-email-note-v25197 {
  color: #cbd5e1;
}

html[data-theme="dark"] .customer-protected-email-x-v25197,
body.theme-dark .customer-protected-email-x-v25197,
body.dark .customer-protected-email-x-v25197,
.dark .customer-protected-email-x-v25197,
html[data-theme="dark"] .customer-protected-email-field-v25197 textarea,
body.theme-dark .customer-protected-email-field-v25197 textarea,
body.dark .customer-protected-email-field-v25197 textarea,
.dark .customer-protected-email-field-v25197 textarea {
  background: #0b1220;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .28);
}

html[data-theme="dark"] .customer-protected-email-context-v25197 span,
body.theme-dark .customer-protected-email-context-v25197 span,
body.dark .customer-protected-email-context-v25197 span,
.dark .customer-protected-email-context-v25197 span {
  background: rgba(15, 23, 42, .76);
  border-color: rgba(148, 163, 184, .22);
}

@media (max-width: 560px) {
  .customer-protected-email-modal-v25197 {
    padding: 20px;
    border-radius: 16px;
  }

  .customer-protected-email-actions-v25197 .btn {
    width: 100%;
  }
}
