.cuenta-layout {
  background-color: #f2f2f2;
  min-height: 100vh;
  overflow-x: hidden;
  --cuenta-header-h: 56px;
  --cuenta-timer-h: 0px;
}

.cuenta-layout.cuenta-layout--regularizacion {
  --cuenta-timer-h: 46px;
}

.cuenta-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #ffce00;
}

.cuenta-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 0.75rem 0 0.5rem;
}

.cuenta-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.cuenta-menu-btn {
  border: 0;
  background: transparent;
  color: #152663;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.65rem;
}

.cuenta-header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cuenta-header-brand img {
  height: 34px;
  width: auto;
  max-width: 100%;
}

.cuenta-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cuenta-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cuenta-header-close {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #152663;
  padding: 0.25rem;
  margin: 0;
  line-height: 1;
  font-size: 1.5rem;
  width: auto;
  height: auto;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 0;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.cuenta-header-close:hover,
.cuenta-header-close:focus-visible {
  color: #0b1a45;
  background: transparent;
  transform: scale(1.06);
  outline: none;
}

.cuenta-header-close:active {
  transform: scale(0.96);
}

.exit-offer-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(21, 38, 99, 0.55);
  backdrop-filter: blur(4px);
}

.exit-offer-loader[hidden] {
  display: none !important;
}

.exit-offer-loader__card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 48px rgba(21, 38, 99, 0.22);
}

.exit-offer-loader__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border: 3px solid #e8ecf4;
  border-top-color: #152663;
  border-radius: 50%;
  animation: exit-offer-spin 0.85s linear infinite;
}

.exit-offer-loader__text {
  margin: 0;
  font-family: "Gilroy-Medium";
  font-size: 0.95rem;
  line-height: 1.45;
  color: #152663;
}

@keyframes exit-offer-spin {
  to { transform: rotate(360deg); }
}

.cuenta-header-link {
  font-family: "Gilroy-SemiBold";
  font-size: 14px;
  color: #152663;
  text-decoration: none;
}

.cuenta-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Gilroy-Medium";
  font-size: 14px;
  color: #152663;
}

.cuenta-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #152663;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Gilroy-Bold";
  font-size: 15px;
}

.cuenta-regularizacion-bar {
  position: fixed;
  top: var(--cuenta-header-h);
  left: 0;
  right: 0;
  z-index: 1025;
  background: #fffdf6;
  border-bottom: 3px solid #ffce00;
}

.cuenta-regularizacion-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  min-height: var(--cuenta-timer-h);
  max-width: 880px;
  margin: 0 auto;
  padding: 0.45rem 0.85rem;
  text-align: center;
}

.cuenta-regularizacion-bar-msg {
  margin: 0;
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.45rem;
}

.cuenta-regularizacion-bar-msg-title {
  font-family: "Gilroy-SemiBold";
  font-size: 13px;
  color: #152663;
  line-height: 1.3;
}

.cuenta-regularizacion-bar-msg-detail {
  font-family: "Gilroy-Regular";
  font-size: 12px;
  color: #49454f;
  line-height: 1.3;
}

.cuenta-regularizacion-bar-timer {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}

.cuenta-regularizacion-bar-timer-label {
  font-family: "Gilroy-Medium";
  font-size: 12px;
  color: #49454f;
  line-height: 1.3;
}

.cuenta-regularizacion-bar-timer-value {
  font-family: "Gilroy-Bold";
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #152663;
  background: #ffce00;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  line-height: 1.3;
}

.cuenta-regularizacion-bar--urgente .cuenta-regularizacion-bar-timer-label {
  font-family: "Gilroy-SemiBold";
  color: #152663;
}

@media (max-width: 480px) {
  .cuenta-regularizacion-bar-msg-detail {
    flex-basis: 100%;
  }

  .cuenta-regularizacion-bar-inner {
    padding: 0.45rem 0.75rem;
    gap: 0.25rem 0.55rem;
  }
}

.cuenta-shell {
  display: flex;
  padding-top: calc(var(--cuenta-header-h) + var(--cuenta-timer-h));
  min-height: 100vh;
}

