
/*
 * Styles for the Wompi Gaia Plugin
 */

/* ============================================================
   Wompi Response
   ============================================================ */

.wompi-transaction-container {
  padding: 50px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.wompi-response-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 30px 40px;
  width: 100%;
  max-width: 530px;
  border-radius: 16px;
  box-shadow: 0px 3px 12.7px 0px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.wompi-response-wrapper h2 {
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-secondary-font-family);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin-top: 4px;
}

.wompi-response-wrapper h2::after {
  content: '';
  display: block;
  margin: 5px auto 0;
  width: 60px;
  height: 5px;
  border-radius: 50px;
  background-color: var(--e-global-color-secondary);
}

.wompi-response-wrapper p {
  font-family: var(--e-global-typography-2d906fa-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--e-global-color-primary);
  margin: 0;
}

.wompi-response-wrapper--respuesta {
  margin: 50px auto 20px !important;
}

#wompi-response-section a.btn-wompi-response {
  display: block;
  background-color: var(--e-global-color-secondary);
  padding: 12px 30px;
  color: var(--e-global-color-e66ac1f);
  font-family: var(--e-global-typography-accent-font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 4px 4px 10px 0px rgba(254, 166, 113, 0.2);
  transition: .2s ease;
}

#wompi-response-section a.btn-wompi-response:hover {
  background-color: var(--e-global-color-primary);
}

#wompi-response-section a.btn-wompi-response:focus {
  background-color: var(--e-global-color-primary);
}

/* ============================================================
   Banner de usuario
   ============================================================ */

.banner-user {
  max-width: 100%;
  background-image: url(/wp-content/uploads/facturas-header-positiva.avif);
  background-color: var(--e-global-color-b73aa6c);
  background-position: left;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0;
  gap: 30px;
}

.banner-user__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-user__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 30px;
}

.banner-user__nav {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
}

.banner-user__nav a {
  text-decoration: none !important;
  color: #5D6977 !important;
}

.banner-user__nav a:hover {
  color: var(--e-global-color-secondary) !important;
}

.banner-user__nav span {
  color: var(--e-global-color-secondary);
  font-weight: 400;
}

.banner-user__info {
  padding-left: 0;
}

.banner-user__name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family);
}

.banner-user__name span {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

.banner-user__data {
  font-family: var(--e-global-typography-text-font-family);
  font-size: 16px;
  line-height: 24px;
  color: var(--e-global-color-primary);
  margin: 0;
}

.banner-user__underline {
  width: 60px;
  height: 5px;
  background: var(--e-global-color-secondary);
  margin-top: 5px;
  border-radius: 10px;
}

.banner-user__actions {
  display: flex;
  align-items: center;
}

.banner-user__actions a.banner-user__btn {
  font-family: var(--e-global-typography-primary-font-family);
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-e66ac1f);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none !important;
  box-shadow: 4px 4px 10px 0px rgba(254, 166, 113, 0.2);
}

.banner-user__actions a.banner-user__btn:hover {
  background: var(--e-global-color-primary);
}

/* ============================================================
   Formulario de consulta de recibos
   ============================================================ */

.container__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 732px;
  margin: 0 auto;
  gap: 40px;
  background-color: #fff;
  border-radius: 30px;
  padding: 40px;
  text-align: center;
}

.container__text h2 {
  color: var(--e-global-color-secondary);
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
}

.container__text h2 span {
  color: var(--e-global-color-primary);
}

.container__text p {
  color: #848484;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 24px 0 0 0;
  font-family: var(--e-global-typography-4043fff-font-family), Sans-serif;
}

.container__form {
  width: 100%;
  display: flex;
  gap: 32px;
  flex-direction: column;
}

.container__form-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px 20px;
  padding: 0 0;
}

.container__form-group .container__form-field:nth-child(1) {
  max-width: 279px;
}

.container__form-field {
  width: 100%;
  text-align: left;
}

