/* Estilo para el formulario */
#aydorder-form {
  max-width: 400px; /* Ajusta el ancho del formulario según tus necesidades */
  margin: 0 auto; /* Centrar el formulario horizontalmente */
  padding: 20px;
  border: 1px solid #ccc;
}

/* Estilo para cada grupo de entrada (label + input) */
.input-group {
  margin-bottom: 20px;
}

/* Estilo para el label */
.input-group label {
  display: block;
  font-weight: bold; /* Texto del label en negrita */
}

/* Estilo para el abbr dentro del label */
.input-group abbr[title] {
  /* color: red; /* Texto del abbr en rojo */
  text-decoration: none; /* Quitar subrayado al abbr */
  border-bottom: 0;
}

/* Estilo para el input dentro del span con la clase woocommerce-input-wrapper */
.woocommerce-input-wrapper input {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Estilo para el botón */
#aydorder-form input.button {
  display: block; /* Convertir el botón en un bloque para que ocupe todo el ancho disponible */
  margin: 0 auto; /* Centrar el botón horizontalmente */
  text-align: center; /* Alinear el texto del botón al centro */
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: none;
  color: #000000;
  background-color: #FFFFFF00;
  border: 1px solid #838383;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Estilo al pasar el cursor sobre el botón */
#aydorder-form input.button:hover {
  background-color: #333333;
  color: #FFFFFF;
  border-color: #333333;
}

/* Estilos Widget Escritorio estado cocina */
.kitchen-state {
  font-size: 20px;
}
/* Estilos para el estado de Cocina Abierta */
.kitchen-state-text.open {
  color: green;
}
/* Estilos para el estado de Cocina Saturada */
.kitchen-state-text.saturated {
  color: orange;
}
/* Estilos para el estado de Cocina Cerrada */
.kitchen-state-text.closed {
  color: red;
}
#kitchen-state-select {
  margin-right: 10px; /* Agrega espacio entre el select y el botón */
}


/* ==========================================================================
   ESTILOS DOJO PINPAD & VOYVOY PAYMENT PAGE (#ffc139)
   ========================================================================== */

/* ==========================================================================
   ESTILOS DOJO PINPAD & VOYVOY PAYMENT PAGE (#ffc139) - LIGHT THEME
   ========================================================================== */

/* Contenedor principal de Pago */
.ayd-dojo-payment-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 5px !important;
  margin: 0 auto !important;
  min-height: auto;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
}

.ayd-dojo-card-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
  max-width: 840px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 20px 24px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* PANTALLA DE AGRADECIMIENTO (THANK YOU CARD) */
.ayd-dojo-thankyou-card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 28px 24px;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.ayd-dojo-thankyou-icon {
  margin-bottom: 14px;
}

.ayd-dojo-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #16a34a;
  stroke-miterlimit: 10;
  margin: 0 auto;
}

.ayd-dojo-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #16a34a;
  fill: #dcfce7;
  animation: dojoCheckStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ayd-dojo-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: dojoCheckStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes dojoCheckStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.ayd-dojo-thankyou-title {
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 6px 0;
}

.ayd-dojo-thankyou-order {
  display: inline-block;
  background: #fff8e6;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.ayd-dojo-thankyou-msg {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.ayd-dojo-thankyou-countdown-box {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 20px;
}

#ayd-dojo-countdown-num {
  color: #d97706;
  font-weight: 900;
  font-size: 15px;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
}

.ayd-dojo-thankyou-actions {
  margin-top: 10px;
}

/* Columna Izquierda: Resumen del Pedido (Ocupa todo el alto) */
.ayd-dojo-col-left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #f3f4f6;
  padding-right: 24px;
  height: 100%;
}

.ayd-dojo-header-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f3f4f6;
  margin-bottom: 16px;
}

.ayd-dojo-logo {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #111827;
}

.ayd-dojo-brand-highlight {
  color: #d97706;
  background: #fffbeb;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
}

.ayd-dojo-order-number {
  background: #fff8e6;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

/* Resumen de items */
.ayd-dojo-items-summary {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 16px;
}

.ayd-dojo-summary-title {
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ayd-dojo-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  max-height: 260px;
  overflow-y: auto;
}

.ayd-dojo-items-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.ayd-dojo-items-list li:last-child {
  border-bottom: none;
}

.ayd-dojo-items-list li .qty {
  font-weight: 800;
  color: #d97706;
  margin-right: 8px;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.ayd-dojo-items-list li .name {
  flex-grow: 1;
  color: #1f2937;
  font-weight: 600;
}

.ayd-dojo-items-list li .total {
  font-weight: 700;
  color: #111827;
}

/* Columna Derecha: Importe, Datáfono y Acciones */
.ayd-dojo-col-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-left: 8px;
}

/* Importe a pagar */
.ayd-dojo-amount-section {
  background: #fffdf5;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  border: 1.5px dashed #ffc139;
}

.ayd-dojo-amount-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #92400e;
  font-weight: 800;
  margin-bottom: 4px;
}

.ayd-dojo-amount-value {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
}

