/* =====================================================
   Exclusive My Account
===================================================== */

.exclusive-my-account,
.exclusive-my-account .woocommerce,
.exclusive-my-account .woocommerce * {
  font-family: "Montserrat", sans-serif;
}

.exclusive-my-account {
  --exma-text: #1E1E1E;
  --exma-muted: #5E5E5E;
  --exma-border: #E5E5E5;
  --exma-bg: #F5F5F5;
  --exma-card: #FFFFFF;
  --exma-radius: 6px;
  box-sizing: border-box;
  color: var(--exma-text);
  margin: 32px auto 48px;
  max-width: 1220px;
  padding: 0 24px;
  width: 100%;
}

.exclusive-my-account *,
.exclusive-my-account *::before,
.exclusive-my-account *::after {
  box-sizing: border-box;
}

.exma-account-layout {
  display: grid;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.exma-account-sidebar,
.exma-account-content {
  min-width: 0;
}

/* Override WooCommerce default 30%/70% float layout so the nav fills the
   sidebar and the content fills the main column. Scoped to our wrapper. */
.exclusive-my-account .woocommerce-MyAccount-navigation,
.exclusive-my-account .woocommerce-MyAccount-content {
  width: 100%;
  float: none;
  margin: 0;
}

.exma-account-sidebar > .exma-nav {
  width: 100%;
}

.exma-user-card,
.exma-nav,
.exma-panel-card,
.exma-auth-card {
  background: var(--exma-card);
  border: 1px solid rgba(30, 30, 30, 0.06);
  border-radius: var(--exma-radius);
  box-shadow: 0 18px 50px rgba(30, 30, 30, 0.04);
}

.exma-user-card {
  padding: 22px;
  margin-bottom: 18px;
}

.exma-user-card__title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.exma-user-card__email {
  margin: 0;
  font-size: 13px;
  color: var(--exma-muted);
}

.exma-credit-chip {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--exma-border);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--exma-text);
  text-decoration: none;
  font-size: 14px;
}

.exma-credit-chip__label {
  color: var(--exma-muted);
}

.exma-credit-chip__value {
  font-size: 16px;
  font-weight: 700;
}

.exma-sidebar-toggle {
  display: none !important;
}

.exma-nav {
  padding: 10px;
}

.exma-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exma-nav__item a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--exma-text);
  font-size: 14px;
  font-weight: 500;
}

.exma-nav__item.is-active a,
.exma-nav__item a:hover,
.exma-nav__item a:focus-visible {
  background: #F4F4F4;
}

.exma-nav__item.is-active a {
  font-weight: 700;
}

.exma-nav__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--exma-text);
}

.exma-nav__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
}

.exma-page-header {
  margin-bottom: 22px;
}

.exma-page-kicker,
.exma-panel-card__eyebrow,
.exma-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--exma-muted);
}

.exma-page-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 700;
}

.exma-page-description {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--exma-muted);
  line-height: 1.7;
  font-size: 14px;
}

.exma-panel-card {
  padding: 24px;
}

.exma-panel-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.exma-panel-card__header h2,
.exma-section-heading h2,
.exma-address-card h3,
.exclusive-my-account .woocommerce-MyAccount-content h2,
.exclusive-my-account .woocommerce-MyAccount-content h3,
.exclusive-my-account .exsc-my-account h3,
.exclusive-my-account .woocommerce-order-details__title,
.exclusive-my-account .woocommerce-column__title,
.exclusive-my-account .woocommerce-customer-details h2 {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--exma-text);
}

/* Cabecalhos de painel nao precisam da margem inferior extra (ja ha o header). */
.exma-panel-card__header h2 {
  margin-bottom: 0;
}

/* Cor base dos links da Minha Conta (evita o rosa padrao do WooCommerce),
   sem aplicar sublinhado a links de cards/produtos. */
.exclusive-my-account a:not(.exma-button) {
  color: var(--exma-text);
}

/* Sublinhado apenas em links "de texto": cabecalhos de painel e prosa. */
.exma-panel-card__header a,
.exclusive-my-account .woocommerce-MyAccount-content p > a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.exma-stack-cards {
  display: grid;
  gap: 16px;
}

