/*
 * ACE Tennis — Customer Account Buttons v3
 * Botões de ação refinados para a área do cliente.
 * Foco: aparência profissional, discreta e consistente.
 */

/* ============================================================
   Separadores antigos do Magento
   ============================================================ */

html body[class*="customer-"] .column.main .delimiter,
html body[class*="customer-"] .column.main .separator,
html body[class*="sales-"] .column.main .delimiter,
html body[class*="sales-"] .column.main .separator,
html body[class*="wishlist-"] .column.main .delimiter,
html body[class*="wishlist-"] .column.main .separator,
html body[class*="newsletter-"] .column.main .delimiter,
html body[class*="newsletter-"] .column.main .separator,
html body[class*="review-"] .column.main .delimiter,
html body[class*="review-"] .column.main .separator,
html body[class*="downloadable-"] .column.main .delimiter,
html body[class*="downloadable-"] .column.main .separator {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Esconde texto solto tipo "|" dentro de áreas de ação */
html body[class*="customer-"] .column.main .box-actions,
html body[class*="customer-"] .column.main .actions,
html body[class*="customer-"] .column.main td.actions,
html body[class*="sales-"] .column.main .box-actions,
html body[class*="sales-"] .column.main .actions,
html body[class*="sales-"] .column.main td.actions {
    font-size: 0 !important;
}

/* ============================================================
   Base dos botões: ações comuns em contorno
   ============================================================ */

html body[class*="customer-"] .column.main .box-actions a.action,
html body[class*="customer-"] .column.main .block-title a.action,
html body[class*="customer-"] .column.main td.actions a.action,
html body[class*="customer-"] .column.main .actions a.action,
html body[class*="sales-"] .column.main .box-actions a.action,
html body[class*="sales-"] .column.main .block-title a.action,
html body[class*="sales-"] .column.main td.actions a.action,
html body[class*="sales-"] .column.main .actions a.action,
html body[class*="wishlist-"] .column.main .box-actions a.action,
html body[class*="wishlist-"] .column.main .block-title a.action,
html body[class*="wishlist-"] .column.main td.actions a.action,
html body[class*="newsletter-"] .column.main .box-actions a.action,
html body[class*="newsletter-"] .column.main .block-title a.action,
html body[class*="downloadable-"] .column.main .box-actions a.action,
html body[class*="review-"] .column.main .box-actions a.action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
    margin: 4px 7px 4px 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #1d1d1d !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease !important;
}

html body[class*="customer-"] .column.main .box-actions a.action:hover,
html body[class*="customer-"] .column.main .block-title a.action:hover,
html body[class*="customer-"] .column.main td.actions a.action:hover,
html body[class*="customer-"] .column.main .actions a.action:hover,
html body[class*="sales-"] .column.main .box-actions a.action:hover,
html body[class*="sales-"] .column.main .block-title a.action:hover,
html body[class*="sales-"] .column.main td.actions a.action:hover,
html body[class*="sales-"] .column.main .actions a.action:hover,
html body[class*="wishlist-"] .column.main .box-actions a.action:hover,
html body[class*="wishlist-"] .column.main .block-title a.action:hover,
html body[class*="wishlist-"] .column.main td.actions a.action:hover,
html body[class*="newsletter-"] .column.main .box-actions a.action:hover,
html body[class*="newsletter-"] .column.main .block-title a.action:hover,
html body[class*="downloadable-"] .column.main .box-actions a.action:hover,
html body[class*="review-"] .column.main .box-actions a.action:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.10) !important;
}

/* ============================================================
   Blocos do dashboard: Editar / Alterar senha / Editar endereço
   ============================================================ */

html body.customer-account-index .column.main .box-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

html body.customer-account-index .column.main .box-actions a.action {
    margin: 0 !important;
}

/* ============================================================
   Títulos com ação: Gerenciar endereços / Ver todos
   ============================================================ */

html body.customer-account-index .column.main .block-title,
html body.customer-address-index .column.main .block-title,
html body.sales-order-history .column.main .block-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

