/* ========================================
   Checador — Theme
   ======================================== */

/* --- Base & Background --- */
* {
  box-sizing: border-box;
}

body {
  padding-top: 0;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d3748;
  -webkit-font-smoothing: antialiased;
}

/* --- Card Principal (kiosko) --- */
.checador-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 40px 36px 32px;
  max-width: 620px;
  margin: 32px auto 0;
  text-align: center;
}

/* --- Content wrapper (column derecha en desktop) --- */
.checador-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* --- Logo --- */
.checador-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
}

/* --- Reloj --- */
.checador-clock {
  font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
  font-size: 3.6rem;
  font-weight: 300;
  color: #4a5568;
  letter-spacing: 0px;
  margin: 0 0 16px 0;
  line-height: 1;
}

/* --- Fecha --- */
.checador-date {
  font-size: 14px;
  font-weight: 400;
  color: #a0aec0;
  margin: 10px 0 0 0;
  text-transform: capitalize;
}

/* --- Webcam --- */
.checador-camera-wrap {
  width: 420px;
  max-width: 100%;
  background-color: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  border: 2px solid #e2e8f0;
  margin: 0 auto 24px;
  line-height: 0;
  font-size: 0;
}

#my_camera,
#my_camera video,
#my_camera > * {
  display: block !important;
  line-height: 0 !important;
  font-size: 0 !important;
  vertical-align: bottom !important;
}

/* --- Input Group --- */
#divPrincipal {
  width: 100%;
  max-width: 420px;
}

.checador-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.checador-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  color: #2d3748;
  background: #f7fafc;
  outline: none;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.checador-input::placeholder {
  color: #a0aec0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  text-align: center;
}

.checador-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.checador-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #444d58;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.checador-btn:hover {
  background: #363d46;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(68, 77, 88, 0.35);
}

.checador-btn:active {
  background: #2c323a;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(68, 77, 88, 0.25);
}

.checador-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(68, 77, 88, 0.20);
}

.checador-input[disabled],
.checador-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.checador-btn i {
  font-size: 14px;
}

/* --- Sección de últimas entradas --- */
.checador-entradas {
  max-width: 620px;
  margin: 28px auto 40px;
  text-align: center;
}

.checador-entradas-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a0aec0;
  margin-bottom: 16px;
}

/* --- Tabla --- */
.checador-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.checador-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a0aec0;
  padding: 14px 18px;
  border-bottom: 2px solid #edf2f7;
  text-align: left;
}

.checador-table tbody td {
  padding: 13px 18px;
  font-size: 14px;
  color: #4a5568;
  border-bottom: 1px solid #f0f4f8;
  text-align: left;
}

/* --- Tabla vacía --- */
.checador-table-empty {
  padding: 28px 18px;
  text-align: center !important;
  color: #a0aec0;
  font-size: 14px;
}

.checador-table tbody tr:last-child td {
  border-bottom: none;
}

.checador-table tbody tr {
  transition: background 0.15s ease;
}

.checador-table tbody tr:hover {
  background: #f7fafc;
}

.checador-table .td-hora {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
}