/* Dashboard: 1 card por linha por padrao; lado a lado (2 colunas) no desktop. */
.exma-stack-cards--dashboard {
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .exma-stack-cards--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.exma-panel-card__cta {
  margin-top: 20px;
  display: flex;
}

.exma-panel-card__cta .exma-button {
  width: 100%;
}

.exma-order-card {
  border: 1px solid var(--exma-border);
  border-radius: 6px;
  padding: 18px;
  background: #FCFCFC;
}

.exma-order-card__head,
.exma-order-card__footer,
.exma-order-summary-grid,
.exma-address-grid,
.exma-pagination,
.exma-form-actions {
  display: flex;
  gap: 14px;
}

.exma-order-card__head,
.exma-order-card__footer,
.exma-order-summary-grid,
.exma-panel-card__header,
.exma-form-actions {
  justify-content: space-between;
}

.exma-order-card__head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.exma-order-card__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--exma-muted);
}

.exma-order-card__number {
  margin: 0;
  font-size: 21px;
}

.exma-order-card__count {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--exma-muted);
}

.exma-status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.exma-status-badge.is-success {
  background: #EAF7EE;
  color: #1F6A35;
}

.exma-status-badge.is-warning {
  background: #FFF4DE;
  color: #8A5A00;
}

.exma-status-badge.is-danger {
  background: #FDECEC;
  color: #9B2C2C;
}

.exma-status-badge.is-neutral {
  background: #F1F1F1;
  color: #4A4A4A;
}

.exma-order-card__body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.exma-order-card__thumb img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: #F5F5F5;
}

.exma-order-card__meta p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.exma-order-card__footer {
  flex-wrap: wrap;
}

/* Painel: cards de pedido com conteudo mais compacto na vertical. */
.exma-order-card--dashboard .exma-order-card__head {
  margin-bottom: 12px;
}

.exma-order-card--dashboard .exma-order-card__body {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

/* Thumb compacto (proporcao do mobile) para os cards lado a lado caberem bem. */
.exma-order-card--dashboard .exma-order-card__thumb img {
  width: 72px;
  height: 90px;
}

.exma-order-card--dashboard .exma-order-card__number {
  font-size: 19px;
}

.exma-order-card--dashboard .exma-order-card__count {
  margin-top: 2px;
}

.exma-order-card--dashboard .exma-order-card__meta p {
  margin-bottom: 4px;
  line-height: 1.4;
  font-size: 13px;
}

/* Botao em largura total no card do painel (proporcao mobile). */
.exma-order-card--dashboard .exma-order-card__footer .exma-button {
  width: 100%;
}

/* "Meus pedidos" no desktop: botao a direita, centralizado com o conteudo. */
@media (min-width: 768px) {
  .exma-order-card--listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head   head"
      "body   footer";
    align-items: center;
    column-gap: 24px;
    row-gap: 16px;
  }

  .exma-order-card--listing .exma-order-card__head {
    grid-area: head;
    margin-bottom: 0;
  }

  .exma-order-card--listing .exma-order-card__body {
    grid-area: body;
    margin-bottom: 0;
  }

  .exma-order-card--listing .exma-order-card__footer {
    grid-area: footer;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
  }
}

.exma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--exma-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: 0.2s ease;
  cursor: pointer;
}

.exma-button--primary {
  background: var(--exma-text) !important;
  border-color: var(--exma-text) !important;
  color: #E5E5E5 !important;
}

.exma-button--primary:hover,
.exma-button--primary:focus-visible {
  background: var(--exma-text) !important;
  color: #E5E5E5 !important;
  opacity: 0.88;
}

.exma-button--ghost {
  background: transparent;
  color: var(--exma-text) !important;
}

.exma-button--ghost:hover,
.exma-button--ghost:focus-visible {
  background: #F1F1F1;
}

.exma-wishlist-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.exclusive-my-account .exma-wishlist-preview .exma-wishlist-preview__item a,
.exclusive-my-account .exma-wishlist-preview .exma-wishlist-preview__item a:hover,
.exclusive-my-account .exma-wishlist-preview .exma-wishlist-preview__item a:focus {
  display: block;
  color: var(--exma-text);
  text-decoration: none;
}

