/* =========================================================
   VARIÁVEIS
   ========================================================= */

body.woocommerce-account {
    --amotora-account-text: #222222;
    --amotora-account-muted: #666666;
    --amotora-account-border: #dddddd;
    --amotora-account-border-light: #eeeeee;
    --amotora-account-background: #ffffff;
    --amotora-account-background-soft: #f6f6f6;
    --amotora-account-background-active: #eeeeee;
    --amotora-account-button: #555555;
    --amotora-account-button-hover: #333333;
    --amotora-account-radius: 6px;
}

/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

body.woocommerce-account .woocommerce {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1320px;
    min-height: 360px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    box-sizing: border-box;
}

/* =========================================================
   MENU LATERAL
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 282px;
    width: 282px;
    margin: 0;
    padding: 0 30px 0 0;
    border-right: 1px solid var(--amotora-account-border);
    float: none;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation::before {
    content: "Minha conta";
    display: block;
    margin: 0 0 14px;
    padding: 0 14px 12px;
    border-bottom: 1px solid var(--amotora-account-border);
    color: var(--amotora-account-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    margin: 0 0 2px;
    padding: 11px 14px;
    border-radius: var(--amotora-account-radius);
    color: var(--amotora-account-text);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    color: var(--amotora-account-text);
    background: var(--amotora-account-background-active);
}

/* =========================================================
   CONTEÚDO PRINCIPAL
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 6px 0 0 30px;
    float: none;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content p:first-child {
    margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
    color: #444444;
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #111111;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    margin-top: 0;
    color: var(--amotora-account-text);
}

/* =========================================================
   BOTÕES
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--amotora-account-radius);
    color: #ffffff;
    background: var(--amotora-account-button);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    color: #ffffff;
    background: var(--amotora-account-button-hover);
}

/* =========================================================
   AVISOS
   ========================================================= */

body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error {
    width: 100%;
    margin: 0 0 22px;
    padding: 18px 22px 18px 54px;
    border: 0;
    border-radius: var(--amotora-account-radius);
    color: #444444;
    background: #e8e8e8;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before {
    top: 18px;
    left: 20px;
    color: #555555;
}

/* =========================================================
   CAMPOS PADRÃO
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-content label {
    display: block;
    margin: 0 0 6px;
    color: var(--amotora-account-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    color: var(--amotora-account-text);
    background: var(--amotora-account-background);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    border-color: #999999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

body.woocommerce-account .woocommerce-MyAccount-content .required {
    color: #a00000;
}

body.woocommerce-account .woocommerce-MyAccount-content .optional {
    color: var(--amotora-account-muted);
    font-size: 12px;
}

/* =========================================================
   SELECT2
   ========================================================= */

body.woocommerce-account .woocommerce-MyAccount-content .select2-container {
    width: 100% !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    background: var(--amotora-account-background);
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 36px 0 12px;
    color: var(--amotora-account-text);
    font-size: 14px;
    line-height: 40px;
}

body.woocommerce-account .woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 6px;
}

/* =========================================================
   FORMULÁRIO DE ENDEREÇO
   ========================================================= */

body.woocommerce-account .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
    box-sizing: border-box;
}

body.woocommerce-account #billing_first_name_field,
body.woocommerce-account #billing_last_name_field,
body.woocommerce-account #billing_persontype_field,
body.woocommerce-account #billing_cpf_field,
body.woocommerce-account #billing_cnpj_field,
body.woocommerce-account #billing_country_field,
body.woocommerce-account #billing_postcode_field,
body.woocommerce-account #billing_address_2_field,
body.woocommerce-account #billing_neighborhood_field,
body.woocommerce-account #billing_city_field,
body.woocommerce-account #billing_state_field,
body.woocommerce-account #billing_phone_field,
body.woocommerce-account #billing_email_field {
    grid-column: span 6;
}

body.woocommerce-account #billing_address_1_field {
    grid-column: span 9;
}

body.woocommerce-account #billing_number_field {
    grid-column: span 3;
}

body.woocommerce-account .woocommerce-address-fields > p:last-child {
    margin: 22px 0 0;
}

/* Remove o texto opcional quando o campo já é obrigatório pelo plugin */
body.woocommerce-account #billing_persontype_field .optional,
body.woocommerce-account #billing_cpf_field .optional,
body.woocommerce-account #billing_cnpj_field .optional {
    display: none;
}

/* =========================================================
   FORMULÁRIO DE DADOS DA CONTA
   ========================================================= */