.container__form-field label {
  color: #5d6977;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  padding-left: 13px;
  padding-bottom: 4px;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
}

.container__form-field input[type="text"],
.container__form-field input[type="password"],
.container__form-field select {
  width: -webkit-fill-available;
  padding: 10px 35px 10px 15px;
  border: 1px solid #d9dce3;
  border-radius: 7px;
  font-size: var(--e-global-typography-text-font-size);
  color: #313131;
  font-family: var(--e-global-typography-4043fff-font-family), Sans-serif;
}

.container__form-field input[type="text"]::placeholder {
  color: #313131;
  opacity: 0.6;
}

.container__form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("/wp-content/uploads/flecha.svg") no-repeat right 11px center;
  background-size: 10px;
  font-family: var(--e-global-typography-4043fff-font-family), Sans-serif;
}

.container__form-button button {
  width: 158px;
  background-color: var(--e-global-color-secondary);
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  transition: background-color 0.3s ease;
  position: relative;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
  box-shadow: 4px 4px 10px 0px rgba(254, 166, 113, 0.2);
}

.container__form-button button:hover {
  background-color: var(--e-global-color-primary);
}

.container__form-button button:focus {
  background-color: var(--e-global-color-primary);
}

/* ============================================================
   Checkbox
   ============================================================ */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.1;
  cursor: pointer;
  color: #000000;
  font-family: var(--e-global-typography-4043fff-font-family), Sans-serif;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom,
.checkbox-tyc {
  width: 16px;
  height: 16px;
  border: 2px solid #FE7500;
  border-radius: 4px;
  background-color: white;
  flex-shrink: 0;
  margin-top: 0;
  transition: background-color 0.2s, border-color 0.2s;
  position: relative;
}

.checkbox-label input:checked + .checkbox-custom,
.checkbox-label input:checked + .checkbox-tyc {
  background-color: #FE7500;
}

.checkbox-label input:checked + .checkbox-custom::after,
.checkbox-label input:checked + .checkbox-tyc::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label span {
  font-size: 12px;
  line-height: 16px;
  text-align: left;
}

.privacy-link {
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Validación y errores
   ============================================================ */

.field-error-text {
  display: none;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--e-global-color-1a998dd);
  margin-top: 4px;
  padding: 0 10px;
}

.input-error {
  border: 1px solid #E60003 !important;
}

.validation-toast {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--e-global-color-e66ac1f);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 20px;
  z-index: 10000;
  width: auto;
  max-width: 540px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.validation-toast.show {
  opacity: 1;
  visibility: visible;
}

.validation-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.validation-toast-content {
  flex: 1;
  text-align: left;
}

.validation-toast-title {
  font-weight: 600;
  color: var(--e-global-color-ce979ae);
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 22px;
  font-family: var(--e-global-typography-8fb3082-font-family), Sans-serif;
}

.validation-toast-text {
  color: var(--e-global-color-3dadc46);
  font-size: 14px;
  line-height: 22px;
  font-family: var(--e-global-typography-4043fff-font-family), Sans-serif;
}

.validation-toast-close {
  cursor: pointer;
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  font-size: 10px;
  color: var(--e-global-color-3dadc46);
  padding: 0;
  line-height: 0;
}

.validation-toast-close:hover,
.validation-toast-close:focus {
  background: none;
}

.validation-toast-close svg {
  width: 10px;
  height: auto;
}

.custom-validation-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--e-global-color-e66ac1f);
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 16px;
  z-index: 1000;
  width: max-content;
  max-width: 250px;
  overflow: hidden;
}

.custom-tooltip-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.custom-tooltip-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.custom-tooltip-text {
  font-size: 13px;
  color: #333333;
  font-weight: 400;
  line-height: 1.4;
}

/* ============================================================
   Tabla de facturas
   ============================================================ */

.container__resultadoConsulta {
  max-width: 100%;
  display: none;
}

.result-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0 100px;
}

