/* Astra Mercado Pago - Checkout transparente */
#astramp-wrapper { max-width: 520px; margin: 16px auto; font-family: inherit; color: #1f2937; }
#astramp-wrapper,
.astramp-inline-checkout { max-width: 640px; margin: 16px 0 24px; font-family: inherit; color: #1f2937; }
#astramp-wrapper .astramp-row { margin-bottom: 12px; }
#astramp-wrapper .astramp-row,
.astramp-inline-checkout .astramp-row { margin-bottom: 12px; }
#astramp-wrapper label { display:block; font-size:13px; font-weight:600; margin-bottom:4px; }
#astramp-wrapper label,
.astramp-inline-checkout label { display:block; font-size:13px; font-weight:600; margin-bottom:4px; }
#astramp-wrapper input, #astramp-wrapper select,
.astramp-inline-checkout input, .astramp-inline-checkout select {
    width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px;
    font-size:15px; background:#fff; box-sizing:border-box;
    transition: border-color .15s, box-shadow .15s;
}
#astramp-wrapper input:focus, #astramp-wrapper select:focus,
.astramp-inline-checkout input:focus, .astramp-inline-checkout select:focus {
    outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
#astramp-wrapper .astramp-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#astramp-wrapper .astramp-grid-2,
.astramp-inline-checkout .astramp-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#astramp-wrapper .astramp-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
#astramp-wrapper .astramp-grid-3,
.astramp-inline-checkout .astramp-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
#astramp-wrapper .astramp-btn {
    display:block; width:100%; padding:12px 16px; background:#009ee3; color:#fff;
    border:none; border-radius:10px; font-size:16px; font-weight:600; cursor:pointer;
    margin-top:8px; transition: background .15s, transform .05s;
}
#astramp-wrapper .astramp-btn:hover { background:#007fb8; }
#astramp-wrapper .astramp-btn:active { transform:scale(.99); }
#astramp-wrapper .astramp-btn[disabled] { background:#94a3b8; cursor:not-allowed; }
#astramp-wrapper .astramp-message { padding:10px 12px; border-radius:8px; font-size:14px; margin:8px 0; }
#astramp-wrapper .astramp-message,
.astramp-inline-checkout .astramp-message { padding:10px 12px; border-radius:8px; font-size:14px; margin:8px 0; }
#astramp-wrapper .astramp-message.error   { background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
#astramp-wrapper .astramp-message.success { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
#astramp-wrapper .astramp-message.info    { background:#dbeafe; color:#1e40af; border:1px solid #bfdbfe; }
#astramp-wrapper .astramp-section {
    margin-bottom: 18px;
}
.astramp-inline-checkout .astramp-message.error   { background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.astramp-inline-checkout .astramp-message.success { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.astramp-inline-checkout .astramp-message.info    { background:#dbeafe; color:#1e40af; border:1px solid #bfdbfe; }
.astramp-inline-checkout .astramp-section {
    margin: 16px 0 0;
    padding: 24px;
    border: 1px solid #cfe0ff;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.13), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}
.astramp-inline-checkout .astramp-section h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}
.astramp-inline-checkout .astramp-card-head {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}
.astramp-inline-checkout .astramp-card-head-logo-only {
    grid-template-columns: 1fr;
    justify-items: flex-start;
    margin-bottom: 6px;
}
.astramp-brand-logo {
    display: flex;
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(37,99,235,.18));
}
.astramp-brand-logo-sm {
    width: 110px;
    max-width: 110px;
    filter: none;
}
.astramp-inline-checkout .astramp-card-copy p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #5b6b84;
}
.astramp-inline-checkout .astramp-autopay-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d8e5ff;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(239,246,255,.92), rgba(255,255,255,.98));
}
.astramp-inline-checkout .astramp-autopay-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2563eb;
}
.astramp-inline-checkout .astramp-choice {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #bfd5ff;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    cursor: pointer;
}
.astramp-inline-checkout .astramp-choice input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
}
.astramp-inline-checkout .astramp-choice span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}
.astramp-inline-checkout .astramp-choice-note {
    margin: 8px 2px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}