/* --- Modal mejorado --- */
.modal-content {
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-body {
  padding: 32px 28px 16px;
}

.modal-footer {
  border-top: none;
  padding: 12px 28px 24px;
  text-align: center;
}

.modal-footer .btn-cerrar-modal {
  background: #edf2f7;
  color: #4a5568;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-footer .btn-cerrar-modal:hover {
  background: #e2e8f0;
}

.modal-footer .btn-cerrar-modal[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.modal-registro-img {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.checador-modal-shell {
  text-align: center;
}

.checador-modal-name {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: #1f2937;
}

.checador-modal-photo {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
}

.checador-modal-time {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.2;
  color: #087820;
}

.checador-face-status {
  margin: 12px auto 0;
  max-width: 360px;
  min-height: 50px;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
}

.checador-face-status.is-processing {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.checador-face-status.is-verified {
  background: #f0fff4;
  border-color: #c6f6d5;
}

.checador-face-status.is-review {
  background: #fffaf0;
  border-color: #fbd38d;
}

.checador-face-status.is-untrained {
  background: #f5f5f5;
  border-color: #d4d4d8;
}

.checador-face-status.is-unverified {
  background: #fff5f5;
  border-color: #feb2b2;
}

.checador-face-status-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.checador-face-status-pulse {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.45);
  animation: checador-face-pulse 1.4s ease-out infinite;
}

.checador-face-status-copy {
  min-width: 0;
}

.checador-face-status-line1 {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.checador-face-status-line2 {
  margin-top: 3px;
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
}

@keyframes checador-face-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(148, 163, 184, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(148, 163, 184, 0);
  }
}

/* Icon de éxito/error en modal */
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 24px;
}

.modal-icon-success {
  background: #f0fff4;
  color: #38a169;
}

.modal-icon-error {
  background: #fff5f5;
  color: #e53e3e;
}

/* --- Modal bloqueo de camara obligatoria --- */
#modal_camara_obligatoria .modal-dialog {
  width: 540px;
  max-width: calc(100% - 28px);
  margin: 36px auto;
}

#modal_camara_obligatoria .modal-content {
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.modal-camara-body {
  text-align: center;
  padding: 34px 30px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.modal-camara-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #c53030;
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px rgba(245, 101, 101, 0.24);
}

.modal-camara-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a202c;
}

.modal-camara-message {
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.5;
  color: #2d3748;
  max-width: 440px;
}

.modal-camara-help {
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.45;
  color: #718096;
  max-width: 420px;
}

.modal-camara-footer {
  padding: 16px 30px 28px;
  border-top: none;
  text-align: center;
  background: #ffffff;
}

.btn-reintentar-camara {
  min-width: 210px;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: linear-gradient(135deg, #4c51bf 0%, #2b6cb0 100%);
  box-shadow: 0 8px 22px rgba(43, 108, 176, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-reintentar-camara:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43, 108, 176, 0.33);
}

.btn-reintentar-camara:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(76, 81, 191, 0.22);
}

.btn-reintentar-camara[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .modal-camara-body {
    padding: 28px 20px 12px;
  }

  .modal-camara-title {
    font-size: 22px;
  }

  .modal-camara-message {
    font-size: 16px;
  }

  .modal-camara-help {
    font-size: 13px;
  }

  .modal-camara-footer {
    padding: 14px 20px 24px;
  }

  .btn-reintentar-camara {
    width: 100%;
    min-width: 0;
  }
}

/* --- Utilidades --- */
.mb20 {
  margin-bottom: 20px;
}
.mb10 {
  margin-bottom: 10px;
}
.mb0 {
  margin-bottom: 0px;
}
.mt10 {
  margin-top: 10px;
}
.mt20 {
  margin-top: 20px;
}
.ml10 {
  margin-left: 10px;
}
.mr10 {
  margin-right: 10px;
}
.pt5 {
  padding-top: 5px;
}
.oculto {
  display: none;
}
.link {
  cursor: pointer;
}
.text-venta {
  font-size: 18px;
  padding-top: 5px;
}
.no-padding {
  padding: 0px;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.f16 {
  font-size: 16px;
}
.f18 {
  font-size: 18px;
}
.f20 {
  font-size: 20px;
}
.red {
  color: #c71c22;
}
.click {
  cursor: pointer;
}
.footer {
  position: absolute;
  bottom: 0px;
  margin-left: auto;
  margin-right: auto;
}
.green {
  color: #73a839;
}
.lista-productos {
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 1px solid #dddddd;
}
.lista-productos:hover {
  background-color: #f5f5f5;
}
.total {
  font-size: 28px;
  text-align: right;
  padding-left: 2px;
  padding-right: 5px;
}
.total2 {
  font-size: 20px;
  text-align: right;
  padding-left: 2px;
  padding-right: 5px;
}
.mb-cobro-tx {
  font-size: 22px;
  text-align: right;
  font-weight: bold;
}
.scroll {
  overflow-y: auto;
}

/* Venta Touch */
.mesa {
  height: 100px;
  background-color: #3498db;
  border: 1px solid #2980b9;
  margin: 0px 10px 20px 10px;
  -webkit-border-radius: 5px 10px;
  -moz-border-radius: 5px 10px;
  cursor: pointer;
}
.pendiente {
  background-color: #e74c3c;
  border: 1px solid #c0392b;
}
.cobrada {
  background-color: #5cb85c;
  border: 1px solid #4cae4c;
}
.mesa h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 0px;
  font-size: 20px;
}
.mesa h3 small {
  color: #fff;
  text-align: center;
}
.mesa p {
  color: #fff;
  font-size: 11px;
  text-align: center;
}

