/* CLIK.ma - a business account's profile (includes/clik-biz.php): "Infos entreprise" in /settings/profile/business
   (ICE, address, opening hours), the profile's « Ouvert maintenant », its week, and « N ans aujourd'hui ! » on its
   founding day. One 8 px rhythm; day / night; "less motion" stops the anniversary's pop. */
:root {
  --bz-ink: #1c1e21; --bz-mute: #65676b; --bz-line: #dadde1; --bz-soft: #f0f2f5; --bz-card: #fff;
  --bz-green: #16A34A; --bz-red: #DC2626; --bz-blue: #0866FF;
}
body.night-mode { --bz-ink: #e4e6eb; --bz-mute: #b0b3b8; --bz-line: #3e4042; --bz-soft: #3a3b3c; --bz-card: #242526; --bz-green: #22C55E; --bz-red: #F87171; }

/* ---------- the settings form: ONE grid per list - every field of a kind starts and ends on the same line on every
   row (the opening times under each other, the closing times under each other, a special day's dates over its times) ---------- */
.clik-bz { display: flex; flex-direction: column; gap: 8px; }
.clik-bz > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.clik-bz-line { margin: 0; font-size: 14px; line-height: 20px; color: var(--bz-mute); }
.clik-bz-hours { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; margin: 0; border: 1px solid var(--bz-line); border-radius: 12px; }
.clik-bz-hours legend { float: left; width: 100%; margin: 0; padding: 0; font-size: 15px; font-weight: 800; line-height: 20px; color: var(--bz-ink); }
.clik-bz-hours legend + * { clear: both; }
.clik-bz-f {
  box-sizing: border-box; width: 100%; min-width: 0; height: 36px; margin: 0; padding: 0 8px; border: 1px solid var(--bz-line); border-radius: 8px;
  background: var(--bz-card); color: var(--bz-ink); font-size: 14px; font-variant-numeric: tabular-nums;
}
.clik-bz-f:focus { outline: none; border-color: var(--bz-blue); box-shadow: 0 0 0 3px rgba(8, 102, 255, .2); }
.clik-bz-dash { display: block; text-align: center; font-size: 14px; color: var(--bz-mute); }
/* « Fermé »: in the times' own columns, as tall as a field */
.clik-bz-cl {
  display: none; align-items: center; justify-content: center; box-sizing: border-box; height: 36px; border: 1.5px dashed rgba(220, 38, 38, .45); border-radius: 8px;
  font-size: 13px; font-weight: 800; color: var(--bz-red);
}
body.night-mode .clik-bz-cl { border-color: rgba(248, 113, 113, .45); }

/* the week: columns [the switch + the day] [opens] [–] [closes] shared by the 7 rows (subgrid); the two 0 px columns at the
   ends + the 8 px gaps are each row's inner 8 px (a subgrid's own padding would narrow its first and last columns) */
.clik-bz-week { display: grid; grid-template-columns: 0 max-content minmax(0, 1fr) 12px minmax(0, 1fr) 0; column-gap: 8px; row-gap: 8px; }
.clik-bz-week:has(.clik-bz-dt) { grid-template-columns: 0 max-content minmax(0, 1fr) 12px minmax(0, 1fr) max-content 0; }
.clik-bz-day { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 8px; align-items: center; min-height: 52px; padding: 0; border-radius: 10px; background: var(--bz-soft); }
@supports not (grid-template-columns: subgrid) {
  .clik-bz-day { grid-template-columns: 0 160px minmax(0, 1fr) 12px minmax(0, 1fr) 0; }
  .clik-bz-week:has(.clik-bz-dt) .clik-bz-day { grid-template-columns: 0 160px minmax(0, 1fr) 12px minmax(0, 1fr) 80px 0; }
}
.clik-bz-day > .clik-bz-dh { grid-column: 2; grid-row: 1; }
.clik-bz-day > .js_clik-bz-a, .clik-bz-day > .clik-bz-tb.is-a, .clik-bz-day > .clik-bz-th.is-a { grid-column: 3; grid-row: 1; }
.clik-bz-day > .clik-bz-dash { grid-column: 4; grid-row: 1; }
.clik-bz-day > .js_clik-bz-b, .clik-bz-day > .clik-bz-tb.is-b, .clik-bz-day > .clik-bz-th.is-b { grid-column: 5; grid-row: 1; }
.clik-bz-day > .clik-bz-dt { grid-column: 6; grid-row: 1; }
.clik-bz-dh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.clik-bz-dh .switch { flex: none; margin: 0; }
.clik-bz-dn { margin: 0; font-size: 14px; font-weight: 700; color: var(--bz-ink); white-space: nowrap; cursor: pointer; }
.clik-bz-day > .clik-bz-cl, .clik-bz-day > .clik-bz-allday { grid-column: 3 / 6; grid-row: 1; }
.clik-bz-day.is-off .clik-bz-f, .clik-bz-day.is-off > .clik-bz-tb, .clik-bz-day.is-off > .clik-bz-dash { display: none; }
.clik-bz-day.is-24:not(.is-off) .clik-bz-f, .clik-bz-day.is-24:not(.is-off) > .clik-bz-tb, .clik-bz-day.is-24:not(.is-off) > .clik-bz-dash { display: none; }
.clik-bz-day.is-24:not(.is-off) > .clik-bz-allday { display: flex; }
.clik-bz-day.is-off .clik-bz-cl { display: flex; }
.clik-bz-day.is-off .clik-bz-dn { color: var(--bz-mute); }
.clik-bz-day.is-head { min-height: 0; padding-block: 0; background: none; }
.clik-bz-th { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--bz-mute); text-transform: uppercase; letter-spacing: .02em; padding-inline: 9px; }
.clik-bz-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.clik-bz-tools .btn { height: 36px; margin: 0; padding: 0 16px; border-radius: 18px; font-size: 13px; font-weight: 700; }
/* phones: the switch + the day on top, the two times under it - the same two columns on every row */
@media (max-width: 479px) {
  .clik-bz-week { grid-template-columns: 0 minmax(0, 1fr) 12px minmax(0, 1fr) 0; }
  .clik-bz-day { row-gap: 8px; padding-block: 8px; }
  .clik-bz-week:has(.clik-bz-dt) { grid-template-columns: 0 minmax(0, 1fr) 12px minmax(0, 1fr) 0; }
  .clik-bz-day > .clik-bz-dh { grid-column: 2 / 5; grid-row: 1; }
  .clik-bz-day:has(> .clik-bz-dt) > .clik-bz-dh { grid-column: 2 / 4; }
  .clik-bz-day > .clik-bz-dt { grid-column: 4; grid-row: 1; justify-self: end; }
  .clik-bz-day.is-head > .clik-bz-dt { display: none; }
  .clik-bz-day > .js_clik-bz-a, .clik-bz-day > .clik-bz-tb.is-a, .clik-bz-day > .clik-bz-th.is-a { grid-column: 2; grid-row: 2; }
  .clik-bz-day > .clik-bz-dash { grid-column: 3; grid-row: 2; }
  .clik-bz-day > .js_clik-bz-b, .clik-bz-day > .clik-bz-tb.is-b, .clik-bz-day > .clik-bz-th.is-b { grid-column: 4; grid-row: 2; }
  .clik-bz-day > .clik-bz-cl, .clik-bz-day > .clik-bz-allday { grid-column: 2 / 5; grid-row: 2; }
  .clik-bz-day.is-head { padding-block: 0; }
  .clik-bz-day.is-head > .clik-bz-th { grid-row: 1; }
  .clik-bz-day.is-head .clik-bz-dh { display: none; }
  .clik-bz-tools .btn { flex: 1 1 0; min-width: max-content; }
}