.exclusive-my-account .exma-wishlist-preview__item h3,
.exclusive-my-account .exma-wishlist-preview__price,
.exclusive-my-account .exma-wishlist-preview__price * {
  text-decoration: none;
}

.exma-wishlist-preview__image {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #F7F7F7;
}

.exma-wishlist-preview__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nome do produto e card, nao titulo de secao: precisa vencer a regra
   generica de headings do conteudo (.woocommerce-MyAccount-content h3). */
.exclusive-my-account .exma-wishlist-preview .exma-wishlist-preview__item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exma-wishlist-preview__price .eca-product-price,
.exma-wishlist-preview__price .epr-price {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

/* O wrapper .epr-price e flex-column por padrao (empilha tudo). Dentro da
   Minha Conta usamos bloco para o valor + "no Pix" ficarem na mesma linha. */
.exclusive-my-account .exma-wishlist-preview__price .epr-price {
  display: block;
}

.exclusive-my-account .exma-wishlist-preview__price .epr-pix-price,
.exclusive-my-account .exma-wishlist-preview__price .exclusive-pix-price {
  display: inline;
  font-size: 13px;
  font-weight: 700;
}

/* "no Pix" na mesma linha do valor principal. */
.exclusive-my-account .exma-wishlist-preview__price .epr-pix-label {
  display: inline;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--exma-muted);
}

/* Parcelamento logo abaixo, mais proximo do valor. */
.exclusive-my-account .exma-wishlist-preview__price .epr-installment-line,
.exclusive-my-account .exma-wishlist-preview__price .exclusive-installment-line {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.exma-wishlist-preview--expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.exma-empty-state {
  border: 1px dashed var(--exma-border);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
}

.exma-empty-state p {
  margin: 0 0 16px;
  color: var(--exma-muted);
  line-height: 1.7;
}

.exma-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.exma-form-grid .form-row,
.exma-form-grid .woocommerce-form-row {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.exma-form-grid .form-row label,
.exma-form-grid .woocommerce-form-row label,
.exma-address-card__content,
.exma-order-notes li {
  color: var(--exma-text);
}

.exma-form-grid input,
.exma-form-grid select,
.exma-form-grid textarea,
.exclusive-my-account .woocommerce-Input,
.exclusive-my-account input.input-text,
.exclusive-my-account select,
.exclusive-my-account textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #D8D8D8;
  border-radius: 6px;
  padding: 0 18px;
  background: #FFFFFF;
  color: var(--exma-text);
  box-shadow: none;
}

.exclusive-my-account textarea {
  min-height: 140px;
  border-radius: 6px;
  padding: 16px 18px;
}

.exma-form-row--full,
.exma-form-grid fieldset,
.exma-password-section {
  grid-column: 1 / -1;
}

.exma-section-heading {
  margin: 32px 0 18px;
}

.exma-account-form-card .exma-password-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--exma-border);
}

.exma-account-form-card .exma-form-actions {
  margin-top: 30px;
}

.exclusive-my-account .exma-form-grid label,
.exclusive-my-account .exma-account-form-card label {
  display: block;
  margin: 0 0 3px;
  line-height: 1.25;
}

.exclusive-my-account .exma-form-grid input,
.exclusive-my-account .exma-form-grid select,
.exclusive-my-account .exma-form-grid textarea {
  margin-top: 0;
}

.exma-section-heading p {
  margin: 8px 0 0;
  color: var(--exma-muted);
}

.exma-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exma-address-card {
  border: 1px solid var(--exma-border);
  border-radius: 6px;
  padding: 18px;
  background: #FCFCFC;
}

.exma-address-card__content {
  margin: 14px 0 18px;
  color: var(--exma-muted);
  line-height: 1.8;
}

.exma-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.exma-order-summary-grid strong {
  display: block;
  font-size: 18px;
}

.exma-order-timeline {
  list-style: none;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--exma-border);
  display: block;
}

/* Item: ponto absoluto a esquerda + conteudo em fluxo de bloco normal com
   recuo. Sem grid/flex aqui, entao a coluna de texto nunca colapsa. */
.exma-order-timeline__item {
  position: relative;
  display: block;
  padding: 0 0 22px 30px;
}

.exma-order-timeline__item:last-child {
  padding-bottom: 0;
}