/* CSS for Credit Card Payment form */
.credit-card-box .panel-title {
  display: inline;
  font-weight: bold;
}
.credit-card-box .form-control.error {
  border-color: red;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6);
}
.credit-card-box label.error {
  font-weight: bold;
  color: red;
  padding: 2px 8px;
  margin-top: 2px;
}
.credit-card-box .payment-errors {
  font-weight: bold;
  color: red;
  padding: 2px 8px;
  margin-top: 2px;
}
.credit-card-box label {
  display: block;
}
.credit-card-box .display-table {
  display: table;
}
.credit-card-box .display-tr {
  display: table-row;
}
.credit-card-box .display-td {
  display: table-cell;
  vertical-align: middle;
  width: 50%;
}
.credit-card-box .panel-heading img {
  min-width: 180px;
}

/* --- Side-by-side (Tablets & Desktop) --- */
@media (min-width: 768px) {

  .checador-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    max-width: 900px;
    padding: 32px 40px;
    margin-top: 24px;
  }

  /* Cámara a la izquierda */
  .checador-camera-wrap {
    flex-shrink: 0;
    width: 400px;
    margin: 0;
  }

  /* Contenido derecho - centrado como bloque */
  .checador-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .checador-logo {
    max-width: 200px;
    margin-bottom: 12px;
  }

  .checador-clock {
    font-family: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 3.8rem;
    margin: 0 0 24px 0;
  }

  #divPrincipal {
    width: 100%;
    max-width: 100%;
  }

  .checador-input-group {
    flex-direction: row;
    gap: 12px;
  }

  .checador-date {
    margin-top: 12px;
  }

  /* Últimas entradas */
  .checador-entradas {
    max-width: 900px;
    margin: 20px auto 32px;
  }

  .checador-entradas-title {
    margin-bottom: 12px;
    font-size: 12px;
  }
}

/* --- Tablet (768px – 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .checador-card {
    gap: 28px;
    padding: 28px 28px;
  }

  .checador-camera-wrap {
    width: 320px;
  }

  .checador-clock {
    font-size: 3.2rem;
  }
}

/* --- Responsive móvil --- */
@media (max-width: 767px) {
  .checador-card {
    margin: 16px 12px 0;
    padding: 28px 18px 24px;
    border-radius: 16px;
  }

  .checador-clock {
    font-size: 3rem;
  }

  .checador-camera-wrap {
    width: 100%;
    margin-bottom: 20px;
  }

  .checador-entradas {
    margin: 20px 12px 32px;
  }

.checador-input-group {
  flex-direction: column;
  gap: 10px;
  }

  .checador-input,
  .checador-btn {
    width: 100%;
  }
}

.checador-secondary-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.checador-link-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #425466;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.checador-link-btn i {
  color: #128c7e;
  font-size: 17px;
}

.checador-link-btn:hover,
.checador-link-btn:focus {
  color: #1f2937;
  transform: translateY(-1px);
  outline: none;
}

.modal-whatsapp-dialog {
  width: calc(100% - 28px);
  max-width: 980px;
  margin: 16px auto;
}

.modal-whatsapp-dialog.is-compact-flow {
  max-width: 620px;
}

