/* CLIK.ma - a member's listing, under the post on its page (_clik_listing_extras.tpl, __clik_offers.tpl,
   js/core/clik-market.js): the price compared to the market, the seller's card, the offers. Built on the .cd tokens
   (style.min.css), 8px grid, logical properties (RTL), the post card's own width, square sides on phones. */

.cd.clik-mk { --cd-ac: #0866FF; --mk-good: #0E9F5B; --mk-high: #E2620E; --mk-gold: #B7791F; display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; padding: 0; font-size: 14.5px; line-height: 1.45; }
.cd.clik-mk p { margin: 0; }
.cd.clik-mk h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--cd-ink); }
.cd.clik-mk [hidden] { display: none !important; }
.clik-mk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.clik-mk-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--cd-card); box-shadow: var(--cd-shadow); }
.clik-mk-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.clik-mk-head h2 { flex: 1 1 auto; min-width: 0; }
.clik-mk-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--cd-ac); background: var(--cd-acs); }
.clik-mk-tile .clik-mk-ic { width: 36px; height: 36px; border-radius: 10px; }
.clik-mk-ic.is-price { color: #7c3aed; background: rgba(124, 58, 237, .12); }
.clik-mk-ic.is-offer { color: #e2620e; background: rgba(226, 98, 14, .12); }
.clik-mk-ic.is-green { color: var(--mk-good); background: rgba(14, 159, 91, .12); }
.clik-mk-ic.is-gold { color: var(--mk-gold); background: rgba(245, 158, 11, .16); }

/* ---------- the price ---------- */
.clik-mk-pill { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--cd-ink); background: var(--cd-chip); }
.clik-mk-price.is-good .clik-mk-pill { color: #0b6b3e; background: #dff5ea; }
.clik-mk-price.is-high .clik-mk-pill { color: #9a3f06; background: #fdebdd; }
.clik-mk-gauge { position: relative; height: 26px; margin: 0 13px; }
.clik-mk-gauge-bar { position: absolute; inset: 8px -13px auto; display: flex; gap: 3px; height: 10px; overflow: hidden; border-radius: 999px; }
.clik-mk-gauge-bar i { flex: 1 1 0; }
.clik-mk-gauge-bar .is-good { background: var(--mk-good); }
.clik-mk-gauge-bar .is-fair { background: #9aa3b5; }
.clik-mk-gauge-bar .is-high { background: var(--mk-high); }
.clik-mk-gauge-dot { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; border: 5px solid var(--cd-ink); border-radius: 50%; background: var(--cd-card); box-sizing: border-box; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.clik-mk-gauge-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12.5px; font-weight: 700; color: var(--cd-mute); direction: ltr; }
.clik-mk-gauge-labels span { text-align: center; }
.clik-mk-gauge-labels .is-good { text-align: left; color: var(--mk-good); }
.clik-mk-gauge-labels .is-high { text-align: right; color: var(--mk-high); }
.clik-mk-line { color: var(--cd-ink); }
.clik-mk-foot { font-size: 12.5px; color: var(--cd-mute); }

/* ---------- the seller ---------- */
.cd .clik-mk-who { display: flex; align-items: center; gap: 12px; color: var(--cd-ink); }
.clik-mk-who img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.clik-mk-who-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.clik-mk-who-t b { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; font-weight: 800; }
.clik-mk-who-t b bdi { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clik-mk-who-t small { font-size: 13px; color: var(--cd-mute); }
.clik-mk-verified { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #0866FF; }
.clik-mk-who-go { flex: none; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--cd-ac); background: var(--cd-acs); }
.clik-mk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.clik-mk-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--cd-line); }
.clik-mk-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.clik-mk-tile b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.clik-mk-tile small { font-size: 12px; color: var(--cd-mute); }
.clik-mk-quote { padding: 12px; border-radius: 12px; font-size: 13.5px; background: var(--cd-panel); }
.clik-mk-quote small { color: var(--cd-mute); }
.clik-mk-safety { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: #6b3e00; background: #fff4db; }
.clik-mk-safety svg { flex: none; margin-top: 1px; }

/* ---------- the offers ---------- */
.clik-mk-intro, .clik-mk-empty { color: var(--cd-soft); }
.cd .clik-mk-wide { width: 100%; }
.clik-mk-switch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px; border-radius: 12px; cursor: pointer; background: var(--cd-acs); }
.clik-mk-switch > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.clik-mk-switch b { font-size: 14px; }
.clik-mk-switch small { font-size: 12.5px; color: var(--cd-soft); }
.clik-mk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clik-mk-switch i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #c4cad4; transition: background .2s; }
.clik-mk-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s; }
.clik-mk-switch input:checked + i { background: var(--cd-ac); }
.clik-mk-switch input:checked + i::after { inset-inline-start: 21px; }
.clik-mk-switch input:focus-visible + i { outline: 2px solid var(--cd-ac); outline-offset: 2px; }
.clik-mk-posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.cd .clik-mk-posters .cd-btn { width: 100%; }
.cd .clik-mk-btn-magic { color: #fff; background: linear-gradient(120deg, #7b2ff7, #0866ff 60%, #00b2ff); }
.cd .clik-mk-btn-magic:hover { color: #fff; filter: brightness(1.07); }

.clik-mk-form { display: flex; flex-direction: column; gap: 8px; }
.clik-mk-amount { display: flex; align-items: center; gap: 8px; height: 56px; margin: 0; padding: 0 16px; border-radius: 14px; background: var(--cd-card); box-shadow: inset 0 0 0 2px var(--cd-ac); direction: ltr; }
.clik-mk-amount input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; font-size: 24px; font-weight: 800; color: var(--cd-ink); background: transparent; }
.clik-mk-amount input::placeholder { font-size: 18px; font-weight: 600; color: var(--cd-mute); }
[dir="rtl"] .clik-mk-amount input::placeholder { text-align: right; }
.clik-mk-amount b { flex: none; font-weight: 700; color: var(--cd-mute); }
.clik-mk-amount.is-sm { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; }
.clik-mk-amount.is-sm input { font-size: 17px; }
.clik-mk-amount.is-sm input::placeholder { font-size: 14px; }
.clik-mk-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.clik-mk-chips button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 52px; padding: 0 8px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--cd-ink); background: var(--cd-card); box-shadow: inset 0 0 0 1.5px var(--cd-line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.clik-mk-chips button small { overflow: hidden; max-width: 100%; font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-mute); }
.clik-mk-chips button:hover, .clik-mk-chips button.is-on { background: var(--cd-acs); box-shadow: inset 0 0 0 2px var(--cd-ac); }
.cd .clik-mk-msg { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; color: var(--cd-ink); background: var(--cd-panel); box-shadow: inset 0 0 0 1.5px var(--cd-line); }
.cd .clik-mk-msg:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--cd-ac); }
.clik-mk-hint { font-size: 12.5px; color: var(--cd-mute); }
.clik-mk-status { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #0b6b3e; background: #dff5ea; }
.clik-mk-status.is-error { color: #b42318; background: #fde8e7; }

.clik-mk-list:empty { display: none; }
.clik-mk-thread { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--cd-line); }
.clik-mk-thread:first-child { padding-top: 0; border-top: 0; }
.clik-mk-list .clik-mk-thread:last-child { padding-bottom: 0; }
.clik-mk-buyer { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.clik-mk-buyer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.clik-mk-bubble { display: flex; flex-direction: column; gap: 2px; align-self: flex-start; max-width: min(320px, 88%); padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--cd-panel); box-shadow: inset 0 0 0 1px var(--cd-line); }
[dir="rtl"] .clik-mk-bubble { border-radius: 18px 18px 6px 18px; }
.clik-mk-bubble.is-mine { align-self: flex-end; color: #fff; background: #0866FF; box-shadow: none; border-radius: 18px 18px 6px 18px; }
[dir="rtl"] .clik-mk-bubble.is-mine { border-radius: 18px 18px 18px 6px; }
.clik-mk-bubble small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.clik-mk-bubble b { font-size: 22px; font-weight: 800; line-height: 1.2; }
.clik-mk-bubble.is-declined b, .clik-mk-bubble.is-countered b { text-decoration: line-through; opacity: .65; }
.clik-mk-bubble span { font-size: 14px; overflow-wrap: anywhere; }
.clik-mk-bubble em { font-size: 13px; font-style: normal; font-weight: 700; opacity: .9; }
.clik-mk-bubble em.is-ok { color: var(--mk-good); opacity: 1; }
.clik-mk-bubble.is-mine em.is-ok { color: #fff; }
.clik-mk-bubble.is-accepted { box-shadow: inset 0 0 0 2px var(--mk-good); }
.clik-mk-bubble.is-mine.is-accepted { box-shadow: 0 0 0 2px var(--mk-good); }
.clik-mk-answer { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 380px; }
.clik-mk-answer-row, .clik-mk-counter { display: flex; gap: 8px; }
.cd .clik-mk-answer-row .cd-btn:not(.is-icon) { flex: 1 1 0; min-width: 0; }
.cd .clik-mk-answer .cd-btn.is-icon { flex: none; width: 44px; padding: 0; }
.cd .cd-btn.is-ok { color: #fff; background: var(--mk-good); }
.cd .cd-btn.is-ok:hover { color: #fff; filter: brightness(1.07); }
.cd .clik-mk .cd-btn[disabled], .cd.clik-mk .cd-btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- "Create an alert" (the marketplace's searches: __clik_market_alert.tpl) ---------- */
.cd.clik-mk-alertbar { --cd-ac: #0866FF; display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px; border-radius: 12px; background: var(--cd-card); box-shadow: var(--cd-shadow); }
.clik-mk-ic.is-bell { color: #a15c00; background: #fff1c2; }
.clik-mk-alertbar-t { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.clik-mk-alertbar-t b { font-size: 15px; font-weight: 800; color: var(--cd-ink); }
.clik-mk-alertbar-t small { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-soft); }
.cd.clik-mk-alertbar .cd-btn { flex: none; }
.cd.clik-mk-alertbar .cd-btn.is-done { color: var(--mk-good, #0E9F5B); background: rgba(14, 159, 91, .12); box-shadow: none; }
.cd.clik-mk-alertbox { --cd-ac: #0866FF; display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 24px; }
.clik-mk-alertbox p { margin: 0; }
.clik-mk-alertbox-intro { color: var(--cd-soft); font-size: 14px; }
.clik-mk-alertbox-what { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--cd-panel); box-shadow: inset 0 0 0 1px var(--cd-line); }
.clik-mk-alertbox-what b { min-width: 0; font-size: 15px; overflow-wrap: anywhere; color: var(--cd-ink); }
.clik-mk-alertbox-go { display: flex; justify-content: flex-end; gap: 8px; }
.cd .clik-mk-alertbox-go .cd-btn[hidden] { display: none !important; }
body.night-mode .clik-mk-ic.is-bell { color: #ffd98a; background: rgba(245, 158, 11, .18); }
body.night-mode .cd.clik-mk-alertbar { background: #242526; }
@media (max-width: 575.98px) {
  .cd.clik-mk-alertbar { flex-wrap: wrap; border-radius: 0; }
  .cd.clik-mk-alertbar .cd-btn { width: 100%; }
  .cd.clik-mk-alertbox { padding: 16px; }
  .clik-mk-alertbox-go .cd-btn { flex: 1 1 0; }
}

/* ---------- night ---------- */
body.night-mode .clik-mk-price.is-good .clik-mk-pill { color: #7ee2b0; background: rgba(14, 159, 91, .18); }
body.night-mode .clik-mk-price.is-high .clik-mk-pill { color: #ffb37f; background: rgba(226, 98, 14, .2); }
body.night-mode .clik-mk-safety { color: #ffd98a; background: rgba(245, 158, 11, .14); }
body.night-mode .clik-mk-status { color: #7ee2b0; background: rgba(14, 159, 91, .18); }
body.night-mode .clik-mk-status.is-error { color: #ffb4ab; background: rgba(180, 35, 24, .25); }
body.night-mode .clik-mk-switch i { background: #4e535a; }
body.night-mode .clik-mk-gauge-dot { border-color: #e9edf2; background: #212121; }
body.night-mode .clik-mk-card { background: #242526; }

/* ---------- phones: the cards run on the post card's edges (the screen's), square sides ---------- */
@media (max-width: 991.98px) {
  .clik-mk-card { border-radius: 0; }
}
@media (max-width: 420px) {
  .clik-mk-card { padding: 16px 12px; }
  .clik-mk-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .clik-mk-bubble.is-new { animation: clik-mk-in .35s ease-out both; }
  @keyframes clik-mk-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
}

/* CLIK.ma: "En bref" - an offer's / job's / course's / fundraiser's key facts (clik_pk_facts()) */
.clik-mk-facts .clik-mk-pill.is-ok { color: #0b6b3e; background: #dff5ea; }
.clik-mk-facts .clik-mk-pill.is-warn { color: #9a3f06; background: #fdebdd; }
.clik-mk-facts .clik-mk-pill.is-off { color: #8a1c1c; background: #fde2e2; }
.clik-mk-facts .clik-mk-tile b { overflow-wrap: anywhere; }
.clik-mk-progress { display: grid; gap: 6px; }
.clik-mk-progress-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.clik-mk-progress-top b { font-size: 18px; font-weight: 800; }
.clik-mk-progress-top span { color: var(--cd-soft); }
.clik-mk-progress-top em { margin-inline-start: auto; font-style: normal; font-weight: 800; color: #16a34a; }
.clik-mk-bar { height: 10px; border-radius: 999px; background: var(--cd-chip); overflow: hidden; }
.clik-mk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #22c55e); }
body.night-mode .clik-mk-facts .clik-mk-pill.is-ok { color: #7ee2b0; background: rgba(14, 159, 91, .18); }
body.night-mode .clik-mk-facts .clik-mk-pill.is-warn { color: #ffb37f; background: rgba(226, 98, 14, .2); }
body.night-mode .clik-mk-facts .clik-mk-pill.is-off { color: #ff9f9f; background: rgba(220, 38, 38, .2); }

/* ---------- trust (includes/clik-trust.php): the seller's score, the "too cheap" warning ---------- */
.clik-tr-score { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--cd-line); }
.clik-tr-ring { --c: #9aa3b5; position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--cd-line) 0); }
.clik-tr-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--cd-card); }
.clik-tr-ring b { position: relative; font-size: 20px; font-weight: 900; line-height: 1; color: var(--cd-ink); }
.clik-tr-ring small { position: absolute; inset-block-end: 10px; font-size: 9.5px; font-weight: 700; color: var(--cd-mute); }
.clik-tr-score.is-top .clik-tr-ring { --c: #16A34A; }
.clik-tr-score.is-good .clik-tr-ring { --c: #0866FF; }
.clik-tr-score.is-new .clik-tr-ring { --c: #F59E0B; }
.clik-tr-score-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clik-tr-score-t > b { font-size: 15px; font-weight: 800; }
.clik-tr-score-t > small { font-size: 12.5px; color: var(--cd-mute); }
.clik-tr-factors { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.clik-tr-factors li { display: inline-flex; align-items: center; gap: 4px; color: var(--cd-soft); }
.clik-tr-factors li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.clik-tr-factors li.is-no::before { background: #9aa3b5; }
.clik-tr-cheap { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: #8a1c13; background: #fde4e1; }
.clik-tr-cheap svg { flex: none; margin-top: 1px; }
.clik-tr-cheap b { font-weight: 800; }
body.night-mode .clik-tr-ring::before { background: #242526; }
body.night-mode .clik-tr-cheap { color: #ffb4ab; background: rgba(180, 35, 24, .25); }

/* ---------- the seller's tools, the buyers' favourites (includes/clik-listing-tools.php) ---------- */
.clik-mk-ic.is-tools { color: #0E9F5B; background: rgba(14, 159, 91, .12); }
.clik-lt-tools .clik-mk-pill.is-on { color: #0b6b3e; background: #dff5ea; }
.clik-lt-tools .clik-mk-pill.is-sold { color: #8a1c13; background: #fde4e1; }
.clik-lt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.clik-lt-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 4px; border-radius: 12px; text-align: center; box-shadow: inset 0 0 0 1px var(--cd-line); }
.clik-lt-stats b { font-size: 20px; font-weight: 900; line-height: 1.1; color: var(--cd-ink); }
.clik-lt-stats small { font-size: 12px; line-height: 1.2; color: var(--cd-mute); overflow-wrap: anywhere; }
.clik-lt-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.clik-lt-acts .cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.clik-lt-acts .cd-btn[disabled] { opacity: .5; cursor: not-allowed; }
.clik-lt-note { font-size: 12.5px; color: var(--cd-mute); }
.clik-lt-drop { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--cd-panel); }
.clik-lt-drop > b { font-size: 15px; font-weight: 800; }
.clik-lt-drop > small { margin-top: -6px; font-size: 12.5px; color: var(--cd-mute); }
.clik-lt-drop-row { display: flex; gap: 8px; }
.clik-lt-drop-row .clik-mk-amount { flex: 1 1 auto; min-width: 0; }
.clik-lt-drop-row .cd-btn { flex: none; min-height: 40px; }
.clik-lt-drop .js_clik-lt-chip.is-on { box-shadow: inset 0 0 0 2px var(--cd-ac); }
.clik-lt-drop-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--cd-ink); }
.clik-lt-drop-line s { color: var(--cd-mute); }
.clik-lt-drop-line small { color: var(--cd-mute); }
.clik-lt-drop-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #fff; background: #16A34A; }
.clik-lt-fav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.clik-lt-heart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: #e11d48; background: rgba(225, 29, 72, .1); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.clik-lt-heart svg { fill: transparent; transition: fill .2s ease; }
.clik-lt-heart .is-saved { display: none; }
.clik-lt-heart.is-on { color: #fff; background: #e11d48; }
.clik-lt-heart.is-on svg { fill: currentColor; }
.clik-lt-heart.is-on .is-add { display: none; }
.clik-lt-heart.is-on .is-saved { display: inline; }
.clik-lt-heart:active { transform: scale(.96); }
.clik-lt-heart.is-pop svg { animation: clik-lt-pop .45s ease; }
@keyframes clik-lt-pop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.clik-lt-heart:focus-visible { outline: 2px solid #0866FF; outline-offset: 2px; }
.clik-lt-fav-t { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.clik-lt-fav-t b { font-size: 14px; font-weight: 700; }
.clik-lt-fav-t small { font-size: 12.5px; color: var(--cd-mute); }
body.night-mode .clik-lt-tools .clik-mk-pill.is-on { color: #7ee2b0; background: rgba(14, 159, 91, .18); }
body.night-mode .clik-lt-tools .clik-mk-pill.is-sold { color: #ffb4ab; background: rgba(180, 35, 24, .25); }
body.night-mode .clik-lt-heart { color: #fb7185; background: rgba(225, 29, 72, .18); }
body.night-mode .clik-lt-heart.is-on { color: #fff; background: #e11d48; }
@media (max-width: 575px) { .clik-lt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .clik-lt-heart.is-pop svg { animation: none; } }

/* the alert window's e-mail rhythm (each listing / daily / weekly digest) */
.clik-mk-freq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clik-mk-freq[hidden] { display: none !important; }
.clik-mk-freq label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 8px 4px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px var(--cd-line); }
.clik-mk-freq input { position: absolute; opacity: 0; pointer-events: none; }
.clik-mk-freq label:has(input:checked) { color: var(--cd-ac); box-shadow: inset 0 0 0 2px var(--cd-ac); background: var(--cd-acs); }
.clik-mk-freq label:has(input:focus-visible) { outline: 2px solid #0866FF; outline-offset: 2px; }

/* ---------- the 8 px rule (the owner, 23 Oct: "add rules 8px edge to edge"): every card 8 px inside, 8 px between
   every block, every box inside it (tiles, the score, the advice, the switch, the price drop, the offers) 8 px inside
   and 8 px apart; the cards 8 px apart, on the post card's edges (0 → the screen's width on phones, square) ---------- */
.cd.clik-mk { gap: 8px; }
.clik-mk-card { gap: 8px; padding: 8px; }
.clik-mk-head, .cd .clik-mk-who, .clik-lt-fav, .clik-tr-score, .clik-mk-switch, .clik-mk-alertbox-what { gap: 8px; }
.clik-mk-tile { gap: 8px; padding: 8px; }
.clik-mk-quote, .clik-mk-safety, .clik-tr-score, .clik-tr-cheap, .clik-mk-switch, .clik-lt-drop, .clik-mk-status, .clik-mk-alertbox-what { padding: 8px; }
.clik-mk-safety, .clik-tr-cheap { gap: 8px; }
.clik-lt-stats > div { padding: 8px 4px; }
.clik-lt-drop > small { margin-top: 0; }
.clik-mk-thread { padding: 8px 0; }
.clik-mk-bubble { padding: 8px 12px; }
.clik-mk-gauge { margin: 0 13px; }
.cd.clik-mk-alertbar { gap: 8px; padding: 8px; }
@media (max-width: 420px) {
  .clik-mk-card { padding: 8px; }
}

/* ---------- "Baisser le prix" (round 24 Oct): the new price and its button one 40 px line, the words on their middle ---------- */
.clik-lt-drop-row { align-items: center; }
.clik-lt-drop-row .clik-mk-amount { box-sizing: border-box; height: 40px; padding: 0 12px; border-radius: 12px; }
.clik-lt-drop-row .clik-mk-amount input { height: 100%; font-size: 17px; line-height: 40px; }
.clik-lt-drop-row .clik-mk-amount input::placeholder { font-size: 14px; line-height: 40px; }
.clik-lt-drop-row .clik-mk-amount b { line-height: 1; }
.cd .clik-lt-drop-row .cd-btn { height: 40px; min-height: 40px; padding: 0 16px; line-height: 1; }
/* the box's words on the 8 px rule: their own line height, no extra leading above or below */
.clik-lt-drop > b, .clik-lt-drop > small { display: block; margin: 0 !important; line-height: 1.2; }

/* the listing on the "Carte immobilière" (includes/clik-remap.php): a little street map, its pin landing in the
   quartier's circle; "less motion" keeps it still */
.clik-mk-ic.is-rm { color: #0A5CFF; background: rgba(10, 92, 255, .12); }
.clik-mk-rm-3d { margin-inline-start: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: linear-gradient(135deg, #0A5CFF, #7C3AED 55%, #F5104F); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.clik-mk-rm-art { height: 96px; border-radius: 12px; overflow: hidden; }
.clik-mk-rm-art svg { display: block; width: 100%; height: 100%; }
.clik-mk-rm-ground { fill: #eef2f7; }
.clik-mk-rm-road { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.clik-mk-rm-road.is-thin { stroke-width: 4; }
.clik-mk-rm-blocks rect { fill: #d9e1ec; }
.clik-mk-rm-plot { fill: rgba(255, 210, 0, .45); stroke: #F5104F; stroke-width: 2.5; stroke-linejoin: round; }
.clik-mk-rm-priv.is-plot i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 210, 0, .5); box-shadow: inset 0 0 0 2px #F5104F; flex: none; }
.clik-mk-rm-priv.is-plot b { unicode-bidi: plaintext; }
.clik-mk-rm-area { fill: rgba(10, 92, 255, .12); stroke: #0A5CFF; stroke-width: 1.6; stroke-dasharray: 5 4; }
.clik-mk-rm-shadow { fill: rgba(15, 23, 42, .25); }
body.night-mode .clik-mk-rm-ground { fill: #2a2d33; }
body.night-mode .clik-mk-rm-road { stroke: #3a3e46; }
body.night-mode .clik-mk-rm-blocks rect { fill: #34383f; }
body.night-mode .clik-mk-rm-area { fill: rgba(76, 154, 255, .16); stroke: #4C9AFF; }
.clik-mk-rm-addr { margin: 0; font-weight: 600; }
.clik-mk-rm-priv { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0A5CFF; }
body.night-mode .clik-mk-rm-priv { color: #4C9AFF; }
.clik-mk-rm-acts { display: flex; gap: 8px; }
.cd .clik-mk-rm-acts .cd-btn:not(.is-icon) { flex: 1 1 auto; }
.cd .clik-mk-rm-acts .cd-btn.is-icon { flex: none; width: 44px; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cd:not(.no-motion) .clik-mk-rm-pin { transform-box: view-box; animation: clik-mk-rm-land 1s .3s cubic-bezier(.3, 1.5, .5, 1) both; }
  .cd:not(.no-motion) .clik-mk-rm-area { transform-box: fill-box; transform-origin: center; animation: clik-mk-rm-ring 2.4s 1.1s ease-out 3; }
  .cd:not(.no-motion) .clik-mk-rm:hover .clik-mk-rm-pin { animation: clik-mk-rm-hop .8s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes clik-mk-rm-land { from { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes clik-mk-rm-hop { 0%, 100% { transform: none; } 45% { transform: translateY(-6px); } }
@keyframes clik-mk-rm-ring { 0% { transform: scale(.7); opacity: .4; } 40% { opacity: 1; } 100% { transform: scale(1.12); opacity: .9; } }
.clik-mk-rm-priv.is-auto { color: #b45309; }
body.night-mode .clik-mk-rm-priv.is-auto { color: #fbbf24; }

/* ---------- « Demander à Ghali » on a listing's page: the assistant opens knowing the listing ---------- */
.clik-mk .clik-gh-ask { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; text-align: start; background: linear-gradient(135deg, rgba(8, 102, 255, .08), rgba(124, 58, 237, .08)); }
.clik-gh-ask-av { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: conic-gradient(#0A5CFF, #F5104F, #FFD200, #0A5CFF); }
.clik-gh-ask-av img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.clik-gh-ask-av i { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.clik-gh-ask-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 auto; min-width: 0; }
.clik-gh-ask-t b, .clik-gh-ask-t small { max-width: 100%; }
.clik-gh-ask-t b { font-size: 15px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clik-gh-ask-t small { color: var(--cd-mute, #65676b); font-size: 12.5px; line-height: 1.35; }
.clik-mk .clik-gh-ask .clik-gh-ask-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; white-space: nowrap; }
.clik-mk .clik-gh-ask .clik-gh-ask-go svg { flex: none; }
body.night-mode .clik-gh-ask-av img, body.night-mode .clik-gh-ask-av i { border-color: #242526; }
@media (max-width: 400px) { .clik-mk .clik-gh-ask .clik-gh-ask-go span { display: none; } .clik-mk .clik-gh-ask .clik-gh-ask-go { width: 40px; padding: 0; border-radius: 50%; } }

/* the seller's own listing with an unrealistic price (clik_price_unreal, 7 Nov): why visitors read « Prix sur demande » */
.clik-lt-unreal { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; font-size: 13px; line-height: 1.45; border: 1px solid #F5C77E; }
body.night-mode .clik-lt-unreal { background: rgba(245, 158, 11, .14); color: #FBBF61; border-color: rgba(245, 158, 11, .35); }

/* ---------- 9 Nov: a listing without a title - its seller picks one (#clik-title) ---------- */
.clik-lt-title { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #fff7e6; box-shadow: inset 0 0 0 1px #f5c56b; }
.clik-lt-title > b { font-size: 15px; font-weight: 800; color: var(--cd-ink); }
.clik-lt-title > small { margin-top: -6px; font-size: 12.5px; color: var(--cd-mute); }
.clik-lt-tfield { flex: 1 1 auto; min-width: 0; margin: 0; }
.clik-lt-tfield input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; outline: 0; font-size: 15px; font-weight: 600; color: var(--cd-ink); background: var(--cd-card); box-shadow: inset 0 0 0 2px #f0a92e; }
.clik-lt-tfield input:focus-visible { box-shadow: inset 0 0 0 2px #0866FF; }
.clik-lt-title .cd-btn { flex: none; min-height: 40px; }
body.night-mode .clik-lt-title { background: rgba(240, 169, 46, .12); box-shadow: inset 0 0 0 1px rgba(240, 169, 46, .45); }
@media (max-width: 420px) { .clik-lt-title .clik-lt-drop-row { flex-direction: column; } .clik-lt-title .cd-btn { width: 100%; } }

/* 22 Nov: the seller's tools - « Classée : À vendre » and « Changer en À louer » (js/core/clik-deal.js) */
.clik-lt-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 10px; background: #f0f2f5; }
.clik-lt-deal-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14.5px; }
.clik-lt-deal-t svg { flex: none; color: #E2A100; }
.clik-lt-deal-t b { font-weight: 700; }
.clik-lt-deal .cd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; white-space: nowrap; }
.clik-lt-deal .cd-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.clik-lt-deal.is-done .clik-lt-deal-t b { animation: clik-lt-deal-pop .45s ease; }
@keyframes clik-lt-deal-pop { 40% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .clik-lt-deal.is-done .clik-lt-deal-t b { animation: none; } }
body.night-mode .clik-lt-deal { background: #3a3b3c; }
body.night-mode .clik-lt-deal-t svg { color: #F7B928; }
/* 22 Nov: « Tout · À vendre · À louer » in « Créer une alerte » (__clik_market_alert.tpl, clik-mk-alert-deal.js) */
.clik-mk-dealpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clik-mk-dealpick label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 0 8px; border-radius: 20px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: inset 0 0 0 1px var(--cd-line); transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.clik-mk-dealpick input { position: absolute; opacity: 0; pointer-events: none; }
.clik-mk-dealpick label:hover { box-shadow: inset 0 0 0 1px var(--cd-ac); color: var(--cd-ac); }
.clik-mk-dealpick label:has(input:checked) { color: var(--cd-ac); box-shadow: inset 0 0 0 2px var(--cd-ac); background: var(--cd-acs); }
.clik-mk-dealpick label:has(input:focus-visible) { outline: 2px solid var(--cd-ac); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .clik-mk-dealpick label { transition: none; } }

/* 23 Nov: « Ajoutez le vrai prix » under the seller's note - its editor opens on the price field (clikcards.js) */
.clik-lt-unreal > p { margin: 0; }
.clik-lt-unreal .clik-lt-fixp { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: #F59E0B; color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.clik-lt-unreal .clik-lt-fixp:hover { background: #D97706; }
.clik-lt-unreal .clik-lt-fixp:focus-visible { outline: 2px solid #0866FF; outline-offset: 2px; }
body.night-mode .clik-lt-unreal .clik-lt-fixp { color: #1c1e21; }

/* round 106: « Vendue à » - the members who wrote about a sold listing, one tap names the buyer (includes/clik-cod.php) */
.clik-lt-soldto { display: grid; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(8, 102, 255, .06); }
.clik-lt-soldto-t { font-weight: 800; }
.clik-lt-soldto small { color: #65676b; line-height: 1.35; }
.clik-lt-soldto-l { display: flex; flex-wrap: wrap; gap: 8px; }
.clik-lt-sbuy { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; max-width: 100%; height: 40px; padding: 0 12px 0 6px; border: 1px solid rgba(15, 23, 42, .14); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.clik-lt-sbuy img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.clik-lt-sbuy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clik-lt-sbuy:hover, .clik-lt-sbuy:focus-visible { border-color: #0866FF; box-shadow: 0 0 0 3px rgba(8, 102, 255, .18); outline: none; }
.clik-lt-soldto-ok { color: #0b6b3e; font-weight: 600; }
body.night-mode .clik-lt-soldto { background: rgba(76, 154, 255, .1); }
body.night-mode .clik-lt-soldto small { color: #b0b3b8; }
body.night-mode .clik-lt-sbuy { background: #242526; border-color: #3e4042; }
body.night-mode .clik-lt-soldto-ok { color: #4ade80; }

/* ---------- 4 Dec (round 120, the owner's two screenshots of a listing page: « Align, Center, Perfect, NO overflow »):
   « Votre prix » starts where « Message (facultatif) » starts (12 px inside, the same box edge), its words and the typed
   price one size so the browser centres both on the field's middle (Firefox put a smaller placeholder low), « DH »
   centred by its capitals; the Arabic page's empty message field writes its hint on the right ---------- */
.clik-mk-form .clik-mk-amount:not(.is-sm) { box-sizing: border-box; padding: 0 12px; }
.clik-mk-form .clik-mk-amount:not(.is-sm) input { font-size: 20px; line-height: normal; padding: .15em 0 0; }
[dir="rtl"] .clik-mk-form .clik-mk-amount:not(.is-sm) input:placeholder-shown { padding-top: 0; }
.clik-mk-form .clik-mk-amount:not(.is-sm) input::placeholder { font-size: 20px; font-weight: 600; line-height: normal; }
.clik-mk-amount b { line-height: 1; }
@supports (text-box: trim-both cap alphabetic) {
  .clik-mk-amount b { display: inline-block; text-box: trim-both cap alphabetic; }
}
[dir="rtl"] .clik-mk-msg:placeholder-shown { direction: rtl; text-align: right; }
.clik-mk-alertbar[hidden]{display:none!important}

/* round 124 (the owner's extra 3): a new alert - the site's loading cube born again out of light (a point of light, the
   cube white then its colours, six sparks in the cube's colours) 8 px over « Alerte créée… » */
.clik-mk-alert-born{position:relative;display:block;width:44px;height:44px;margin:0 auto 8px;pointer-events:none}
.clik-mk-alert-born>img{position:relative;z-index:1;display:block;width:44px;height:44px;animation:clik-cube-in .9s cubic-bezier(.22,1.1,.36,1) .12s both}
.clik-mk-ab-core{position:absolute;inset:-40%;border-radius:50%;opacity:0;background:radial-gradient(closest-side,#fff 0,rgba(255,255,255,.95) 18%,rgba(120,170,255,.75) 42%,rgba(124,58,237,.28) 64%,transparent 100%);animation:clik-rb-core .62s cubic-bezier(.3,.7,.4,1) both}
.clik-mk-ab-sp{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#fff;opacity:0;box-shadow:0 0 6px 2px #0A5CFF;animation:clik-mk-ab-sp .62s cubic-bezier(.2,.8,.3,1) .6s both}
.clik-mk-ab-sp.is-c1{box-shadow:0 0 6px 2px #F5104F}
.clik-mk-ab-sp.is-c2{box-shadow:0 0 6px 2px #FFD200}
.clik-mk-ab-sp:nth-of-type(2){--a:0deg}.clik-mk-ab-sp:nth-of-type(3){--a:60deg}.clik-mk-ab-sp:nth-of-type(4){--a:120deg}.clik-mk-ab-sp:nth-of-type(5){--a:180deg}.clik-mk-ab-sp:nth-of-type(6){--a:240deg}.clik-mk-ab-sp:nth-of-type(7){--a:300deg}
@keyframes clik-mk-ab-sp{0%{opacity:0;transform:rotate(var(--a,0deg)) translateX(0) scale(1)}15%{opacity:1}100%{opacity:0;transform:rotate(var(--a,0deg)) translateX(40px) scale(.3)}}
@media (prefers-reduced-motion:reduce){.clik-mk-alert-born>img,.clik-mk-ab-core,.clik-mk-ab-sp{animation:none}.clik-mk-ab-core,.clik-mk-ab-sp{display:none}}