/* Conector vertical entre os pontos. */
.exma-order-timeline__item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  bottom: -13px;
  width: 2px;
  background: var(--exma-border);
}

.exma-order-timeline__item:last-child::before {
  display: none;
}

.exma-order-timeline__item.is-done::before {
  background: var(--exma-text);
}

.exma-order-timeline__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #D8D8D8;
}

.exma-order-timeline__item.is-done .exma-order-timeline__dot,
.exma-order-timeline__item.is-current .exma-order-timeline__dot {
  background: var(--exma-text);
  border-color: var(--exma-text);
}

.exma-order-timeline__item.is-upcoming strong {
  color: var(--exma-muted);
}

.exma-order-timeline__item strong,
.exma-order-notes strong {
  display: block;
  margin-bottom: 4px;
}

.exma-order-timeline__item strong {
  margin-bottom: 2px;
  white-space: nowrap;
}

.exma-order-timeline__item span,
.exma-order-notes div,
.exma-order-notes p,
.exclusive-my-account .woocommerce-MyAccount-content p,
.exclusive-my-account .woocommerce-MyAccount-content li,
.exclusive-my-account .woocommerce-MyAccount-content label,
.exclusive-my-account .woocommerce-MyAccount-content address {
  color: var(--exma-muted);
  line-height: 1.75;
}

.exma-order-details-card .woocommerce-table,
.exma-order-details-card .shop_table,
.exclusive-my-account .woocommerce-address-fields,
.exclusive-my-account .woocommerce-Addresses,
.exclusive-my-account .woocommerce-customer-details,
.exclusive-my-account .woocommerce-order-details,
.exclusive-my-account .addresses {
  width: 100%;
}

.exma-order-details-card .shop_table,
.exclusive-my-account .woocommerce-table,
.exclusive-my-account .woocommerce-address-fields,
.exclusive-my-account .woocommerce-Addresses address,
.exclusive-my-account .woocommerce-columns--addresses .woocommerce-column,
.exclusive-my-account .woocommerce-orders-table,
.exclusive-my-account form.woocommerce-address-fields,
.exclusive-my-account .woocommerce-form-login,
.exma-auth-card {
  border: 1px solid var(--exma-border);
  border-radius: 6px;
  padding: 22px;
  background: #FCFCFC;
}

.exclusive-my-account .woocommerce table.shop_table th,
.exclusive-my-account .woocommerce table.shop_table td {
  border-color: rgba(30, 30, 30, 0.08);
  padding: 16px 12px;
}

.exclusive-my-account .woocommerce table.shop_table th {
  color: var(--exma-text);
}

/* =========================================================
   #4 Detalhes do pedido: remover o "card dentro do card".
   A tabela de itens e os blocos de endereco ficam planos
   dentro do .exma-order-details-card (apenas o card externo).
========================================================= */
.exclusive-my-account .exma-order-details-card .woocommerce-table,
.exclusive-my-account .exma-order-details-card table.shop_table,
.exclusive-my-account .exma-order-details-card .woocommerce-columns--addresses .woocommerce-column,
.exclusive-my-account .exma-order-details-card .woocommerce-customer-details address {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin: 0;
}

.exclusive-my-account .exma-order-details-card table.shop_table th,
.exclusive-my-account .exma-order-details-card table.shop_table td {
  border: 0;
  padding: 8px 0;
}

.exclusive-my-account .exma-order-details-card table.shop_table tfoot tr:last-child th,
.exclusive-my-account .exma-order-details-card table.shop_table tfoot tr:last-child td {
  border-top: 1px solid var(--exma-border);
  padding-top: 12px;
}

.exclusive-my-account .exma-order-details-card .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 8px;
}

/* O .col2-set tem pseudo-elementos de clearfix que, no grid, ocupariam
   celulas e empurrariam o 2o endereco para baixo. Removemos no nosso escopo. */
.exclusive-my-account .exma-order-details-card .woocommerce-columns--addresses::before,
.exclusive-my-account .exma-order-details-card .woocommerce-columns--addresses::after {
  display: none;
}

.exclusive-my-account .exma-order-details-card .woocommerce-column {
  width: auto;
  float: none;
}