html body.customer-account-index .column.main .block-title strong,
html body.customer-address-index .column.main .block-title strong,
html body.sales-order-history .column.main .block-title strong {
    margin-right: 2px !important;
}

html body.customer-account-index .column.main .block-title a.action,
html body.customer-address-index .column.main .block-title a.action,
html body.sales-order-history .column.main .block-title a.action {
    min-height: 28px !important;
    padding: 6px 11px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #f7f7f7 !important;
    border-color: #dedede !important;
    color: #111 !important;
    font-size: 11px !important;
    box-shadow: none !important;
}

html body.customer-account-index .column.main .block-title a.action:hover,
html body.customer-address-index .column.main .block-title a.action:hover,
html body.sales-order-history .column.main .block-title a.action:hover {
    background: #97f000 !important;
    border-color: #97f000 !important;
    color: #111 !important;
}

/* ============================================================
   Tabelas de pedidos: ações alinhadas e discretas
   ============================================================ */

html body.customer-account-index .column.main td.actions,
html body.sales-order-history .column.main td.actions,
html body.sales-order-view .column.main td.actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

html body.customer-account-index .column.main td.actions a.action,
html body.sales-order-history .column.main td.actions a.action,
html body.sales-order-view .column.main td.actions a.action {
    min-height: 30px !important;
    padding: 7px 11px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 11px !important;
}

