/**
 * PrestaChamps
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact leo@prestachamps.com
 *
 * @author    PrestaChamps <leo@prestachamps.com>
 * @copyright PrestaChamps
 * @license   commercial
 */
/* ---- PrestaChamps back-office UI: design tokens and shared components ----
   Loaded before each page's own stylesheet (trackers.css, ...) on every page whose
   root element carries the class pch-ui (#gdpr-trackers, the scanner page).
   Colours: the PrestaChamps setup-wizard roles (ground, card, line, ink, muted,
   accent for done/primary, amber for warn, red for error).

   Every rule is scoped to the root, with one of three prefixes that give it a set weight:
     :where(.pch-ui) .x          no weight: .x alone (the component's base rule);
     .pch-ui .x                  one class: outranks the admin theme's rules on bare
                                 tags inside .bootstrap (p, ul, li, ...);
     :is(.pch-ui, #pch-ui) .x    one id (no element has the id pch-ui; it only adds
                                 the weight): for buttons, links, inputs, headings
                                 and small, where the theme's .bootstrap .btn,
                                 button, input and tag rules outrank a class or two.
   These are the weights the rules had on the scanner page (bare, .gdpr-trackers,
   #gdpr-trackers). A page's own stylesheet overrides a component with a rule of
   the same weight (it loads later) or a heavier one.

   The pch-ui root of the scanner page is the scan frame host's parent, and a card
   holds no host: never set transform, filter, contain, container-type, will-change,
   perspective or backdrop-filter on .pch-ui or .gdpr-card (trackers-frame-css.test.mjs
   reads this file too). */
.pch-ui {
    --gdpr-acc: #0d7f63; --gdpr-acc-2: #10a37f; --gdpr-acc-soft: #e4f5ef; --gdpr-acc-ink: #0b6b4e; --gdpr-acc-line: #bfe6d6;
    --gdpr-warn-soft: #fff4d6; --gdpr-warn-ink: #7a4b00; --gdpr-warn-line: #f5dea3; --gdpr-warn-dot: #e0a100;
    --gdpr-err-soft: #fdecec; --gdpr-err-ink: #a32d2d; --gdpr-err-line: #f4c4c4; --gdpr-err: #c93a3a;
    --gdpr-info: #1f5fbf; --gdpr-info-soft: #e8f0fc; --gdpr-info-line: #a9c1ea;
    --gdpr-ink: #0d0d0d; --gdpr-ink-2: #3d3d3d; --gdpr-line: #e3e3e3; --gdpr-line-2: #d9d9d9;
    --gdpr-muted: #5d5d5d; --gdpr-faint: #6f6f6f; --gdpr-dim: #8a8a8a; --gdpr-off: #b9b9b9;
    --gdpr-ground: #f7f7f8; --gdpr-soft: #efefef; --gdpr-foot: #fafafa;
    --gdpr-font: "Open Sans", helvetica, arial, sans-serif;
}
/* Headings in the body font: the 1.7.6 and 1.7.7 admin themes give .bootstrap h1-h4
   "Ubuntu Condensed" (1.7.8, 8.x and 9.x already use the body font). Family only:
   the heading rules below and in each page's stylesheet set size and weight.
   Inherit, not --gdpr-font: PrestaShop 9.1's body font is its own ("IBM Plex Sans").
   A heading inside a core .panel-heading inherits that heading's font: config.css
   gives the core panels of the GDPR Config shell the body font too. */
:is(.pch-ui, #pch-ui) :is(h1, h2, h3, h4) { font-family: inherit; }
/* Visually hidden, still read by screen readers and still a working button. */
:is(.pch-ui, #pch-ui) .gdpr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* cards: header (title, count), body (rows), footer (actions) */
.pch-ui .gdpr-card { box-sizing: border-box; max-width: 860px; margin: 0 0 16px; background: #fff; border: 1px solid var(--gdpr-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(13, 13, 13, .04), 0 4px 14px rgba(13, 13, 13, .04); }
:where(.pch-ui) .gdpr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--gdpr-line); }
:is(.pch-ui, #pch-ui) .gdpr-head h2 { margin: 0; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--gdpr-ink); text-transform: none; }
:where(.pch-ui) .gdpr-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; }
.pch-ui .gdpr-body > p { margin-top: 0; margin-bottom: 0; }
:where(.pch-ui) .gdpr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--gdpr-line); border-radius: 0 0 14px 14px; background: var(--gdpr-foot); }
.pch-ui .gdpr-lead { margin: 0; max-width: 70ch; font-size: 13px; line-height: 1.5; color: var(--gdpr-muted); }
.pch-ui .gdpr-faint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--gdpr-faint); }
:where(.pch-ui) .gdpr-sect { font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; color: var(--gdpr-faint); }