/* =========================================================
   Detalhes do pagamento (Pix / Asaas): o codigo nunca pode
   estourar o card e o botao de copiar deve aparecer inteiro.
   Sobrescreve o CSS do plugin (white-space:nowrap; overflow-x:
   scroll; height:40px) que prendia o payload em uma linha.
========================================================= */
.exclusive-my-account .exma-order-details-card .woocommerce-order-details__asaas-pix-payload {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: visible;
  height: auto;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--exma-muted);
}

.exclusive-my-account .exma-order-details-card .asaas-pix-copy-to-clipboard,
.exclusive-my-account .exma-order-details-card .asaas-pix-copy-to-clipboard > div {
  max-width: 100%;
  max-height: none;
  overflow: visible;
}

.exclusive-my-account .exma-order-details-card .js-pix-qr-code {
  max-width: 100%;
  height: auto;
}

.exclusive-my-account .exma-order-details-card .woocommerce-order-details__asaas-pix-button {
  display: inline-block;
  margin-top: 4px;
  white-space: normal;
}

/* Padding inferior extra para o botao de copiar nunca colar na borda. */
.exclusive-my-account .exma-order-details-card .order_details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exclusive-my-account .exma-order-details-card .asaas-pix-copy-to-clipboard {
  padding-bottom: 8px;
}

/* #3 Botao de voltar (oculto no desktop, exibido no mobile). */
.exma-back-link {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--exma-text);
  text-decoration: none;
}

.exma-back-link__icon {
  font-size: 16px;
  line-height: 1;
}

/* #6 Accordion do historico de credito (visivel apenas no mobile). */
.exma-credit-acc {
  display: none;
}

.exma-credit-acc__item {
  border: 1px solid var(--exma-border);
  border-radius: 6px;
  background: #FFFFFF;
  margin-bottom: 10px;
  overflow: hidden;
}

.exma-credit-acc__summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 42px 14px 16px;
  font-weight: 600;
  color: var(--exma-text);
}

.exma-credit-acc__summary::-webkit-details-marker {
  display: none;
}

.exma-credit-acc__summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--exma-muted);
  border-bottom: 2px solid var(--exma-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.exma-credit-acc__item[open] .exma-credit-acc__summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.exma-credit-acc__body {
  padding: 4px 16px 12px;
  border-top: 1px solid var(--exma-border);
}

.exma-credit-acc__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(30, 30, 30, 0.06);
}

.exma-credit-acc__row:last-child {
  border-bottom: 0;
}

.exma-credit-acc__key {
  color: var(--exma-muted);
}

.exma-credit-acc__value {
  color: var(--exma-text);
  text-align: right;
}

.exclusive-my-account .woocommerce a.button,
.exclusive-my-account .woocommerce button.button,
.exma-auth-card .button,
.exma-auth-card button {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid var(--exma-text);
  background: var(--exma-text);
  color: #E5E5E5;
  font-weight: 700;
  padding: 0 20px;
}

.exclusive-my-account .woocommerce a.button:hover,
.exclusive-my-account .woocommerce button.button:hover,
.exma-auth-card .button:hover,
.exma-auth-card button:hover {
  background: var(--exma-text);
  color: #E5E5E5;
  opacity: 0.88;
}

.exma-auth-shell {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 20px;
}

.exma-auth-card {
  background: #FFFFFF;
}

.exma-auth-card .u-column1,
.exma-auth-card .u-column2 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.exma-auth-card .u-column2 {
  margin-top: 28px !important;
}

.exma-account-content .exsc-my-account {
  display: grid;
  gap: 24px;
}

.exma-account-content .exsc-balance-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.exma-account-content .exsc-balance-card {
  border: 1px solid var(--exma-border);
  border-radius: 6px;
  padding: 18px;
  background: #FCFCFC;
}

.exma-account-content .exsc-balance-label {
  display: block;
  margin-bottom: 8px;
  color: var(--exma-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exma-account-content .exsc-balance-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--exma-text);
}

/* Creditos/Cashback: tabela de historico com identidade da Minha Conta.
   !important escopado a .exsc-credit-history para vencer o grid/zebra cru do
   tema/WooCommerce (nao afeta nenhuma outra tabela do site). */
.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history {
  margin: 0;
  width: 100%;
  background: #FFFFFF !important;
  border: 1px solid #1E1E1E !important;
  border-radius: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0;
}

