/* Astropedia adapter for neopay-astropedia-v3.0.zip / [payment_component] */
.astro-neopay-v3 .anpc-payment {
    width: 100%;
    max-width: none;
    margin: 0;
}

.astro-neopay-v3 .anpc-payment form {
    display: grid;
    gap: 17px;
}

.astro-neopay-v3 .anpc-field {
    display: grid;
    gap: 8px;
}

.astro-neopay-v3 .anpc-field label {
    color: var(--astro-wine);
    font-family: var(--astro-sans);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.astro-neopay-v3 .anpc-field > input,
.astro-neopay-v3 .anpc-amount-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(79,0,29,.14);
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.astro-neopay-v3 .anpc-field > input {
    padding: 0 17px;
    color: var(--astro-text);
    font-family: var(--astro-sans);
    font-size: 16px;
    outline: 0;
}

.astro-neopay-v3 .anpc-amount-input {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.astro-neopay-v3 .anpc-amount-input input {
    min-width: 0;
    min-height: 56px;
    flex: 1 1 auto;
    padding: 0 17px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--astro-wine);
    font-family: var(--astro-serif);
    font-size: 27px;
    font-weight: 500;
    outline: 0;
}

.astro-neopay-v3 .anpc-amount-input span {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-width: 66px;
    padding: 0 14px;
    border-left: 1px solid rgba(79,0,29,.10);
    background: rgba(217,155,56,.08);
    color: var(--astro-copper);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
}

.astro-neopay-v3 .anpc-field > input:focus,
.astro-neopay-v3 .anpc-amount-input:focus-within {
    border-color: rgba(167,100,34,.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217,155,56,.10);
}

.astro-neopay-v3 .anpc-payment button[data-anpc-submit] {
    width: 100%;
    min-height: 58px;
    margin-top: 3px;
    padding: 0 22px;
    border: 1px solid rgba(120,66,10,.10);
    border-radius: 999px;
    background: linear-gradient(120deg, #d99b38, #f0bd64 52%, #c88023);
    color: #2a1708;
    box-shadow: 0 14px 30px rgba(167,100,34,.20);
    font-family: var(--astro-sans);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .075em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.astro-neopay-v3 .anpc-payment button[data-anpc-submit]:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 35px rgba(167,100,34,.25);
}

.astro-neopay-v3 .anpc-payment button[data-anpc-submit]:focus-visible {
    outline: 3px solid rgba(79,0,29,.20);
    outline-offset: 3px;
}

.astro-neopay-v3 .anpc-payment button[data-anpc-submit][disabled] {
    opacity: .58;
    cursor: wait;
    transform: none;
}

.astro-neopay-v3 .anpc-message {
    min-height: 0;
    margin: -2px 0 0;
    color: var(--astro-muted);
    font-size: 12px;
    line-height: 1.5;
}

.astro-neopay-v3 .anpc-message.is-error {
    padding: 10px 12px;
    border: 1px solid rgba(178,73,73,.18);
    border-radius: 10px;
    background: rgba(178,73,73,.055);
    color: #9b2f2f;
}

.astro-payment-reassurance {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--astro-line);
}

.astro-payment-reassurance > span {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(167,100,34,.22);
    border-radius: 50%;
    color: var(--astro-copper);
    background: rgba(217,155,56,.055);
}

.astro-payment-reassurance p {
    margin: 0;
}

.astro-payment-reassurance strong,
.astro-payment-reassurance small {
    display: block;
}

.astro-payment-reassurance strong {
    color: var(--astro-wine);
    font-size: 11px;
    letter-spacing: .035em;
}

.astro-payment-reassurance small {
    margin-top: 2px;
    color: var(--astro-muted);
    font-size: 10px;
    line-height: 1.45;
}

.astro-plugin-warning {
    margin-bottom: 16px;
    padding: 14px 15px;
    border: 1px solid rgba(181,124,33,.25);
    border-radius: 12px;
    background: rgba(217,155,56,.075);
    color: var(--astro-muted);
    font-size: 12px;
    line-height: 1.55;
}

.astro-plugin-warning strong {
    display: block;
    margin-bottom: 3px;
    color: var(--astro-wine);
}

.astro-plugin-warning p { margin: 0; }
.astro-plugin-warning code { font-size: 11px; }

@media (max-width: 560px) {
    .astro-neopay-v3 .anpc-field > input,
    .astro-neopay-v3 .anpc-amount-input,
    .astro-neopay-v3 .anpc-payment button[data-anpc-submit] {
        min-height: 54px;
    }
    .astro-neopay-v3 .anpc-amount-input input { min-height: 52px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .astro-neopay-v3 *,
    .astro-neopay-v3 *::before,
    .astro-neopay-v3 *::after { transition: none !important; }
}