.modal-whatsapp-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(100, 116, 139, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-whatsapp-body {
  padding: 0;
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-whatsapp-shell {
  padding: 22px 24px 10px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-whatsapp-hero {
  margin-bottom: 10px;
  padding-right: 44px;
}

.modal-whatsapp-hero.is-compact-flow {
  margin-bottom: 8px;
  padding-right: 0;
  text-align: center;
}

.modal-whatsapp-hero.is-success-view {
  display: none;
}

.modal-whatsapp-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.modal-whatsapp-subtitle {
  margin: 6px 0 0;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
}

.modal-whatsapp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.modal-whatsapp-close:hover {
  background: #ffffff;
  transform: scale(1.04);
}

.modal-whatsapp-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.modal-whatsapp-notice.is-error {
  background: rgba(254, 226, 226, 0.92);
  color: #b91c1c;
}

.modal-whatsapp-notice.is-success {
  background: rgba(220, 252, 231, 0.92);
  color: #166534;
}

.modal-whatsapp-content-wrap {
  margin-top: 0;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(56vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 10px 8px 4px;
  box-sizing: border-box;
}

.modal-whatsapp-content-wrap.is-compact-flow {
  max-height: none;
  overflow: visible;
  padding: 4px 0 0;
  display: flex;
  justify-content: center;
}

.modal-whatsapp-content-wrap.is-success-view {
  max-height: none;
  overflow: visible;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-whatsapp-content-wrap.is-compact-flow #whatsappFlowContent {
  width: 100%;
}

.modal-whatsapp-content-wrap.is-success-view #whatsappFlowContent {
  width: 100%;
}

.modal-whatsapp-loader {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.modal-whatsapp-loader-text {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.modal-whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-whatsapp-card,
.modal-whatsapp-status-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.modal-whatsapp-card {
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 0;
}

.modal-whatsapp-card:hover,
.modal-whatsapp-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(100, 116, 139, 0.45);
  outline: none;
}

.modal-whatsapp-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
}

.modal-whatsapp-card-subtitle {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.modal-whatsapp-empty {
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #64748b;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
}

.modal-whatsapp-status-card {
  padding: 20px;
}

.modal-whatsapp-success-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 22px 22px;
}

.modal-whatsapp-success-card .modal-whatsapp-status-heading {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 360px);
  column-gap: 18px;
  align-items: start;
}

.modal-whatsapp-success-card .modal-whatsapp-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.modal-whatsapp-success-card .modal-whatsapp-status-heading > div:last-child {
  min-width: 0;
}

.modal-whatsapp-success-card .modal-whatsapp-status-title {
  font-size: 22px;
}

.modal-whatsapp-success-card .modal-whatsapp-status-copy {
  font-size: 15px;
  line-height: 1.5;
}

.modal-whatsapp-content-wrap.is-compact-flow .modal-whatsapp-status-card {
  display: flex;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.modal-whatsapp-status-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-whatsapp-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-whatsapp-status-icon.is-ready {
  background: rgba(220, 252, 231, 0.96);
  color: #15803d;
}

.modal-whatsapp-status-icon.is-pending {
  background: rgba(219, 234, 254, 0.96);
  color: #1d4ed8;
}

.modal-whatsapp-status-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.modal-whatsapp-status-copy {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.modal-whatsapp-status-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-whatsapp-status-meta .modal-whatsapp-highlight {
  margin-top: 0;
}

.modal-whatsapp-highlight {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  max-width: 100%;
}

.modal-whatsapp-pin-focus {
  width: 100%;
  display: flex;
  justify-content: center;
}

.modal-whatsapp-pin-panel {
  width: min(100%, 430px);
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.14), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px 16px 14px;
}

.modal-whatsapp-pin-panel.is-centered {
  margin: 0 auto;
}

.modal-whatsapp-pin-panel.is-whatsapp-capture {
  padding: 18px 18px 18px;
}

.modal-whatsapp-pin-context {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.modal-whatsapp-pin-context-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.modal-whatsapp-pin-context-item i {
  color: #64748b;
}

.modal-whatsapp-pin-context-action {
  appearance: none;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-whatsapp-pin-context-action:hover {
  color: #1d4ed8;
}

.modal-whatsapp-pin-context-separator {
  color: #94a3b8;
}

.modal-whatsapp-pin-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.modal-whatsapp-pin-slot {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #94a3b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.modal-whatsapp-pin-slot.is-filled {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.95);
}

.modal-whatsapp-pin-caption {
  margin: 10px 0 14px;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}

.modal-whatsapp-pin-caption.is-success {
  color: #15803d;
}

.modal-whatsapp-pin-caption.is-error {
  color: #b91c1c;
}

.modal-whatsapp-pin-caption.is-pending {
  color: #1d4ed8;
}

.modal-whatsapp-pinpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.modal-whatsapp-pinpad-key,
.modal-whatsapp-pinpad-spacer {
  min-height: 54px;
}

.modal-whatsapp-pinpad-key {
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.modal-whatsapp-pinpad-key:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.55);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.modal-whatsapp-pinpad-key.is-action {
  font-size: 18px;
  color: #475569;
}

.modal-whatsapp-field {
  margin-top: 16px;
}

.modal-whatsapp-field.modal-whatsapp-field-compact {
  margin-top: 0;
}

.modal-whatsapp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.modal-whatsapp-field input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  color: #1f2937;
  background: #fbfdff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.modal-whatsapp-field input:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 5px rgba(100, 116, 139, 0.12);
}

.modal-whatsapp-helper {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.modal-whatsapp-inline-feedback {
  margin: 8px 2px 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: transparent;
  text-align: left;
}

.modal-whatsapp-inline-feedback.is-visible {
  color: #64748b;
}

.modal-whatsapp-inline-feedback.is-error {
  color: #b91c1c;
}

.modal-whatsapp-inline-feedback.is-success {
  color: #15803d;
}

.modal-whatsapp-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-whatsapp-actions.modal-whatsapp-actions-compact {
  margin-top: 14px;
}

.modal-whatsapp-actions.modal-whatsapp-actions-compact > * {
  width: 100%;
}

.modal-whatsapp-primary,
.modal-whatsapp-secondary,
.modal-whatsapp-back,
.modal-whatsapp-dismiss {
  appearance: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.modal-whatsapp-primary,
.modal-whatsapp-secondary {
  padding: 12px 16px;
}

.modal-whatsapp-primary {
  background: #3f4d5f;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(63, 77, 95, 0.2);
}

.modal-whatsapp-primary:hover {
  background: #2f3946;
  transform: translateY(-1px);
}

.modal-whatsapp-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.modal-whatsapp-secondary {
  background: #f1f5f9;
  color: #334155;
}

.modal-whatsapp-footer {
  padding: 0 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.modal-whatsapp-back,
.modal-whatsapp-dismiss {
  padding: 10px 14px;
}

.modal-whatsapp-back {
  background: #eef2f7;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal-whatsapp-dismiss {
  background: transparent;
  color: #64748b;
}

@media (max-width: 991px) {
  .modal-whatsapp-content-wrap.is-compact-flow {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
  }
}

@media (max-width: 767px) {
  .modal-whatsapp-dialog {
    width: calc(100% - 16px);
    margin: 10px auto;
  }

  .modal-whatsapp-grid {
    grid-template-columns: 1fr;
  }

  .modal-whatsapp-shell {
    padding: 24px 16px 12px;
  }

  .modal-whatsapp-content-wrap {
    padding: 4px 6px 8px 4px;
  }

  .modal-whatsapp-content-wrap.is-compact-flow {
    padding: 4px 6px 8px 4px;
  }

  .modal-whatsapp-hero {
    margin-bottom: 10px;
    padding-right: 36px;
  }

  .modal-whatsapp-title {
    font-size: 21px;
  }

  .modal-whatsapp-subtitle {
    font-size: 12px;
  }

  .modal-whatsapp-footer {
    padding: 0 16px 16px;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .modal-whatsapp-back,
  .modal-whatsapp-dismiss {
    width: 100%;
    justify-content: center;
  }

  .modal-whatsapp-status-card {
    padding: 18px 16px;
  }

  .modal-whatsapp-success-card {
    padding: 20px 18px;
  }

  .modal-whatsapp-content-wrap.is-compact-flow .modal-whatsapp-status-card {
    display: block;
    height: auto;
    padding: 0;
  }

  .modal-whatsapp-dialog.is-compact-flow {
    width: calc(100% - 16px);
  }

  .modal-whatsapp-pin-panel {
    padding: 14px;
  }

  .modal-whatsapp-pin-panel.is-whatsapp-capture {
    padding: 14px;
  }

  .modal-whatsapp-pin-slot {
    min-height: 52px;
    font-size: 28px;
  }

  .modal-whatsapp-pinpad-key,
  .modal-whatsapp-pinpad-spacer {
    min-height: 50px;
  }

  .modal-whatsapp-actions > * {
    width: 100%;
  }
}
