/* Table styles for better look and responsiveness */
table.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

/* Global button rounding */
.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border-radius: 8px !important;
}

/* My instances layout (fallback when frontend-instances.css is not enqueued) */
.woocommerce-account .greenapi-my-instances-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    /* padding: 24px 24px 52px; */
    font-family: "Lato", sans-serif;
    color: #1d1d1f;
    width: 100%;
    overflow-x: auto;
}
.woocommerce-account .greenapi-instances-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.woocommerce-account .greenapi-instances-summary__item {
    background: #f7f9fc;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.woocommerce-account .greenapi-instances-summary__item span {
    font-size: 12px;
    color: #667085;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.woocommerce-account .greenapi-instances-summary__item strong {
    font-size: 20px;
    color: #1f2937;
}
.woocommerce-account .greenapi-instances-filters {
    background: #f7f9fc;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    height: 122px;
}
.woocommerce-account .greenapi-instances-filters__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: end;
}
.woocommerce-account .greenapi-instances-filters__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.woocommerce-account .greenapi-instances-filters__field label {
    font-size: 12px;
    font-weight: 600;
    color: #475467;
}
.woocommerce-account .greenapi-instances-filters__field input,
.woocommerce-account .greenapi-instances-filters__field select {
    border-radius: 10px;
    border: 1px solid #dfe4f0;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.2;
    height: 32px;
    width: 100%;
}
.woocommerce-account .greenapi-instances-filters__actions {
    display: flex;
    align-items: center;
}
.woocommerce-account .greenapi-instances-filters__actions .button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.1;
}
.woocommerce-account .greenapi-instances-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #667085;
    margin-bottom: 12px;
}
.woocommerce-account .greenapi-instances-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    flex-wrap: wrap;
}
.woocommerce-account .greenapi-instances-pagination__pages {
    display: flex;
    gap: 6px;
    align-items: center;
}
.woocommerce-account .greenapi-instances-pagination .button.is-active {
    background: #9acd4d;
    border-color: #9acd4d;
    color: #1d2b16;
}
.woocommerce-account .greenapi-table-toolbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 12px;
}
.greenapi-plans-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 52px;
    font-family: "Lato", sans-serif;
    color: #1d1d1f;
}
.greenapi-plans-header {
    margin-bottom: 16px;
}
.greenapi-current-plan {
    background: #f6f8f3;
    border: 1px solid #e1e9d5;
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}
.greenapi-current-plan .plan-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #9fce4d;
    color: #1f2a14;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.greenapi-current-plan .current-plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
}
.greenapi-current-plan .current-plan-meta {
    font-size: 13px;
    color: #556;
}
.greenapi-current-plan .current-plan-note {
    font-size: 12px;
    color: #6b6b6b;
}
.greenapi-plans-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.greenapi-plan-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    padding-bottom: 12px;
}
.greenapi-plan-card .plan-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #567f2a;
}
.greenapi-plan-card .plan-header .plan-price {
    margin-top: 16px;
}
.greenapi-plan-card .plan-price {
    font-weight: 800;
    color: #1f1f1f;
    font-size: 26px;
    line-height: 1.05;
}
.greenapi-plan-card .plan-price,
.greenapi-plan-card .plan-price .amount,
.greenapi-plan-card .plan-price a {
    color: #1f1f1f;
}
.greenapi-plan-card .plan-header {
    position: relative;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
}
.greenapi-plan-card .plan-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background: #9fce4d;
    border-radius: 999px;
}
.greenapi-plan-card .plan-installments {
    font-size: 13px;
    color: #6b6b6b;
    min-height: 18px;
}
.greenapi-plan-card .plan-installments-empty {
    visibility: hidden;
}
.greenapi-plan-card .plan-meta {
    font-size: 12px;
    color: #6b6b6b;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.greenapi-plan-card .plan-meta .plan-discount {
    color: #4e7d22;
    font-weight: 700;
}
.greenapi-plan-card .plan-desc p {
    margin: 0 0 6px;
}
.greenapi-plan-card .plan-desc {
    flex: 1;
    min-height: 140px;
}
.greenapi-plan-card .plan-actions form {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
}
.greenapi-plan-card .plan-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
}
.greenapi-plan-card .plan-actions > * {
    width: 100%;
}

.greenapi-cycle-change-cart .woocommerce-cart-form button[name="update_cart"] {
    display: none !important;
}

.woocommerce-cart .woocommerce-cart-form .button,
.woocommerce-cart .cart-collaterals .button {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #1f1f1f;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 18px;
}

.woocommerce-cart .woocommerce-cart-form .button:hover,
.woocommerce-cart .cart-collaterals .button:hover {
    background: #8ab63f;
    border-color: #8ab63f;
    color: #1f1f1f;
}

.woocommerce-cart-form > .coupon {
    display: none !important;
}