/* Ver pedido: principal, preto */
html body.customer-account-index .column.main td.actions a.view,
html body.sales-order-history .column.main td.actions a.view,
html body.sales-order-view .column.main td.actions a.view {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

html body.customer-account-index .column.main td.actions a.view:hover,
html body.sales-order-history .column.main td.actions a.view:hover,
html body.sales-order-view .column.main td.actions a.view:hover {
    background: #97f000 !important;
    border-color: #97f000 !important;
    color: #111 !important;
}

/* Comprar novamente: secundário com contorno neon, não preenchido */
html body.customer-account-index .column.main td.actions a.order,
html body.sales-order-history .column.main td.actions a.order,
html body.sales-order-view .column.main td.actions a.order,
html body.customer-account-index .column.main td.actions a[href*="reorder"],
html body.sales-order-history .column.main td.actions a[href*="reorder"],
html body.sales-order-view .column.main td.actions a[href*="reorder"] {
    background: #fff !important;
    border-color: #97f000 !important;
    color: #111 !important;
}

html body.customer-account-index .column.main td.actions a.order:hover,
html body.sales-order-history .column.main td.actions a.order:hover,
html body.sales-order-view .column.main td.actions a.order:hover,
html body.customer-account-index .column.main td.actions a[href*="reorder"]:hover,
html body.sales-order-history .column.main td.actions a[href*="reorder"]:hover,
html body.sales-order-view .column.main td.actions a[href*="reorder"]:hover {
    background: #97f000 !important;
    border-color: #97f000 !important;
    color: #111 !important;
    box-shadow: 0 6px 14px rgba(151,240,0,.16) !important;
}

/* ============================================================
   Links comuns NÃO são botões
   ============================================================ */

html body[class*="customer-"] .column.main a[href^="tel:"],
html body[class*="customer-"] .column.main a[href^="mailto:"],
html body[class*="customer-"] .column.main .box-content a:not(.action),
html body[class*="sales-"] .column.main a[href^="tel:"],
html body[class*="sales-"] .column.main a[href^="mailto:"],
html body[class*="sales-"] .column.main .box-content a:not(.action) {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #006bb4 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    white-space: normal !important;
}

/* Sidebar continua como menu simples */
html body[class*="customer-"] .sidebar a,
html body[class*="sales-"] .sidebar a,
html body[class*="wishlist-"] .sidebar a,
html body[class*="review-"] .sidebar a,
html body[class*="downloadable-"] .sidebar a,
html body[class*="newsletter-"] .sidebar a {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    white-space: normal !important;
}

/* Sidebar: botão nativo de adicionar ao carrinho segue azul */
html body[class*="customer-"] .sidebar .block-reorder .actions-toolbar .action.primary,
html body[class*="sales-"] .sidebar .block-reorder .actions-toolbar .action.primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    background: #1676bd !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* Responsivo */
@media (max-width: 768px) {
    html body[class*="customer-"] .column.main .block-title,
    html body[class*="sales-"] .column.main .block-title {
        gap: 8px !important;
    }

    html body[class*="customer-"] .column.main td.actions,
    html body[class*="sales-"] .column.main td.actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    html body[class*="customer-"] .column.main td.actions a.action,
    html body[class*="sales-"] .column.main td.actions a.action {
        min-height: 30px !important;
        padding: 7px 10px !important;
    }
}

/* ============================================================
   S23E — remove separador visual "|" gerado por pseudo-elementos
   Mantém o visual dos botões, remove só o pipe.
   ============================================================ */

html body[class*="customer-"] .column.main .box-actions a.action:before,
html body[class*="customer-"] .column.main .box-actions a.action:after,
html body[class*="customer-"] .column.main .actions a.action:before,
html body[class*="customer-"] .column.main .actions a.action:after,
html body[class*="customer-"] .column.main td.actions a.action:before,
html body[class*="customer-"] .column.main td.actions a.action:after,
html body[class*="sales-"] .column.main .box-actions a.action:before,
html body[class*="sales-"] .column.main .box-actions a.action:after,
html body[class*="sales-"] .column.main .actions a.action:before,
html body[class*="sales-"] .column.main .actions a.action:after,
html body[class*="sales-"] .column.main td.actions a.action:before,
html body[class*="sales-"] .column.main td.actions a.action:after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Alguns temas aplicam o separador no span interno do link */
html body[class*="customer-"] .column.main .box-actions a.action span:before,
html body[class*="customer-"] .column.main .box-actions a.action span:after,
html body[class*="customer-"] .column.main .actions a.action span:before,
html body[class*="customer-"] .column.main .actions a.action span:after,
html body[class*="customer-"] .column.main td.actions a.action span:before,
html body[class*="customer-"] .column.main td.actions a.action span:after,
html body[class*="sales-"] .column.main .box-actions a.action span:before,
html body[class*="sales-"] .column.main .box-actions a.action span:after,
html body[class*="sales-"] .column.main .actions a.action span:before,
html body[class*="sales-"] .column.main .actions a.action span:after,
html body[class*="sales-"] .column.main td.actions a.action span:before,
html body[class*="sales-"] .column.main td.actions a.action span:after {
    content: none !important;
    display: none !important;
}

/* Força áreas de ação a não renderizarem texto solto com separador */
html body[class*="customer-"] .column.main .box-actions,
html body[class*="customer-"] .column.main .actions,
html body[class*="customer-"] .column.main td.actions,
html body[class*="sales-"] .column.main .box-actions,
html body[class*="sales-"] .column.main .actions,
html body[class*="sales-"] .column.main td.actions {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}



/* ACE S23 CUSTOMER ACTION BUTTONS V2 START
 * Refinamento profissional:
 * - Menos "pill" exagerado.
 * - Acao principal em azul escuro Ace.
 * - Acoes secundarias claras e consistentes.
 * - Tabela de pedidos sem ficar pesada.
 * - Menu lateral protegido.
 */

html body.account {
    --ace-account-primary: #0b3f83;
    --ace-account-primary-dark: #082f63;
    --ace-account-ink: #111827;
    --ace-account-muted: #5b6574;
    --ace-account-line: #d7dde7;
    --ace-account-soft: #f7f9fc;
    --ace-account-neon: #d5ff2f;
}

/* Grupos de acoes */
html body.account .column.main .box-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px !important;
    margin-top: 13px !important;
}

html body.account .column.main .actions-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.account .column.main .actions-toolbar .primary,
html body.account .column.main .actions-toolbar .secondary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
}

