/*Root elements*/
.remesas-widget-root {
  border: none;
  padding: 20px;
  border-radius: 12px;
  margin: 0 auto;
  background: #f9f9f9;
  /*#f9f0e8;*/
  max-width: 400px;
  font-family: var(--wp--preset--font-family--raleway);
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
}

/* Título */
.remesas-widget-root .rem-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding: 0;
  text-align: center;
}

/* Filas primarias */
.remesas-widget-root .rem-row {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  flex-wrap: nowrap;
}

/*Descripciones de elementos*/
.rem-row label {
  gap: inherit;
  padding: 1px 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.rem-row label:hover {
  background: transparent;
  border-color: transparent;
}

/* Radio buttons para Enviar/Recibir */
.rem-row input[type="radio"] {
  cursor: pointer;
  margin: 0;
}

/* Inputs de números y textos */
.rem-row input[type="number"],
.rem-row input[type="text"],
.rem-row input[placeholder] {
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  background: #e8f4f8;
  color: #2c7a9e;
  font-weight: 500;
}
.rem-row input[type="number"],
.rem-row input[type="text"] {
   flex: 1;
}

.rem-row input[type="number"]:focus,
.rem-row input[type="text"]:focus,
.rem-row input[placeholder]:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(44, 122, 158, 0.2);
  background: #a1c7dc;
}

/* Selectores dropdown de moneda y municipio */
.rem-row select {
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  background: #e8f4f8;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  /*min-width: 80px;*/
  color: #2c7a9e;
  font-weight: 500;
}

.rem-row select:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(44, 122, 158, 0.2);
  background: #a1c7dc;
}

.rem-row select:hover {
  border-color: transparent;
}

.rem-row select:disabled {
  background: #f0f0f0;
  color: #444;
  cursor: none;
}



/* Estilos de grupos de input */
.remesas-widget-root .rem-row.rem-input-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: nowrap;
}

.rem-row.rem-input-group .rem-input-wrapper {
  display: flex;
  gap: 15px;
  width: 100%;
  flex-direction: row;
  box-sizing: border-box;
}

.rem-row.rem-input-group .rem-input-wrapper select {
  flex: 0 0 18ch; /* ocupa el espacio restante */
}

.rem-row.rem-input-group .rem-input-wrapper input[type="number"] {
  flex: 1 1 5ch; /* ancho base ~6-8 dígitos, ajustable */
  width: 100%;
}

/* Sección de información */
.remesas-widget-root .rem-info-section {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  border-left: 4px solid #ec6039;
}

.remesas-widget-root .rem-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}

.remesas-widget-root .rem-info-label {
  color: #ec6039;
  font-weight: 600;
}

.remesas-widget-root .rem-info-value {
  color: #333;
  font-weight: 500;
}

.remesas-widget-root .rem-info-item.rem-error {
  color: #d32f2f;
  font-weight: bold;
  padding: 12px;
  border-left: none;
  text-align: center;
}

.remesas-widget-root .rem-info-item.rem-discount .rem-info-value {
  color: #498ba1;
  font-weight: 600;
}

/* Sección de total */
.remesas-widget-root .rem-total-section {
  background: #ffffff;
  border: 2px solid #e8f4f8;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.remesas-widget-root .rem-total-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remesas-widget-root .rem-total-value {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

/* Checkbox para datos del destinatario */
.rem-row input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Botones */
.rem-row button {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.rem-row button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.remesas-widget-root .rem-btn-primary {
  background: #ec6039;
  color: white;
}

.remesas-widget-root .rem-btn-primary:hover {
  background: #ce843c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remesas-widget-root .rem-btn-primary:active {
  background: #ec6039;
  transform: translateY(1px);
}

/* Resultado */
.remesas-widget-root .remesas-result {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  white-space: pre-wrap;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  min-height: 60px;
}

.remesas-widget-root .remesas-result:empty {
  display: none;
}

/* Sección de datos opcionales/adicionales */
.remesas-widget-root .rem-optional {

  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 16px;
}

.remesas-widget-root .rem-optional>label {
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: none;
}

.remesas-widget-root .rem-optional>label:hover {
  background: none;
}

.rem-row.rem-optional input[placeholder] {
  width: 100%;
  margin-bottom: 5px;
}

.rem-row.rem-optional input[placeholder]:last-of-type {
  margin-bottom: 0;
}

/* Sección de acciones */
.remesas-widget-root .rem-actions {
  flex-direction: column;
  gap: 10px;
}

.remesas-widget-root .rem-actions button {
  width: 100%;
}

/* Sección para eliminar selectores  */
.no-spin-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.no-spin-input::-webkit-inner-spin-button,
.no-spin-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body .wp-block-uagb-container > :not(.wp-block-uagb-container):not(.wp-block-uagb-column):not(.wp-block-uagb-container):not(.wp-block-uagb-section):not(.uagb-container__shape):not(.uagb-container__video-wrap):not(.wp-block-spectra-pro-register):not(.wp-block-spectra-pro-login):not(.uagb-slider-container):not(.spectra-container-link-overlay):not(.spectra-image-gallery__control-lightbox):not(.wp-block-uagb-lottie):not(.uagb-faq__outer-wrap)  .remesas-widget-root{
  width: 100% !important;
  min-width: 320px !important;
}