.errorReceipt {
  display: none;
  color: #dc3545;
  background-color: #fff5f5;
  font-size: var(--e-global-typography-ad30249-font-size);
  font-weight: var(--e-global-typography-ad30249-font-weight);
  line-height: var(--e-global-typography-ad30249-line-height);
  margin-top: 10px;
}

.receipts-title {
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family);
  padding-bottom: 20px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

#table-facturas.receipts-table {
  width: 100%;
  border-collapse: separate;
  table-layout: fixed;
}

#table-facturas.receipts-table tbody tr:hover>td, #table-facturas.receipts-table tbody tr:hover>th {
  background-color: unset;
}

#table-facturas.receipts-table th:first-child {
  width: 80px;
  text-align: center;
  border-top-left-radius: 20px;
}

#table-facturas.receipts-table td:nth-child(4) {
  width: 373px;
}

#table-facturas.receipts-table thead {
  border-radius: 20px 20px 0 0;
}

#table-facturas th,
#table-facturas td {
  border: none;
}

#table-facturas.receipts-table thead th {
  border-bottom: 2px solid var(--e-global-color-secondary);
  border-top: 1px solid #ACACAC;
  background-color: var(--e-global-color-b73aa6c);
  color: var(--e-global-color-secondary);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  font-family: var(--e-global-typography-primary-font-family);
  position: relative;
  padding-left: 24px;
  text-align: left;
}

#table-facturas.receipts-table thead th:first-child {
  border-left: 1px solid #ACACAC;
}

#table-facturas.receipts-table thead th:last-child {
  border-right: 1px solid #ACACAC;
  border-top-right-radius: 20px;
}

#table-facturas.receipts-table th:nth-child(4) {
  text-align: right;
  padding-right: 30px;
}

#table-facturas.receipts-table tr th:first-child,
#table-facturas.receipts-table tr td:first-child {
  padding-left: 32px;
  padding-right: 19px;
  vertical-align: middle;
}

#table-facturas.receipts-table tbody tr td {
  border-bottom: 1px solid var(--e-global-color-secondary);
}

#table-facturas.receipts-table tbody td:first-child {
  border-left: 1px solid #ACACAC;
}

#table-facturas.receipts-table tbody td:last-child {
  border-right: 1px solid #ACACAC;
}

#table-facturas.receipts-table tbody tr:last-child td {
  border-bottom: 1px solid #ACACAC;
}

#table-facturas.receipts-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

#table-facturas.receipts-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

#table-facturas.receipts-table:has(tfoot .total-row:not([style*="display: none"])) tbody tr:last-child td {
  border-bottom: 1px solid var(--e-global-color-secondary);
}

#table-facturas.receipts-table:has(tfoot .total-row:not([style*="display: none"])) tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0;
}

#table-facturas.receipts-table:has(tfoot .total-row:not([style*="display: none"])) tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0;
}

#table-facturas.receipts-table tbody th,
#table-facturas.receipts-table tbody td {
  padding: 10px 24px;
  font-family: var(--e-global-typography-text-font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--e-global-color-3dadc46);
  align-content: center;
}

#table-facturas.receipts-table tbody > tr:nth-child(odd) > td,
#table-facturas.receipts-table tbody > tr:nth-child(odd) > th {
  background-color: transparent;
  vertical-align: middle;
}

#table-facturas.receipts-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

#table-facturas.receipts-table tbody tr:nth-child(even) {
  background-color: #fff;
}

#table-facturas.receipts-table tbody tr:hover {
  background-color: #fae9dd;
}

#table-facturas.receipts-table tfoot td,
#table-facturas.receipts-table td:nth-child(4) {
  text-align: right;
  padding-right: 50px;
}

#table-facturas .checkbox-cell {
  width: 32px;
  text-align: center;
}