/* My Account navigation alignment + active state */
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    position: relative;
    background: #e7efe3;
    border: 1px solid #9fce4d;
    border-radius: 6px;
    padding-top: 15px !important;
    padding-right: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 12px !important;
    text-decoration: none;
    color: #2c2c2c;
}
.woocommerce-MyAccount-navigation ul li a:before {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    width: 20px;
    height: 20px;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--listar-instancias a:before {
    content: "\e034";
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--pagamentos a:before {
    content: "\e02a";
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--planos a:before {
    content: "\e055";
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--afiliados a:before {
    content: "\e001";
}
.woocommerce-MyAccount-navigation ul li a br {
    display: none;
}
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border: 0;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.is-active a:hover {
    background: #cfe7a4;
    border-color: #8bbf3f;
    color: #1f1f1f;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto 16px;
    table-layout: auto;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.2;
    border: none;
}

.woocommerce-checkout-review-order-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5c5c5c;
    background: #f7f7f7;
}

.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child {
    text-align: right;
}

.woocommerce-checkout .woocommerce #order_review {
    background: transparent;
}
.woocommerce-checkout #customer_details {
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.woocommerce-checkout #customer_details .woocommerce-billing-fields {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}
.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper {
    margin: 0;
}

.woocommerce-checkout .woocommerce-checkout-payment {
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    background: #fff;
    padding: 16px;
    margin-top: 16px;
}

.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods {
    border-bottom: 1px solid #ededed;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-checkout-payment .payment_box {
    background: #f7f7f7;
    border: 1px solid #ededed;
    border-radius: 10px;
    padding: 12px;
    box-shadow: none;
}

.woocommerce-checkout .button,
.woocommerce-checkout .button.alt,
.woocommerce-checkout #place_order {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #1f1f1f;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 18px;
}

.woocommerce-checkout .button:hover,
.woocommerce-checkout .button.alt:hover,
.woocommerce-checkout #place_order:hover {
    background: #8ab63f;
    border-color: #8ab63f;
    color: #1f1f1f;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto 16px;
    table-layout: auto;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 14px 16px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.2;
    border: none;
    text-align: center;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5c5c5c;
    background: #f7f7f7;
}


.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #1f1f1f;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 16px;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button:hover {
    background: #8ab63f;
    border-color: #8ab63f;
    color: #1f1f1f;
}
.greenapi-plan-card .plan-actions .button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.6px;
}
.greenapi-plan-card .plan-actions .button.disabled {
    background: #e6e6e6 !important;
    color: #6b6b6b !important;
    cursor: not-allowed;
    border-color: #d4d4d4 !important;
}
.greenapi-plan-card .plan-qty {
    display: grid;
    gap: 6px;
    font-weight: 600;
}
.greenapi-plan-card .plan-qty input {
    max-width: 120px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d8d8d8;
}

a.button.greenapi-create-instance {
    padding-top: 4px !important;
}
.woocommerce-account table.greenapi-my-instances {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto;
    table-layout: auto;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.woocommerce-account table.greenapi-my-instances th,
.woocommerce-account table.greenapi-my-instances td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 13px;
}
.woocommerce-account table.greenapi-my-instances th:nth-child(2),
.woocommerce-account table.greenapi-my-instances td:nth-child(2),
.woocommerce-account table.greenapi-my-instances th:last-child,
.woocommerce-account table.greenapi-my-instances td.actions {
    text-align: center;
}
.woocommerce-account table.greenapi-my-instances td.actions {
    white-space: normal;
}
.woocommerce-account .greenapi-my-instances td.actions .button {
    white-space: normal;
}
.woocommerce-account table.greenapi-my-instances th {
    background: #f7f7f7;
    font-weight: 700;
    color: #4b4b4b;
    font-size: 12px;
}
.woocommerce-account table.greenapi-my-instances tbody tr {
    background: #fff;
}
.woocommerce-account table.greenapi-my-instances tbody tr:nth-child(even) {
    background: #fbfbfb;
}
.woocommerce-account table.greenapi-my-instances tbody td {
    border-top: 1px solid #f1f1f1;
}
.woocommerce-account .greenapi-my-instances .actions,
.woocommerce-account .greenapi-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.woocommerce-account .greenapi-status-badge {
    display: inline-flex;
    min-width: 96px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f4f8;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
}
.woocommerce-account .greenapi-my-instances td.actions .button {
    min-height: 32px;
    padding: 4px 10px;
    line-height: 1.1;
}
.woocommerce-account .greenapi-status-badge br {
    display: none;
}
.woocommerce-account .greenapi-status-badge.greenapi-status-success {
    background: #e0f3d8;
    color: #1f5c1a;
}
.woocommerce-account .greenapi-status-badge.greenapi-status-error {
    background: #fde2e2;
    color: #9b1c1c;
}

.greenapi-myaccount-card--payments {
    max-width: 1000px;
}
.greenapi-payments-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    font-weight: 600;
}
.greenapi-payments-title {
    margin: 18px 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2a14;
}
.greenapi-payments-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 20px;
    table-layout: auto;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.greenapi-payments-table th,
.greenapi-payments-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.2;
}
.greenapi-payments-table th {
    background: #f7f7f7;
    font-weight: 700;
    color: #4b4b4b;
    font-size: 13px;
}
.greenapi-payments-table tbody tr {
    background: #fff;
}
.greenapi-payments-table tbody tr:nth-child(even) {
    background: #fbfbfb;
}
.greenapi-payments-table tbody td {
    border-top: 1px solid #f1f1f1;
}