.astramp-method-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.astramp-method-copy {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2563eb;
}
.astramp-modal-open {
    overflow: hidden;
}
.astramp-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}
.astramp-modal.is-open {
    display: block;
}
.astramp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
}
.astramp-modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    border: 1px solid #dbe7ff;
}
.astramp-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.astramp-modal-logo {
    width: 250px;
    max-width: 100%;
    height: auto;
}
.astramp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 18px;
    cursor: pointer;
}
.astramp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.astramp-modal-secondary {
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}
.astramp-modal-primary {
    width: auto !important;
    min-width: 240px;
    margin-top: 0 !important;
}
.astramp-inline-checkout label {
    color: #334155;
    letter-spacing: .01em;
}
.astramp-inline-checkout input,
.astramp-inline-checkout select {
    min-height: 46px;
    border-color: #cbd8ee;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
}
.astramp-inline-checkout input::placeholder {
    color: #94a3b8;
}
@media (max-width: 768px) {
    .astramp-inline-checkout {
        max-width: 100%;
    }
    .astramp-inline-checkout .astramp-grid-2,
    .astramp-inline-checkout .astramp-grid-3 {
        grid-template-columns: 1fr;
    }
    .astramp-inline-checkout .astramp-card-head {
        grid-template-columns: 1fr;
    }
    .astramp-brand-logo {
        max-width: 160px;
    }
    .astramp-modal-dialog {
        padding: 22px;
    }
}