.span-text-locked {
  font-size: 12px;
  color: #E60003;
  font-weight: 500;
  display: inline-block;
  margin-top: 0px;
  top: -13px;
  position: relative;
}
  #table-facturas .sort-arrow {
  display: inline-block;
  width: 12px;
  min-width: 12px;
  height: 8px;
  margin-left: 10px;
  background-image: url("/wp-content/uploads/flecha-tabla.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#table-facturas th.sortable-col {
  cursor: pointer;
  user-select: none;
}

#table-facturas th.sortable-col:hover .sort-arrow {
  opacity: 0.7;
}

#table-facturas .sort-arrow--asc {
  transform: rotate(180deg);
  opacity: 1;
}

#table-facturas .sort-arrow--desc {
  transform: rotate(0deg);
  opacity: 1;
}

#table-facturas .total-row td {
  padding: 13.5px;
  border: solid #ACACAC;
  border-width: 0px 1px 1px 1px;
  font-family: var(--e-global-typography-9869513-font-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  background-color: var(--e-global-color-e66ac1f);

}

#table-facturas .total-row td:first-child {
  color: var(--e-global-color-e66ac1f);
  background-color: var(--e-global-color-text);
  border-bottom-left-radius: 20px;
  padding-right: 24px;
  border-right: 0;
}

#table-facturas .total-row td:last-child {
  color: var(--e-global-color-primary);
  border-bottom-right-radius: 20px;
  padding-right: 50px;
  border-left: 0;
}

tr.receipt-tr {
  border-bottom: 1px solid #B3B7C3;
}

#table-facturas.receipts-table tr.row-selected {
  background-color: #fae9dd !important;
}

#table-facturas.receipts-table tr.row-locked,
#table-facturas.receipts-table tr.row-locked:hover,
#table-facturas.receipts-table tr.row-selected.row-locked {
  background-color: #E0E0E0 !important;
  color: #777777 !important;
}

#table-facturas.receipts-table-noresultado {
  border-radius: 20px;
}

#table-facturas.receipts-table-noresultado thead th {
  border-bottom: none;
}

#table-facturas.receipts-table-noresultado th:first-child {
  border-radius: 20px 0 0 20px;
}

#table-facturas.receipts-table-noresultado th:last-child {
  border-radius: 0 20px 20px 0;
}

#selectAllReceipts,
.receipt-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--e-global-color-e66ac1f);
  line-height: 0;
}

#selectAllReceipts:checked,
.receipt-checkbox:checked {
  background-color: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
}

#selectAllReceipts:checked::after,
.receipt-checkbox:checked::after {
  content: "✓";
  color: var(--e-global-color-e66ac1f);
  font-size: 12px;
  background-color: var(--e-global-color-secondary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* ============================================================
   Paginación
   ============================================================ */

.pagination-controls {
  display: flex;
  align-items: center;
  margin: 20px auto 0;
  width: 100%;
  max-width: 999px;
  position: relative;
  justify-content: flex-start;
  padding: 18px 30px;
  gap: 95px;
}

.pagination-controls select {
  padding: 8px 30px 8px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #333;
  width: auto;
  font-family: var(--e-global-typography-fe9d035-font-family);
  font-size: 14px;
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url(/wp-content/uploads/flecha.svg) no-repeat right 1rem center;
  cursor: pointer;
}

.pagination-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 45px;
}

.pagination-numbers button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: var(--e-global-typography-2d906fa-font-family);
  font-weight: 500;
  color: #173748;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-numbers button:hover:not(:disabled) {
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-e66ac1f);
}

.pagination-numbers button:disabled {
  background: none;
  color: var(--e-global-color-primary);
  opacity: 0.7;
  cursor: not-allowed;
}

.pagination-numbers button:focus {
  background: var(--e-global-color-secondary);
}

.pagination-numbers .active {
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-e66ac1f);
  font-weight: bold;
}

.pagination-numbers button img {
  width: 7px;
  height: 11px;
  vertical-align: middle;
}

.pagination-ellipsis {
  padding: 6px 10px;
  color: #173748;
  font-family: var(--e-global-typography-2d906fa-font-family);
  font-size: 14px;
}