.greenapi-myaccount-card--affiliates {
    max-width: 1000px;
}
.greenapi-affiliate-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}
.greenapi-affiliate-summary__row {
    display: grid;
    gap: 14px;
    width: 100%;
    align-items: stretch;
}
.greenapi-affiliate-summary__row--primary {
    grid-template-columns: 63% 35%;
}
.greenapi-affiliate-summary__row--secondary {
    grid-template-columns: 1fr 1fr;
}
.greenapi-affiliate-summary__item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #e6e9f2;
    box-shadow: 0 6px 16px rgba(18, 24, 38, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.greenapi-affiliate-summary__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7786;
    font-weight: 700;
}
.greenapi-affiliate-summary__value {
    font-size: 16px;
    color: #1f2a14;
    font-weight: 700;
}
.greenapi-affiliate-summary__code {
    display: inline-block;
    padding: 6px 10px;
    background: #f6f7fb;
    border-radius: 8px;
    border: 1px solid #e6e9f2;
    color: #1f2a14;
    word-break: break-all;
}
.greenapi-affiliate-cards,
.greenapi-affiliate-incentive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.greenapi-affiliate-section--collapsible .greenapi-affiliate-incentive-cards {
    margin: 16px;
}
.greenapi-affiliate-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #e3e8f4;
    box-shadow: 0 8px 20px rgba(18, 24, 38, 0.08);
    position: relative;
    overflow: hidden;
}
.greenapi-affiliate-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #84c341, #a3d566);
}
.greenapi-affiliate-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7786;
    font-weight: 700;
}
.greenapi-affiliate-card strong {
    display: block;
    font-size: 22px;
    color: #1f2a14;
}
.greenapi-affiliate-card small {
    display: block;
    margin-top: 8px;
    color: #4e5968;
}
.greenapi-affiliate-section__title {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2a14;
}
.greenapi-affiliate-section__subtitle {
    margin: 12px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a14;
}
.greenapi-affiliate-section--collapsible {
    border: 1px solid #e3e8f4;
    border-radius: 14px;
    background: #ffffff;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(18, 24, 38, 0.06);
}
.greenapi-affiliate-section--collapsible > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f6;
}
.greenapi-affiliate-section--collapsible > summary::-webkit-details-marker {
    display: none;
}
.greenapi-affiliate-section--collapsible > summary::after {
    content: "▾";
    font-size: 14px;
    color: #6a7786;
}
.greenapi-affiliate-section--collapsible[open] > summary::after {
    content: "▴";
}
.greenapi-affiliate-section__body {
    padding: 16px 18px 18px;
}
.greenapi-affiliate-subsection {
    border: 1px solid #e3e8f4;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 12px;
    padding: 0;
}
.greenapi-affiliate-subsection:last-child {
    margin-bottom: 0;
}
.greenapi-affiliate-subsection > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #1f2a14;
}
.greenapi-affiliate-subsection > summary::-webkit-details-marker {
    display: none;
}
.greenapi-affiliate-subsection > summary::after {
    content: "▾";
    font-size: 14px;
    color: #6a7786;
}
.greenapi-affiliate-subsection[open] > summary::after {
    content: "▴";
}
.greenapi-affiliate-subsection .greenapi-affiliate-payout-form {
    margin: 0;
    border: 0;
    border-radius: 0 0 12px 12px;
    background: #fbfcff;
}
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form .form-row,
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form .form-row-wide {
    margin: 0 0 12px !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
}
.greenapi-affiliate-subsection .greenapi-affiliate-payout-form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #4b4b4b;
}
.greenapi-affiliate-subsection .greenapi-affiliate-payout-form br {
    display: none !important;
}
.greenapi-affiliate-subsection .greenapi-affiliate-payout-form p {
    margin: 0 0 12px !important;
}
.woocommerce-account .greenapi-myaccount-card--affiliates br {
    display: none !important;
}
.woocommerce-account .greenapi-myaccount-card--affiliates p {
    margin: 0 0 12px !important;
}
.woocommerce-account .greenapi-myaccount-card--affiliates p:empty {
    display: none !important;
}
.woocommerce-account .greenapi-myaccount-card--affiliates .greenapi-affiliate-filters label {
    margin: 0 !important;
}
.greenapi-affiliate-subsection .greenapi-affiliate-payout-form button.button {
    margin-top: 4px;
}
.greenapi-affiliate-inline-fields {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
}
.greenapi-affiliate-inline-fields .form-row {
    margin-bottom: 12px !important;
}
@media (max-width: 768px) {
    .greenapi-affiliate-inline-fields {
        grid-template-columns: 1fr;
    }
}
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form input,
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form select,
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form #payout_amount,
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-payout-form #payout_account {
    width: 100% !important;
    max-width: 100% !important;
}
.woocommerce-account .greenapi-affiliate-subsection .greenapi-affiliate-section__body > p {
    margin: 0 0 12px;
}
.greenapi-affiliate-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.greenapi-affiliate-accounts__item {
    background: #ffffff;
    border: 1px solid #e3e8f4;
    border-radius: 12px;
    padding: 12px 14px;
    color: #3f4a59;
    font-size: 13px;
}
.greenapi-affiliate-accounts__item strong {
    display: block;
    color: #1f2a14;
    margin-bottom: 4px;
}
.greenapi-affiliate-account-remove {
    margin-top: 8px;
}
.greenapi-affiliate-account-remove .button-link-delete {
    color: #b42318;
    border: 1px solid #f5b5ae;
    background: #fff5f5;
}
.greenapi-affiliate-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e3e8f4;
    background: #f7f9fc;
}
.greenapi-affiliate-totals__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #5a6675;
}
.greenapi-affiliate-totals__item strong {
    font-size: 18px;
    color: #1f2a14;
}
.greenapi-affiliate-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.greenapi-affiliate-pagination__btn {
    border: 1px solid #dfe4f0;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}
.greenapi-affiliate-pagination__btn.is-active {
    background: #84c341;
    border-color: #84c341;
    color: #1f2a14;
    font-weight: 700;
}
.greenapi-affiliate-pagination__ellipsis {
    color: #6a7786;
    padding: 6px 4px;
}

@media (max-width: 768px) {
    .greenapi-affiliate-summary__item.greenapi-affiliate-summary__item--link {
        margin-right: 0;
    }
    .greenapi-affiliate-summary__row--primary,
    .greenapi-affiliate-summary__row--secondary {
        grid-template-columns: 1fr;
    }
    .greenapi-affiliate-totals {
        grid-template-columns: 1fr;
    }
    .woocommerce-account table.greenapi-affiliate-commissions,
    .woocommerce-account table.greenapi-affiliate-commissions thead,
    .woocommerce-account table.greenapi-affiliate-commissions tbody,
    .woocommerce-account table.greenapi-affiliate-commissions th,
    .woocommerce-account table.greenapi-affiliate-commissions td,
    .woocommerce-account table.greenapi-affiliate-commissions tr,
    .woocommerce-account table.greenapi-affiliate-payouts,
    .woocommerce-account table.greenapi-affiliate-payouts thead,
    .woocommerce-account table.greenapi-affiliate-payouts tbody,
    .woocommerce-account table.greenapi-affiliate-payouts th,
    .woocommerce-account table.greenapi-affiliate-payouts td,
    .woocommerce-account table.greenapi-affiliate-payouts tr {
        display: block;
        width: 100%;
    }

    .woocommerce-account table.greenapi-affiliate-commissions thead,
    .woocommerce-account table.greenapi-affiliate-payouts thead {
        display: none;
    }

    .woocommerce-account table.greenapi-affiliate-commissions tr,
    .woocommerce-account table.greenapi-affiliate-payouts tr {
        border: 1px solid #e6e9f2;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
    }

    .woocommerce-account table.greenapi-affiliate-commissions td,
    .woocommerce-account table.greenapi-affiliate-payouts td {
        display: block;
        padding: 8px 0;
        border: 0;
        text-align: left;
        white-space: normal;
    }

    .woocommerce-account table.greenapi-affiliate-commissions td::before,
    .woocommerce-account table.greenapi-affiliate-payouts td::before {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #6b6b6b;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
        content: attr(data-title);
    }
}
.greenapi-affiliate-payout-form {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e3e8f4;
    background: #fbfcff;
}
.greenapi-affiliate-filters {
    margin: 10px 0 16px;
}
.greenapi-affiliate-status {
    margin-top: 10px;
    font-size: 13px;
    color: #6a7786;
}
.woocommerce-account .greenapi-myaccount-card--affiliates button.button {
    margin-bottom: 5px;
}
.greenapi-affiliate-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.greenapi-affiliate-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #4b4b4b;
}
.greenapi-affiliate-filters select,
.greenapi-affiliate-filters input[type="date"] {
    border-radius: 10px;
    border: 1px solid #dfe4f0;
    padding: 8px 10px;
}
.greenapi-affiliate-summary--totals {
    margin: 6px 0 14px;
    gap: 16px;
}

