.barion-payment-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f8fafc;
    color: #172033;
}
.barion-payment-banner__copy { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 250px; min-width: 0; }
.barion-payment-banner__icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #e8f5fb; color: #007fdb; font-size: 18px; }
.barion-payment-banner__copy strong { display: block; margin-bottom: 4px; color: #172033; font-size: 14px; line-height: 1.4; }
.barion-payment-banner__copy span span { display: block; max-width: 520px; color: #5f6b7b; font-size: 13px; line-height: 1.55; }
.barion-payment-banner > a { display: inline-flex; flex: 0 1 250px; max-width: 100%; }
.barion-payment-banner img { display: block; width: 250px; max-width: 100%; height: auto; }
.checkout-payment-method #payment_card:not(:checked) ~ .barion-payment-banner { display: none; }
.checkout-payment-method .single-method:has(.barion-checkout-choice__cards) > #payment_card { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.checkout-payment-method .single-method:has(.barion-checkout-choice__cards) > label[for="payment_card"] { display: none; }

.barion-checkout-choice { margin-top: 16px; padding: 18px; border: 1px solid #dbe4ee; border-radius: 14px; background: #fff; }
.barion-checkout-choice[hidden], .barion-payment-banner[hidden] { display: none; }
.barion-checkout-choice__label { display: block; margin-bottom: 8px; color: #172033; font-weight: 700; }
.barion-checkout-choice select { width: 100%; max-width: 500px; }
.barion-checkout-choice__cards { display: grid; grid-auto-rows: 1fr; gap: 10px; max-width: 620px; }
.checkout-form .barion-checkout-choice__card { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 108px; margin: 0; padding: 16px 18px; border: 2px solid #dbe4ee; border-radius: 14px; background: #fff; color: #172033; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.barion-checkout-choice__card:hover { border-color: #c889a5; }
.barion-checkout-choice__card:has(input:checked) { border-color: #c24b81; background: #fff8fb; box-shadow: 0 0 0 3px rgba(194, 75, 129, .09); }
.barion-checkout-choice--inactive .barion-checkout-choice__card:has(input:checked) { border-color: #dbe4ee; background: #fff; box-shadow: none; }
.barion-checkout-choice__card:has(input:focus-visible) { outline: 3px solid rgba(194, 75, 129, .45); outline-offset: 2px; }
.barion-checkout-choice__card input[type="radio"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.barion-checkout-choice__card-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #f6eaf0; color: #a43869; font-size: 22px; }
.barion-checkout-choice__card-details { display: grid; gap: 3px; flex: 1; min-width: 0; line-height: 1.3; }
.barion-checkout-choice__card-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #344054; font-size: 15px; font-weight: 700; }
.barion-checkout-choice__card-number { display: block; color: #172033; font-size: 22px; font-weight: 800; letter-spacing: .04em; line-height: 1.25; }
.barion-checkout-choice__card-expiry { color: #5f6b7b; font-size: 14px; }
.barion-checkout-choice__default { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #e5f6ec; color: #1d704c; font-size: 11px; font-weight: 700; line-height: 1.4; }
.barion-checkout-choice__new-label { color: #172033; font-size: 16px; font-weight: 700; }
.barion-checkout-choice__hint { margin: 10px 0 0; color: #5f6b7b; font-size: 13px; line-height: 1.55; }
.barion-consent { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 13px 15px; border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; cursor: pointer; }
.barion-consent input[type="checkbox"] { position: static; display: block; flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; opacity: 1; appearance: auto; accent-color: var(--color-primary, #2f57ef); cursor: pointer; }
.barion-consent span { color: #344054; font-size: 13px; line-height: 1.55; }
.checkout-form .barion-consent { display: flex; font-weight: 400; text-transform: none; }
.barion-checkout-choice__footer { margin-top: 12px; font-size: 13px; }
.barion-checkout-choice__footer a { color: var(--color-primary, #2f57ef); font-weight: 700; }
.barion-checkout-choice__amount { margin: 0 0 8px; color: #172033; }
.checkout-payment-method .single-method .barion-checkout-choice p { display: block; }

.barion-vault { color: #172033; }
.barion-vault__intro { margin: 7px 0 20px; color: #667085; font-size: 14px; }
.barion-vault__panel { overflow: hidden; margin-bottom: 22px; border: 1px solid #dbe4ee; border-radius: 16px; background: #fff; box-shadow: 0 4px 15px rgba(25, 40, 70, .04); }
.barion-vault__panel--add { padding: 22px; border-color: #bfdcef; background: #f0f8ff; }
.barion-vault__panel h4 { margin: 0 0 14px; color: #172033; font-size: 18px; }
.barion-vault__panel--add .barion-payment-banner { margin-bottom: 16px; }
.barion-vault__panel--add > p { margin: 0 0 12px; color: #44566a; font-size: 13px; line-height: 1.55; }
.barion-vault__panel--add .barion-consent { margin: 16px 0; }
.barion-vault__panel-header { padding: 18px 22px; border-bottom: 1px solid #e9eef4; background: #f8fafc; }
.barion-vault__panel-header h4 { margin: 0; }
.barion-vault__panel-header p { margin: 5px 0 0; color: #667085; font-size: 13px; }
.barion-vault__card { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 19px 22px; border-bottom: 1px solid #e9eef4; }
.barion-vault__card:last-child { border-bottom: 0; }
.barion-vault__card-name { display: block; color: #172033; font-size: 16px; font-weight: 700; }
.barion-vault__card-meta { display: block; margin-top: 4px; color: #667085; font-size: 13px; }
.barion-vault__badges, .barion-vault__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.barion-vault__badges { margin-top: 10px; }
.barion-vault__badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #e5f6ec; color: #1d704c; font-size: 12px; font-weight: 700; }
.barion-vault__badge--blue { background: #e8f5fb; color: #116c9b; }
.barion-vault__badge--muted { background: #edf1f4; color: #64748b; }
.barion-vault__actions form { margin: 0; }
.barion-vault__actions .rbt-btn { min-height: 38px; padding: 8px 14px; border-radius: 10px; font-size: 12px; line-height: 1.35; }
.barion-vault__actions .barion-vault__delete { border-color: #f1c9c9; color: #a32b32; }
.barion-vault__empty { margin: 0; padding: 24px 22px; color: #667085; }
.barion-vault__panel--add .rbt-btn { border-radius: 10px; }

.barion-pass-card { margin: 12px 0; padding: 14px; border: 1px solid #dbe4ee; border-radius: 12px; background: #f8fafc; }
.barion-pass-card .barion-payment-banner { margin: 12px 0; }
.barion-pass-card .barion-consent { margin: 12px 0; }
.barion-pass-card__link { display: inline-block; margin-top: 10px; color: var(--color-primary, #2f57ef); font-weight: 700; }
.barion-auth-card { max-width: 780px; margin: 0 auto; padding: 25px; border: 1px solid #dbe4ee; border-radius: 16px; background: #fff; box-shadow: 0 4px 15px rgba(25, 40, 70, .05); }
.barion-auth-card .barion-payment-banner { margin: 20px 0; }
@media (max-width: 600px) {
    .barion-payment-banner { padding: 15px; }
    .checkout-form .barion-checkout-choice__card { gap: 12px; padding: 14px; }
    .barion-checkout-choice__card-number { font-size: 20px; }
    .barion-checkout-choice__card-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .barion-vault__card { padding: 16px; }
    .barion-vault__panel--add { padding: 16px; }
    .barion-vault__actions { width: 100%; }
}