.pagination-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-group label {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-2d906fa-font-family);
}

#paginationInfo {
  font-size: 14px;
  color: #333;
}

.pay-button-container {
  text-align: center;
  padding-top: 40px;
}

.pay-button {
  background-color: var(--e-global-color-secondary);
  color: white;
  font-weight: 600;
  font-size: var(--e-global-typography-accent-font-size);
  border: none;
  border-radius: 7px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  min-height: 48px;
  min-width: 188px;
}

.pay-button:hover {
  background-color: var(--e-global-color-primary);
}

/* ============================================================
   Detalles de pago Wompi
   ============================================================ */

.wompi-checkout-details {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 50px 0 100px 0;
}

.wompi-checkout-details h2 {
  font-size: var(--e-global-typography-8aa2421-font-size);
  font-weight: var(--e-global-typography-8aa2421-font-weight);
  font-family: var(--e-global-typography-primary-font-family);
}

#checkout-error:empty {
  display: none;
}

#table-wompi.payment-details-table {
  table-layout: fixed;
}

#table-wompi.payment-details-table thead {
  background-color: var(--e-global-color-b73aa6c);
  color: var(--e-global-color-secondary);
  font-size: 18px;
  line-height: 24px;
  font-family: var(--e-global-typography-primary-font-family);
  text-align: left;
  border-block-start: none;
}

#table-wompi.payment-details-table thead th {
  padding: 15px 30px 15px 24px;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid var(--e-global-color-accent);
}

#table-wompi.payment-details-table thead th:last-child {
  text-align: right;
}

#table-wompi.payment-details-table tbody {
  font-size: 18px;
  line-height: 28px;
  font-family: var(--e-global-typography-text-font-family);
  font-weight: 400;
  text-align: left;
}

#table-wompi.payment-details-table tbody tr {
  border: none;
  border-bottom: 1px solid var(--e-global-color-82b39cb);
}

#table-wompi.payment-details-table tbody tr td {
  background-color: var(--e-global-color-e66ac1f);
  padding: 30px 50px 30px 24px;
  border: none;
}

#table-wompi.payment-details-table tbody tr td:hover {
  background-color: var(--e-global-color-e66ac1f);
}

#table-wompi.payment-details-table tbody tr td:last-child {
  text-align: right;
}

#table-wompi.payment-details-table tfoot {
  font-size: 18px;
  line-height: 28px;
  color: var(--e-global-color-secondary);
  font-weight: 700;
  text-align: right;
  font-family: var(--e-global-typography-text-font-family);
}

#table-wompi.payment-details-table tfoot tr td {
  padding: 13px 24px;
  background-color: var(--e-global-color-b73aa6c);
  border: none;
}

#table-wompi.payment-details-table tfoot tr td:last-child {
  padding-right: 50px;
  background-color: var(--e-global-color-e66ac1f);
  color: var(--e-global-color-3dadc46);
}

.form__botonesAccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-regresar-resultados {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--e-global-color-primary);
  border: 1px solid var(--e-global-color-primary);
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--e-global-typography-accent-font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-regresar-resultados svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.btn-regresar-resultados:hover,
.btn-regresar-resultados:focus {
  background-color: var(--e-global-color-primary);
  color: var(--e-global-color-e66ac1f);
}

.form__botonWompi {
  display: flex;
  justify-content: flex-end;
}

