/* ============================================================
   AS Pay 1 / AS Pay 2 – Shared Panel Styles v1.0.0
   Brand: Agni Samaj | agnisamaj.com
   ============================================================ */

/* ── Wrapper ── */
.as-pay-wrap {
    font-family: 'Georgia', 'Palatino Linotype', serif;
    max-width: 480px;
    margin: 2rem auto;
    background: #fffdf7;
    border: 1px solid #e0ccaa;
    border-radius: 8px;
    box-shadow: 0 2px 24px rgba(180, 90, 0, 0.12);
    overflow: hidden;
    color: #1a0e00;
    box-sizing: border-box;
}

/* ── Header ── */
.as-pay-header {
    background: linear-gradient(135deg, #c0390a 0%, #e8601c 55%, #f5a623 100%);
    padding: 1rem 1.6rem;
}

.as-pay-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.as-pay-flame { font-size: 1.4rem; line-height: 1; }
.as-pay-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
}

/* ── Product block ── */
.as-pay-product {
    padding: 1.2rem 1.6rem .8rem;
    border-bottom: 1px solid #e8d8b8;
    background: #fff9ee;
}

.as-pay-badge {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9b4400;
    background: #fde8c8;
    border: 1px solid #f5c88a;
    border-radius: 3px;
    padding: .15rem .55rem;
    margin-bottom: .5rem;
}

.as-pay-product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: #1a0e00;
    line-height: 1.3;
}

.as-pay-tagline {
    font-size: .82rem;
    color: #7a5030;
    margin: 0;
    font-style: italic;
}

/* ── Pricing / amounts area ── */
.as-pay-pricing {
    padding: .85rem 1.6rem;
    border-bottom: 1px solid #e8d8b8;
    background: #fff;
}

.as-pay-price-row {
    display: flex;
    align-items: baseline;
    gap: .75rem;
}

.as-pay-currency-label {
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: #9b4400;
    min-width: 80px;
}

.as-pay-price-val {
    font-size: .95rem;
    color: #1a0e00;
}

/* ── Amount buttons (AS Pay 2) ── */
.asp2-amount-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .2rem;
}

.asp2-amt-btn {
    font-family: Arial, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    padding: .45rem 1rem;
    border: 2px solid #e0ccaa;
    border-radius: 5px;
    background: #fff9ee;
    color: #7a3000;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.asp2-amt-btn:hover {
    background: #fde8c8;
    border-color: #c0390a;
    color: #c0390a;
}

.asp2-amt-btn.active {
    background: #c0390a;
    border-color: #c0390a;
    color: #fff;
}

/* ── Quantity row (AS Pay 1) ── */
.as-pay-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.6rem;
    border-bottom: 1px solid #e8d8b8;
    background: #fff9ee;
}

.as-pay-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #c8aa80;
    border-radius: 5px;
    overflow: hidden;
}

.as-pay-qty-btn {
    background: #fde8c8;
    border: none;
    padding: .4rem .75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #9b4400;
    cursor: pointer;
    line-height: 1;
    transition: background .12s;
}

.as-pay-qty-btn:hover:not(:disabled) { background: #f5c88a; }
.as-pay-qty-btn:disabled { opacity: .4; cursor: default; }

.as-pay-qty-input {
    border: none !important;
    border-left: 1px solid #c8aa80 !important;
    border-right: 1px solid #c8aa80 !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center !important;
    width: 56px !important;
    padding: .4rem .3rem !important;
    font-size: .95rem !important;
    font-family: Arial, sans-serif !important;
    -moz-appearance: textfield !important;
}

.as-pay-qty-input::-webkit-inner-spin-button,
.as-pay-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Total row ── */
.as-pay-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1.6rem;
    border-bottom: 1px solid #e8d8b8;
    background: #fff;
}

.as-pay-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: #c0390a;
}

/* ── Label & fields ── */
.as-pay-label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: #4a2800;
    margin-bottom: 0;
}

.as-pay-fields {
    padding: 1rem 1.6rem .5rem;
    border-bottom: 1px solid #e8d8b8;
}

.as-pay-field-group { margin-bottom: .8rem; }

.as-pay-field-group .as-pay-label { margin-bottom: .3rem; }

.as-req { color: #c0390a; }

.as-pay-input {
    width: 100% !important;
    padding: .5rem .7rem !important;
    font-size: .9rem !important;
    font-family: Arial, sans-serif !important;
    border: 1px solid #c8aa80 !important;
    border-radius: 4px !important;
    background: #fffdf7 !important;
    color: #1a0e00 !important;
    box-sizing: border-box !important;
    transition: border-color .15s !important;
    outline: none !important;
}

.as-pay-input:focus {
    border-color: #e8601c !important;
    box-shadow: 0 0 0 2px rgba(232, 96, 28, 0.15) !important;
}

/* ── Disclaimer ── */
.as-pay-disclaimer {
    font-family: Arial, sans-serif;
    font-size: .72rem;
    color: #7a5030;
    padding: .6rem 1.6rem;
    margin: 0;
    background: #fff9ee;
    border-bottom: 1px solid #e8d8b8;
    line-height: 1.5;
}

/* ── Status messages ── */
.as-pay-status {
    margin: 0 1.6rem .8rem;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    border-radius: 4px;
    text-align: center;
    line-height: 1.55;
}

.as-pay-status.as-error {
    padding: .65rem 1rem;
    background: #fdecea;
    border: 1px solid #c0392b;
    color: #7b1a12;
}

.as-pay-status.as-success {
    padding: .65rem 1rem;
    background: #fff8e8;
    border: 1px solid #e8601c;
    color: #7a2200;
}

.as-pay-status.as-loading {
    padding: .65rem 1rem;
    background: #fff9ee;
    border: 1px solid #f5a623;
    color: #7a4000;
}

/* ── Footer ── */
.as-pay-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .65rem 1.6rem;
    font-family: Arial, sans-serif;
    font-size: .72rem;
    color: #9b7040;
    background: #fff5e0;
    border-top: 1px solid #e8d8b8;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .as-pay-wrap { margin: 1rem auto; border-radius: 6px; }
    .as-pay-header, .as-pay-product, .as-pay-pricing,
    .as-pay-fields, .as-pay-qty-row, .as-pay-total-row,
    .as-pay1-btn-container, .asp2-btn-container { padding-left: 1.1rem; padding-right: 1.1rem; }
    .as-pay-disclaimer, .as-pay-status, .as-pay-footer { padding-left: 1.1rem; padding-right: 1.1rem; }
}