/* Base profissional para links de acao da area do cliente */
html body.account .column.main .box-actions a,
html body.account .column.main .actions-toolbar a.action,
html body.account .column.main .block-title a.action,
html body.account .column.main .block-dashboard-orders a.action,
html body.account .column.main .orders-recent a.action,
html body.account .column.main .table-wrapper a.action,
html body.account .column.main .table-order-items a.action,
html body.account .column.main .order-actions-toolbar a.action,
html body.account .column.main a.action.edit,
html body.account .column.main a.action.change-password,
html body.account .column.main a.action.view,
html body.account .column.main a.action.order,
html body.account .column.main a.action.reorder,
html body.account .column.main a.action.print,
html body.account .column.main a.action.add,
html body.account .column.main a.action.tocart,
html body.account .column.main button.action.tocart {
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    border-radius: 11px !important;
    border: 1px solid var(--ace-account-line) !important;
    background: #ffffff !important;
    color: var(--ace-account-ink) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, color .14s ease !important;
}

/* Hover mais premium, sem exagero */
html body.account .column.main .box-actions a:hover,
html body.account .column.main .actions-toolbar a.action:hover,
html body.account .column.main .block-title a.action:hover,
html body.account .column.main .block-dashboard-orders a.action:hover,
html body.account .column.main .orders-recent a.action:hover,
html body.account .column.main .table-wrapper a.action:hover,
html body.account .column.main .table-order-items a.action:hover,
html body.account .column.main .order-actions-toolbar a.action:hover,
html body.account .column.main a.action.edit:hover,
html body.account .column.main a.action.change-password:hover,
html body.account .column.main a.action.view:hover,
html body.account .column.main a.action.order:hover,
html body.account .column.main a.action.reorder:hover,
html body.account .column.main a.action.print:hover,
html body.account .column.main a.action.add:hover,
html body.account .column.main a.action.tocart:hover,
html body.account .column.main button.action.tocart:hover {
    transform: translateY(-1px) !important;
    background: var(--ace-account-soft) !important;
    border-color: #aeb9c8 !important;
    color: #06121f !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
}

/* Acoes principais: Ver pedido, Comprar novamente, Adicionar ao carrinho */
html body.account .column.main .block-dashboard-orders .action.view,
html body.account .column.main .orders-recent .action.view,
html body.account .column.main .table-wrapper .action.view,
html body.account .column.main .table-wrapper .action.order,
html body.account .column.main .table-wrapper .action.reorder,
html body.account .column.main .table-order-items .action.order,
html body.account .column.main .table-order-items .action.reorder,
html body.account .column.main a.action.tocart,
html body.account .column.main button.action.tocart {
    background: linear-gradient(135deg, var(--ace-account-primary) 0%, var(--ace-account-primary-dark) 100%) !important;
    border-color: rgba(11, 63, 131, .42) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(11, 63, 131, .18) !important;
}

html body.account .column.main .block-dashboard-orders .action.view:hover,
html body.account .column.main .orders-recent .action.view:hover,
html body.account .column.main .table-wrapper .action.view:hover,
html body.account .column.main .table-wrapper .action.order:hover,
html body.account .column.main .table-wrapper .action.reorder:hover,
html body.account .column.main .table-order-items .action.order:hover,
html body.account .column.main .table-order-items .action.reorder:hover,
html body.account .column.main a.action.tocart:hover,
html body.account .column.main button.action.tocart:hover {
    background: linear-gradient(135deg, #082f63 0%, #061d3f 100%) !important;
    border-color: rgba(213, 255, 47, .72) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(11, 63, 131, .24) !important;
}

/* Acoes compactas ao lado de titulos: Ver todos, Gerenciar enderecos */
html body.account .column.main .block-title a.action,
html body.account .column.main .box-title a.action,
html body.account .column.main .block-dashboard-addresses .block-title a,
html body.account .column.main .block-dashboard-orders .block-title a {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--ace-account-ink) !important;
    border-color: var(--ace-account-line) !important;
    font-size: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
}

/* Editar / Alterar senha / Editar endereco como secundarios elegantes */
html body.account .column.main .box-actions a.action.edit,
html body.account .column.main .box-actions a.action.change-password,
html body.account .column.main a.action.edit,
html body.account .column.main a.action.change-password,
html body.account .column.main a.action.print {
    background: #ffffff !important;
    color: var(--ace-account-ink) !important;
    border-color: #cfd6e2 !important;
}

