/* Checkout Step 3 (Make a Payment) on the shopping cart and the number transfer:
   account, order summary, how to pay, the secure-page note. Loaded on every public
   page by core/view.js, next to nr-modals.css. The same markup lives in
   views/partials/cart-modals.ejs and the three transfer pages. */

.cpay { display: flex; flex-direction: column; gap: 14px; font-family: 'Poppins', sans-serif; }
.cpay__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .cpay--wide .cpay__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.cpay__card { background: #fff; border: 1px solid #e6e9f5; border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 20px rgba(42, 82, 190, .06); }
.cpay__title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #2b3350; }

/* Account */
.cpay__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.cpay__fact { min-width: 0; }
.cpay__fact-k { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #8c94b0; }
.cpay__fact-v { display: block; font-size: 14px; color: #222328; overflow-wrap: anywhere; }
.cpay__fact--wide { grid-column: 1 / -1; }

/* Order summary */
.cpay__lines { display: flex; flex-direction: column; }
.cpay__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid #eef0f8; }
.cpay__line:first-child { padding-top: 0; }
.cpay__num { font-size: 15px; font-weight: 600; color: #222328; }
.cpay__plan { grid-column: 1; font-size: 12.5px; color: #8c94b0; }
.cpay__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; font-weight: 600; color: #222328; text-align: right; white-space: nowrap; }
.cpay__price small { font-weight: 500; color: #8c94b0; }
.cpay__empty { padding: 10px 0; font-size: 13px; color: #8c94b0; text-align: center; }
.cpay__totals { margin-top: 10px; }
.cpay__total { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; color: #6b7391; }
.cpay__total span:last-child { color: #222328; font-weight: 500; }
.cpay__total--due { margin-top: 6px; padding-top: 10px; border-top: 1px solid #e6e9f5; font-size: 15px; color: #222328; font-weight: 600; }
.cpay__total--due span:last-child { font-size: 20px; font-weight: 700; color: #4260CB; }
.cpay__then { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #8c94b0; }
.cpay__then span { color: #4260CB; font-weight: 600; }

/* How to pay: one card per method, the chosen one outlined */
.cpay__methods { display: flex; flex-direction: column; gap: 10px; }
.cpay__method { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 13px 14px; border: 1.5px solid #e6e9f5; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.cpay__method:hover { border-color: #c9d5fb; }
.cpay__method.is-active { border-color: #4260CB; background: #f6f8ff; box-shadow: 0 0 0 3px rgba(66, 96, 203, .12); }
.cpay__method input { position: absolute; opacity: 0; width: 0; height: 0; }
.cpay__radio { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #c9d5fb; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s; }
.cpay__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #4260CB; opacity: 0; transition: opacity .15s; }
.cpay__method.is-active .cpay__radio { border-color: #4260CB; }
.cpay__method.is-active .cpay__radio::after { opacity: 1; }
.cpay__method-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cpay__method-name { font-size: 14.5px; font-weight: 600; color: #222328; }
.cpay__method-desc { font-size: 12.5px; line-height: 1.5; color: #6b7391; }
.cpay__brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cpay__brands span { padding: 2px 7px; border-radius: 6px; border: 1px solid #e3e8f5; background: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: #4c5578; }

.cpay__secure { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #eef7f1; color: #23613b; font-size: 12.5px; line-height: 1.5; }
.cpay__secure svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.cpay__secure b { font-weight: 600; }
.cpay__blocked { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; background: #fdf1e7; color: #9a4b00; font-size: 12.5px; line-height: 1.5; }
.cpay__blocked[hidden] { display: none; }

/* The cart modal uses the site's wider type; keep this block in proportion there */
.cpay--wide .cpay__title { font-size: 17px; }
.cpay--wide .cpay__num { font-size: 16px; }
.cpay--wide .cpay__method-name { font-size: 15.5px; }

@media (max-width: 575.98px) {
	.cpay__card { padding: 14px; }
	.cpay__facts { grid-template-columns: 1fr; }
}

/* ── The secure payment modal (assets/js/nr-secure-pay.js): our frame, Stripe's form inside ── */
.nrsp-dialog { max-width: 560px; }
.nrsp-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 60px rgba(42, 82, 190, .22); font-family: 'Poppins', sans-serif; }
.nrsp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; background: linear-gradient(95deg, #467EFE 0%, #61CAFD 100%); color: #fff; }
.nrsp-title { margin: 0; font-size: 19px; font-weight: 700; color: #fff; }
.nrsp-sub { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.nrsp-sub #nrSecurePayAmount { font-weight: 700; font-size: 16px; }
.nrsp-close { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nrsp-close:hover { background: rgba(255, 255, 255, .3); }
.nrsp-body { padding: 18px 16px 6px; min-height: 220px; background: #fff; }
.nrsp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; font-size: 14px; color: #6b7391; }
.nrsp-loading[hidden] { display: none; }
.nrsp-spinner { width: 22px; height: 22px; border: 3px solid #dde5fb; border-top-color: #4260CB; border-radius: 50%; animation: nrsp-spin .9s linear infinite; }
@keyframes nrsp-spin { to { transform: rotate(360deg); } }
.nrsp-error { margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; background: #fdeceb; color: #b3261e; font-size: 13.5px; line-height: 1.5; }
.nrsp-error[hidden] { display: none; }
.nrsp-foot { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px 16px; font-size: 12.5px; line-height: 1.5; color: #6b7391; background: #f7f9ff; border-top: 1px solid #eef0f8; }
.nrsp-foot svg { flex-shrink: 0; width: 18px; height: 18px; color: #23613b; margin-top: 1px; }
.nrsp-foot b { color: #222328; font-weight: 600; }
