/* CLIK.ma - paying (AdminCP -> Réglages CLIK -> "Paiements"): the payment window (#payment: the steps, the summary as a receipt,
   the ways to pay as tiles with the wallet's balance), the "Payment Alert" confirmation, the bank transfer's card with a copy button
   on each detail, the paid post's lock (_need_payment.tpl, .clik-lk) and the payment status page (payment_status.tpl, .clik-pst).
   the core's hooks all stay (#payment-summry, #payment-methods, .js_payment-*, #modal-confirm-payment-ok, #banktransfer_form).
   ":not(#_)" outweighs clik-win.css' window rules; nothing moves with "less motion". */

.clik-pay.is-on, .clik-pay-cf, .clik-pay-bank, .clik-lk, .clik-pst {
  --cp-bg: #fff; --cp-ink: #1c1e21; --cp-mute: #65676b; --cp-line: #e4e6eb; --cp-soft: #f0f2f5; --cp-field: #f5f6f7; --cp-edge: #ced0d4;
  --cp-blue: #0866FF; --cp-green: #16A34A; --cp-tint: #EEF4FF;
}
body.night-mode :is(.clik-pay.is-on, .clik-pay-cf, .clik-pay-bank, .clik-lk, .clik-pst) {
  --cp-bg: #242526; --cp-ink: #e4e6eb; --cp-mute: #b0b3b8; --cp-line: #3e4042; --cp-soft: #3a3b3c; --cp-field: #3a3b3c; --cp-edge: #4e4f50;
  --cp-blue: #4C9AFF; --cp-green: #4ADE80; --cp-tint: rgba(8, 102, 255, .16);
}