/* Tabelas de pedidos: preservar comportamento de tabela e alinhar a direita */
html body.account .column.main .table-wrapper td.actions,
html body.account .column.main .table-order-items td.actions {
    display: table-cell !important;
    text-align: right !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

html body.account .column.main .table-wrapper td.actions a,
html body.account .column.main .table-order-items td.actions a {
    margin: 4px 0 4px 8px !important;
}

html body.account .column.main .table-wrapper td.actions a + a,
html body.account .column.main .table-order-items td.actions a + a {
    margin-left: 8px !important;
}

html body.account .column.main .table-wrapper td.actions a::before,
html body.account .column.main .table-wrapper td.actions a::after,
html body.account .column.main .table-order-items td.actions a::before,
html body.account .column.main .table-order-items td.actions a::after {
    display: none !important;
    content: none !important;
}

/* Foco acessivel */
html body.account .column.main .box-actions a:focus,
html body.account .column.main .actions-toolbar a.action:focus,
html body.account .column.main .table-wrapper a.action:focus,
html body.account .column.main .table-order-items a.action:focus,
html body.account .column.main .order-actions-toolbar a.action:focus,
html body.account .column.main button.action.tocart:focus {
    outline: 3px solid rgba(213, 255, 47, .32) !important;
    outline-offset: 2px !important;
}

/* Protecao explicita: menu lateral da conta continua como navegacao, nao como botao. */
html body.account .sidebar .block-collapsible-nav a,
html body.account .sidebar-main .block-collapsible-nav a,
html body.account .block-collapsible-nav .item a,
html body.account .account-nav a {
    display: block !important;
    min-height: initial !important;
    padding: inherit !important;
    border-radius: inherit !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    html body.account .column.main .box-actions,
    html body.account .column.main .actions-toolbar {
        gap: 8px !important;
    }

    html body.account .column.main .box-actions a,
    html body.account .column.main .actions-toolbar a.action,
    html body.account .column.main .block-title a.action,
    html body.account .column.main .table-wrapper a.action,
    html body.account .column.main .table-order-items a.action,
    html body.account .column.main .order-actions-toolbar a.action,
    html body.account .column.main button.action.tocart {
        min-height: 38px !important;
        padding: 0 13px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }

    html body.account .column.main .table-wrapper td.actions,
    html body.account .column.main .table-order-items td.actions {
        text-align: left !important;
        white-space: normal !important;
    }

    html body.account .column.main .table-wrapper td.actions a,
    html body.account .column.main .table-order-items td.actions a {
        margin: 5px 6px 5px 0 !important;
    }
}

/* ACE S23 CUSTOMER ACTION BUTTONS V2 END */

/* ACE S23F ORDER ACTION ALIGNMENT START
 * Ajuste final:
 * - Centraliza verticalmente os botoes "Ver pedido" dentro das linhas.
 * - Mantem tabela como tabela.
 * - Nao afeta menu lateral, PDP, categoria, checkout, carrinho ou Asaas.
 */

html body.account .column.main .block-dashboard-orders table tbody tr,
html body.account .column.main .orders-recent table tbody tr,
html body.account .column.main .table-wrapper.orders-recent tbody tr,
html body.account .column.main table.table-order-items tbody tr {
    height: 61px !important;
}

html body.account .column.main .block-dashboard-orders table tbody td,
html body.account .column.main .orders-recent table tbody td,
html body.account .column.main .table-wrapper.orders-recent tbody td,
html body.account .column.main table.table-order-items tbody td {
    vertical-align: middle !important;
}

html body.account .column.main .block-dashboard-orders td.actions,
html body.account .column.main .orders-recent td.actions,
html body.account .column.main .table-wrapper.orders-recent td.actions,
html body.account .column.main table.table-order-items td.actions {
    height: 61px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
    text-align: right !important;
    line-height: 1 !important;
}

html body.account .column.main .block-dashboard-orders td.actions a.action,
html body.account .column.main .orders-recent td.actions a.action,
html body.account .column.main .table-wrapper.orders-recent td.actions a.action,
html body.account .column.main table.table-order-items td.actions a.action {
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    top: 0 !important;
}


/* ACE S23G REAL CENTER ORDER ACTIONS START
 * Centraliza de verdade os botoes "Ver pedido" na altura da linha.
 * Usa posicionamento absoluto apenas na celula de acoes da area customer.
 */

html body.account .column.main .block-dashboard-orders td.actions,
html body.account .column.main .orders-recent td.actions,
html body.account .column.main .table-wrapper.orders-recent td.actions,
html body.account .column.main table.table-order-items td.actions {
    position: relative !important;
    min-width: 118px !important;
    width: 118px !important;
    height: 61px !important;
    padding: 0 10px !important;
    vertical-align: middle !important;
    text-align: right !important;
}

html body.account .column.main .block-dashboard-orders td.actions a.action,
html body.account .column.main .orders-recent td.actions a.action,
html body.account .column.main .table-wrapper.orders-recent td.actions a.action,
html body.account .column.main table.table-order-items td.actions a.action {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

html body.account .column.main .block-dashboard-orders td.actions a.action:hover,
html body.account .column.main .orders-recent td.actions a.action:hover,
html body.account .column.main .table-wrapper.orders-recent td.actions a.action:hover,
html body.account .column.main table.table-order-items td.actions a.action:hover {
    transform: translateY(-50%) !important;
}

@media (max-width: 767px) {
    html body.account .column.main .block-dashboard-orders td.actions,
    html body.account .column.main .orders-recent td.actions,
    html body.account .column.main .table-wrapper.orders-recent td.actions,
    html body.account .column.main table.table-order-items td.actions {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 10px 0 !important;
        text-align: left !important;
    }

    html body.account .column.main .block-dashboard-orders td.actions a.action,
    html body.account .column.main .orders-recent td.actions a.action,
    html body.account .column.main .table-wrapper.orders-recent td.actions a.action,
    html body.account .column.main table.table-order-items td.actions a.action {
        position: static !important;
        transform: none !important;
        margin: 5px 6px 5px 0 !important;
    }
}


/* ACE S23H REAL MAGENTO COL ACTIONS START
 * Magento normalmente usa td.col.actions, nao apenas td.actions.
 * Este bloco centraliza o botao na coluna real de acoes da tabela.
 */

html body.account .column.main table.table tbody tr {
    height: 61px !important;
}

html body.account .column.main table.table tbody td {
    vertical-align: middle !important;
}

html body.account .column.main table.table tbody td.col.actions,
html body.account .column.main table.table tbody td[class~="actions"],
html body.account .column.main table.table tbody td:last-child {
    position: relative !important;
    width: 124px !important;
    min-width: 124px !important;
    height: 61px !important;
    padding-top: 0 !important;
    padding-right: 10px !important;
    padding-bottom: 0 !important;
    padding-left: 10px !important;
    vertical-align: middle !important;
    text-align: right !important;
    line-height: 1 !important;
}

html body.account .column.main table.table tbody td.col.actions a.action,
html body.account .column.main table.table tbody td[class~="actions"] a.action,
html body.account .column.main table.table tbody td:last-child a.action {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

html body.account .column.main table.table tbody td.col.actions a.action:hover,
html body.account .column.main table.table tbody td[class~="actions"] a.action:hover,
html body.account .column.main table.table tbody td:last-child a.action:hover {
    transform: translateY(-50%) !important;
}

/* Caso o Magento esteja renderizando a coluna como .col.actions sem td.actions */
html body.account.customer-account-index .column.main .block-dashboard-orders .table tbody td.col.actions,
html body.account.customer-account-index .column.main .orders-recent .table tbody td.col.actions,
html body.account.sales-order-history .column.main .table-wrapper .table tbody td.col.actions {
    position: relative !important;
    height: 61px !important;
    vertical-align: middle !important;
}

html body.account.customer-account-index .column.main .block-dashboard-orders .table tbody td.col.actions a,
html body.account.customer-account-index .column.main .orders-recent .table tbody td.col.actions a,
html body.account.sales-order-history .column.main .table-wrapper .table tbody td.col.actions a {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

/* Mobile: volta ao fluxo normal. */
@media (max-width: 767px) {
    html body.account .column.main table.table tbody tr {
        height: auto !important;
    }

    html body.account .column.main table.table tbody td.col.actions,
    html body.account .column.main table.table tbody td[class~="actions"],
    html body.account .column.main table.table tbody td:last-child {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 10px 0 !important;
        text-align: left !important;
    }

    html body.account .column.main table.table tbody td.col.actions a.action,
    html body.account .column.main table.table tbody td[class~="actions"] a.action,
    html body.account .column.main table.table tbody td:last-child a.action {
        position: static !important;
        transform: none !important;
        margin: 5px 6px 5px 0 !important;
    }
}


/* ACE S23I HAS CELL CENTER START
 * Centraliza o botão "Ver pedido" mirando a célula que contém o link.
 * Resolve casos em que o Magento não usa td.actions/td.col.actions.
 * Escopo: dashboard "Minha conta" e histórico de pedidos.
 */

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view),
html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view),
html body.sales-order-history .column.main table tbody td:has(a.action.view) {
    position: relative !important;
    width: 128px !important;
    min-width: 128px !important;
    height: 61px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view) a.action.view,
html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view) a.action.view,
html body.sales-order-history .column.main table tbody td:has(a.action.view) a.action.view {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view) a.action.view:hover,
html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view) a.action.view:hover,
html body.sales-order-history .column.main table tbody td:has(a.action.view) a.action.view:hover {
    transform: translate(-50%, -50%) !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view)::before,