@media (max-width: 768px) {
    .woocommerce-account table.greenapi-my-instances,
    .woocommerce-account table.greenapi-my-instances thead,
    .woocommerce-account table.greenapi-my-instances tbody,
    .woocommerce-account table.greenapi-my-instances th,
    .woocommerce-account table.greenapi-my-instances td,
    .woocommerce-account table.greenapi-my-instances tr {
        display: block;
        width: 100%;
    }

    .woocommerce-account table.greenapi-my-instances thead {
        display: none;
    }

    .woocommerce-account table.greenapi-my-instances tr {
        border: 1px solid #e6e9f2;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
    }

    .woocommerce-account table.greenapi-my-instances td {
        display: block;
        padding: 8px 0;
        border: 0;
        text-align: left;
        white-space: normal;
    }

    .woocommerce-account table.greenapi-my-instances td::before {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #6b6b6b;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
    }

    .woocommerce-account table.greenapi-my-instances td:nth-child(1)::before {
        content: "Instância";
    }
    .woocommerce-account table.greenapi-my-instances td:nth-child(2)::before {
        content: "Status";
    }
    .woocommerce-account table.greenapi-my-instances td:nth-child(3)::before {
        content: "Data de ativação";
    }
    .woocommerce-account table.greenapi-my-instances td:nth-child(4)::before {
        content: "Vencimento do ciclo";
    }
    .woocommerce-account table.greenapi-my-instances td:nth-child(5)::before {
        content: "Ações";
    }

    .woocommerce-account table.greenapi-my-instances td.actions {
        padding-top: 12px;
    }

    .woocommerce-account .greenapi-my-instances td.actions .button {
        width: 100%;
        text-align: center;
    }

    .woocommerce-account .greenapi-my-instances .actions,
    .woocommerce-account .greenapi-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-account .greenapi-instances-summary {
        flex-direction: column;
    }

    .woocommerce-account .greenapi-instances-filters__row {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .greenapi-instances-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .greenapi-payments-summary {
        flex-direction: column;
        gap: 6px;
    }

    .greenapi-payments-table,
    .greenapi-payments-table thead,
    .greenapi-payments-table tbody,
    .greenapi-payments-table th,
    .greenapi-payments-table td,
    .greenapi-payments-table tr {
        display: block;
        width: 100%;
    }

    .greenapi-payments-table thead {
        display: none;
    }

    .greenapi-payments-table tr {
        border: 1px solid #e6e9f2;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
    }

    .greenapi-payments-table td {
        display: block;
        padding: 8px 0;
        border: 0;
        text-align: left;
    }

    .greenapi-payments-table td::before {
        content: attr(data-title);
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #6b6b6b;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
    }

    .greenapi-payments-table td .button {
        width: 100%;
        text-align: center;
    }
}

table.responsive-table th, table.responsive-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table.responsive-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table.responsive-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.responsive-table tr:hover {
    background-color: #f1f1f1;
}

/* Brand buttons inside account area */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content .button-primary,
.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    background: #9FCE4D !important;
    color: #1b1b1b !important;
    border-color: #9FCE4D !important;
}
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:focus,
.woocommerce-account .woocommerce-MyAccount-content .button-primary:hover,
.woocommerce-account .woocommerce-MyAccount-content .button-primary:focus,
.woocommerce-account .woocommerce-MyAccount-content button:hover,
.woocommerce-account .woocommerce-MyAccount-content button:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:focus {
    background: #89b32d !important;
    color: #1b1b1b !important;
    border-color: #89b32d !important;
}