/* Caja de Estado e Gráfico del PinPad */
.ayd-dojo-status-box {
  padding: 16px 14px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ayd-dojo-pinpad-graphic {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fef3c7;
  border-radius: 50%;
  color: #d97706;
  transition: all 0.4s ease;
}

.ayd-dojo-card-icon svg {
  width: 28px;
  height: 28px;
}

.ayd-dojo-pinpad-graphic.waiting {
  animation: dojoPulseLight 2s infinite ease-in-out;
  color: #d97706;
  background: #fef3c7;
}

.ayd-dojo-pinpad-graphic.success {
  color: #16a34a;
  background: #dcfce7;
  transform: scale(1.05);
}

.ayd-dojo-pinpad-graphic.error {
  color: #dc2626;
  background: #fee2e2;
}

@keyframes dojoPulseLight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 57, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 193, 57, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 57, 0);
  }
}

.ayd-dojo-status-message {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ayd-dojo-status-detail {
  font-size: 12px;
  color: #6b7280;
}

/* Botones de Acción principales */
.ayd-dojo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ayd-dojo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

/* Botón Principal Reintentar (#ffc139) */
.ayd-dojo-btn-retry {
  background-color: #ffc139;
  color: #000000;
  box-shadow: 0 4px 12px rgba(255, 193, 57, 0.35);
}

.ayd-dojo-btn-retry:hover {
  background-color: #e5ab2b;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 193, 57, 0.45);
}

.ayd-dojo-btn-retry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Botón Cancelar */
.ayd-dojo-btn-cancel {
  background-color: #ffffff;
  color: #4b5563;
  border: 1.5px solid #d1d5db;
}

.ayd-dojo-btn-cancel:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Adaptación Responsiva para móviles */
@media (max-width: 640px) {
  .ayd-dojo-card-layout {
    flex-direction: column;
    padding: 18px;
    gap: 16px;
  }

  .ayd-dojo-col-left {
    border-right: none;
    border-bottom: 1.5px solid #f3f4f6;
    padding-right: 0;
    padding-bottom: 16px;
  }

  .ayd-dojo-col-right {
    padding-left: 0;
  }
}

/* ADMIN STYLES FOR DOJO TERMINAL LISTVIEW */
.dojo-terminals-table {
  margin-top: 15px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.dojo-terminals-table tr.selected-terminal-row {
  background-color: #f0f6fc !important;
  border-left: 4px solid #2271b1;
}

.dojo-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.dojo-badge-online {
  background-color: #e7f8ed;
  color: #2e7d32;
}

.dojo-badge-offline {
  background-color: #fdeded;
  color: #c62828;
}

/* ==========================================================================
   PREMIUM WP ADMIN UI FOR AYD-ORDER (v9.0.5)
   ========================================================================== */

/* Main Wrap Container */
.wrap.ayd-admin-wrap {
  margin: 20px 20px 0 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

/* Header Banner */
.ayd-admin-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 22px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ayd-admin-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ayd-admin-header-title h1,
.ayd-admin-header-title .ayd-admin-title-text {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  padding: 0;
  letter-spacing: -0.5px;
}

.ayd-admin-version-pill {
  background: rgba(255, 193, 57, 0.2);
  color: #ffc139;
  border: 1px solid rgba(255, 193, 57, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.ayd-admin-header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.ayd-admin-header-status .dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Nav Tabs */
.ayd-admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
  overflow-x: auto;
}

.ayd-admin-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ayd-admin-tab:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.ayd-admin-tab.active {
  color: #2563eb;
  background: #ffffff;
  border-bottom: 3px solid #2563eb;
}

/* Card Section */
.ayd-admin-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  padding: 28px;
  margin-bottom: 24px;
}

.ayd-admin-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Tables Overrides */
.ayd-admin-card .form-table {
  margin-top: 0;
}

.ayd-admin-card .form-table th {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  padding: 16px 12px 16px 0;
  width: 220px;
  vertical-align: middle;
}

.ayd-admin-card .form-table td {
  padding: 12px 0;
  vertical-align: middle;
}

.ayd-admin-card input[type="text"],
.ayd-admin-card input[type="number"],
.ayd-admin-card input[type="password"],
.ayd-admin-card select,
.ayd-admin-card textarea {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ayd-admin-card input[type="text"]:focus,
.ayd-admin-card input[type="number"]:focus,
.ayd-admin-card input[type="password"]:focus,
.ayd-admin-card select:focus,
.ayd-admin-card textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ayd-admin-card p.description {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 6px;
  font-style: normal;
}

/* Submit & Action Buttons */
.ayd-admin-card .submit {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.ayd-admin-card .button-primary,
#testFTP,
#generate-and-download-button,
#refresh-terminals-btn {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ayd-admin-card .button-primary:hover,
#testFTP:hover,
#generate-and-download-button:hover,
#refresh-terminals-btn:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

/* Poster & QR Section Styling */
.poster-qr-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.poster-qr-container img {
  max-height: 280px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
}

.checkbox-label:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}