body.woocommerce-account .woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    grid-column: span 1;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
body.woocommerce-account .woocommerce-EditAccountForm fieldset,
body.woocommerce-account .woocommerce-EditAccountForm > p:last-child {
    grid-column: 1 / -1;
}

body.woocommerce-account .woocommerce-EditAccountForm .clear {
    display: none;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 4px 0 0;
    padding: 18px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    background: var(--amotora-account-background-soft);
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    padding: 0 8px;
    color: var(--amotora-account-text);
    font-size: 14px;
    font-weight: 700;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row {
    grid-column: span 1;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row:first-of-type {
    grid-column: 1 / -1;
    max-width: calc(50% - 7px);
}

body.woocommerce-account .woocommerce-EditAccountForm > p:last-child {
    margin: 0;
}

body.woocommerce-account #account_display_name_description {
    display: block;
    margin-top: 5px;
    color: var(--amotora-account-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================================
   SENHAS
   ========================================================= */

body.woocommerce-account .password-input {
    display: block;
    position: relative;
    width: 100%;
}

body.woocommerce-account .password-input input {
    padding-right: 42px;
}

body.woocommerce-account .show-password-input {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* =========================================================
   LISTAGEM DE ENDEREÇOS
   ========================================================= */

body.woocommerce-account .woocommerce-Address {
    margin-top: 20px;
}

body.woocommerce-account .woocommerce-Address-title {
    margin-bottom: 14px;
}

body.woocommerce-account .woocommerce-Address-title h2 {
    margin: 0 0 10px;
    color: var(--amotora-account-text);
    font-size: 20px;
    line-height: 1.3;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-Address-title .edit {
    display: inline-block;
    color: #444444;
    font-size: 14px;
    text-decoration: underline;
}

body.woocommerce-account .woocommerce-Address address {
    color: var(--amotora-account-muted);
    font-size: 14px;
    line-height: 1.85;
}

/* =========================================================
   TABELA DE PEDIDOS
   ========================================================= */

body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table--order-details {
    width: 100%;
    margin: 0;
    border: 1px solid var(--amotora-account-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--amotora-account-radius);
    overflow: hidden;
    background: var(--amotora-account-background);
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-table--order-details th,
body.woocommerce-account .woocommerce-table--order-details td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--amotora-account-border);
    color: #333333;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-table--order-details thead th {
    background: var(--amotora-account-background-soft);
    color: var(--amotora-account-text);
    font-size: 13px;
    font-weight: 700;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
body.woocommerce-account .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: 0;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
}

/* =========================================================
   DETALHES DO PEDIDO
   ========================================================= */

body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
    margin: 28px 0 0;
}

body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-column__title {
    margin: 0 0 14px;
    color: var(--amotora-account-text);
    font-size: 24px;
    line-height: 1.25;
}

body.woocommerce-account .woocommerce-customer-details address {
    padding: 14px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    color: var(--amotora-account-text);
    background: var(--amotora-account-background);
    font-size: 14px;
    line-height: 1.55;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-customer-details address p {
    margin: 8px 0 0;
}

/* =========================================================
   PAGAMENTO PIX
   ========================================================= */

body.woocommerce-account .woocommerce-order-details ul.order_details {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-order-details ul.order_details > li {
    margin: 0;
    padding: 0;
    border: 0;
    float: none;
    list-style: none;
}

body.woocommerce-account .asaas-pix-instructions {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    margin-top: 14px !important;
}

body.woocommerce-account .asaas-pix-instructions img {
    display: block;
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    max-width: 100%;
}

body.woocommerce-account .asaas-pix-instructions__list {
    flex: 1;
    margin: 0;
    padding: 0 0 0 20px;
    color: var(--amotora-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.woocommerce-account .asaas-pix-copy-to-clipboard {
    margin-top: 18px !important;
}

body.woocommerce-account .woocommerce-order-details__asaas-pix-payload {
    max-width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    color: #555555;
    background: var(--amotora-account-background-soft);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    body.woocommerce-account .woocommerce {
        padding: 40px 18px 56px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        flex-basis: 230px;
        width: 230px;
        padding-right: 22px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding-left: 22px;
    }

    body.woocommerce-account .woocommerce-EditAccountForm fieldset {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    body.woocommerce-account .woocommerce {
        display: block;
        min-height: auto;
        padding: 30px 14px 44px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        margin: 0 0 26px;
        padding: 0;
        border-right: 0;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation::before {
        padding-left: 10px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        height: 100%;
        padding: 11px 10px;
        font-size: 13px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        padding: 0;
    }

    body.woocommerce-account .woocommerce-address-fields__field-wrapper,
    body.woocommerce-account .woocommerce-EditAccountForm {
        display: block;
    }

    body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row,
    body.woocommerce-account .woocommerce-EditAccountForm .form-row {
        width: 100%;
        margin: 0 0 14px;
    }

    body.woocommerce-account .woocommerce-EditAccountForm fieldset {
        display: block;
        margin-top: 4px;
        padding: 14px;
    }

    body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row:last-child {
        margin-bottom: 0;
    }

    body.woocommerce-account .woocommerce-orders-table,
    body.woocommerce-account .woocommerce-orders-table tbody,
    body.woocommerce-account .woocommerce-orders-table tr,
    body.woocommerce-account .woocommerce-orders-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    body.woocommerce-account .woocommerce-orders-table thead {
        display: none;
    }

    body.woocommerce-account .woocommerce-orders-table tr {
        padding: 12px;
        border-bottom: 1px solid var(--amotora-account-border);
    }

    body.woocommerce-account .woocommerce-orders-table td {
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    body.woocommerce-account .woocommerce-orders-table td::before {
        content: attr(data-title);
        color: var(--amotora-account-text);
        font-weight: 700;
        text-align: left;
    }

    body.woocommerce-account .asaas-pix-instructions {
        display: block;
    }

    body.woocommerce-account .asaas-pix-instructions img {
        width: 220px;
        height: 220px;
        margin: 0 auto 18px;
    }

    body.woocommerce-account .asaas-pix-instructions__list {
        padding-left: 20px;
    }
}

/* =========================================================
   LOGIN E CADASTRO
   ========================================================= */

body.amotora-account-login-page .woocommerce {
    display: block;
    width: 100%;
    max-width: 1100px;
    min-height: auto;
    margin: 0 auto;
    padding: 54px 24px 72px;
    box-sizing: border-box;
}

body.amotora-account-login-page .woocommerce h2 {
    margin: 0 0 24px;
    color: var(--amotora-account-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

body.amotora-account-login-page .woocommerce form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.amotora-account-login-page .woocommerce form .form-row {
    margin: 0 0 18px;
    padding: 0;
}

body.amotora-account-login-page .woocommerce form label {
    display: block;
    margin: 0 0 7px;
    color: var(--amotora-account-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

body.amotora-account-login-page .woocommerce form input[type="text"],
body.amotora-account-login-page .woocommerce form input[type="email"],
body.amotora-account-login-page .woocommerce form input[type="password"] {
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--amotora-account-border);
    border-radius: var(--amotora-account-radius);
    color: var(--amotora-account-text);
    background: #ffffff;
    box-sizing: border-box;
}

body.amotora-account-login-page .woocommerce form input:focus {
    border-color: #999999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

body.amotora-account-login-page .woocommerce form .password-input {
    display: block;
    position: relative;
    width: 100%;
}

body.amotora-account-login-page .woocommerce form .password-input input {
    padding-right: 44px;
}

body.amotora-account-login-page .woocommerce form .show-password-input {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 43px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.amotora-account-login-page .woocommerce form .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--amotora-account-radius);
    color: #ffffff;
    background: var(--amotora-account-button);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
}

body.amotora-account-login-page .woocommerce form .button:hover {
    color: #ffffff;
    background: var(--amotora-account-button-hover);
}

body.amotora-account-login-page .woocommerce .woocommerce-LostPassword {
    margin: 10px 0 0;
}

body.amotora-account-login-page .woocommerce .woocommerce-LostPassword a {
    color: #444444;
    font-size: 14px;
    text-decoration: none;
}

body.amotora-account-login-page .woocommerce .woocommerce-LostPassword a:hover {
    color: #111111;
    text-decoration: underline;
}

body.amotora-account-login-page .woocommerce label.woocommerce-form-login__rememberme {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
}

body.amotora-account-login-page .woocommerce label.woocommerce-form-login__rememberme input {
    width: auto;
    min-height: auto;
    margin: 0;
}

/* =========================================================
   CADASTRO ATIVADO
   ========================================================= */

body.amotora-account-registration-enabled #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

body.amotora-account-registration-enabled #customer_login .u-column1,
body.amotora-account-registration-enabled #customer_login .u-column2 {
    width: auto;
    margin: 0;
    float: none;
    box-sizing: border-box;
}

body.amotora-account-registration-enabled #customer_login .u-column2 {
    order: 1;
    padding: 8px 40px 8px 0;
    border-right: 1px solid var(--amotora-account-border);
}

body.amotora-account-registration-enabled #customer_login .u-column1 {
    order: 2;
    padding: 8px 0 8px 40px;
}

body.amotora-account-registration-enabled #customer_login .u-column2 h2 {
    font-size: 0;
}

body.amotora-account-registration-enabled #customer_login .u-column2 h2::before {
    content: "Cadastre-se";
    font-size: 22px;
}

body.amotora-account-registration-enabled #customer_login .u-column1 h2 {
    font-size: 0;
}

body.amotora-account-registration-enabled #customer_login .u-column1 h2::before {
    content: "Login";
    font-size: 22px;
}

body.amotora-account-registration-enabled #customer_login .woocommerce-privacy-policy-text {
    color: var(--amotora-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   CADASTRO DESATIVADO
   ========================================================= */

body.amotora-account-registration-disabled .amotora-account-login-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

body.amotora-account-registration-disabled .amotora-account-login-column {
    padding: 8px 40px 8px 0;
    border-right: 1px solid var(--amotora-account-border);
    box-sizing: border-box;
}

body.amotora-account-registration-disabled .amotora-account-register-info {
    padding: 8px 0 8px 40px;
    box-sizing: border-box;
}

body.amotora-account-registration-disabled .amotora-account-register-info h2 {
    margin-bottom: 16px;
    text-transform: none;
}

body.amotora-account-registration-disabled .amotora-account-register-info p {
    margin: 0 0 20px;
    color: var(--amotora-account-text);
    font-size: 15px;
    line-height: 1.55;
}

body.amotora-account-registration-disabled .amotora-account-register-info .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 36px 0 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--amotora-account-radius);
    color: var(--amotora-account-text);
    background: #dddddd;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

body.amotora-account-registration-disabled .amotora-account-register-info .button:hover {
    color: var(--amotora-account-text);
    background: #cccccc;
}

/* =========================================================
   LOGIN E CADASTRO — MOBILE
   ========================================================= */

@media (max-width: 768px) {
    body.amotora-account-login-page .woocommerce {
        padding: 34px 16px 48px;
    }

    body.amotora-account-registration-enabled #customer_login,
    body.amotora-account-registration-disabled .amotora-account-login-layout {
        display: block;
    }

    body.amotora-account-registration-enabled #customer_login .u-column2,
    body.amotora-account-registration-enabled #customer_login .u-column1,
    body.amotora-account-registration-disabled .amotora-account-login-column,
    body.amotora-account-registration-disabled .amotora-account-register-info {
        width: 100%;
        padding: 0;
        border-right: 0;
    }

    body.amotora-account-registration-enabled #customer_login .u-column1,
    body.amotora-account-registration-disabled .amotora-account-register-info {
        margin-top: 34px;
        padding-top: 28px;
        border-top: 1px solid var(--amotora-account-border);
    }
}

/* =========================================================
   HONEYPOT DE CADASTRO
   ========================================================= */

body.woocommerce-account .amotora-account-honeypot {
    position: absolute !important;
    top: auto !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   Documents
   ========================================================= */
   
/* =========================================================
   BOTÃO NA LISTAGEM DE PEDIDOS
   ========================================================= */

.woocommerce-account a.woocommerce-button.amotora-documents {
    white-space: nowrap;
}

/* =========================================================
   MODAL
   ========================================================= */

body.amotora-modal-open {
    overflow: hidden;
}

.amotora-documents-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amotora-documents-modal.is-open {
    display: flex;
}

.amotora-documents-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.amotora-documents-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.amotora-documents-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.amotora-documents-modal-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.amotora-documents-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================================
   LISTA DE DOCUMENTOS
   ========================================================= */

.amotora-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amotora-documents-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    background: #f8f8f8;
}

.amotora-documents-item-name {
    min-width: 0;
    color: #222222;
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.amotora-documents-open-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #222222;
    color: #ffffff!important;
    font-weight: 600;
    text-decoration: none!important;
    transition: 0.2s ease;
}

a.amotora-documents-open-button:hover {
    background: #000000;
    color: #ffffff!important;
    text-decoration: none!important;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button + .woocommerce-button {
    margin-left: 5px!important;
}

/* =========================================================
   SEÇÃO DENTRO DA VISUALIZAÇÃO DO PEDIDO
   ========================================================= */

.amotora-order-documents-section {
    margin-top: 28px;
}

.amotora-order-documents-section h2 {
    margin-bottom: 14px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .amotora-documents-modal {
        padding: 14px;
    }

    .amotora-documents-modal-content {
        padding: 18px;
        border-radius: 12px;
    }

    .amotora-documents-item {
        align-items: stretch;
        flex-direction: column;
    }

    a.amotora-documents-open-button {
        width: 100%;
    }
}