.wcae-user-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 315px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.wcae-user-dashboard-not-logged {
    padding: 20px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #333;
}

.wcae-user-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.wcae-user-sidebar__group {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wcae-user-sidebar__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #d8d8d8;
    color: #2a2a2a;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.wcae-user-sidebar__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    line-height: 1;
}

.wcae-user-sidebar__title-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.wcae-user-sidebar__item,
.wcae-user-sidebar__button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #2a2a2a;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all .2s ease;
}

.wcae-user-sidebar__group .wcae-user-sidebar__item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
}

.wcae-user-sidebar__group .wcae-user-sidebar__item:last-child {
    border-bottom: 0;
}

.wcae-user-sidebar__item:hover,
.wcae-user-sidebar__button:hover {
    color: #f3a000;
    background: #fafafa;
}

.wcae-user-sidebar__item.is-active,
.wcae-user-sidebar__button.is-active {
    font-weight: 600;
}

.wcae-user-sidebar__item-icon {
    width: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wcae-user-sidebar__item-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.wcae-user-sidebar__logout {
    color: #ff4f4f;
}

.wcae-user-panel {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.wcae-user-panel__section {
    margin-bottom: 22px;
}

.wcae-user-panel__title {
    margin: 0 0 20px;
    font-size: 56px;
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111;
}

.wcae-user-panel__text {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.7;
    color: #636363;
}

.wcae-user-panel__info-box {
    padding: 20px 18px;
    border: 1px solid #c2e6f3;
    border-radius: 8px;
    background: #d8f2fb;
    margin-bottom: 24px;
}

.wcae-user-panel__info-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.wcae-user-panel__embedded .woocommerce-Message,
.wcae-user-panel__embedded .woocommerce-error,
.wcae-user-panel__embedded .woocommerce-info,
.wcae-user-panel__embedded .woocommerce-message {
    margin-bottom: 20px;
    border-radius: 8px;
}

.wcae-user-form__grid {
    display: grid;
    gap: 18px;
}

.wcae-user-form__grid--2 {
    grid-template-columns: 1fr 1fr;
}

.wcae-user-form__grid--address-line {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
}

.wcae-user-form__number-col {
    min-width: 0;
}

.wcae-user-panel__embedded .form-row,
.wcae-user-panel__embedded .woocommerce-form-row {
    margin-bottom: 20px !important;
}

.wcae-user-panel__embedded label {
    display: block;
    margin-bottom: 8px;
    color: #202020;
    font-size: 14px;
    font-weight: 600;
}

.wcae-user-panel__embedded input,
.wcae-user-panel__embedded select,
.wcae-user-panel__embedded textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d3d7dd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    box-shadow: none;
}

.wcae-user-panel__embedded textarea {
    min-height: 120px;
    padding-top: 12px;
}

.wcae-user-panel__embedded input:focus,
.wcae-user-panel__embedded select:focus,
.wcae-user-panel__embedded textarea:focus {
    outline: none;
    box-shadow: none;
}

.wcae-user-panel__embedded input::placeholder,
.wcae-user-panel__embedded textarea::placeholder {
    color: #8a8f98;
}

.wcae-user-form__fieldset {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 2px solid #e2e2e2;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.wcae-user-form__fieldset legend {
    display: block;
    padding: 0;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.wcae-password-field {
    position: relative;
}

.wcae-password-field input {
    padding-right: 52px !important;
}

.wcae-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent !important;
    color: #666 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

.wcae-password-toggle:hover {
    background: transparent !important;
    color: #111 !important;
    opacity: 1;
}

.wcae-user-form__actions {
    margin: 24px 0 0;
}

.wcae-btn,
.wcae-user-panel__embedded button,
.wcae-user-panel__embedded .button,
.wcae-user-panel__embedded input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #7b7b7b;
    color: #fff;
    box-shadow: none;
    transition: all .2s ease;
    cursor: pointer;
    text-decoration: none;
}

.wcae-btn:hover,
.wcae-user-panel__embedded button:hover,
.wcae-user-panel__embedded .button:hover,
.wcae-user-panel__embedded input[type="submit"]:hover {
    opacity: .92;
    color: #fff;
}

.wcae-btn.is-disabled,
.wcae-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================
TABELA DE PEDIDOS
========================= */

.wcae-user-orders__table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.wcae-user-orders__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.wcae-user-orders__table th,
.wcae-user-orders__table td {
    padding: 16px 14px;
    border: 1px solid #ececec;
    text-align: left;
    vertical-align: middle;
}

.wcae-user-orders__table th {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.wcae-user-orders__table td {
    font-size: 15px;
    color: #4d4d4d;
}

.wcae-user-orders__table td:last-child {
    min-width: 140px;
}

/* =========================
AÇÕES PEDIDO - SOMENTE ÍCONES
========================= */

.wcae-order-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.wcae-order-action--icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wcae-order-action--icon:hover {
    background: transparent !important;
    color: #000 !important;
    opacity: .75;
}

.wcae-order-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
}

.wcae-order-action__icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.wcae-order-action--icon.is-disabled,
.wcae-order-action--icon:disabled {
    opacity: .35;
    pointer-events: none;
    cursor: not-allowed;
}

/* tooltip */
.wcae-order-action--icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 30;
}