/* buttons: primary (-p), secondary (-g), accent outline (-d), small (-s); text links */
:is(.pch-ui, #pch-ui) .gdpr-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; text-transform: none; box-shadow: none; cursor: pointer; }
:is(.pch-ui, #pch-ui) .gdpr-btn-s { min-height: 36px; padding: 0 12px; }
:is(.pch-ui, #pch-ui) .gdpr-btn-p { background: var(--gdpr-acc); border: 1px solid var(--gdpr-acc); color: #fff; }
:is(.pch-ui, #pch-ui) .gdpr-btn-p:hover, :is(.pch-ui, #pch-ui) .gdpr-btn-p:focus { background: var(--gdpr-acc-ink); border-color: var(--gdpr-acc-ink); color: #fff; }
:is(.pch-ui, #pch-ui) .gdpr-btn-g { background: #fff; border: 1px solid var(--gdpr-line-2); color: var(--gdpr-ink-2); }
:is(.pch-ui, #pch-ui) .gdpr-btn-g:hover, :is(.pch-ui, #pch-ui) .gdpr-btn-g:focus { background: var(--gdpr-ground); border-color: var(--gdpr-off); color: var(--gdpr-ink); }
:is(.pch-ui, #pch-ui) .gdpr-btn-d { background: #fff; border: 1.5px solid var(--gdpr-acc-2); color: var(--gdpr-acc-ink); }
:is(.pch-ui, #pch-ui) .gdpr-btn-d:hover, :is(.pch-ui, #pch-ui) .gdpr-btn-d:focus { background: var(--gdpr-acc-soft); border-color: var(--gdpr-acc-2); color: var(--gdpr-acc-ink); }
:is(.pch-ui, #pch-ui) .gdpr-btn:disabled, :is(.pch-ui, #pch-ui) .gdpr-btn[disabled], :is(.pch-ui, #pch-ui) fieldset[disabled] .gdpr-btn { opacity: .45; cursor: default; }
:is(.pch-ui, #pch-ui) .gdpr-btn:focus-visible { outline: 2px solid var(--gdpr-acc-2); outline-offset: 2px; }
:is(.pch-ui, #pch-ui) .gdpr-link { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--gdpr-muted); text-decoration: underline; cursor: pointer; }
:is(.pch-ui, #pch-ui) .gdpr-link:hover, :is(.pch-ui, #pch-ui) .gdpr-link:focus { color: var(--gdpr-ink); }
/* Keyboard focus on the text controls, as on .gdpr-btn. */
:is(.pch-ui, #pch-ui) .gdpr-link:focus-visible, :is(.pch-ui, #pch-ui) .gdpr-info:focus-visible { outline: 2px solid var(--gdpr-acc-2); outline-offset: 2px; }

/* rows: item (a check or a task: number, text, action), saved (label, value, chip, Edit) */
:where(.pch-ui) .gdpr-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 1px solid var(--gdpr-line); border-radius: 10px; }
:where(.pch-ui) .gdpr-item.is-done { background: var(--gdpr-ground); }
:where(.pch-ui) .gdpr-item-t { flex: 1 1 auto; min-width: 0; padding: 2px 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--gdpr-ink-2); overflow-wrap: anywhere; }
:is(.pch-ui, #pch-ui) .gdpr-item-t small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--gdpr-faint); }
:is(.pch-ui, #pch-ui) .gdpr-item-t a { color: var(--gdpr-acc-ink); font-weight: 600; }
:where(.pch-ui) .gdpr-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; }
:where(.pch-ui) .gdpr-n.n-done { background: var(--gdpr-acc-soft); color: var(--gdpr-acc-ink); }
:where(.pch-ui) .gdpr-n.n-here { background: var(--gdpr-acc); color: #fff; }
:where(.pch-ui) .gdpr-n.n-warn { background: var(--gdpr-warn-soft); color: var(--gdpr-warn-ink); }
:where(.pch-ui) .gdpr-n.n-err { background: var(--gdpr-err-soft); color: var(--gdpr-err-ink); }
:where(.pch-ui) .gdpr-n.n-off { background: var(--gdpr-soft); color: var(--gdpr-muted); }
:where(.pch-ui) .gdpr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
:where(.pch-ui) .gdpr-chip.chip-ok { background: var(--gdpr-acc-soft); color: var(--gdpr-acc-ink); }
:where(.pch-ui) .gdpr-chip.chip-no { background: var(--gdpr-soft); color: var(--gdpr-muted); }
:where(.pch-ui) .gdpr-chip.chip-warn { background: var(--gdpr-warn-soft); color: var(--gdpr-warn-ink); }
:where(.pch-ui) .gdpr-chip.chip-err { background: var(--gdpr-err-soft); color: var(--gdpr-err-ink); }
:where(.pch-ui) .gdpr-saved { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 46px; padding: 4px 12px; border: 1px solid var(--gdpr-line); border-radius: 10px; background: var(--gdpr-ground); }
:where(.pch-ui) .gdpr-saved .gdpr-k { flex: none; width: 150px; font-size: 12px; color: var(--gdpr-muted); }
:where(.pch-ui) .gdpr-saved .gdpr-v { flex: 1 1 180px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--gdpr-ink); overflow-wrap: anywhere; }
:where(.pch-ui) .gdpr-saved .gdpr-v-sub { font-size: 12.5px; font-weight: 400; color: var(--gdpr-muted); }
:is(.pch-ui, #pch-ui) .gdpr-input { box-sizing: border-box; flex: 1 1 320px; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--gdpr-line-2); border-radius: 10px; background: #fff; color: var(--gdpr-ink); font-size: 13px; line-height: 1.5; }
:is(.pch-ui, #pch-ui) .gdpr-input:focus { outline: none; border-color: var(--gdpr-acc-2); box-shadow: 0 0 0 3px rgba(16, 163, 127, .16); }
:is(.pch-ui, #pch-ui) .gdpr-input.is-bad { border-color: var(--gdpr-err); box-shadow: 0 0 0 3px rgba(201, 58, 58, .14); }

/* (i): one line on hover or focus, kept open by a click (.is-open, set by the page's script) */
:is(.pch-ui, #pch-ui) .gdpr-info { position: relative; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1.5px solid var(--gdpr-dim); border-radius: 50%; background: #fff; color: var(--gdpr-muted); font: italic 700 12px/1 Georgia, serif; cursor: pointer; }
:where(.pch-ui) .gdpr-tip { display: none; position: absolute; z-index: 5; top: calc(100% + 8px); right: -8px; box-sizing: border-box; width: 260px; max-width: calc(100vw - 48px); padding: 10px 12px; border-radius: 10px; background: var(--gdpr-ink); color: #fff; font: normal 400 12px/1.45 var(--gdpr-font); text-align: left; white-space: normal; }
/* Inside a row the tip hangs from the row, not from the (i): it stays within the
   row's width, also at 360-400px. The (i) of an item row sits at its right. */
:where(.pch-ui) .gdpr-item { position: relative; }
:is(.pch-ui, #pch-ui) .gdpr-item .gdpr-info { position: static; }
:where(.pch-ui) .gdpr-item .gdpr-tip { left: auto; right: 0; max-width: 100%; }
:is(.pch-ui, #pch-ui) .gdpr-info:hover .gdpr-tip, :is(.pch-ui, #pch-ui) .gdpr-info:focus-visible .gdpr-tip, :is(.pch-ui, #pch-ui) .gdpr-info.is-open .gdpr-tip { display: block; }

/* help layer: the info button (button.pch-i[data-help], 20 px; -lg 24 px next to a card title)
   opens the explanation modal of views/js/admin/pch-help.js. Always a disc: the soft fill and
   a ring, so it reads on white, on the grey rows and on the green approved rows alike. On touch screens its hit area
   grows by 4 px on every side without moving anything (::after). */
:is(.pch-ui, #pch-ui) .pch-i { position: relative; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gdpr-info-soft); color: var(--gdpr-info); font: 700 13px/1 var(--gdpr-font); text-transform: none; vertical-align: middle; box-shadow: inset 0 0 0 1px var(--gdpr-info-line); cursor: pointer; }
:is(.pch-ui, #pch-ui) .pch-i:hover, :is(.pch-ui, #pch-ui) .pch-i:focus { background: var(--gdpr-info); color: #fff; box-shadow: inset 0 0 0 1px var(--gdpr-info); }
:is(.pch-ui, #pch-ui) .pch-i:focus-visible { outline: 2px solid var(--gdpr-info); outline-offset: 2px; }
:is(.pch-ui, #pch-ui) .pch-i-lg { width: 24px; height: 24px; font-size: 14px; }
/* After a word (a section label, a setting, a check's title, a note): a small gap. In a flex
   row (.pch-head-t, .gdpr-sect-row, .gdpr-row-line, ...) the row's gap does it. */
:is(.pch-ui, #pch-ui) :is(summary, label, small, .gdpr-k, .gdpr-item-t, .gdpr-faint, .gdpr-sect) > .pch-i { margin-inline-start: 6px; }
/* a card title with its icon and info button: <div class="pch-head-t">(icon)<h2>…</h2>(button)</div> */
:where(.pch-ui) .pch-head-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
:where(.pch-ui) .pch-head-t > h2 { min-width: 0; }
@media (pointer: coarse) {
    :is(.pch-ui, #pch-ui) .pch-i::after { content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; border-radius: 50%; }
}
/* icons of the sprite (views/img/icons.svg): <svg class="pch-icon acc"><use href="#ic-scan"/></svg>;
   the colour says the meaning: acc done or on, warn needs attention, info information,
   danger error, muted neutral. */
:where(.pch-ui) .pch-icon { flex: none; width: 18px; height: 18px; vertical-align: -3px; overflow: visible; }
:where(.pch-ui) .pch-icon.acc { color: var(--gdpr-acc); }
:where(.pch-ui) .pch-icon.warn { color: var(--gdpr-warn-ink); }
:where(.pch-ui) .pch-icon.info { color: var(--gdpr-info); }
:where(.pch-ui) .pch-icon.danger { color: var(--gdpr-err); }
:where(.pch-ui) .pch-icon.muted { color: var(--gdpr-muted); }
/* the explanation modal (pch-help.js): an overlay appended to <body> that is its own pch-ui
   root (.pch-ui.pch-modal-ov, [hidden] while closed), a card like .gdpr-card: header (icon,
   title, close), body (the three parts), footer (documentation link, Got it). */
:where(.pch-ui).pch-modal-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 16px; background: rgba(13, 13, 13, .45); }
:where(.pch-ui).pch-modal-ov[hidden] { display: none; }
:where(.pch-ui) .pch-modal { box-sizing: border-box; width: 560px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--gdpr-line); border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(13, 13, 13, .3); color: var(--gdpr-ink-2); font-size: 13px; line-height: 1.5; text-align: left; }
:where(.pch-ui) .pch-modal:focus { outline: none; }
:where(.pch-ui) .pch-modal-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--gdpr-line); }
:where(.pch-ui) .pch-modal-h .pch-icon { width: 24px; height: 24px; }
:is(.pch-ui, #pch-ui) .pch-modal-h h3 { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--gdpr-ink); text-transform: none; overflow-wrap: anywhere; }
:is(.pch-ui, #pch-ui) .pch-modal-x { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--gdpr-muted); font: 400 22px/1 var(--gdpr-font); box-shadow: none; cursor: pointer; }
:is(.pch-ui, #pch-ui) .pch-modal-x:hover, :is(.pch-ui, #pch-ui) .pch-modal-x:focus { background: var(--gdpr-ground); color: var(--gdpr-ink); }
:is(.pch-ui, #pch-ui) .pch-modal-x:focus-visible { outline: 2px solid var(--gdpr-acc-2); outline-offset: 2px; }
:where(.pch-ui) .pch-modal-b { padding: 16px 20px; }
:where(.pch-ui) .pch-modal-k { margin: 14px 0 4px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; color: var(--gdpr-faint); }
:where(.pch-ui) .pch-modal-k:first-child { margin-top: 0; }
.pch-ui .pch-modal-b p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--gdpr-ink-2); }
:where(.pch-ui) .pch-modal-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 20px; border-top: 1px solid var(--gdpr-line); border-radius: 0 0 14px 14px; background: var(--gdpr-foot); }
:is(.pch-ui, #pch-ui) .pch-modal-doc { font-size: 13px; font-weight: 600; color: var(--gdpr-info); text-decoration: underline; }
:is(.pch-ui, #pch-ui) .pch-modal-doc:hover, :is(.pch-ui, #pch-ui) .pch-modal-doc:focus { color: var(--gdpr-ink); }
:is(.pch-ui, #pch-ui) .pch-modal-doc:focus-visible { outline: 2px solid var(--gdpr-acc-2); outline-offset: 2px; }
:is(.pch-ui, #pch-ui) .pch-modal-doc[hidden] { display: none; }
:is(.pch-ui, #pch-ui) .pch-modal-ok { margin-left: auto; }

/* feedback boxes: a bold lead sentence, then what to do */
:where(.pch-ui) .gdpr-box { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
:where(.pch-ui) .gdpr-box-ok { background: var(--gdpr-acc-soft); border-color: var(--gdpr-acc-line); color: var(--gdpr-acc-ink); }
:where(.pch-ui) .gdpr-box-warn { background: var(--gdpr-warn-soft); border-color: var(--gdpr-warn-line); color: var(--gdpr-warn-ink); }
:where(.pch-ui) .gdpr-box-err { background: var(--gdpr-err-soft); border-color: var(--gdpr-err-line); color: var(--gdpr-err-ink); }
:where(.pch-ui) .gdpr-box-info { background: var(--gdpr-ground); border-color: var(--gdpr-line); color: var(--gdpr-ink-2); }
:where(.pch-ui) .gdpr-box-ico { flex: none; min-width: 12px; font-weight: 700; text-align: center; }
.pch-ui .gdpr-box p { margin: 0 0 6px; }
.pch-ui .gdpr-box ul { margin: 4px 0 10px; padding-left: 18px; }
.pch-ui .gdpr-box li + li { margin-top: 3px; }
:is(.pch-ui, #pch-ui) .gdpr-box .gdpr-link { min-height: 0; padding: 0 2px; color: inherit; }

/* switch row: title and hint, PrestaShop's switch at the right */
:where(.pch-ui) .gdpr-switchrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--gdpr-line); border-radius: 10px; }
:where(.pch-ui) .gdpr-switchrow-t { flex: 1 1 240px; min-width: 0; }
:where(.pch-ui) .gdpr-switchrow-t b { display: block; font-size: 14px; font-weight: 600; color: var(--gdpr-ink); }
/* the title and its info button (the button stays out of the <b> that labels the switch) */
:where(.pch-ui) .gdpr-switchrow-h { display: flex; align-items: center; gap: 8px; }
:is(.pch-ui, #pch-ui) .gdpr-switchrow-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--gdpr-faint); }
:is(.pch-ui, #pch-ui) .gdpr-switchrow .prestashop-switch { flex: none; margin: 0; }

@media (max-width: 559px) {
    :where(.pch-ui) .gdpr-head, :where(.pch-ui) .gdpr-body, :where(.pch-ui) .gdpr-foot { padding-left: 14px; padding-right: 14px; }
    :where(.pch-ui) .pch-modal-h, :where(.pch-ui) .pch-modal-b, :where(.pch-ui) .pch-modal-f { padding-left: 14px; padding-right: 14px; }
    :where(.pch-ui) .gdpr-saved .gdpr-k { width: 100%; }
    :is(.pch-ui, #pch-ui) .gdpr-btn { white-space: normal; text-align: center; }
}