/* ---------- the profile ---------- */
.clik-bz-k { color: var(--bz-mute); }
.clik-bz-now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.clik-bz-now b { color: var(--bz-red); }
.clik-bz-now.is-open b { color: var(--bz-green); }
.clik-bz-now span { color: var(--bz-mute); }
.clik-bz-dot { flex: none; width: 10px; height: 10px; margin-inline: 7px; border-radius: 50%; background: var(--bz-red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.clik-bz-now.is-open .clik-bz-dot { background: var(--bz-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.js_clik-bz-hours { cursor: pointer; }
.js_clik-bz-hours:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 102, 255, .45); }
.clik-bz-car { flex: none; margin-inline-start: 2px; opacity: .7; }

/* « 12 ans aujourd'hui ! » under the business's name, on its founding day */
.clik-bz-anniv {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-top: 8px; padding: 0 12px; border-radius: 14px;
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap;
  background: linear-gradient(135deg, #0A5CFF, #7C3AED 55%, #F5104F); box-shadow: 0 4px 12px rgba(10, 92, 255, .3);
}
.clik-bz-anniv svg { flex: none; color: #FFD200; }
@media (prefers-reduced-motion: no-preference) {
  .clik-bz-anniv { animation: clik-bz-pop .6s cubic-bezier(.2, .9, .3, 1.4) both; }
  .clik-bz-anniv svg { animation: clik-bz-wig 1.2s .6s ease-in-out 3; }
}
@keyframes clik-bz-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes clik-bz-wig { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }

/* ---------- the week in a CLIK window (a <dialog>) - the title rule, the round 36 px ×, the 8 px grid ---------- */
.clik-bz-win {
  width: min(420px, calc(100% - 16px)); max-width: none; max-height: calc(100% - 16px); margin: auto; padding: 8px 16px 16px; border: 0; border-radius: 16px;
  color: var(--bz-ink); background: var(--bz-card); box-shadow: 0 12px 32px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .1); overflow: auto;
}
.clik-bz-win[open] { display: flex; flex-direction: column; gap: 8px; }
.clik-bz-win::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0A5CFF, #F5104F, #FFD200); }
.clik-bz-win::backdrop { background: rgba(10, 14, 24, .55); }
.clik-bz-win-head { display: flex; align-items: center; gap: 8px; min-height: 36px; padding-top: 8px; }
.clik-bz-win-t { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.clik-bz-win-t > span { min-width: 0; }
.clik-bz-win-t .clik-brand.is-inline { flex: none; margin: 0; }
.clik-bz-win-x {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  color: #606770; background: #e4e6eb; cursor: pointer; transition: transform .2s;
}
body.night-mode .clik-bz-win-x { color: #e4e6eb; background: #3a3b3c; }
.clik-bz-win-x:hover { transform: rotate(90deg); }
.clik-bz-win-x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 102, 255, .45); }
.clik-bz-win-now { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--bz-mute); }
.clik-bz-win-now .clik-bz-dot { margin-inline: 2px 4px; }
.clik-bz-win-now b { color: var(--bz-red); }
.clik-bz-win-now.is-open b { color: var(--bz-green); }
.clik-bz-win-now.is-open .clik-bz-dot { background: var(--bz-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.clik-bz-win-days { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.clik-bz-win-days li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bz-soft); font-size: 15px; }
.clik-bz-win-days li b { font-variant-numeric: tabular-nums; }
.clik-bz-win-days li em { margin-inline-start: 6px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0A5CFF, #6A3DF5); }
.clik-bz-win-days li.is-today { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--bz-blue); }
.clik-bz-win-days li.is-closed b { color: var(--bz-red); }
.clik-bz-win-addr { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--bz-mute); }
.clik-bz-win-addr svg { flex: none; margin-top: 1px; color: var(--bz-blue); }
@media (max-width: 479px) {
  .clik-bz-win { padding: 8px 8px 8px; }
  .clik-bz-win-t { font-size: clamp(16px, 4.6vw, 20px); }
}
@media (prefers-reduced-motion: no-preference) {
  .clik-bz-win[open] { animation: clik-bz-win-in .22s cubic-bezier(.2, .9, .3, 1.2); }
  .clik-bz-win[open]::backdrop { animation: clik-bz-fade .22s ease-out; }
  .clik-bz-win[open] .clik-bz-win-days li { animation: clik-bz-li .3s both; }
  .clik-bz-win[open] .clik-bz-win-days li:nth-child(2) { animation-delay: .03s; } .clik-bz-win[open] .clik-bz-win-days li:nth-child(3) { animation-delay: .06s; }
  .clik-bz-win[open] .clik-bz-win-days li:nth-child(4) { animation-delay: .09s; } .clik-bz-win[open] .clik-bz-win-days li:nth-child(5) { animation-delay: .12s; }
  .clik-bz-win[open] .clik-bz-win-days li:nth-child(6) { animation-delay: .15s; } .clik-bz-win[open] .clik-bz-win-days li:nth-child(7) { animation-delay: .18s; }
}
@media (prefers-reduced-motion: reduce) { .clik-bz-win-x:hover { transform: none; } }
@keyframes clik-bz-win-in { from { transform: scale(.94); opacity: 0; } }
@keyframes clik-bz-fade { from { opacity: 0; } }
@keyframes clik-bz-li { from { transform: translateY(6px); opacity: 0; } }

/* in the profile's chip row (.profile-about-inline: one line of 32 px chips) */
.profile-about-inline .profle-meta-wrapper > .clik-bz-now { flex-wrap: nowrap !important; gap: 4px; }
.profile-about-inline .profle-meta-wrapper > .clik-bz-now .clik-bz-dot { width: 8px; height: 8px; margin: 0 4px 0 0; }
.profile-about-inline .profle-meta-wrapper > .clik-bz-now span { color: inherit; opacity: .8; }
.profile-about-inline .profile-about-card .profle-meta-wrapper > .clik-bz-now { max-width: none; }
.profile-about-inline .profile-about-card .profle-meta-wrapper > .clik-bz-now > * { flex: none; overflow: visible; }

/* ---------- special days (settings): every row the same grid - the dates over the times, from over from, to over to ---------- */
.clik-bz-sps { display: flex; flex-direction: column; gap: 8px; }
.clik-bz-sps:empty { display: none; }
.clik-bz-sp {
  display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) minmax(0, 1.25fr) 36px; column-gap: 8px; row-gap: 8px; align-items: center;
  padding: 8px; border-radius: 10px; background: var(--bz-soft);
}
.clik-bz-sp .is-sf { grid-area: 1 / 1; } .clik-bz-sp .is-d1 { grid-area: 1 / 2; } .clik-bz-sp .is-st { grid-area: 1 / 3; }
.clik-bz-sp .is-sn { grid-area: 1 / 4; } .clik-bz-sp .clik-bz-sp-x { grid-area: 1 / 5; }
.clik-bz-sp .is-sa { grid-area: 2 / 1; } .clik-bz-sp .is-d2 { grid-area: 2 / 2; } .clik-bz-sp .is-sb { grid-area: 2 / 3; }
.clik-bz-sp .clik-bz-cl { grid-area: 2 / 1 / 3 / 4; }
.clik-bz-sp .clik-bz-sp-open { grid-area: 2 / 4 / 3 / 6; }
.clik-bz-sp.is-off .is-sa, .clik-bz-sp.is-off .is-sb, .clik-bz-sp.is-off .is-d2 { display: none; }
.clik-bz-sp.is-off .clik-bz-cl { display: flex; }
.clik-bz-sp-open { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--bz-ink); }
.clik-bz-sp-open .switch { flex: none; margin: 0; }
.clik-bz-sp-x {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  color: #606770; background: #e4e6eb; cursor: pointer;
}
body.night-mode .clik-bz-sp-x { color: #e4e6eb; background: #4e4f50; }
.clik-bz-sp-x:hover { color: #fff; background: var(--bz-red); }
.clik-bz-sp-x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 102, 255, .45); }
/* phones: [from] → [to] ×, the note, then [opens] – [closes] and its switch - the same columns again */
@media (max-width: 479px) {
  .clik-bz-sp { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 52px; }
  .clik-bz-sp .clik-bz-sp-x { grid-area: 1 / 4; justify-self: end; }
  .clik-bz-sp .is-sn { grid-area: 2 / 1 / 3 / 5; }
  .clik-bz-sp .is-sa { grid-area: 3 / 1; } .clik-bz-sp .is-d2 { grid-area: 3 / 2; } .clik-bz-sp .is-sb { grid-area: 3 / 3; }
  .clik-bz-sp .clik-bz-cl { grid-area: 3 / 1 / 4 / 4; }
  .clik-bz-sp .clik-bz-sp-open { grid-area: 3 / 4; justify-content: flex-end; }
  .clik-bz-sp-ol { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* « Appeler » switch (settings): its words on one side, the switch on the other, both on one middle */
.clik-bz-call { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px; border: 1px solid var(--bz-line); border-radius: 12px; }
.clik-bz-call .switch { flex: none; margin: 0; }
.clik-bz-call-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--bz-ink); }
.clik-bz-call-t b { font-weight: 700; }
.clik-bz-call-t small { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--bz-mute); }