.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history thead th {
  background: #FFFFFF !important;
  color: #1E1E1E !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(30, 30, 30, 0.35) !important;
}

.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history tbody td {
  padding: 12px 14px;
  border: 1px solid rgba(30, 30, 30, 0.35) !important;
  color: #1E1E1E;
  font-size: 14px;
  vertical-align: middle;
}

/* Sem zebra: todas as linhas em branco. */
.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history tbody tr,
.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history tbody tr:nth-child(2n),
.exclusive-my-account .woocommerce table.shop_table.exsc-credit-history tbody tr:nth-child(2n) td {
  background: #FFFFFF !important;
}

.exclusive-my-account .exsc-credit-history td a {
  color: var(--exma-text);
  text-decoration: none;
  font-weight: 600;
}

.exclusive-my-account .exsc-credit-history td a:hover {
  text-decoration: underline;
}

/* Valores negativos/debito em vermelho discreto (classe aplicada via JS). */
.exclusive-my-account .exsc-credit-history td.exma-credit-value-negative,
.exclusive-my-account .exsc-credit-history td.exma-credit-value-negative *,
.exclusive-my-account .exma-credit-acc__value.exma-credit-value-negative,
.exclusive-my-account .exma-credit-acc__value.exma-credit-value-negative * {
  color: #B42318 !important;
}

/* #5 Remover a coluna "Data" (1a coluna) apenas visualmente. */
.exclusive-my-account .exsc-credit-history thead th:first-child,
.exclusive-my-account .exsc-credit-history tbody td:first-child {
  display: none;
}

/* #6 Balancear colunas: Descricao(2) menor, Valor(4) nunca quebra.
   Os indices contam a coluna Data oculta, que continua no DOM. */
.exclusive-my-account .exsc-credit-history th:nth-child(2),
.exclusive-my-account .exsc-credit-history td:nth-child(2) {
  width: 26%;
}

.exclusive-my-account .exsc-credit-history th:nth-child(4),
.exclusive-my-account .exsc-credit-history td:nth-child(4) {
  white-space: nowrap;
  width: 1%;
}

.exma-account-content .exsc-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.exma-account-content .exsc-expiration-notice,
.exma-account-content .exsc-no-credits {
  margin: 0;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .exma-address-grid,
  .exma-order-summary-grid {
    grid-template-columns: 1fr;
  }

  .exma-wishlist-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .exma-account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .exclusive-my-account {
    padding: 0 14px;
    margin-top: 20px;
  }

  .exma-account-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Enderecos empilham no mobile. */
  .exclusive-my-account .exma-order-details-card .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }

  /* #5 Lista de desejos: linhas mais proximas no mobile. */
  .exma-wishlist-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
  }

  .exma-sidebar-toggle {
    display: none !important;
  }

  /* #3 Menu das abas vai para o fim da pagina no mobile; card do usuario no
     topo, conteudo no meio, menu por ultimo. */
  .exma-account-layout {
    display: flex;
    flex-direction: column;
  }

  .exma-account-sidebar {
    display: contents;
  }

  .exma-user-card {
    order: 1;
  }

  .exma-account-content {
    order: 2;
  }

  .exma-nav {
    display: block;
    order: 3;
  }

  .exma-user-card {
    padding: 18px;
  }

  .exma-user-card__title {
    font-size: 20px;
  }

  .exma-page-title {
    font-size: 24px;
  }

  .exma-order-timeline {
    margin-top: 18px;
    padding-top: 18px;
  }

  .exma-panel-card,
  .exma-order-card,
  .exma-address-card,
  .exclusive-my-account .woocommerce-table,
  .exclusive-my-account form.woocommerce-address-fields,
  .exclusive-my-account .woocommerce-Addresses address,
  .exma-auth-card {
    padding: 18px;
    border-radius: 6px;
  }

  .exma-panel-card__header,
  .exma-order-card__footer,
  .exma-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .exma-form-grid,
  .exma-stack-cards--dashboard {
    grid-template-columns: 1fr;
  }

  /* Card de pedido no formato da referencia: thumb a esquerda, infos a
     direita e botao em largura total abaixo. */
  .exma-order-card__body {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .exma-order-card__thumb img {
    width: 72px;
    height: 90px;
    object-fit: cover;
  }

  .exma-order-card__footer .exma-button {
    width: 100%;
  }

  .exma-order-summary-grid {
    grid-template-columns: 1fr;
  }

  .exclusive-my-account .woocommerce table.shop_table,
  .exclusive-my-account .woocommerce-orders-table,
  .exclusive-my-account .shop_table_responsive,
  .exclusive-my-account .shop_table_responsive tbody,
  .exclusive-my-account .shop_table_responsive tr,
  .exclusive-my-account .shop_table_responsive td,
  .exclusive-my-account .shop_table_responsive th {
    display: block;
    width: 100%;
  }

  .exclusive-my-account .woocommerce table.shop_table thead {
    display: none;
  }

  .exclusive-my-account .woocommerce table.shop_table td::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 6px;
    color: var(--exma-text);
    font-weight: 700;
  }

  /* #3 Botao de voltar para o painel (apenas mobile, em telas internas). */
  .exma-back-link {
    display: inline-flex;
  }

  /* #6 Cards de saldo nao podem cortar os numeros no mobile. */
  .exma-account-content .exsc-balance-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .exma-account-content .exsc-balance-value {
    font-size: 20px;
    white-space: nowrap;
  }

  /* #6 No mobile, troca a tabela de historico pelo accordion. */
  .exclusive-my-account .exsc-credit-history {
    display: none;
  }

  .exclusive-my-account .exma-credit-acc {
    display: block;
  }
}