@media only screen and (max-width: 768px) {
    table.responsive-table thead {
        display: none;
    }

    table.responsive-table tr {
        display: block;
        margin-bottom: 10px;
    }

    table.responsive-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* Notification form styles */
.manual-notification {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin-bottom: 30px;
}
.manual-notification h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}
.manual-notification label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.manual-notification input[type="text"],
.manual-notification select,
.manual-notification textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.manual-notification textarea {
    height: 100px;
}
.manual-notification input[type="submit"] {
    background-color: #007cba;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.manual-notification input[type="submit"]:hover {
    background-color: #006799;
}
.customer-select, .admin-email {
    display: none;
    margin-bottom: 20px;
}
input#admin_email {
    width: 400px;
    height: 50px;
}

@media only screen and (max-width: 768px) {
    .woocommerce-checkout .woocommerce {
        max-width: 980px;
        margin: 0 auto;
        padding: 20px;
        background: #f7f7f7;
        border: 1px solid #e4e4e4;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .woocommerce-checkout .woocommerce > h3,
    .woocommerce-checkout .woocommerce > h2,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #customer_details h3 {
        text-align: center;
        margin-bottom: 16px;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        background: #fff;
        border: 1px solid #e9e9e9;
        border-radius: 4px;
        padding: 16px;
        box-sizing: border-box;
    }

    .woocommerce-checkout #customer_details {
        margin-bottom: 16px;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order-table {
        margin-bottom: 12px;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order-table,
    .woocommerce-checkout .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout .woocommerce-checkout-review-order-table td {
        border-color: #e9e9e9;
    }

    .woocommerce-checkout .woocommerce-checkout-payment {
        background: #fff;
        border: 1px solid #e9e9e9;
        border-radius: 4px;
        padding: 16px;
        box-sizing: border-box;
    }

    .woocommerce-checkout .person-type-field,
    .woocommerce-checkout #billing_persontype_field,
    .woocommerce-checkout #billing_persontype_field .woocommerce-input-wrapper,
    .woocommerce-checkout #billing_persontype {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        display: block;
    }
    .woocommerce-checkout #billing_persontype {
        max-width: 100%;
    }

    .woocommerce-checkout-review-order-table,
    .woocommerce-checkout-review-order-table thead,
    .woocommerce-checkout-review-order-table tbody,
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table tr {
        display: block;
        width: 100%;
    }

    .woocommerce-checkout-review-order-table thead {
        display: none;
    }

    .woocommerce-checkout-review-order-table tr {
        border-bottom: 1px solid #ddd;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .woocommerce-checkout-review-order-table td {
        border: none;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    .woocommerce-checkout-review-order-table td::before {
        content: attr(data-title);
        position: absolute;
        left: 0;
        width: 50%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
        color: #333;
    }

    .woocommerce-checkout-review-order-table td {
        padding-left: 0;
        text-align: right;
    }

    .woocommerce-checkout-review-order-table td::before {
        position: static;
        display: inline-block;
        width: auto;
        padding: 0;
        float: left;
    }

    .woocommerce-checkout-review-order-table {
        display: table !important;
        width: 100%;
    }

    .woocommerce-checkout-review-order-table thead {
        display: none !important;
    }

    .woocommerce-checkout-review-order-table tbody,
    .woocommerce-checkout-review-order-table tfoot {
        display: table-row-group !important;
    }

    .woocommerce-checkout-review-order-table tr {
        display: table-row !important;
        border: none;
        margin: 0;
        padding: 0;
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        display: table-cell !important;
        width: auto !important;
        padding-left: 0;
        text-align: left;
    }

    .woocommerce-checkout-review-order-table td {
        text-align: right;
    }

    .woocommerce-checkout-review-order-table td::before {
        display: none;
    }

    .woocommerce-cart-form .shop_table thead {
        display: none;
    }

    .woocommerce-cart-form .shop_table tr.cart_item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td {
        border: none;
        padding: 0;
        width: 100%;
        text-align: left;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-remove {
        order: 1;
        align-self: flex-end;
        width: auto;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-thumbnail {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-name {
        order: 3;
        width: 100%;
        font-weight: 600;
        text-align: left;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-price {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-quantity {
        order: 5;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-subtotal {
        order: 6;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .woocommerce-cart-form .shop_table tr.cart_item td.product-price::before,
    .woocommerce-cart-form .shop_table tr.cart_item td.product-quantity::before,
    .woocommerce-cart-form .shop_table tr.cart_item td.product-subtotal::before {
        content: attr(data-title);
        font-weight: 600;
        color: #333;
    }

    .woocommerce-cart-form .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .woocommerce-cart-form .actions .coupon {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        float: none;
    }

    .woocommerce-cart-form .actions .coupon input#coupon_code,
    .woocommerce-cart-form .actions .coupon button,
    .woocommerce-cart-form .actions button[name="update_cart"] {
        width: 100% !important;
    }

    .woocommerce-cart-form .actions button[name="update_cart"] {
        float: none;
        margin: 0;
    }
}

.woocommerce-order-received .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.woocommerce-order-received .woocommerce-order-overview li {
    border: 1px solid #e4e4e4;
    background: #f7f7f7;
    padding: 12px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 88px;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    margin-top: 6px;
    word-break: break-word;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order-details__title {
    margin-top: 24px;
}

.woocommerce-order-received .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--order-details th {
    vertical-align: middle;
}

.woocommerce-order-received .woocommerce-table--order-details {
    table-layout: auto;
    width: 100%;
}

.woocommerce-order-received .woocommerce-table--order-details th.product-name,
.woocommerce-order-received .woocommerce-table--order-details td.product-name {
    width: 70%;
}

.woocommerce-order-received .woocommerce-table--order-details th.product-total,
.woocommerce-order-received .woocommerce-table--order-details td.product-total {
    width: 30%;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th {
    text-align: left;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-table--order-details td.product-name {
    vertical-align: top;
}

.woocommerce-order-received .woocommerce-table--order-details td.product-name .wc-item-meta {
    margin: 10px 0 0;
    padding: 0;
}

.woocommerce-order-received .woocommerce-table--order-details td.product-name .wc-item-meta li {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
}

.woocommerce-order-received .woocommerce-table--order-details thead {
    display: table-header-group;
}

.woocommerce-order-received .woocommerce-table--order-details tbody {
    display: table-row-group;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot {
    display: table-footer-group;
}

.woocommerce-order-received .woocommerce-table--order-details tr {
    display: table-row;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
    display: table-cell;
}

.woocommerce-order-received .woocommerce-order-details table,
.woocommerce-order-received table.order_details,
.woocommerce-order-received table.shop_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.woocommerce-order-received .woocommerce-order-details table th,
.woocommerce-order-received .woocommerce-order-details table td,
.woocommerce-order-received table.order_details th,
.woocommerce-order-received table.order_details td,
.woocommerce-order-received table.shop_table th,
.woocommerce-order-received table.shop_table td {
    display: table-cell;
    vertical-align: top;
    text-align: left;
}

.woocommerce-order-received .woocommerce-order-details table th:last-child,
.woocommerce-order-received .woocommerce-order-details table td:last-child,
.woocommerce-order-received table.order_details th:last-child,
.woocommerce-order-received table.order_details td:last-child,
.woocommerce-order-received table.shop_table th:last-child,
.woocommerce-order-received table.shop_table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.woocommerce-order-received .woocommerce .order_details,
.woocommerce-order-received .woocommerce .shop_table {
    width: 100% !important;
    table-layout: fixed !important;
}

.woocommerce-order-received .woocommerce .order_details th,
.woocommerce-order-received .woocommerce .order_details td,
.woocommerce-order-received .woocommerce .shop_table th,
.woocommerce-order-received .woocommerce .shop_table td {
    display: table-cell !important;
    vertical-align: top !important;
}

.woocommerce-order-received .woocommerce .order_details th.product-name,
.woocommerce-order-received .woocommerce .order_details td.product-name,
.woocommerce-order-received .woocommerce .shop_table th.product-name,
.woocommerce-order-received .woocommerce .shop_table td.product-name {
    width: 70% !important;
}

.woocommerce-order-received .woocommerce .order_details th.product-total,
.woocommerce-order-received .woocommerce .order_details td.product-total,
.woocommerce-order-received .woocommerce .shop_table th.product-total,
.woocommerce-order-received .woocommerce .shop_table td.product-total {
    width: 30% !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.woocommerce-order-received .woocommerce .shop_table tfoot td {
    text-align: center !important;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table th,
.woocommerce-order-received .wc-block-order-confirmation-totals__table td {
    vertical-align: top;
    text-align: left;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table th.wc-block-order-confirmation-totals__product,
.woocommerce-order-received .wc-block-order-confirmation-totals__table td.wc-block-order-confirmation-totals__product {
    width: 70%;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table th.wc-block-order-confirmation-totals__total,
.woocommerce-order-received .wc-block-order-confirmation-totals__table td.wc-block-order-confirmation-totals__total {
    width: 30%;
    text-align: right;
    white-space: nowrap;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table td.wc-block-order-confirmation-totals__total {
    font-weight: 600;
}

.woocommerce-order-received .greenapi-order-item-unit {
    display: block;
    font-size: 13px;
    color: #666666;
    margin: 6px 0 8px;
}

.woocommerce-order-received .woocommerce-order-details .greenapi-payment-status,
.woocommerce-view-order .woocommerce-order-details .greenapi-payment-status {
    margin: 10px 0 15px;
    text-align: center;
    display: block;
    width: 100%;
}

.woocommerce-order-received .woocommerce-order-details .asaas-pix-instructions,
.woocommerce-order-received .woocommerce-order-details .asaas-pix-instructions__list,
.woocommerce-order-received .woocommerce-order-details .asaas-pix-instructions__list li,
.woocommerce-view-order .woocommerce-order-details .asaas-pix-instructions,
.woocommerce-view-order .woocommerce-order-details .asaas-pix-instructions__list,
.woocommerce-view-order .woocommerce-order-details .asaas-pix-instructions__list li {
    font-size: 16px;
    line-height: 1.5;
}

.woocommerce-order-received .woocommerce-order-details .order_details > li:first-child,
.woocommerce-view-order .woocommerce-order-details .order_details > li:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.woocommerce-order-received .woocommerce-order-details .greenapi-pay-with-pix,
.woocommerce-view-order .woocommerce-order-details .greenapi-pay-with-pix {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    text-align: center;
}

.woocommerce-order-received .woocommerce-order-details .greenapi-ticket-ready,
.woocommerce-view-order .woocommerce-order-details .greenapi-ticket-ready {
    text-align: center;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-order-details .woocommerce-order-details__asaas-ticket-button,
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__asaas-ticket-button {
    font-size: 16px;
    padding: 12px 28px;
    margin-bottom: 22px;
    display: inline-block;
}

.greenapi-payment-change-notice {
    margin: 12px 0;
    font-weight: 600;
}

.greenapi-order-status {
    margin: 10px 0 16px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.greenapi-order-status--completed {
    background: #2e7d32;
    color: #ffffff;
}

@media (max-width: 768px) {
    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }
}

/* Align WooCommerce orders table cells inside My Account */
.woocommerce-account .woocommerce-orders-table td > p {
    margin: 0;
}
.woocommerce-account .woocommerce-orders-table td {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .woocommerce-account table.my_account_orders,
    .woocommerce-account table.my_account_orders thead,
    .woocommerce-account table.my_account_orders tbody,
    .woocommerce-account table.my_account_orders th,
    .woocommerce-account table.my_account_orders td,
    .woocommerce-account table.my_account_orders tr,
    .woocommerce-account .woocommerce-orders-table,
    .woocommerce-account .woocommerce-orders-table thead,
    .woocommerce-account .woocommerce-orders-table tbody,
    .woocommerce-account .woocommerce-orders-table th,
    .woocommerce-account .woocommerce-orders-table td,
    .woocommerce-account .woocommerce-orders-table tr {
        display: block;
        width: 100%;
    }

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

    .woocommerce-account table.my_account_orders tr,
    .woocommerce-account .woocommerce-orders-table tr {
        border: 1px solid #e6e9f2;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #ffffff;
    }

    .woocommerce-account table.my_account_orders td,
    .woocommerce-account .woocommerce-orders-table td {
        display: block;
        padding: 8px 0;
        border: 0;
        text-align: left;
    }

    .woocommerce-account table.my_account_orders td:before,
    .woocommerce-account .woocommerce-orders-table td:before {
        content: attr(data-title);
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #6b6b6b;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
    }

    .woocommerce-account table.my_account_orders td.order-actions,
    .woocommerce-account .woocommerce-orders-table td.order-actions {
        padding-top: 12px;
    }

    .woocommerce-account table.my_account_orders td.order-actions:before,
    .woocommerce-account .woocommerce-orders-table td.order-actions:before {
        content: "";
        display: none;
    }

    .woocommerce-account table.my_account_orders td.order-actions .button,
    .woocommerce-account .woocommerce-orders-table td.order-actions .button {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* My Account edit address card layout */
.greenapi-myaccount-card {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 28px;
    max-width: 900px;
    margin: 40px auto 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e6e9f2;
}
.greenapi-myaccount-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1f2a14;
}
.greenapi-address-details {
    margin: 12px 0 0;
}
.greenapi-address-details__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f7;
    align-items: center;
}
.greenapi-address-details__row:last-child {
    border-bottom: 0;
}
.greenapi-address-details dt {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 0 0 40%;
}
.greenapi-address-details dd {
    margin: 0;
    font-size: 13px;
    color: #1f2937;
    text-align: left;
    word-break: break-word;
    flex: 1;
}
.greenapi-myaccount-card--addresses .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.greenapi-myaccount-card--addresses .woocommerce-Address-title .button {
    min-height: 36px;
    padding: 12px 12px;
    line-height: 1.1;
}
.greenapi-myaccount-card--addresses .woocommerce-Address-title .button br {
    display: none;
}

/* My Account login/register card */
.woocommerce-account .woocommerce .col2-set {
    max-width: 900px;
    margin: 40px auto 0;
}
.woocommerce-account .woocommerce .u-column1,
.woocommerce-account .woocommerce .u-column2,
.woocommerce-account .woocommerce .col2-set > .col-1,
.woocommerce-account .woocommerce .col2-set > .col-2 {
    float: none;
    width: 100%;
}
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e6e9f2;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.woocommerce-account .woocommerce form.login h2,
.woocommerce-account .woocommerce form.register h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1f2a14;
}
.woocommerce-account .woocommerce form.lost_reset_password {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e6e9f2;
    margin: 40px auto 0;
    max-width: 520px;
}
.woocommerce-account .woocommerce form.lost_reset_password input[type="text"],
.woocommerce-account .woocommerce form.lost_reset_password input[type="email"],
.woocommerce-account .woocommerce form.lost_reset_password input[type="password"] {
    border-radius: 12px;
    border: 1px solid #dfe4f0;
    padding: 10px 12px;
}
.woocommerce-account .woocommerce form.lost_reset_password button.button {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #1f1f1f;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 18px;
    width: 100%;
}
.woocommerce-account .woocommerce form.lost_reset_password button.button:hover {
    background: #8ab63f;
    border-color: #8ab63f;
    color: #1f1f1f;
}

/* Top bar menu alignment */
#top-bar,
#top-bar-inner {
    width: 100%;
}
#top-bar-inner {
    display: flex !important;
    justify-content: center !important;
}
#top-bar-content,
#top-bar-nav {
    float: none !important;
    width: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
}
#top-bar-nav .top-bar-menu {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}
.woocommerce-account .woocommerce form.login .form-row,
.woocommerce-account .woocommerce form.register .form-row {
    text-align: left;
}
.woocommerce-account .woocommerce form.login input[type="text"],
.woocommerce-account .woocommerce form.login input[type="email"],
.woocommerce-account .woocommerce form.login input[type="password"],
.woocommerce-account .woocommerce form.register input[type="text"],
.woocommerce-account .woocommerce form.register input[type="email"],
.woocommerce-account .woocommerce form.register input[type="password"] {
    border-radius: 12px;
    border: 1px solid #dfe4f0;
    padding: 10px 12px;
}
.woocommerce-account .woocommerce form.login button.button,
.woocommerce-account .woocommerce form.register button.button {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #1f1f1f;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 18px;
    width: 100%;
}
.woocommerce-account .woocommerce form.login button.button:hover,
.woocommerce-account .woocommerce form.register button.button:hover {
    background: #8ab63f;
    border-color: #8ab63f;
    color: #1f1f1f;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper {
    display: block;
    margin-bottom: 24px;
}
.greenapi-myaccount-card .greenapi-account-fields {
    display: block;
    margin-bottom: 24px;
}
.greenapi-address-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}
.greenapi-account-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}
.greenapi-address-row--single {
    grid-template-columns: 1fr;
}
.greenapi-account-row--single {
    grid-template-columns: 1fr;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .greenapi-address-row {
    grid-auto-flow: row dense;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row {
    margin: 0;
    float: none;
    margin-bottom: 8px;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row {
    min-width: 0;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row label {
    margin-bottom: 2px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4c4f61;
}
.greenapi-myaccount-card .woocommerce-EditAccountForm .form-row label {
    margin-bottom: 2px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4c4f61;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row {
    width: 100%;
}
.greenapi-myaccount-card .woocommerce-EditAccountForm .form-row {
    width: 100%;
}
.greenapi-address-row .form-row {
    width: auto;
}
.greenapi-account-row .form-row {
    width: auto;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row-first {
    grid-column: 1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row-last {
    grid-column: 2;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row-wide,
.greenapi-field-company {
    grid-column: 1 / -1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_postcode_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_postcode_field {
    grid-column: 1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_address_1_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_address_1_field {
    grid-column: 2;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_number_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_number_field {
    grid-column: 1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_address_2_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_address_2_field {
    grid-column: 2;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_neighborhood_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_neighborhood_field {
    grid-column: 1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_city_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_city_field {
    grid-column: 2;
    order: 10;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_cellphone_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_cellphone_field {
    grid-column: 1;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_email_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_email_field {
    grid-column: 2;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_country_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_country_field {
    grid-column: 2;
    order: 0;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #billing_state_field,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper #shipping_state_field {
    grid-column: 1;
    order: 20;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper input,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper select,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper textarea {
    width: 100%;
}
.woocommerce-account .greenapi-myaccount-card--account .woocommerce-EditAccountForm .woocommerce-Input,
.woocommerce-account .greenapi-myaccount-card--account .woocommerce-EditAccountForm .input-text,
.woocommerce-account .greenapi-myaccount-card--account .woocommerce-EditAccountForm select,
.woocommerce-account .greenapi-myaccount-card--account .woocommerce-EditAccountForm textarea {
    width: 100% !important;
    height: 48px !important;
    line-height: 1.4 !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    border: 1px solid #dfe4f0 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}
.woocommerce-account .greenapi-myaccount-card--account .woocommerce-EditAccountForm .password-input .woocommerce-Input {
    height: 48px !important;
}
.greenapi-myaccount-card .woocommerce-EditAccountForm br {
    display: none;
}
.greenapi-myaccount-card .woocommerce-EditAccountForm .password-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.greenapi-myaccount-card .woocommerce-EditAccountForm .password-input .woocommerce-Input {
    flex: 1;
    min-width: 0;
}
.woocommerce form .show-password-input {
    position: absolute;
    right: 4px !important;
    top: 6px !important;
    cursor: pointer;
    height: 35px;
    width: 35px;
    border-radius: 10px;
    border: 1px solid #9fce4d;
    background-color: #9fce4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.woocommerce form .show-password-input::after {
    font-family: "Font Awesome 6 Free";
    speak: never;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    margin-left: 1px !important;
    content: "";
    text-decoration: none;
    color: #1f1f1f;
}
.woocommerce-account .greenapi-myaccount-card--account .show-password-input {
    top: 50% !important;
}
.greenapi-account-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b6b6b;
}
.greenapi-account-fieldset {
    border: 1px solid #e6e9f2;
    border-radius: 18px;
    padding: 16px;
    margin: 16px 0 24px;
}
.greenapi-account-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    color: #2c2c2c;
}
.greenapi-address-actions {
    margin: 0;
    display: flex;
    justify-content: flex-start;
}
.greenapi-address-actions .button {
    background: #9fce4d;
    border-color: #9fce4d;
    color: #0f1b0a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 700;
}

.greenapi-contact-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper input,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper select,
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper textarea {
    height: 48px;
    line-height: 1.4;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dfe4f0;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6c6f7d 50%), linear-gradient(135deg, #6c6f7d 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 14px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper input[readonly] {
    background: #f8fafc;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row .woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    height: 45px !important;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .form-row .woocommerce-input-wrapper {
    width: 100%;
}
.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .select2-container {
    width: 100% !important;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper select[disabled] {
    background-color: #f5f7fb;
    cursor: not-allowed;
}

.greenapi-myaccount-card .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper select[disabled] {
    pointer-events: none;
}

@media (max-width: 768px) {
    .greenapi-myaccount-card {
        padding: 32px;
        margin: 0 16px 24px;
    }
    .greenapi-myaccount-card .woocommerce-address-fields__field-wrapper {
        grid-template-columns: repeat(1, minmax(220px, 1fr));
    }
    .greenapi-contact-row {
        grid-template-columns: repeat(1, minmax(220px, 1fr));
    }
}