/* ---------- the window: special days, Appeler / Itinéraire ---------- */
.clik-bz-win-h { margin: 0; font-size: 15px; font-weight: 800; color: var(--bz-ink); }
.clik-bz-win-days li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-block: 6px; }
.clik-bz-win-days li > span small { font-size: 12px; font-weight: 600; color: #B45309; }
body.night-mode .clik-bz-win-days li > span small { color: #FBBF24; }
.clik-bz-win-days li.is-special:not(.is-today) { box-shadow: inset 0 0 0 1.5px rgba(245, 158, 11, .55); }
.clik-bz-win-days li > b { flex: none; }
.clik-bz-win-acts { display: flex; gap: 8px; }
.clik-bz-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; height: 40px; padding: 0 14px; border: 0; border-radius: 20px;
  font-size: 14px; font-weight: 800; text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.clik-bz-act.is-call { color: #fff; background: linear-gradient(135deg, #16A34A, #0E9F6E); }
.clik-bz-act.is-route { color: var(--bz-blue); background: rgba(8, 102, 255, .1); }
.clik-bz-act.is-wa { color: #fff; background: #25D366; }
.clik-bz-act:hover { filter: brightness(1.06); }
.clik-bz-act:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(8, 102, 255, .45); }
.clik-bz-act.is-busy { opacity: .7; pointer-events: none; }
.clik-bz-num { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bz-soft); }
.clik-bz-num[hidden] { display: none; }
.clik-bz-num b { flex: 1 1 auto; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--bz-ink); }
.clik-bz-num .clik-bz-act { flex: none; height: 36px; }
.clik-bz-num.is-bad { color: var(--bz-red); font-size: 14px; font-weight: 600; }

.clik-bz-dn1 { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-style: normal; }
.clik-bz-win-days li .clik-bz-dn1 em { margin: 0; }
.clik-bz-dash.is-d1 { display: grid; place-items: center; }
.clik-bz-dash.is-d1 svg { display: block; }
[dir="rtl"] .clik-bz-dash.is-d1 svg { transform: scaleX(-1); }

/* ---------- the hours round of 30 Oct: the CLIK clock in the fields, « Ouvert 24 h/24 », « Copier vers… », motion ---------- */
.clik-bz-tb { display: block; min-width: 0; }
.clik-bz-tb > .clik-dt-in.clik-bz-f { height: 36px; padding-inline-start: 10px; }
/* « Ouvert 24 h/24 »: a solid green pill on exactly the room of the two times (as « Fermé » is for a closed day) */
.clik-bz-allday {
  display: none; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 36px; border: 1.5px solid rgba(22, 163, 74, .45);
  border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--bz-green); background: rgba(22, 163, 74, .1); white-space: nowrap;
}
.clik-bz-allday svg { flex: none; }
body.night-mode .clik-bz-allday { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .12); }
/* the day's tools: round 36 px shapes, the icon straight in them; « 24 h » pressed = the green circle, white icon */
.clik-bz-dt { display: flex; align-items: center; gap: 8px; }
.clik-bz-ib {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  color: #606770; background: #e4e6eb; cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
body.night-mode .clik-bz-ib { color: #e4e6eb; background: #4e4f50; }
.clik-bz-ib svg { display: block; width: 20px; height: 20px; padding: 0; background: none; }
.clik-bz-ib:hover { color: var(--bz-blue); background: #e7f0ff; }
body.night-mode .clik-bz-ib:hover { color: #4C9AFF; background: rgba(76, 154, 255, .18); }
.clik-bz-ib:active { transform: scale(.92); }
.clik-bz-ib:focus { outline: none; }
.clik-bz-ib:focus-visible { box-shadow: 0 0 0 3px rgba(8, 102, 255, .45); }
.clik-bz-ib.is-24[aria-pressed="true"], body.night-mode .clik-bz-ib.is-24[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #22C55E, #16A34A); }
.clik-bz-ib.is-cp[aria-expanded="true"] { color: #fff; background: linear-gradient(135deg, #0866FF, #6A3DF5); }
.clik-bz-day.is-off .clik-bz-ib.is-24 { visibility: hidden; }

/* « Copier vers… »: a small window under the day's button - its title alone (the business windows have no logo) */
.clik-bz-cpm {
  position: fixed; z-index: 1065; width: 248px; max-width: calc(100vw - 16px); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 8px;
  border-radius: 14px; color: var(--bz-ink); background: var(--bz-card); box-shadow: 0 12px 32px rgba(15, 23, 42, .2), 0 2px 6px rgba(15, 23, 42, .08); overflow: hidden;
}
.clik-bz-cpm::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #0A5CFF, #F5104F, #FFD200); }
body.night-mode .clik-bz-cpm { box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.clik-bz-cpm-t { display: block; padding: 4px 4px 0; font-size: 15px; font-weight: 800; line-height: 20px; }
.clik-bz-cpm-t span { color: var(--bz-blue); }
.clik-bz-cpm-l { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.clik-bz-cpm-i {
  display: flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 8px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--bz-soft); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clik-bz-cpm-i.is-all { font-weight: 800; background: none; box-shadow: inset 0 0 0 1px var(--bz-line); }
.clik-bz-cpm-i input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bz-blue); }
.clik-bz-cpm-i:has(input:checked):not(.is-all) { color: var(--bz-blue); background: #e7f0ff; }
body.night-mode .clik-bz-cpm-i:has(input:checked):not(.is-all) { color: #4C9AFF; background: rgba(76, 154, 255, .18); }
.clik-bz-cpm-a { display: flex; gap: 8px; }
.clik-bz-cpm-b { flex: 1 1 0; height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 18px; font-size: 14px; font-weight: 800; cursor: pointer; }
.clik-bz-cpm-b.is-no { color: var(--bz-ink); background: var(--bz-soft); }
.clik-bz-cpm-b.is-go { color: #fff; background: linear-gradient(135deg, #0866FF, #6A3DF5); }
.clik-bz-cpm-b:disabled { opacity: .45; cursor: default; }
.clik-bz-cpm-b:focus-visible, .clik-bz-cpm-i:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(8, 102, 255, .35); }

/* the saved / failed line: a CLIK status line, never Bootstrap's pale box (it read faded under the « Créer » button) */
.clik-bz > .alert { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 12px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 20px; }
.clik-bz > .alert.x-hidden { display: none; }
.clik-bz > .alert-success { color: #0F5132; background: #DCFCE7; box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .35); }
.clik-bz > .alert-success::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.clik-bz > .alert-danger { color: #7F1D1D; background: #FEE2E2; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .35); }
body.night-mode .clik-bz > .alert-success { color: #BBF7D0; background: rgba(22, 163, 74, .18); }
body.night-mode .clik-bz > .alert-danger { color: #FECACA; background: rgba(220, 38, 38, .18); }

/* motion: the rows come in one after the other the first time the week is seen; « Fermé » / « 24 h/24 » fold in */
@media (prefers-reduced-motion: no-preference) {
  .clik-bz-week.is-fx-wait > .clik-bz-day:not(.is-head) { opacity: 0; }
  .clik-bz-week.is-fx > .clik-bz-day:not(.is-head) { animation: clik-bz-row .42s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .clik-bz-day.is-fold > .clik-bz-cl, .clik-bz-day.is-fold > .clik-bz-allday { animation: clik-bz-fold .36s cubic-bezier(.2, .9, .3, 1.15) both; }
  .clik-bz-day.is-unfold > .clik-bz-tb, .clik-bz-day.is-unfold > .clik-bz-f, .clik-bz-day.is-unfold > .clik-bz-dash { animation: clik-bz-unfold .32s ease-out both; }
  .clik-bz-day.is-got { animation: clik-bz-got .6s ease; }
  .clik-bz-cpm { animation: clik-bz-win-in .18s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: top right; }
  [dir="rtl"] .clik-bz-cpm { transform-origin: top left; }
  .clik-bz-cpm.is-up { transform-origin: bottom right; }
}
@keyframes clik-bz-row { from { opacity: 0; transform: translateY(8px); } }
@keyframes clik-bz-fold { from { opacity: 0; transform: scaleX(.82); } }
@keyframes clik-bz-unfold { from { opacity: 0; transform: translateY(-4px); } }
@keyframes clik-bz-got { 30% { box-shadow: inset 0 0 0 2px rgba(8, 102, 255, .55); } }

/* ---------- the profile's « Ouvert / Fermé maintenant » pill (30 Oct, redesigned): its own state colours - never the chip
   row's colour by position (it came out red words on a violet chip) -, FIRST in the row (the business's most useful
   line, off-screen at the row's end on a phone), a live dot, the state in bold, the next time muted, the caret ---------- */
.profile-about-inline .profile-about-card .profle-meta-wrapper > div.clik-bz-now {
  order: -1; gap: 6px; padding: 0 10px 0 12px !important; color: #B91C1C !important;
  background: #FEF2F2 !important; border: 1px solid rgba(220, 38, 38, .32) !important; box-shadow: none;
}
.profile-about-inline .profile-about-card .profle-meta-wrapper > div.clik-bz-now.is-open { color: #15803D !important; background: #F0FDF4 !important; border-color: rgba(22, 163, 74, .34) !important; }
body.night-mode .profile-about-inline .profile-about-card .profle-meta-wrapper > div.clik-bz-now { color: #FCA5A5 !important; background: rgba(220, 38, 38, .14) !important; border-color: rgba(248, 113, 113, .4) !important; }
body.night-mode .profile-about-inline .profile-about-card .profle-meta-wrapper > div.clik-bz-now.is-open { color: #86EFAC !important; background: rgba(22, 163, 74, .16) !important; border-color: rgba(34, 197, 94, .4) !important; }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now b { color: inherit; font-weight: 800; }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now span { color: #4B5563 !important; opacity: 1 !important; font-weight: 600; }
body.night-mode .profile-about-inline .profle-meta-wrapper > div.clik-bz-now span { color: #CBD5E1 !important; }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now .clik-bz-dot { position: relative; width: 8px !important; height: 8px !important; margin: 0 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now.is-open .clik-bz-dot { box-shadow: 0 0 0 3px rgba(22, 163, 74, .22); }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now .clik-bz-car { width: 14px !important; height: 14px !important; margin: 0 !important; opacity: .75; color: inherit; transition: transform .15s; }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now[aria-expanded="true"] .clik-bz-car { transform: rotate(180deg); }
.profile-about-inline .profle-meta-wrapper > div.clik-bz-now.js_clik-bz-hours:hover { filter: brightness(.97); }
@media (prefers-reduced-motion: no-preference) {
  .profile-about-inline .profle-meta-wrapper > div.clik-bz-now.is-open .clik-bz-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: clik-bz-live 2s ease-out 3;
  }
}
@keyframes clik-bz-live { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
/* phones: the chip row on the 8 px rule - its first chip 8 px from the screen's side, and it slides to 8 px of the other */
@media (max-width: 668px) {
  .profile-about-inline .profile-about-card .profle-meta-wrapper { padding-inline: 8px !important; scroll-padding-inline: 8px; }
}

/* ---------- « Pause déjeuner » (30 Oct): a day open in two parts - its second line in the SAME columns (the break's start
   under « ouvre », its end under « ferme »), the label under the day's name, the pause button amber when pressed ---------- */
.clik-bz-day > .clik-bz-pl, .clik-bz-day > .clik-bz-tb.is-c, .clik-bz-day > .js_clik-bz-c:not(.clik-dt-nat), .clik-bz-day > .clik-bz-dash.is-p,
.clik-bz-day > .clik-bz-tb.is-d, .clik-bz-day > .js_clik-bz-d:not(.clik-dt-nat) { display: none; grid-row: 2; }
.clik-bz-day.is-pause:not(.is-off):not(.is-24) { row-gap: 8px; padding-block: 8px; }
.clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-pl { display: flex; grid-column: 2; }
.clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-tb.is-c, .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .js_clik-bz-c:not(.clik-dt-nat) { display: block; grid-column: 3; }
.clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-dash.is-p { display: block; grid-column: 4; }
.clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-tb.is-d, .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .js_clik-bz-d:not(.clik-dt-nat) { display: block; grid-column: 5; }
.clik-bz-pl { align-items: center; gap: 8px; min-width: 0; height: 36px; font-size: 13px; font-weight: 700; color: #B45309; white-space: nowrap; }
body.night-mode .clik-bz-pl { color: #FBBF24; }
/* the icon under the day's switch, the words under the day's name */
.clik-bz-pl-ic { display: grid; place-items: center; flex: none; width: var(--bz-sw, 40px); }
.clik-bz-pl-ic svg { display: block; }
.clik-bz-ib.is-pz[aria-pressed="true"], body.night-mode .clik-bz-ib.is-pz[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #F59E0B, #D97706); }
.clik-bz-day.is-off .clik-bz-ib.is-pz, .clik-bz-day.is-24 .clik-bz-ib.is-pz { visibility: hidden; }
/* a break outside the day's hours: its fields in red, the pause button says why */
.clik-bz-tb.is-bad > .clik-dt-in, .clik-bz-f.is-bad { border-color: var(--bz-red) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .16); }
.clik-bz-day.is-bad-pause .clik-bz-ib.is-pz[aria-pressed="true"] { background: linear-gradient(135deg, #EF4444, #DC2626); }
@media (max-width: 479px) {
  .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-pl { grid-column: 2 / 5; grid-row: 3; height: 20px; }
  .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-tb.is-c, .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .js_clik-bz-c:not(.clik-dt-nat) { grid-column: 2; grid-row: 4; }
  .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-dash.is-p { grid-column: 3; grid-row: 4; }
  .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .clik-bz-tb.is-d, .clik-bz-day.is-pause:not(.is-off):not(.is-24) > .js_clik-bz-d:not(.clik-dt-nat) { grid-column: 4; grid-row: 4; }
  .clik-bz-pl-ic { width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .clik-bz-day.is-pause-in > .clik-bz-pl, .clik-bz-day.is-pause-in > .clik-bz-tb.is-c, .clik-bz-day.is-pause-in > .clik-bz-dash.is-p, .clik-bz-day.is-pause-in > .clik-bz-tb.is-d { animation: clik-bz-unfold .32s ease-out both; }
}