.cuenta-sidebar {
  width: 56px;
  flex-shrink: 0;
  background: #f8f8f8;
  border-right: 1px solid #e8e8e8;
  padding: 0.85rem 0;
  position: fixed;
  top: calc(var(--cuenta-header-h) + var(--cuenta-timer-h));
  bottom: 0;
  left: 0;
  z-index: 1020;
}

.cuenta-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cuenta-sidebar-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #152663;
  text-decoration: none;
  font-size: 1.15rem;
}

.cuenta-sidebar-link:hover,
.cuenta-sidebar-link.active {
  background: rgba(255, 206, 0, 0.45);
  color: #152663;
}

.cuenta-main {
  flex: 1;
  margin-left: 56px;
  padding: 1.25rem 1rem 2rem;
  background: #f2f2f2;
  min-width: 0;
}

.cuenta-page-title {
  font-family: "Gilroy-Bold";
  font-size: 1.65rem;
  color: #152663;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cuenta-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 3px solid #ffce00;
  margin-bottom: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cuenta-tabs::-webkit-scrollbar {
  display: none;
}

.cuenta-tab {
  font-family: "Gilroy-SemiBold";
  font-size: 13px;
  color: #152663;
  background: transparent;
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 0.5rem 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.cuenta-tab.active {
  background: #ffce00;
}

.cuenta-alert-tax {
  background: #fff8e1;
  border: 1px solid #ffce00;
  border-left: 5px solid #152663;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.cuenta-alert-tax--urgente {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cuenta-alert-tax-body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cuenta-alert-tax-copy {
  flex: 1;
  min-width: 0;
}

.cuenta-alert-tax-amount {
  font-family: "Gilroy-Medium";
  font-size: 14px;
  color: #152663;
  margin: 0.5rem 0 0;
}

.cuenta-alert-tax-btn {
  align-self: flex-start;
  font-family: "Gilroy-SemiBold";
  font-size: 15px;
  padding: 0.55rem 1.35rem;
  width: 100%;
}

@media (min-width: 576px) {
  .cuenta-alert-tax--urgente {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cuenta-alert-tax-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.cuenta-alert-tax-icon {
  color: #152663;
  font-size: 1.4rem;
  line-height: 1;
}

.cuenta-alert-tax-title {
  font-family: "Gilroy-SemiBold";
  font-size: 16px;
  color: #152663;
  margin-bottom: 0.25rem;
}

.cuenta-alert-tax-text {
  font-family: "Gilroy-Regular";
  font-size: 14px;
  color: #49454f;
  margin: 0;
}

.cuenta-selection-bar {
  font-family: "Gilroy-Medium";
  font-size: 13px;
  color: #49454f;
  margin-bottom: 0.65rem;
}

/* Painel mobile igual ao print */
.cuenta-envios-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(21, 38, 99, 0.07);
  overflow: hidden;
  margin-bottom: 1rem;
}

.cuenta-envios-panel-head,
.cuenta-envios-panel-row {
  display: grid;
  grid-template-columns: 28px 22px 28px minmax(0, 1.4fr) minmax(0, 1fr) 52px;
  align-items: center;
  column-gap: 0.35rem;
  padding: 0.55rem 0.65rem;
}

.cuenta-envios-panel-head {
  font-family: "Gilroy-SemiBold";
  font-size: 11px;
  color: #49454f;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}

.cuenta-envios-panel-row {
  font-family: "Gilroy-Regular";
  font-size: 12px;
  color: #191919;
  border-bottom: 1px solid #f0f0f0;
}

.cuenta-envios-panel-row .col-producto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cuenta-envios-panel-row .col-producto strong {
  font-family: "Gilroy-SemiBold";
  font-size: 12px;
  color: #152663;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cuenta-envios-panel-row .col-producto small {
  font-size: 10px;
  color: #49454f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cuenta-envios-panel-row .col-integracion,
.cuenta-envios-panel-row .col-orden {
  font-family: "Gilroy-Medium";
  font-size: 11px;
  color: #152663;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cuenta-envios-panel-row .col-icon {
  color: #152663;
  font-size: 1rem;
}

.cuenta-envios-panel-row .col-menu {
  color: #49454f;
  font-size: 0.95rem;
}

.cuenta-envios-tax-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fffaf2;
  border-top: 1px solid #fde68a;
}

.cuenta-envios-tax-strip-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cuenta-table-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(21, 38, 99, 0.06);
  overflow: hidden;
}

.cuenta-table {
  width: 100%;
  margin: 0;
}

.cuenta-table thead th {
  font-family: "Gilroy-SemiBold";
  font-size: 13px;
  color: #49454f;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.cuenta-table tbody td {
  font-family: "Gilroy-Regular";
  font-size: 14px;
  color: #191919;
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

.cuenta-table tbody tr:last-child td {
  border-bottom: none;
}

.cuenta-table tbody tr.row-taxada {
  background: #fffaf2;
}

.cuenta-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cuenta-product-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4efef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #152663;
}

.cuenta-product-name {
  font-family: "Gilroy-SemiBold";
  font-size: 14px;
  color: #152663;
}

.cuenta-product-meta {
  font-family: "Gilroy-Regular";
  font-size: 12px;
  color: #49454f;
}

.cuenta-badge-tax {
  display: inline-block;
  font-family: "Gilroy-SemiBold";
  font-size: 10px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.cuenta-amount {
  font-family: "Gilroy-Bold";
  font-size: 13px;
  color: #152663;
}

.cuenta-btn-pagar {
  font-family: "Gilroy-SemiBold";
  font-size: 12px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.cuenta-detail-card {
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(21, 38, 99, 0.07);
  overflow: hidden;
}

.cuenta-detail-header {
  background: #152663;
  color: #fff;
  padding: 0.85rem 1rem;
  font-family: "Gilroy-SemiBold";
  font-size: 14px;
}

.cuenta-detail-body {
  padding: 1rem;
}

.cuenta-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cuenta-detail-item label {
  display: block;
  font-family: "Gilroy-Medium";
  font-size: 11px;
  color: #49454f;
  margin-bottom: 0.15rem;
}

.cuenta-detail-item span {
  font-family: "Gilroy-SemiBold";
  font-size: 13px;
  color: #152663;
  word-break: break-word;
}

.cuenta-detail-sensitive-value.is-masked {
  color: #8a8a8a;
  font-family: "Gilroy-Medium";
  letter-spacing: 0.12em;
  user-select: none;
}

.cuenta-detail-reveal {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ececec;
}

.cuenta-detail-reveal .btn {
  font-size: 13px;
}

.cuenta-detail-footer {
  border-top: 1px solid #ececec;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cuenta-detail-total-label {
  font-family: "Gilroy-Medium";
  font-size: 14px;
  color: #49454f;
}

.cuenta-detail-total-value {
  font-family: "Gilroy-Bold";
  font-size: 1.35rem;
  color: #152663;
}

.cuenta-modal-text {
  font-family: "Gilroy-Regular";
  font-size: 15px;
  color: #49454f;
}

.cuenta-modal-summary {
  background: #fafafa;
  border-radius: 12px;
  padding: 1rem;
}

.cuenta-loading {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 2.5rem;
}

.cuenta-loading-card {
  background: #fafafa;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(21, 38, 99, 0.08);
  max-width: 340px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  width: 100%;
}

.cuenta-loading-card__icon {
  align-items: center;
  background: #152663;
  border-radius: 50%;
  color: #ffce00;
  display: inline-flex;
  font-size: 1.25rem;
  height: 48px;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 48px;
  animation: cuenta-spin-pulse 1.4s ease-in-out infinite;
}

.cuenta-loading-card__text {
  color: #49454f;
  font-family: "Gilroy-Medium";
  font-size: 14px;
  margin: 0 0 1rem;
}

.cuenta-loading-card__progress {
  background: #e4e4e4;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.cuenta-loading-card__progress-bar {
  animation: cuenta-loading-progress 1.8s ease-in-out infinite;
  background: linear-gradient(90deg, #152663 0%, #ffce00 100%);
  border-radius: inherit;
  height: 100%;
  width: 40%;
}

@keyframes cuenta-spin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes cuenta-loading-progress {
  0% { width: 18%; margin-left: 0; }
  50% { width: 62%; margin-left: 19%; }
  100% { width: 18%; margin-left: 82%; }
}

.cuenta-error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-family: "Gilroy-Medium";
  font-size: 14px;
  color: #b91c1c;
}

.cuenta-etiqueta-block {
  margin-bottom: 1rem;
}

.etiqueta-encomenda-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Ajuste top/left/right em --etiqueta-* para alinhar na imagem */
.etiqueta-encomenda-wrap--1 {
  --etiqueta-nome-top: 48.6%;
  --etiqueta-nome-left: 19.8%;
  --etiqueta-nome-right: 10.2%;
  --etiqueta-dni-top: 57.0%;
  --etiqueta-dni-left: 25.7%;
  --etiqueta-dni-right: 46.3%;
}

.cuenta-etiqueta-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.etiqueta-campo {
  position: absolute;
  font-size: 13px;
  font-weight: 400;
  color: #1a3d8f;
  letter-spacing: 0.2px;
  pointer-events: none;
  font-family: "Kalam", "Caveat", cursive;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 0 0.4px rgba(18, 48, 130, 0.35);
}

.etiqueta-campo-destinatario {
  top: var(--etiqueta-nome-top);
  left: var(--etiqueta-nome-left);
  right: var(--etiqueta-nome-right);
  font-size: 14px;
  transform: rotate(-1.1deg);
  transform-origin: left center;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.etiqueta-campo-dni {
  top: var(--etiqueta-dni-top);
  left: var(--etiqueta-dni-left);
  right: var(--etiqueta-dni-right);
  font-size: 13px;
  transform: rotate(0.7deg);
  transform-origin: left center;
  overflow: visible;
  white-space: nowrap;
  word-break: keep-all;
}

@keyframes cuenta-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .cuenta-layout {
    --cuenta-header-h: 60px;
  }

  .cuenta-layout.cuenta-layout--regularizacion {
    --cuenta-timer-h: 48px;
  }

  .cuenta-header-inner {
    min-height: 60px;
    padding: 0 1.25rem;
  }

  .cuenta-header-brand img {
    height: 38px;
  }

  .cuenta-regularizacion-bar-inner {
    padding: 0.45rem 1.25rem;
  }

  .cuenta-regularizacion-bar-msg-title {
    font-size: 14px;
  }

  .cuenta-regularizacion-bar-msg-detail,
  .cuenta-regularizacion-bar-timer-label {
    font-size: 13px;
  }

  .cuenta-regularizacion-bar-timer-value {
    font-size: 15px;
  }

  .cuenta-sidebar {
    width: 72px;
    padding: 1rem 0;
  }

  .cuenta-sidebar-link {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .cuenta-main {
    margin-left: 72px;
    padding: 2rem 2.5rem 3rem;
  }

  .cuenta-page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .cuenta-tab {
    font-size: 15px;
    padding: 0.65rem 1.25rem;
    border-radius: 12px 12px 0 0;
  }

  .cuenta-selection-bar {
    font-size: 14px;
    margin-bottom: 0.75rem;
  }

  .cuenta-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
  }

  .cuenta-detail-item label {
    font-size: 12px;
  }

  .cuenta-detail-item span {
    font-size: 14px;
  }

  .cuenta-detail-header {
    font-size: 16px;
    padding: 1rem 1.25rem;
  }

  .cuenta-detail-body {
    padding: 1.25rem;
  }

  .cuenta-badge-tax {
    font-size: 12px;
    padding: 0.35rem 0.75rem;
  }

  .cuenta-amount {
    font-size: 15px;
  }

  .cuenta-btn-pagar {
    font-size: 14px;
    padding: 0.45rem 1.1rem;
  }
}

@media (max-width: 767px) {
  .cuenta-detail-card {
    margin-top: 0.75rem;
  }

  #modalPagarTasa .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
}

@media (max-width: 360px) {
  .cuenta-envios-panel-head,
  .cuenta-envios-panel-row {
    grid-template-columns: 24px 18px 24px minmax(0, 1.2fr) minmax(0, 0.9fr) 44px;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .cuenta-tab {
    font-size: 12px;
    padding: 0.45rem 0.65rem;
  }
}