.wcae-order-action--icon:hover::after {
    opacity: 1;
}

/* =========================
MODAL PEDIDO
========================= */

.wcae-order-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    overflow: hidden !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.wcae-order-modal.is-open {
    display: block !important;
    pointer-events: auto;
}

.wcae-order-modal__overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 2147483646 !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.wcae-order-modal__dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147483647 !important;
    width: min(760px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    overflow: auto !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate(-50%, -50%) translate3d(0, 0, 0) !important;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.wcae-order-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2147483647 !important;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
}

.wcae-order-modal__header {
    padding: 26px 24px 0;
}

.wcae-order-modal__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

.wcae-order-modal__content {
    padding: 20px 24px 24px;
}

.wcae-order-modal__footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 24px 24px;
}

.wcae-order-modal__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin-bottom: 24px;
}

.wcae-order-modal__meta > div {
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
    line-height: 1.6;
}

.wcae-order-modal__block {
    margin-bottom: 22px;
}

.wcae-order-modal__block h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.wcae-order-modal__products {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wcae-order-product {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}

.wcae-order-product__thumb {
    width: 70px;
    min-width: 70px;
}

.wcae-order-product__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wcae-order-product__content {
    min-width: 0;
}

.wcae-order-product__name {
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.wcae-order-product__meta {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.wcae-order-modal__address,
.wcae-order-modal__tracking {
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
    line-height: 1.7;
    word-break: break-word;
}

html.wcae-order-modal-open,
body.wcae-order-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.wcae-order-modal-open {
    position: relative !important;
    touch-action: none;
}

/* reforço contra header sticky do tema / safari */
header,
.site-header,
.elementor-location-header,
.elementor-sticky--active,
.sticky-header,
[class*="header"],
[class*="sticky"] {
    transform: none;
}

@media (max-width: 1200px) {
    .wcae-user-panel__title {
        font-size: 46px;
    }
}

/* =========================================================
RESPONSIVO - MENU EM CIMA E CONTEÚDO EMBAIXO
========================================================= */

@media (max-width: 1024px) {
    .wcae-user-dashboard {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .wcae-user-sidebar {
        order: 1;
        width: 100%;
    }

    .wcae-user-panel {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .wcae-user-sidebar__group,
    .wcae-user-sidebar__button {
        width: 100%;
    }

    .wcae-user-panel__title {
        font-size: 36px;
    }

    .wcae-order-modal__dialog {
        width: min(700px, calc(100vw - 24px)) !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .wcae-user-dashboard {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .wcae-user-sidebar {
        order: 1;
        width: 100%;
    }

    .wcae-user-panel {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .wcae-user-dashboard {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .wcae-user-sidebar {
        order: 1;
        width: 100%;
        gap: 16px;
    }

    .wcae-user-panel {
        order: 2;
        width: 100%;
    }

    .wcae-user-sidebar__group,
    .wcae-user-sidebar__button {
        width: 100%;
    }

    .wcae-user-sidebar__title,
    .wcae-user-sidebar__item,
    .wcae-user-sidebar__button {
        padding: 12px 14px;
        font-size: 15px;
    }

    .wcae-user-panel__title {
        font-size: 30px;
        line-height: 1.05;
    }

    .wcae-user-panel__text {
        font-size: 15px;
    }

    .wcae-user-panel__info-box {
        padding: 16px 14px;
        margin-bottom: 18px;
    }

    .wcae-user-panel__info-box p {
        font-size: 14px;
        line-height: 1.6;
    }

    .wcae-user-form__grid--2,
    .wcae-user-form__grid--address-line,
    .wcae-order-modal__meta {
        grid-template-columns: 1fr;
    }

    .wcae-user-form__grid--2,
    .wcae-user-form__grid--address-line {
        gap: 0;
    }

    .wcae-user-orders__table {
        min-width: 680px;
    }

    .wcae-user-orders__table th,
    .wcae-user-orders__table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .wcae-user-orders__table td:last-child {
        min-width: 120px;
    }

    .wcae-order-actions {
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .wcae-order-action--icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }

    .wcae-order-action__icon {
        font-size: 17px;
    }

    .wcae-order-action--icon::after {
        display: none;
    }

    .wcae-btn {
        width: 100%;
    }

    .wcae-order-modal {
        width: 100vw !important;
        height: 100dvh !important;
    }

    .wcae-order-modal__overlay {
        width: 100vw !important;
        height: 100dvh !important;
    }

    .wcae-order-modal__dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        margin: 0 !important;
        border-radius: 10px;
    }

    .wcae-order-modal__header {
        padding: 20px 16px 0;
    }

    .wcae-order-modal__content {
        padding: 16px;
    }

    .wcae-order-modal__footer {
        padding: 0 16px 16px;
        gap: 10px;
    }

    .wcae-order-modal__title {
        font-size: 24px;
        line-height: 1.15;
        padding-right: 34px;
    }

    .wcae-order-modal__close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .wcae-order-modal__meta {
        gap: 10px;
        margin-bottom: 18px;
    }

    .wcae-order-modal__meta > div {
        padding: 10px 12px;
        font-size: 14px;
    }

    .wcae-order-modal__block {
        margin-bottom: 18px;
    }

    .wcae-order-modal__block h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .wcae-order-modal__products {
        gap: 10px;
    }

    .wcae-order-product {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        align-items: center;
    }

    .wcae-order-product__thumb {
        width: 56px;
        min-width: 56px;
    }

    .wcae-order-product__thumb img {
        border-radius: 6px;
    }

    .wcae-order-product__name {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.35;
    }

    .wcae-order-product__meta {
        font-size: 13px;
        line-height: 1.5;
    }

    .wcae-order-modal__address,
    .wcae-order-modal__tracking {
        padding: 12px;
        font-size: 14px;
        line-height: 1.6;
    }
}

/* =========================================================
FORCE FIX SAFARI / IPHONE / IPAD
========================================================= */

@supports (-webkit-touch-callout: none) {
    .wcae-order-modal {
        height: -webkit-fill-available !important;
    }

    .wcae-order-modal__overlay {
        height: -webkit-fill-available !important;
    }

    .wcae-order-modal__dialog {
        max-height: calc(-webkit-fill-available - 24px) !important;
    }

    @media (max-width: 767px) {
        .wcae-order-modal__dialog {
            max-height: calc(-webkit-fill-available - 16px) !important;
        }
    }
}

.wcae-orders-modals-root {
    position: relative;
    z-index: 9999999;
}

.wcae-order-modal__close.wcae-order-modal-close {
    color: #000 !important;
    background: transparent !important;
}

.wcae-order-modal__close.wcae-order-modal-close:hover {
    color: #808080 !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* Botão fechar modal */
.wcae-order-modal__close.wcae-order-modal-close{
    width: 42px !important;
    height: 42px !important;
    font-size: 26px !important; /* tamanho do X */
    color: #000 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
}

/* Hover */
.wcae-order-modal__close.wcae-order-modal-close:hover{
    color: #808080 !important;
    background: transparent !important;
}