html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view)::before,
html body.sales-order-history .column.main table tbody td:has(a.action.view)::before {
    display: none !important;
    content: none !important;
}

/* Mobile volta ao fluxo normal */
@media (max-width: 767px) {
    html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view),
    html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view),
    html body.sales-order-history .column.main table tbody td:has(a.action.view) {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 10px 0 !important;
        text-align: left !important;
    }

    html body.customer-account-index .column.main .block-dashboard-orders table tbody td:has(a.action.view) a.action.view,
    html body.customer-account-index .column.main .orders-recent table tbody td:has(a.action.view) a.action.view,
    html body.sales-order-history .column.main table tbody td:has(a.action.view) a.action.view {
        position: static !important;
        transform: none !important;
        margin: 5px 6px 5px 0 !important;
    }
}


/* ACE S23J ORDER ROW TEXT CENTER START
 * Ajuste fino:
 * - O botao "Ver pedido" ja esta correto.
 * - Centraliza verticalmente os textos das linhas de pedidos recentes/historico.
 * - Mantem cabecalho da tabela normal.
 */

html body.customer-account-index .column.main .block-dashboard-orders table tbody tr,
html body.customer-account-index .column.main .orders-recent table tbody tr,
html body.sales-order-history .column.main table tbody tr {
    height: 61px !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:not(:has(a.action.view)),
html body.customer-account-index .column.main .orders-recent table tbody td:not(:has(a.action.view)),
html body.sales-order-history .column.main table tbody td:not(:has(a.action.view)) {
    height: 61px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
    line-height: 61px !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table tbody td:not(:has(a.action.view)) *,
html body.customer-account-index .column.main .orders-recent table tbody td:not(:has(a.action.view)) *,
html body.sales-order-history .column.main table tbody td:not(:has(a.action.view)) * {
    line-height: normal !important;
    vertical-align: middle !important;
}

/* Mobile volta ao fluxo natural para evitar linhas espremidas. */
@media (max-width: 767px) {
    html body.customer-account-index .column.main .block-dashboard-orders table tbody tr,
    html body.customer-account-index .column.main .orders-recent table tbody tr,
    html body.sales-order-history .column.main table tbody tr {
        height: auto !important;
    }

    html body.customer-account-index .column.main .block-dashboard-orders table tbody td:not(:has(a.action.view)),
    html body.customer-account-index .column.main .orders-recent table tbody td:not(:has(a.action.view)),
    html body.sales-order-history .column.main table tbody td:not(:has(a.action.view)) {
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        line-height: normal !important;
    }
}


/* ACE S23K DIRECT ORDER TEXT ALIGN START
 * Ajuste direto sem :has():
 * - Move levemente para baixo as celulas de texto das tabelas da conta.
 * - Mantem a ultima coluna de acoes/botao separada.
 * - Escopo limitado a paginas account/customer/sales dentro da coluna principal.
 */

html body.account .column.main table tbody tr {
    height: 61px !important;
}

html body.account .column.main table tbody td {
    vertical-align: middle !important;
}

html body.account .column.main table tbody td:not(:last-child) {
    height: 61px !important;
    padding-top: 18px !important;
    padding-bottom: 8px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

html body.account .column.main table tbody td:last-child {
    vertical-align: middle !important;
}

/* Ajuste especifico para pedidos recentes no dashboard */
html body.customer-account-index .column.main .block-dashboard-orders table tbody td:not(:last-child),
html body.customer-account-index .column.main .orders-recent table tbody td:not(:last-child) {
    padding-top: 18px !important;
    padding-bottom: 8px !important;
}

/* Ajuste especifico para historico de pedidos */
html body.sales-order-history .column.main table tbody td:not(:last-child) {
    padding-top: 18px !important;
    padding-bottom: 8px !important;
}

/* Mobile volta para espacamento natural */
@media (max-width: 767px) {
    html body.account .column.main table tbody tr {
        height: auto !important;
    }

    html body.account .column.main table tbody td:not(:last-child),
    html body.customer-account-index .column.main .block-dashboard-orders table tbody td:not(:last-child),
    html body.customer-account-index .column.main .orders-recent table tbody td:not(:last-child),
    html body.sales-order-history .column.main table tbody td:not(:last-child) {
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        line-height: normal !important;
    }
}


/* ACE S23L FINAL ORDER BUTTON OPTICAL ALIGN START
 * Ajuste visual final:
 * - O CSS das celulas de texto nao esta surtindo efeito na estrutura real da tabela.
 * - Mantemos a tabela intacta e alinhamos visualmente o botao com a linha de texto.
 * - Escopo limitado a pedidos recentes/historico dentro da area da conta.
 */

html body.customer-account-index .column.main .block-dashboard-orders a.action.view,
html body.customer-account-index .column.main .orders-recent a.action.view,
html body.sales-order-history .column.main a.action.view {
    position: relative !important;
    top: -5px !important;
}

html body.customer-account-index .column.main .block-dashboard-orders a.action.view:hover,
html body.customer-account-index .column.main .orders-recent a.action.view:hover,
html body.sales-order-history .column.main a.action.view:hover {
    transform: translateY(-1px) !important;
}

/* Se algum bloco anterior colocou transform absoluto, anulamos apenas para o botao da tabela. */
html body.customer-account-index .column.main .block-dashboard-orders table a.action.view,
html body.customer-account-index .column.main .orders-recent table a.action.view,
html body.sales-order-history .column.main table a.action.view {
    position: relative !important;
    top: -5px !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

html body.customer-account-index .column.main .block-dashboard-orders table a.action.view:hover,
html body.customer-account-index .column.main .orders-recent table a.action.view:hover,
html body.sales-order-history .column.main table a.action.view:hover {
    transform: translateY(-1px) !important;
}

/* Mobile: sem deslocamento manual. */
@media (max-width: 767px) {
    html body.customer-account-index .column.main .block-dashboard-orders a.action.view,
    html body.customer-account-index .column.main .orders-recent a.action.view,
    html body.sales-order-history .column.main a.action.view,
    html body.customer-account-index .column.main .block-dashboard-orders table a.action.view,
    html body.customer-account-index .column.main .orders-recent table a.action.view,
    html body.sales-order-history .column.main table a.action.view {
        top: 0 !important;
    }
}