.form__botonWompi button {
  color: #FFFFFF;
  background-color: var(--e-global-color-secondary);
  padding: 10px 25px;
  border-radius: 5px;
  height: auto;
  align-items: center;
  font-family: var(--e-global-typography-accent-font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.form__botonWompi button:hover {
  background-color: var(--e-global-color-primary);
}

.form__botonWompi button:focus {
  background-color: var(--e-global-color-primary);
}

.form__botonWompi button strong {
  font-family: var(--e-global-typography-accent-font-family);
  font-size: var(--e-global-typography-accent-font-size);
  font-weight: var(--e-global-typography-accent-font-weight);
  line-height: var(--e-global-typography-accent-line-height);
}

.form__botonWompi button::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url(/wp-content/uploads/logo-pago-wompi.svg);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-bottom: -3px;
}

/* ============================================================
   Modal / Popup de Privacidad
   ============================================================ */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 35, 51, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-overlay.is-active {
  display: flex;
}

.popup-privacy-content {
  background: var(--e-global-color-e66ac1f);
  padding: 30px 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 406px;
  max-height: 404px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: popupFadeIn 0.3s ease;
}

.popup-privacy-close {
  position: absolute;
  right: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.popup-privacy-close:hover {
  transform: scale(1.1);
  background: none;
}

.popup-privacy-close svg {
  width: 33px;
  height: 33px;
}

.popup-privacy-icon {
  margin-top: 33px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.popup-privacy-content h2 {
  color: #1A344B;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 0 5px 0;
  font-family: var(--e-global-typography-accent-font-family);
}

.popup-privacy-divider {
  width: 60px;
  height: 5px;
  background-color: var(--e-global-color-secondary);
  margin: 0 auto 24px auto;
  border-radius: 2px;
}

.popup-privacy-content p {
  font-family: var(--e-global-typography-text-font-family);
  color: var(--e-global-color-primary);
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}

.popup-privacy-content p.popup-privacy-msg {
  font-size: 12px;
  line-height: 16px;
}

.popup-privacy-content p a {
  text-decoration: underline;
}

.privacy-link-popup {
  color: #FF7A00;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}

.privacy-link-popup:hover {
  color: #e66e00;
}

.container__resultadoConsulta p:empty,
.popup-overlay p:empty {
  display: none !important;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1200px) {
  .banner-user__container,
  .container-resumenWompi {
    padding: 0 50px;
  }

  .result-box {
    padding: 50px;
  }
}

@media (max-width: 768px) {
  .banner-user__container,
  .container-resumenWompi {
    padding: 0;
  }

  .banner-user {
    padding: 30px 16px;
    background-image: url(/wp-content/uploads/banner-mobile-positiva.png);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .banner-user__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .banner-user__info {
    text-align: left;
  }

  .banner-user__name {
    font-size: 16px;
    line-height: 24px;
  }

  .banner-user__name span {
    font-size: 24px;
    line-height: 32px;
  }

  .banner-user__data {
    font-size: 14px;
    line-height: 22px;
  }

  .banner-user__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .container__section {
    padding: 40px 20px;
  }

  .container__form-group {
    flex-direction: column;
  }

  .container__form-group .container__form-field:nth-child(1) {
    max-width: 100%;
  }

  .container__form-button button {
    width: 100%;
  }

  .result-box {
    padding: 50px 16px 100px;
  }

  /*Tabla*/
  #table-facturas.receipts-table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
    border-radius: 10px;
  }

  #table-facturas.receipts-table thead th {
    font-size: 16px;
    line-height: 24px;
  }

  #table-facturas.receipts-table th:first-child {
    border-top-left-radius: 10px;
  }

  #table-facturas.receipts-table th:last-child {
    border-top-right-radius: 10px;
  }

  #table-facturas.receipts-table th,
  #table-facturas.receipts-table td {
    font-size: 13px;
    padding: 10px;
    white-space: normal;
    text-align: left;
  }

  #table-facturas.receipts-table td {
    text-align: center;
  }

  #table-facturas.receipts-table tr {
    border-bottom: 1px solid #ddd;
  }

  #table-facturas.receipts-table tr th:first-child,
  #table-facturas.receipts-table tr td:first-child,
  #table-facturas.receipts-table thead th {
    padding: 3.5px 10px;
    vertical-align: middle;
  }

  #table-facturas.receipts-table tbody th,
  #table-facturas.receipts-table tbody td {
    padding: 19px 10px;
    font-size: 12px;
    line-height: 16px;
  }

  #table-facturas.receipts-table th:last-child {
    text-align: left;
    padding-left: 20px;
    padding-right: 10px;
    display: flex;
    align-items: center;
  }

  #table-facturas.receipts-table td:last-child {
    padding-right: 8px;
  }

  #table-facturas.receipts-table tfoot td,
  #table-facturas.receipts-table td:last-child {
    padding-right: 8px;
  }

  #table-facturas.receipts-table th:first-child {
    width: 36px;
  }

  #table-facturas .total-row td {
    padding: 22px 10px;
  } 

  #table-facturas .total-row td:nth-child(1) {
    border-bottom-left-radius: 10px;
    font-size: 12px;
    line-height: 16px;
  }

  #table-facturas .total-row td:nth-child(2) {
    border-bottom-right-radius: 10px;
    font-size: 12px;
    line-height: 16px;
  }

  .pagination-controls {
    gap: 20px;
    justify-content: space-between;
    padding: 5px;
  }

  .pagination-numbers {
    padding: 0px;
  }

  .pagination-numbers button {
    padding: 6px 12px;
  }

  .pagination-group label {
    font-size: 12px;
    line-height: 16px;
  }

  .pagination-numbers .mobile-hidden {
    display: none;
  }
  
  .span-text-locked {
    top: 0px;
    font-size: 9px;
    text-align: left;
    line-height: 10px;
    width: 100px;
  }
}