/* ================= the payment window ================= */
.clik-pay.is-on:not(#_) { display: flex; flex-direction: column; gap: 8px; color: var(--cp-ink); }
.clik-pay.is-on:not(#_) > #payment-summry > .plr20 { padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.clik-pay.is-on:not(#_) > #payment-summry > .plr20 > * { margin: 0 !important; }

/* the steps: two pills joined by a line */
.clik-pay-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.clik-pay-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: var(--cp-soft); color: var(--cp-mute); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.clik-pay-steps li + li::before { content: ""; order: -1; flex: none; width: 0; }
.clik-pay-steps li:first-child { flex: none; }
.clik-pay-steps li:not(:first-child) { position: relative; margin-inline-start: 24px; }
.clik-pay-steps li:not(:first-child)::after { content: ""; position: absolute; inset-inline-end: calc(100% + 4px); top: 50%; width: 24px; height: 2px; border-radius: 1px; background: var(--cp-line); transform: translateY(-50%); }
.clik-pay-steps li > span { overflow: hidden; text-overflow: ellipsis; }
.clik-pay-steps b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--cp-bg); color: var(--cp-mute); font-size: 12px; line-height: 1; }
.clik-pay-steps li.is-on { background: var(--cp-tint); color: var(--cp-blue); }
.clik-pay-steps li.is-on b { background: linear-gradient(135deg, #3B82FF, #0047D6); color: #fff; }
.clik-pay-steps li.is-done { color: var(--cp-green); }
.clik-pay-steps li.is-done b { position: relative; color: transparent; background: var(--cp-green); }
.clik-pay-steps li.is-done b::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.clik-pay-steps li.is-done + li::after { background: var(--cp-green); }

/* the coupon: a 40 px field and its pills */
.clik-pay.is-on:not(#_) #payment-coupon-form > .d-flex { gap: 8px !important; }
.clik-pay.is-on:not(#_) #payment-promo-code { flex: 1 1 auto; min-width: 0; height: 40px; min-height: 40px; padding: 0 8px; border: 1px dashed var(--cp-edge) !important; border-radius: 10px !important; background: var(--cp-field) !important; color: var(--cp-ink) !important; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.clik-pay.is-on:not(#_) #payment-promo-code::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--cp-mute); }
.clik-pay.is-on:not(#_) #payment-promo-code:focus { border-style: solid !important; border-color: var(--cp-blue) !important; background: var(--cp-bg) !important; box-shadow: 0 0 0 3px rgba(8, 102, 255, .2) !important; outline: 0; }
.clik-pay.is-on:not(#_) #payment-coupon-form .btn { flex: none; height: 40px; min-height: 40px; padding: 0 16px; border: 0 !important; border-radius: 999px !important; background: var(--cp-soft) !important; color: var(--cp-ink) !important; font-size: 14px; font-weight: 700; }
.clik-pay.is-on:not(#_) #payment-coupon-form .alert { margin: 8px 0 0 !important; padding: 8px; border: 0; border-radius: 10px; font-size: 14px; }

/* the receipt: the lines, a dashed rule, the total on its own plate */
.clik-pay.is-on:not(#_) #payment-summry .divider { height: 0; margin: 0 !important; border: 0; border-top: 2px dashed var(--cp-line); background: none; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15:not(#payment-coupon-form) { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0; font-size: 15px; line-height: 22px; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15:not(#payment-coupon-form) > .float-right { float: none !important; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15 small.text-muted { display: inline-block; margin-inline-start: 4px; padding: 0 6px; border-radius: 8px; background: var(--cp-soft); color: var(--cp-mute) !important; font-size: 12px; font-weight: 700; line-height: 18px; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15:has(#payment-total) { align-items: center; padding: 8px; border-radius: 12px; background: var(--cp-tint); }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15:has(#payment-total) strong:where(.bold) { font-size: 17px; font-weight: 800; }
.clik-pay.is-on:not(#_) #payment-total { font-size: 22px !important; color: var(--cp-blue); }
/* the line before the total plate and the one after it: the plate is its own edge */
.clik-pay.is-on:not(#_) #payment-summry .plr20 > .divider:has(+ .mb15 #payment-total), .clik-pay.is-on:not(#_) #payment-summry .plr20 > .mb15:has(#payment-total) + .divider { display: none; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > div > small.text-muted { display: block; padding: 8px; border-radius: 10px; background: var(--cp-soft); font-size: 13px; line-height: 1.45; color: var(--cp-mute) !important; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > div > small.text-muted i { font-style: normal; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > div:has(> small.text-muted) { display: flex; flex-direction: column; gap: 8px; }
.clik-pay.is-on:not(#_) #payment-summry .plr20 > div:has(> small.text-muted) > .divider { display: none; }

/* safe paying, then Continue across the whole width */
.clik-pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 !important; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--cp-green); }
.clik-pay-secure svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clik-pay.is-on:not(#_) #payment-summry .ptb10 { padding: 0 !important; }
.clik-pay.is-on:not(#_) .js_payment-pay { position: relative; overflow: hidden; width: 100%; height: 44px; min-height: 44px; border: 0 !important; border-radius: 999px !important; background: linear-gradient(135deg, #3B82FF 0%, #0866FF 48%, #0047D6 100%) !important; color: #fff !important; font-size: 16px; font-weight: 800; box-shadow: 0 6px 16px rgba(8, 102, 255, .28) !important; }
.clik-pay.is-on:not(#_) .js_payment-pay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }

/* ---- the ways to pay ---- */
/* core.js shows them with fadeIn() (an inline display: block over the x-hidden class) */
.clik-pay.is-on:not(#_) #payment-methods { flex-direction: column; gap: 8px; }
.clik-pay.is-on:not(#_) #payment-methods[style*="block"] { display: flex !important; }
.clik-pay-mh { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.clik-pay-mh > b { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.clik-pay-back { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--cp-soft); color: var(--cp-ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.clik-pay-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .clik-pay-back svg, .rtl .clik-pay-back svg { transform: scaleX(-1); }
.clik-pay-back:hover { background: var(--cp-line); }
.clik-pay-back:active { transform: scale(.92); }
.clik-pay-back:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 2px; }
.clik-pay-mh-total { flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 16px; background: var(--cp-tint); color: var(--cp-blue); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; white-space: nowrap; }
.clik-pay-mh-total:empty { display: none; }

.clik-pay.is-on:not(#_) #payment-methods > .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 !important; }
@media (min-width: 576px) { .clik-pay.is-on:not(#_) #payment-methods > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clik-pay.is-on:not(#_) #payment-methods > .row > [class*="col"] { width: auto; max-width: none; flex: none; margin: 0 !important; padding: 0 !important; }
.clik-pay.is-on:not(#_) #payment-methods > .row > [class*="col"]:empty { display: none; }
.clik-pay.is-on:not(#_) #payment-methods .d-grid { display: block !important; }
.clik-pay.is-on:not(#_) .btn-payment { position: relative; display: flex !important; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; height: auto; min-height: 56px; margin: 0 !important; padding: 8px 40px 8px 8px !important; border: 1px solid var(--cp-line) !important; border-radius: 14px !important; background: var(--cp-bg) !important; color: var(--cp-ink) !important; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: start; white-space: normal; box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
[dir="rtl"] .clik-pay.is-on:not(#_) .btn-payment, .rtl .clik-pay.is-on:not(#_) .btn-payment { padding: 8px 8px 8px 40px !important; }
.clik-pay.is-on:not(#_) .btn-payment > :is(i, svg):first-child { flex: none; width: 40px !important; height: 40px !important; margin: 0 !important; display: grid; place-items: center; border-radius: 12px; background: var(--cp-soft); font-size: 20px; line-height: 40px; text-align: center; }
.clik-pay.is-on:not(#_) .btn-payment > svg:first-child { padding: 10px; }
.clik-pay.is-on:not(#_) .btn-payment::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--cp-mute); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s ease; }
[dir="rtl"] .clik-pay.is-on:not(#_) .btn-payment::after, .rtl .clik-pay.is-on:not(#_) .btn-payment::after { transform: scaleX(-1); }
.clik-pay.is-on:not(#_) .btn-payment:hover { border-color: var(--cp-blue) !important; box-shadow: 0 6px 16px rgba(8, 102, 255, .14) !important; filter: none; }
.clik-pay.is-on:not(#_) .btn-payment:hover::after { background: var(--cp-blue); transform: translateX(3px); }
[dir="rtl"] .clik-pay.is-on:not(#_) .btn-payment:hover::after, .rtl .clik-pay.is-on:not(#_) .btn-payment:hover::after { transform: scaleX(-1) translateX(3px); }
.clik-pay.is-on:not(#_) .btn-payment:active { transform: scale(.98); }
.clik-pay.is-on:not(#_) .btn-payment:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 2px; }
.clik-pay.is-on:not(#_) .btn-payment.loading, .clik-pay.is-on:not(#_) .btn-payment:disabled { opacity: .7; }
/* the wallet: its balance as a chip at the tile's end */
.clik-pay-bal { margin-inline-start: auto; flex: none; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 13px; background: rgba(22, 163, 74, .12); color: var(--cp-green); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; white-space: nowrap; }
.clik-pay.is-on:not(#_) #payment-methods > .row > :has(.clik-pay-bal) { grid-column: 1 / -1; }
.clik-pay.is-on:not(#_) .btn-payment:has(.clik-pay-bal) { border-color: rgba(22, 163, 74, .45) !important; background: linear-gradient(135deg, rgba(22, 163, 74, .06), transparent 60%), var(--cp-bg) !important; }

/* ================= "Payment Alert": the confirmation ================= */
.clik-pay-cf { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.clik-pay-cf > * { margin: 0 !important; }
.clik-pay-cf-art { position: relative; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 102, 255, .16), rgba(8, 102, 255, .04) 70%, transparent); }
.clik-pay-cf-cube { width: 52px; height: 58px; background: var(--clik-cube) center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(8, 102, 255, .25)); }
.clik-pay-cf-badge { position: absolute; inset-inline-end: 4px; bottom: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #34D399, #16A34A); box-shadow: 0 0 0 3px var(--cp-bg); }
.clik-pay-cf-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clik-pay-cf-t { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; font-size: clamp(18px, 4.8vw, 22px); font-weight: 800; line-height: 1.25; color: var(--cp-ink); }
.clik-pay-cf-t > span { min-width: 0; }
.clik-pay-cf-t .clik-brand.is-inline { flex: none; margin: 0; }
.clik-pay-cf p { max-width: 44ch; font-size: 16px; line-height: 1.5; color: var(--cp-ink); }
.modal-content:has(.clik-pay-cf) .modal-footer { flex-wrap: nowrap; }
.modal-content:has(.clik-pay-cf) .modal-footer .btn { flex: 1 1 0; min-width: 0 !important; }
.modal-content:has(.clik-pay-cf) #modal-confirm-payment-ok { background: linear-gradient(135deg, #34D399, #16A34A) !important; box-shadow: 0 6px 16px rgba(22, 163, 74, .28) !important; border: 0 !important; color: #fff !important; }

/* ================= the bank transfer: a card, a copy button on each detail ================= */
.clik-pay-bank:not(#_) { position: relative; overflow: hidden; isolation: isolate; margin: 0 !important; padding: 16px !important; border-radius: 16px !important; color: #fff; background: radial-gradient(circle at 88% 12%, rgba(255, 210, 0, .38), transparent 42%), radial-gradient(circle at 8% 100%, rgba(245, 16, 79, .42), transparent 46%), linear-gradient(135deg, #0A5CFF 0%, #5B3DF5 58%, #1E2A78 100%) !important; box-shadow: 0 12px 28px rgba(10, 92, 255, .28); }
.clik-pay-bank:not(#_)::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.clik-pay-bank:not(#_)::after { content: ""; position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #FFE27A, #E0B12A); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); opacity: .95; }
.clik-pay-bank:not(#_) :is(.circle-1, .circle-2) { display: none; }
.clik-pay-bank:not(#_) .inner { position: relative; background: none !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; gap: 8px; padding: 0 !important; text-align: start !important; }
.clik-pay-bank:not(#_) .inner > * { margin: 0 !important; }
.clik-pay-bank:not(#_) h2 { display: flex; align-items: center; gap: 8px; padding-inline-end: 56px; font-size: 20px; font-weight: 800; color: #fff; }
.clik-pay-bank:not(#_) h2 .fa { margin: 0 !important; }
.clik-pay-bank:not(#_) .row { margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.clik-pay-bank:not(#_) .row > [class*="col"] { width: auto; max-width: none; padding: 0 !important; }
.clik-pay-bank:not(#_) :is(.mb10, .col-md-6):has(> .bank-info-meta) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; margin: 0 !important; padding: 8px !important; border-radius: 12px; background: rgba(255, 255, 255, .14); }
[dir="rtl"] .clik-pay-bank:not(#_) :is(.mb10, .col-md-6):has(> .bank-info-meta), .rtl .clik-pay-bank:not(#_) :is(.mb10, .col-md-6):has(> .bank-info-meta) { padding: 8px !important; }
.clik-pay-bank:not(#_) .bank-info-meta { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: .03em; direction: ltr; unicode-bidi: plaintext; text-align: start; color: #fff; }
/* an IBAN reads left to right, on the cell's start edge in Arabic too */
[dir="rtl"] .clik-pay-bank:not(#_) .bank-info-meta, .rtl .clik-pay-bank:not(#_) .bank-info-meta { text-align: right; }
.clik-pay-bank:not(#_) .bank-info-help { grid-column: 1; grid-row: 2; font-size: 12px; font-weight: 600; line-height: 16px; color: rgba(255, 255, 255, .78); }
.clik-pay-copy { grid-column: 2; grid-row: 1 / span 2; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.clik-pay-copy:hover { background: rgba(255, 255, 255, .34); }
.clik-pay-copy:active { transform: scale(.94); }
.clik-pay-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clik-pay-copy.is-done { background: #16A34A; }

/* ================= the paid post's lock ================= */
.clik-lk { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 12px; text-align: center; color: var(--cp-ink); background: radial-gradient(circle at 85% 10%, rgba(255, 210, 0, .22), transparent 40%), radial-gradient(circle at 10% 95%, rgba(245, 16, 79, .16), transparent 45%), linear-gradient(135deg, var(--cp-tint), var(--cp-bg)); border: 1px solid var(--cp-line); }
.clik-lk > * { margin: 0 !important; position: relative; z-index: 2; }
.clik-lk.has-img { color: #fff; border: 0; background: #111; }
.clik-lk-bg { position: absolute !important; inset: 0; z-index: 0 !important; background-size: cover; background-position: center; filter: blur(14px) saturate(1.2); transform: scale(1.12); opacity: .85; }
.clik-lk.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65)); }
.clik-lk-art { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.clik-lk-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 102, 255, .22), rgba(8, 102, 255, .05) 70%, transparent); }
.clik-lk-cube { position: relative; width: 50px; height: 56px; background: var(--clik-cube) center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(8, 102, 255, .3)); }
.clik-lk-badge { position: absolute; inset-inline-end: 2px; bottom: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #FFB020, #F57C00); box-shadow: 0 0 0 3px var(--cp-bg); }
.clik-lk.has-img .clik-lk-badge { box-shadow: 0 0 0 3px rgba(0, 0, 0, .4); }
.clik-lk-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clik-lk-kicker { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 12px; background: rgba(245, 124, 0, .14); color: #C2410C; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.night-mode .clik-lk-kicker, .clik-lk.has-img .clik-lk-kicker { background: rgba(255, 154, 60, .2); color: #FFB066; }
.clik-lk-t { font-size: 19px; font-weight: 800; line-height: 1.3; color: inherit; }
.clik-lk-text { max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--cp-mute); overflow-wrap: anywhere; }
.clik-lk.has-img .clik-lk-text { color: rgba(255, 255, 255, .88); }
.clik-lk-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; }
.clik-lk-perks li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--cp-soft); color: var(--cp-ink); font-size: 13px; font-weight: 600; }
.clik-lk.has-img .clik-lk-perks li { background: rgba(255, 255, 255, .16); color: #fff; }
.clik-lk-perks svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--cp-green); }
.clik-lk.has-img .clik-lk-perks svg { color: #4ADE80; }
.clik-lk-btn:not(#_) { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 0 !important; padding: 0 20px; border: 0 !important; border-radius: 999px !important; background: linear-gradient(135deg, #3B82FF 0%, #0866FF 48%, #0047D6 100%) !important; color: #fff !important; font-size: 15px; font-weight: 800; line-height: 1.2; box-shadow: 0 6px 16px rgba(8, 102, 255, .3) !important; transition: transform .15s ease, filter .15s ease; }
.clik-lk-btn:not(#_):hover { filter: brightness(1.06); }
.clik-lk-btn:not(#_):active { transform: scale(.97); }
.clik-lk-btn:not(#_):focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 3px; }
.clik-lk-btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clik-lk-btn b { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.clik-lk-btn s { opacity: .72; font-weight: 600; unicode-bidi: plaintext; }
.clik-lk-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.clik-lk-off { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 12px; background: #DC2626; color: #fff; font-size: 12px; font-weight: 800; }
/* the core's 20 px around the lock in a post: the post's own 8 px instead */
.ptb20.plr20:has(> .clik-lk) { padding: 8px !important; }
@media (max-width: 575px) { .clik-lk { padding: 8px; } .clik-pay-bank:not(#_) { padding: 8px !important; } .clik-pay-bank:not(#_)::after { top: 8px; inset-inline-end: 8px; } .clik-lk-btn:not(#_) { width: 100%; } }

/* ================= the payment status page ================= */
.clik-pst-wrap { padding: 8px; }
.clik-pst { display: flex; flex-direction: column; gap: 8px; }
.clik-pst-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 12px; min-height: 240px; padding: 32px 24px; display: flex; align-items: center; color: #fff; background: radial-gradient(circle at 85% 18%, rgba(140, 200, 255, .34), transparent 44%), linear-gradient(135deg, #2f7bff 0%, #0a4dff 55%, #0840d8 100%); }
.clik-pst-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000); mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.clik-pst-brand { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 4; }
.clik-pst-brand .clik-brand { position: static; margin: 0; }
.clik-pst-words { position: relative; z-index: 4; max-width: min(560px, calc(100% - 280px)); display: flex; flex-direction: column; gap: 8px; }
.clik-pst-words > * { margin: 0 !important; }
.clik-pst-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.clik-pst-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #A8D4FF; box-shadow: 0 0 0 3px rgba(168, 212, 255, .32); }
.clik-pst.is-failure .clik-pst-kicker i { background: #FFB547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .3); }
.clik-pst-title { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; }
.clik-pst-title > span { min-width: 0; }
.clik-pst-title .clik-brand.is-inline { flex: none; margin: 0; }
.clik-pst .clik-pst-title .clik-brand.is-inline :is(img, svg.clik-wm), .clik-pst .clik-pst-title .clik-brand.is-inline svg { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1px #fff) !important; }
.clik-pst-line { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.clik-pst-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.clik-pst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none !important; cursor: pointer; transition: transform .15s ease, background .15s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.clik-pst-btn.is-main { background: #fff; color: #0A3FBF !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.clik-pst-btn:hover { background: rgba(255, 255, 255, .3); }
.clik-pst-btn.is-main:hover { background: #fff; filter: brightness(.97); }
.clik-pst-btn:active { transform: scale(.97); }
.clik-pst-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clik-pst-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .clik-pst-btn svg.is-dir, .rtl .clik-pst-btn svg.is-dir { transform: scaleX(-1); }
.clik-pst-hero.is-sg-folded { min-height: 0; padding-block: 16px; }
.clik-pst-hero.is-sg-folded :is(.clik-pst-kicker, .clik-pst-line) { display: none; }

.clik-pst-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
@media (min-width: 992px) { .clik-pst-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); } }
.clik-pst-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.clik-pst-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; background: var(--cp-bg); color: var(--cp-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
body.night-mode .clik-pst-card { box-shadow: none; }
.clik-pst-card > * { margin: 0 !important; }
.clik-pst-h { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; line-height: 1.3; color: inherit; }
.clik-pst-h svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--cp-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* what happens next: a timeline */
.clik-pst-steps { display: flex; flex-direction: column; gap: 0; padding: 0; list-style: none; }
.clik-pst-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding-bottom: 8px; }
.clik-pst-steps li:last-child { padding-bottom: 0; }
.clik-pst-steps li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 17px; top: 38px; bottom: 0; width: 2px; border-radius: 1px; background: var(--cp-line); }
.clik-pst-steps li.is-done:not(:last-child)::before { background: var(--cp-green); }
.clik-pst-dot { grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cp-soft); color: var(--cp-mute); }
.clik-pst-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clik-pst-steps li.is-done .clik-pst-dot { background: var(--cp-green); color: #fff; }
.clik-pst-steps li.is-now .clik-pst-dot { position: relative; background: linear-gradient(135deg, #FFB020, #F57C00); color: #fff; }
.clik-pst-steps li.is-now .clik-pst-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(245, 124, 0, .45); }
.clik-pst-steps li.is-bad .clik-pst-dot { background: linear-gradient(135deg, #FF5A75, #DC2626); color: #fff; }
.clik-pst-steps b { align-self: end; font-size: 15px; font-weight: 800; line-height: 20px; }
.clik-pst-steps span { font-size: 14px; line-height: 1.45; color: var(--cp-mute); }
/* tips / reasons: rows with an icon tile */
.clik-pst-tips { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.clik-pst-tips li { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 12px; background: var(--cp-soft); }
.clik-pst-tips .is-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--cp-bg); color: var(--cp-blue); }
.clik-pst-tips .is-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clik-pst-tips div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clik-pst-tips b { font-size: 15px; font-weight: 700; line-height: 20px; }
.clik-pst-tips span { font-size: 14px; line-height: 1.45; color: var(--cp-mute); }
/* the links on the side */
.clik-pst-note { font-size: 14px; line-height: 1.5; color: var(--cp-mute); }
.clik-pst-links { display: flex; flex-direction: column; gap: 8px; }
.clik-pst-link { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px; border-radius: 12px; background: var(--cp-soft); color: var(--cp-ink) !important; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.clik-pst-link:hover { background: var(--cp-line); }
.clik-pst-link:active { transform: scale(.98); }
.clik-pst-link:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 2px; }
.clik-pst-link .is-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.clik-pst-link .is-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clik-pst-link div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.clik-pst-link b { font-size: 15px; font-weight: 700; line-height: 20px; }
.clik-pst-link span { font-size: 13px; line-height: 18px; color: var(--cp-mute); }
.clik-pst-ref { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--cp-soft); font-size: 13px; color: var(--cp-mute); }
.clik-pst-ref b { color: var(--cp-ink); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 767px) {
  .clik-pst-wrap { padding: 0; }
  .clik-pst-hero, .clik-pst-card { border-radius: 0; }
  .clik-pst-hero { min-height: 0; padding: 64px 8px 24px; }
  .clik-pst-hero:has(.clik-sg-opts) { padding-bottom: 56px; }
  .clik-pst-brand { top: 12px; inset-inline-end: 8px; }
  .clik-pst-words { max-width: 100%; }
  .clik-pst-card { padding: 8px; }
  .clik-pst-acts > * { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .clik-pst-title { font-size: clamp(20px, 6vw, 24px); }
  .clik-pst-title .clik-brand.is-inline :is(img, svg.clik-wm) { height: clamp(15px, 4.6vw, 22px) !important; width: auto !important; }
}

/* ================= motion (none with "less motion") ================= */
@media (prefers-reduced-motion: no-preference) {
  .clik-pay.is-motion .clik-pay-steps li.is-on b { animation: clik-pay-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
  .clik-pay.is-motion #payment-summry:not([style*="none"]) .plr20 > * { animation: clik-pay-print .42s cubic-bezier(.2, .8, .3, 1) backwards; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(2) { animation-delay: .04s; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(3) { animation-delay: .08s; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(4) { animation-delay: .12s; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(5) { animation-delay: .16s; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(6) { animation-delay: .2s; }
  .clik-pay.is-motion #payment-summry .plr20 > :nth-child(n+7) { animation-delay: .24s; }
  .clik-pay.is-motion .js_payment-pay::after { animation: clik-pay-shine 2.8s ease-in-out 1s infinite; }
  .clik-pay.is-motion .clik-pay-secure svg { animation: clik-pay-lock .7s ease .5s both; transform-origin: 50% 70%; }
  .clik-pay.is-motion #payment-methods[style*="block"] .clik-pay-mh { animation: clik-pay-in .35s cubic-bezier(.2, .8, .3, 1) both; }
  .clik-pay.is-motion #payment-methods[style*="block"] .row > * { animation: clik-pay-tile .42s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  .clik-pay.is-motion #payment-methods .row > :nth-child(2) { animation-delay: .05s; }
  .clik-pay.is-motion #payment-methods .row > :nth-child(3) { animation-delay: .1s; }
  .clik-pay.is-motion #payment-methods .row > :nth-child(4) { animation-delay: .15s; }
  .clik-pay.is-motion #payment-methods .row > :nth-child(n+5) { animation-delay: .2s; }
  .clik-pay.is-motion .clik-pay-mh-total { animation: clik-pay-pop .45s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  .clik-pay-cf-cube { animation: clik-pay-bob 2.6s ease-in-out infinite; }
  .clik-pay-cf-badge { animation: clik-pay-pop .5s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
  .clik-pay-cf-art { animation: clik-pay-ring 2.6s ease-in-out infinite; }
  .clik-pay-bank:not(#_) { animation: clik-pay-tile .5s cubic-bezier(.2, .9, .3, 1.1) both; }
  .clik-pay-bank:not(#_)::after { animation: clik-pay-chip 3.4s ease-in-out infinite; }
  .clik-pay-copy.is-done { animation: clik-pay-pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
  .clik-lk.is-motion .clik-lk-cube { animation: clik-pay-bob 2.6s ease-in-out infinite; }
  .clik-lk.is-motion .clik-lk-badge { animation: clik-pay-lock 1.2s ease 1s infinite; animation-iteration-count: 1; }
  .clik-lk.is-motion .clik-lk-art::before { animation: clik-pay-ring 2.6s ease-in-out infinite; }
  .clik-lk.is-motion .clik-lk-btn::after { animation: clik-pay-shine 3s ease-in-out 1s infinite; }
  .clik-lk.is-motion .clik-lk-perks li { animation: clik-pay-in .4s cubic-bezier(.2, .8, .3, 1) backwards; }
  .clik-lk.is-motion .clik-lk-perks li:nth-child(2) { animation-delay: .08s; }
  .clik-lk.is-motion .clik-lk-perks li:nth-child(3) { animation-delay: .16s; }
  .clik-pst.is-motion .clik-pst-words > * { animation: clik-pay-in .5s cubic-bezier(.2, .8, .3, 1) backwards; }
  .clik-pst.is-motion .clik-pst-words > :nth-child(2) { animation-delay: .06s; }
  .clik-pst.is-motion .clik-pst-words > :nth-child(3) { animation-delay: .12s; }
  .clik-pst.is-motion .clik-pst-words > :nth-child(4) { animation-delay: .18s; }
  .clik-pst.is-motion .clik-pst-col > * { animation: clik-pay-in .5s cubic-bezier(.2, .8, .3, 1) .15s backwards; }
  .clik-pst.is-motion .clik-pst-col + .clik-pst-col > * { animation-delay: .25s; }
  .clik-pst.is-motion .clik-pst-steps li.is-now .clik-pst-dot::after { animation: clik-pay-wait 1.8s ease-out infinite; }
  .clik-pst.is-motion .clik-pst-steps li.is-now .clik-pst-dot svg { animation: clik-pay-sand 2.4s ease-in-out infinite; }
  .clik-pst.is-motion .clik-pst-kicker i { animation: clik-pay-blink 1.6s ease-in-out infinite; }
}
@keyframes clik-pay-pop { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes clik-pay-print { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes clik-pay-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes clik-pay-tile { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes clik-pay-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes clik-pay-lock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
@keyframes clik-pay-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes clik-pay-ring { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
@keyframes clik-pay-chip { 0%, 100% { transform: rotate(0); opacity: .95; } 50% { transform: rotate(-4deg) scale(1.04); opacity: 1; } }
@keyframes clik-pay-wait { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes clik-pay-sand { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
@keyframes clik-pay-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* no way to pay is open here (no bank transfer, no wallet, no cash on delivery) */
.clik-pay-none { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(245, 158, 11, .12); color: #92400E; font-size: 14px; line-height: 1.45; text-align: start; }
body.night-mode .clik-pay-none { background: rgba(245, 158, 11, .16); color: #FCD34D; }