/* =====================================================
   Login / Cadastro (Minha Conta deslogada) — .exma-auth
   Escopo restrito: todas as regras abaixo vivem sob .exma-auth,
   presente apenas no template form-login.php (usuario deslogado).
   Nao afeta header, footer, Minha Conta logada nem outras telas.
===================================================== */
.exma-auth {
  --exma-dark: #1E1E1E;
  --exma-light: #E5E5E5;
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 32px auto 56px;
  padding: 0 20px;
  font-family: "Montserrat", sans-serif;
  color: var(--exma-text);
}

.exma-auth *,
.exma-auth *::before,
.exma-auth *::after {
  box-sizing: border-box;
}

/* ---- Bloco superior "Acesso rapido" (Nextend Social Login) ----
   Mesma largura da coluna de acesso (440px) para alinhar com o formulario. */
.exma-auth-social {
  max-width: 440px;
  margin: 0 auto 28px;
  text-align: center;
}

.exma-auth-social__title {
  margin: 0 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--exma-text);
}

.exma-auth-social__subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--exma-muted);
}

/* Botao do Nextend (estilo fullwidth): centralizado, largura = campos, com
   margem vertical enxuta. Escopo restrito ao bloco social desta tela; nao
   altera cor/forma/hover nativos nem afeta o botao em outras paginas. */
.exma-auth-social__buttons {
  margin: 0;
}

.exma-auth-social__buttons .nsl-container {
  margin: 0;
}

.exma-auth-social__buttons .nsl-container .nsl-container-buttons {
  padding: 0;
}

.exma-auth-social__buttons .nsl-container-block-fullwidth .nsl-container-buttons a {
  margin: 0;
}

.exma-auth-social__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  color: var(--exma-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exma-auth-social__divider::before,
.exma-auth-social__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--exma-border);
}

/* ---- Acordeons "Entrar" / "Cadastrar" ----
   Ambos fechados por padrao (estado inicial vem do PHP; JS alterna).
   Mesma largura do bloco social (440px) em todas as telas. */
.exma-auth-acc {
  max-width: 440px;
  margin: 0 auto;
}

.exma-auth-acc__item {
  border: 0;
  margin: 0 0 12px;
}

/* Cabecalho: botao secundario (outline) centralizado, mesma largura dos botoes
   sociais acima. Propriedades explicitas para neutralizar estilos globais de
   <button> (tema/Elementor). Sem seta: o proprio botao indica a acao. */
.exma-auth .exma-auth-acc__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--exma-dark) !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  color: var(--exma-text) !important;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.exma-auth .exma-auth-acc__header:hover {
  background: var(--exma-dark) !important;
  color: var(--exma-light) !important;
}

.exma-auth-acc__question {
  font-weight: 400;
}