@media (max-width: 480px) {
  .container__text h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .container__text p {
    font-size: 16px;
    line-height: 24px;
  }

  .checkbox-label span {
    font-size: 10px;
    line-height: 14px;
  }

  .container__form {
    gap: 24px;
  }

  .container__form-field input[type="text"],
  .container__form-field input[type="password"],
  .container__form-field select {
    padding: 8px 35px 8px 15px;
  }

  .validation-toast {
    gap: 5px;
    top: -30px;
  }

  .validation-toast-title {
    font-size: 14px;
    line-height: 20px;
  }

  .validation-toast-text {
    font-size: 12px;
    line-height: 16px;
  }

  #table-wompi.payment-details-table thead th {
    font-size: 16px;
    line-height: 24px;
    padding: 3.5px 10px;
    vertical-align: middle;
  }

  #table-wompi.payment-details-table tbody {
    font-size: 14px;
    line-height: 22px;
  }

  #table-wompi.payment-details-table tbody tr td {
    padding: 20px 10px;
  }

  #table-wompi.payment-details-table tfoot {
    font-size: 16px;
    line-height: 22px;
  }

  #table-wompi.payment-details-table tfoot .total-row {
    font-size: 14px;
    line-height: 22px;
  }

  #table-wompi.payment-details-table tfoot tr td {
    padding: 15px 10px;
  }

  #table-wompi.payment-details-table tfoot tr td:last-child {
    padding: 15px 8px;
  }

  .wompi-checkout-details {
    padding: 40px 16px;
  }

  .form__botonesAccion {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-regresar-resultados {
    width: 100%;
    text-align: center;
    order: 2;
    justify-content: center;
  }

  .form__botonWompi {
    justify-content: center;
    width: 100%;
  }

  .form__botonWompi button,  .form__botonWompi form, button.pay-button.btn--arrow {
    width: 100%;
  }

  .popup-privacy-content {
    max-width: 350px;
    padding: 25px 25px 40px;
  }

  .popup-privacy-icon img {
    width: 80px;
  }

  .popup-privacy-content h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .popup-privacy-content p {
    font-size: 12px;
    line-height: 16px;
  }

  .wompi-transaction-container {
    padding: 50px 16px 100px;
  }

  .wompi-response-wrapper {
    max-width: 350px;
  }

  .wompi-response-wrapper h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .banner-user__actions a.banner-user__btn {
    font-size: 14px;
    line-height: 20px;
  }
}