/* === Saved card support inside the inline order checkout === */
.astramp-inline-checkout .astramp-mode-toggle {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.astramp-inline-checkout .astramp-mode-toggle .astramp-choice {
    margin: 0;
    font-weight: 600;
}
.astramp-inline-checkout .astramp-saved-mode,
.astramp-inline-checkout .astramp-new-mode {
    margin-top: 12px;
}
.astramp-inline-checkout .astramp-saved-installments-row {
    margin-top: 6px;
}
.astramp-inline-checkout .astramp-secure-field,
#astramp-wrapper .astramp-secure-field {
    min-height: 46px;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 10px;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
}
.astramp-inline-checkout .astramp-secure-field iframe,
#astramp-wrapper .astramp-secure-field iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    background: transparent !important;
    pointer-events: auto !important;
}
.astramp-inline-checkout .astramp-mode-select-wrap {
    padding: 14px;
    border: 1px solid #bfd5ff;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.92));
    box-shadow: 0 10px 30px rgba(37,99,235,.10);
}
.astramp-inline-checkout .astramp-mode-select-wrap label {
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.astramp-inline-checkout select {
    color: #0f172a !important;
    background: #fff !important;
}
.astramp-inline-checkout .astramp-row-cvv-short {
    max-width: 120px;
}
.astramp-inline-checkout .astramp-row-cvv-short .astramp-secure-field {
    max-width: 120px;
}

.astramp-autopay-box strong{color:#172033}.astramp-autopay-box small{color:#5b6b84;line-height:1.45}.astramp-autopay-box:hover{border-color:#6ea8ff;background:#f1f7ff}

.astramp-secure-field{height:48px;min-height:48px;border:1px solid #cfe0ff;border-radius:12px;background:#fff;display:flex;align-items:center;padding:0 12px;overflow:hidden;box-sizing:border-box}.astramp-secure-field iframe{height:48px!important;max-height:48px!important}.astramp-mode-toggle{display:flex;gap:12px;flex-wrap:wrap;background:#f8fbff;border:1px solid #dbeafe;border-radius:14px;padding:10px}.astramp-choice{display:flex;align-items:center;gap:8px;border:1px solid #bcd4ff;border-radius:12px;padding:10px 14px;background:#fff;font-weight:700;cursor:pointer}.astramp-choice input{width:18px;height:18px}.astramp-saved-mode,.astramp-new-mode{margin-top:10px}


/* === v16: fatura mais limpa e legível no painel azul do WHMCS === */
#astramp-wrapper.astramp-invoice-checkout{
    max-width: none;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    color:#ffffff;
}
#astramp-wrapper.astramp-invoice-checkout form{margin:0;}
#astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin: 4px 0 14px;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head img{
    width:130px;
    max-width:58%;
    background:rgba(255,255,255,.16);
    border-radius:10px;
    padding:4px 6px;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head strong{
    display:block;
    font-size:15px;
    line-height:1.2;
    color:#fff;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head span{
    display:block;
    font-size:12px;
    color:rgba(255,255,255,.82);
    line-height:1.35;
}
#astramp-wrapper.astramp-invoice-checkout label{
    color:#eaf2ff;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
}
#astramp-wrapper.astramp-invoice-checkout input,
#astramp-wrapper.astramp-invoice-checkout select{
    min-height:42px;
    border:1px solid rgba(255,255,255,.45);
    border-radius:10px;
    background:#ffffff;
    color:#0f172a;
    font-size:14px;
    padding:9px 11px;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-mode-select-wrap{
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.22);
}
#astramp-wrapper.astramp-invoice-checkout .astramp-saved-mode,
#astramp-wrapper.astramp-invoice-checkout .astramp-new-mode{
    margin-top:12px;
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.22);
}
#astramp-wrapper.astramp-invoice-checkout .astramp-grid-2{grid-template-columns:1fr 1fr;gap:10px;}
#astramp-wrapper.astramp-invoice-checkout .astramp-grid-3{grid-template-columns:1fr 1fr 1fr;gap:8px;}
#astramp-wrapper.astramp-invoice-checkout .astramp-secure-field{
    height:46px!important;
    min-height:46px!important;
    border-radius:10px;
    background:#fff;
    padding:0 10px;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-autopay-box{
    margin:12px 0!important;
    padding:12px!important;
    border-radius:14px!important;
    background:#ffffff!important;
    color:#172033!important;
    border:1px solid #dbeafe!important;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-autopay-box input{
    width:18px!important;
    min-height:18px!important;
    padding:0!important;
}
#astramp-wrapper.astramp-invoice-checkout .astramp-autopay-box strong{font-size:13px;color:#172033;}
#astramp-wrapper.astramp-invoice-checkout .astramp-autopay-box small{display:block;margin-top:3px;font-size:12px;color:#475569;}
#astramp-wrapper.astramp-invoice-checkout .astramp-btn{
    min-height:46px;
    border-radius:12px;
    background:linear-gradient(135deg,#05aeea,#0284c7);
    box-shadow:0 14px 30px rgba(2,132,199,.28);
}
#astramp-wrapper.astramp-invoice-checkout .astramp-message{font-size:13px;line-height:1.45;}
#astramp-wrapper.astramp-invoice-checkout .astramp-choice span{display:inline;color:#172033!important;font-weight:700;}
#astramp-wrapper.astramp-invoice-checkout .astramp-choice input{width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;}
@media (max-width: 480px){
  #astramp-wrapper.astramp-invoice-checkout .astramp-grid-2,
  #astramp-wrapper.astramp-invoice-checkout .astramp-grid-3{grid-template-columns:1fr;}
  #astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head{display:block;}
  #astramp-wrapper.astramp-invoice-checkout .astramp-invoice-head div{margin-top:8px;}
}


/* AstraMP v33.5 - seleção crédito/débito e salvar cartão */
.astramp-card-type-wrap{padding:12px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid #dbeafe;box-shadow:0 10px 25px rgba(15,23,42,.04)}
.astramp-card-type-select{font-weight:800;border:1px solid #bfdbfe!important;background:#fff!important;box-shadow:0 8px 18px rgba(37,99,235,.08)}
.astramp-save-card-box{transition:.18s ease;}
.astramp-save-card-box:hover{border-color:#60a5fa!important;box-shadow:0 10px 24px rgba(37,99,235,.10)}
.astramp-save-card-box strong{color:#172033;font-size:13px;}
.astramp-save-card-box small{display:block;margin-top:3px;color:#475569;font-size:12px;line-height:1.35;}
#astramp-wrapper.astramp-invoice-checkout .astramp-card-type-wrap{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22);box-shadow:none;}
#astramp-wrapper.astramp-invoice-checkout .astramp-save-card-box{background:#fff!important;color:#172033!important;border:1px solid #dbeafe!important;border-radius:14px!important;}
#astramp-wrapper.astramp-invoice-checkout .astramp-save-card-box input{width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;}