.exma-auth-acc__action {
  font-weight: 700;
}

/* Rede de seguranca: esconde qualquer seta residual (chevron saiu do DOM). */
.exma-auth-acc__chevron,
.exma-auth .exma-auth-acc__header::after {
  display: none !important;
}

.exma-auth-acc__panel {
  padding: 18px 2px 12px;
}

/* Garante o fechamento mesmo se algum CSS externo definir display no painel. */
.exma-auth-acc__panel[hidden] {
  display: none !important;
}

/* ---- Campos ---- */
.exma-auth .woocommerce-form-row,
.exma-auth .form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
}

.exma-auth label {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--exma-text);
}

.exma-auth .input-text,
.exma-auth input[type="text"],
.exma-auth input[type="email"],
.exma-auth input[type="password"],
.exma-auth input[type="tel"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--exma-dark) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--exma-text);
  transition: border-color 0.18s ease;
}

.exma-auth .input-text:focus,
.exma-auth input[type="text"]:focus,
.exma-auth input[type="email"]:focus,
.exma-auth input[type="password"]:focus,
.exma-auth input[type="tel"]:focus {
  border-color: var(--exma-dark) !important;
  outline: none;
}

/* Toggle de visibilidade de senha (fluid-checkout/woo) dentro do campo. */
.exma-auth .woocommerce-form-row {
  position: relative;
}

.exma-auth .show-password-input,
.exma-auth .wfc-password-toggle,
.exma-auth button.password-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

/* Checkbox "Lembre-me" e linhas de checkbox: layout horizontal confortavel. */
.exma-auth .woocommerce-form-login__rememberme,
.exma-auth label.woocommerce-form__label-for-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--exma-muted);
}

.exma-auth input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

/* ---- Botoes principais ---- */
.exma-auth button[type="submit"],
.exma-auth .woocommerce-form-login__submit,
.exma-auth .woocommerce-form-register__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 20px;
  border: 1px solid var(--exma-dark) !important;
  border-radius: 2px !important;
  background: var(--exma-dark) !important;
  color: var(--exma-light) !important;
  box-shadow: none !important;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.exma-auth button[type="submit"]:hover,
.exma-auth .woocommerce-form-login__submit:hover,
.exma-auth .woocommerce-form-register__submit:hover {
  background: #333 !important;
  opacity: 1;
}

/* ---- Links (sem rosa/magenta padrao do Woo) ---- */
.exma-auth .woocommerce-form a,
.exma-auth .lost_password a,
.exma-auth .woocommerce-privacy-policy-text a,
.exma-auth .woocommerce-terms-and-conditions-wrapper a {
  color: var(--exma-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exma-auth .woocommerce-form a:hover,
.exma-auth .lost_password a:hover,
.exma-auth .woocommerce-privacy-policy-text a:hover,
.exma-auth .woocommerce-terms-and-conditions-wrapper a:hover {
  color: var(--exma-muted);
}

.exma-auth .lost_password {
  margin-top: 4px;
}

.exma-auth .lost_password a {
  font-size: 13px;
}

/* Texto auxiliar de cadastro (politica de privacidade, requisitos de senha). */
.exma-auth .woocommerce-privacy-policy-text,
.exma-auth .woocommerce-privacy-policy-text p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--exma-muted);
}

/* ---- Resets do WooCommerce dentro do escopo .exma-auth ----
   Remove o "card" nativo (border/padding/radius) dos formularios, a
   largura maxima/centralizacao do form de login e floats residuais,
   para que o grid .exma-auth controle o layout de forma limpa. */
.exma-auth form.login,
.exma-auth form.register,
.exma-auth form.woocommerce-form-login,
.exma-auth form.woocommerce-form-register {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}

.exma-auth .woocommerce-form-login,
.exma-auth .woocommerce-form-register {
  max-width: none !important;
  margin: 0 !important;
}

/* Botao de login do tema usa padding/font-size grandes; alinha ao padrao. */
.exma-auth button.woocommerce-form-login__submit,
.exma-auth button.woocommerce-form-register__submit {
  padding: 12px 20px !important;
  font-size: 14px !important;
}

@media (max-width: 782px) {
  .exma-auth {
    margin: 18px auto 44px;
  }
}
