.amc-wrap{--amc-line:rgba(127,127,127,.25);font-size:15px}
.amc-balance{display:flex;flex-direction:column;gap:.2em;padding:1.35em 1.6em;margin:0 0 2em;background:#e8f2fc;border:1px solid #c4dbf4;border-radius:12px}
.amc-balance-value{font-size:2.4em;font-weight:700;line-height:1;color:#0b4f8a}
.amc-balance-label{color:#0b4f8a;opacity:.8;font-size:.85em;text-transform:uppercase;letter-spacing:.04em}
.amc-wrap h3{margin:1.75em 0 .75em;font-size:1.05em;text-transform:uppercase;letter-spacing:.04em;opacity:.8}
.amc-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75em}
.amc-pack{background:#eef7ee;border:1px solid #cfe6cf;border-radius:10px;padding:1em;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.15em}
.amc-pack-credits{font-weight:700}
.amc-pack-label{font-size:.85em;opacity:.75;margin-top:.2em}
.amc-pack-price{margin:.35em 0 .75em;opacity:.8}
.amc-btn{display:inline-block;padding:.5em 1em;border:1px solid currentColor;border-radius:6px;background:none;cursor:pointer;font:inherit;text-decoration:none}
.amc-btn[disabled]{opacity:.45;cursor:not-allowed}
.amc-form p{margin:0 0 .85em}
.amc-form label{display:flex;flex-direction:column;gap:.3em;max-width:420px}
.amc-form select{max-width:100%}
.amc-hint{font-size:.85em;opacity:.7}
.amc-table{width:100%;border-collapse:collapse;margin-bottom:1em}
.amc-table th,.amc-table td{padding:.55em .6em;border-bottom:1px solid var(--amc-line);text-align:left;vertical-align:middle}
.amc-table th{font-size:.8em;text-transform:uppercase;letter-spacing:.04em;opacity:.7}
.amc-in{color:#1a7f37;font-weight:600;white-space:nowrap}
.amc-out{color:#b3261e;font-weight:600;white-space:nowrap}
.amc-notice{padding:.75em 1em;border-radius:8px;border:1px solid var(--amc-line)}
.amc-notice-success{border-color:#1a7f37}
.amc-notice-error{border-color:#b3261e}
.amc-pagination a{display:inline-block;padding:.2em .55em;border:1px solid var(--amc-line);border-radius:4px;margin-right:.25em;text-decoration:none}
.amc-pagination a.amc-current{font-weight:700;border-color:currentColor}
.amc-admin-form input[type=text],.amc-admin-form input[type=number]{margin-right:.75em}
@media (max-width:640px){.amc-table thead{display:none}.amc-table tr{display:block;border-bottom:1px solid var(--amc-line);padding:.5em 0}.amc-table td{display:flex;justify-content:space-between;border:0;padding:.25em 0}}
.amc-shop-strip{margin:0 0 2.5em;clear:both}

/* Botões: especificidade reforçada para não herdar estilos do tema */
.amc-wrap .amc-btn,.amc-wrap button.amc-btn{display:inline-block;padding:.55em 1.2em;border-radius:6px;border:1px solid transparent !important;font:inherit;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s}
.amc-wrap .amc-btn-primary,.amc-wrap button.amc-btn-primary{background-color:#2e7d32 !important;border-color:#2e7d32 !important;color:#fff !important}
.amc-wrap .amc-btn-primary:hover,.amc-wrap .amc-btn-primary:focus{background-color:#256b29 !important;border-color:#256b29 !important;color:#fff !important}
.amc-wrap .amc-btn-primary:active{background-color:#1b5e20 !important;border-color:#1b5e20 !important;color:#fff !important}
.amc-wrap .amc-btn-cancel,.amc-wrap button.amc-btn-cancel{background-color:#ef6c00 !important;border-color:#ef6c00 !important;color:#fff !important;padding:.35em .9em;font-size:.9em}
.amc-wrap .amc-btn-cancel:hover,.amc-wrap .amc-btn-cancel:focus,.amc-wrap .amc-btn-cancel:active{background-color:#c62828 !important;border-color:#c62828 !important;color:#fff !important}
.amc-wrap .amc-btn[disabled],.amc-wrap .amc-btn[disabled]:hover{background-color:#9e9e9e !important;border-color:#9e9e9e !important;color:#fff !important;opacity:.7;cursor:not-allowed}
.amc-wrap .amc-btn:focus-visible{outline:2px solid #1b5e20;outline-offset:2px}
.amc-wrap .amc-pack .amc-btn{margin-top:.5em}

/* ---------------------------------------------------------------
 * Pagamento e confirmação de packs (só encomendas de créditos)
 * ------------------------------------------------------------ */
body.amc-pack-checkout .entry-content>.woocommerce{max-width:680px;margin:0 auto}
body.amc-pack-checkout .entry-header{max-width:680px;margin-left:auto;margin-right:auto;text-align:left}
body.amc-pack-checkout .entry-content>p:empty{display:none}

.amc-pay-intro{display:flex;flex-direction:column;gap:.35em;background:#eef7ee;border:1px solid #cfe6cf;border-radius:12px;padding:1.1em 1.3em;margin:0 0 1.5em}
.amc-pay-intro p{margin:0}
.amc-pay-intro__credits{font-size:1.6em;font-weight:700;line-height:1.1;color:#1b5e20}
.amc-pay-intro--done{align-items:flex-start;gap:.8em}

body.amc-pack-pay #order_review{background:#fff;border:1px solid rgba(127,127,127,.2);border-radius:12px;padding:1.4em;box-shadow:0 1px 3px rgba(0,0,0,.04)}
body.amc-pack-pay #order_review .shop_table{border:0;margin:0 0 1.4em;border-collapse:collapse;width:100%}
body.amc-pack-pay #order_review .shop_table th,
body.amc-pack-pay #order_review .shop_table td{border:0;border-bottom:1px solid rgba(127,127,127,.18);padding:.75em 0;background:none;text-align:left}
body.amc-pack-pay #order_review .shop_table thead th{font-size:.78em;text-transform:uppercase;letter-spacing:.05em;opacity:.65;font-weight:600}
body.amc-pack-pay #order_review .shop_table .product-quantity{display:none}
body.amc-pack-pay #order_review .shop_table .product-total,
body.amc-pack-pay #order_review .shop_table .product-subtotal,
body.amc-pack-pay #order_review .shop_table thead th:last-child{text-align:right}
body.amc-pack-pay #order_review .shop_table .product-name{font-weight:600}
body.amc-pack-pay #order_review .shop_table tfoot tr:last-child th,
body.amc-pack-pay #order_review .shop_table tfoot tr:last-child td{border-bottom:0;font-size:1.15em;font-weight:700;padding-top:1em}

body.amc-pack-pay #payment{background:none;border-radius:0;padding:0}
body.amc-pack-pay #payment ul.payment_methods{border:0;padding:0;margin:0 0 1.2em;list-style:none}
body.amc-pack-pay #payment ul.payment_methods li{border:1px solid rgba(127,127,127,.25);border-radius:10px;padding:.9em 1em;margin:0 0 .6em;background:#fafafa}
body.amc-pack-pay #payment ul.payment_methods li:has(input:checked){border-color:#2e7d32;background:#f4faf4}
body.amc-pack-pay #payment ul.payment_methods li label{font-weight:600;cursor:pointer;margin-left:.35em}
body.amc-pack-pay #payment div.payment_box{background:none;margin:.6em 0 0;padding:0 0 0 1.7em;font-size:.9em;opacity:.85}
body.amc-pack-pay #payment div.payment_box::before{display:none}
body.amc-pack-pay #payment div.form-row{padding:0;margin:0}
body.amc-pack-pay .woocommerce-privacy-policy-text{font-size:.8em;opacity:.7;margin:0 0 1em}

body.amc-pack-pay #place_order{float:none;width:100%;display:block;padding:.9em 1.2em;border-radius:8px;border:1px solid #2e7d32 !important;background-color:#2e7d32 !important;color:#fff !important;font-weight:700;font-size:1.05em;cursor:pointer}
body.amc-pack-pay #place_order:hover,body.amc-pack-pay #place_order:focus{background-color:#256b29 !important;border-color:#256b29 !important}
body.amc-pack-pay #place_order:active{background-color:#1b5e20 !important;border-color:#1b5e20 !important}

body.amc-pack-received .woocommerce-order{max-width:680px;margin:0 auto}
body.amc-pack-received .woocommerce-order-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.6em;padding:0;margin:0 0 1.5em;list-style:none}
body.amc-pack-received .woocommerce-order-overview li{border:1px solid rgba(127,127,127,.2)!important;border-radius:10px;padding:.8em 1em!important;margin:0!important;font-size:.75em;text-transform:uppercase;letter-spacing:.04em}
body.amc-pack-received .woocommerce-order-overview li strong{display:block;font-size:1.25em;text-transform:none;letter-spacing:0;margin-top:.2em}
body.amc-pack-received .woocommerce-bacs-bank-details{border:1px solid rgba(127,127,127,.2);border-radius:12px;padding:1em 1.3em;margin-bottom:1.5em}
body.amc-pack-received .woocommerce-customer-details{display:none}

@media (max-width:640px){
body.amc-pack-pay #order_review{padding:1em;border-radius:10px}
}

/* Espaçamento quando o painel surge a seguir a outro conteúdo (ex.: shortcode) */
.woocommerce+.amc-wrap,.entry-content>*+.amc-wrap{margin-top:2.5em;clear:both}
.woocommerce-MyAccount-content .amc-wrap{margin-top:0}
.woocommerce-MyAccount-content .amc-wrap h3:first-of-type{margin-top:0}

/* Cartão do painel da conta */
.amc-account-card{position:relative}
.amc-account-card__balance{display:inline-flex !important;align-items:baseline;gap:.3em;align-self:flex-start;width:auto !important;margin-top:.7em;padding:.35em .7em;background:#e8f2fc;border:1px solid #c4dbf4;color:#0b4f8a !important;font-size:.72rem !important;font-weight:600;text-transform:uppercase;letter-spacing:.06em;line-height:1.2}
.amc-account-card__balance b{font-size:1.35em;font-weight:700;letter-spacing:0}
.amc-account-card__balance.is-negative{background:#fdecea;border-color:#f5c6c0;color:#b3261e !important}

/* ---------------------------------------------------------------
 * Separadores e ajuda do utilizador
 * ------------------------------------------------------------ */
.amc-tabs{display:flex;gap:0;margin:0 0 1.75em;border-bottom:1px solid rgba(127,127,127,.25)}
.amc-tab{padding:.7em 1.1em;margin-bottom:-1px;border-bottom:2px solid transparent;color:inherit;opacity:.65;font-weight:600;text-decoration:none !important}
.amc-tab:hover{opacity:1}
.amc-tab.is-active{opacity:1;border-bottom-color:currentColor}

.amc-help-lead{font-size:1.05em;margin:0 0 1.5em}
.amc-help-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75em;margin:0 0 2em;padding:0;list-style:none;counter-reset:amc-step}
.amc-help-steps li{counter-increment:amc-step;display:flex;flex-direction:column;gap:.25em;padding:1em 1.1em;background:#e8f2fc;border:1px solid #c4dbf4}
.amc-help-steps li::before{content:counter(amc-step,decimal-leading-zero);font-weight:700;color:#0b4f8a;font-size:.85em;letter-spacing:.05em}
.amc-help-steps li strong{color:#0b4f8a}
.amc-help-steps li span{font-size:.9em;opacity:.85}

.amc-help-item{border:1px solid rgba(127,127,127,.25);margin:0 0 -1px;background:#fff}
.amc-help-item summary{cursor:pointer;list-style:none;padding:1em 2.6em 1em 1.1em;font-weight:600;position:relative}
.amc-help-item summary::-webkit-details-marker{display:none}
.amc-help-item summary::after{content:"+";position:absolute;right:1.1em;top:50%;transform:translateY(-50%);font-size:1.3em;font-weight:400;opacity:.6}
.amc-help-item[open] summary::after{content:"−"}
.amc-help-item[open] summary{border-bottom:1px solid rgba(127,127,127,.15)}
.amc-help-body{padding:1em 1.1em 1.2em}
.amc-help-body>*:last-child{margin-bottom:0}
.amc-help-body ol,.amc-help-body ul{margin:0 0 1em 1.2em;padding:0}
.amc-help-body li{margin:0 0 .4em}
.amc-help-body .amc-table{margin-bottom:1em}
.amc-help-example{padding:.7em .9em;background:#eef7ee;border-left:3px solid #2e7d32}

/* ---------------------------------------------------------------
 * Ajuda do gestor (admin)
 * ------------------------------------------------------------ */
.amc-admin-help{max-width:960px}
.amc-admin-help__toc{background:#fff;border:1px solid #dcdcde;padding:1em 1.4em;margin:1.2em 0 1.5em}
.amc-admin-help__toc ol{columns:2;margin:.6em 0 0 1.2em}
.amc-admin-help__toc li{margin:0 0 .3em}
.amc-admin-help__section{background:#fff;border:1px solid #dcdcde;padding:.4em 1.6em 1.2em;margin:0 0 1em}
.amc-admin-help__section h2{margin-top:1em}
.amc-admin-help__section li{margin-bottom:.5em}
.amc-admin-help__section table{margin:.6em 0 1em}
.amc-admin-help__section th{width:32%}
.amc-admin-help__flow th{width:130px}
.amc-admin-help__code{background:#1e1e1e;color:#e6e6e6;padding:1em 1.2em;overflow-x:auto;font-size:12px;line-height:1.6}
@media (max-width:782px){.amc-admin-help__toc ol{columns:1}}
