/**
 * Order Source Tracking
 *
 * 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
 * @copyright PrestaChamps
 * @license   commercial
 */

/*
 * Everything the module shows in the back office lives under .pchos-ui, so
 * no rule here can change a page of PrestaShop. Colours are variables.
 */
.pchos-ui {
  --pchos-primary: #0F766E;
  --pchos-primary-ink: #134E4A;
  --pchos-primary-soft: #F0FDFA;
  --pchos-primary-line: #99F6E4;
  --pchos-accent: #D97706;
  --pchos-ink: #1F2937;
  --pchos-muted: #6B7280;
  --pchos-line: #E5E7EB;
  --pchos-card: #FFFFFF;
  --pchos-ok: #15803D;
  --pchos-ok-soft: #F0FDF4;
  --pchos-warn: #B45309;
  --pchos-warn-soft: #FFFBEB;
  --pchos-warn-line: #FDE68A;
  --pchos-bad: #B91C1C;
  --pchos-bad-soft: #FEF2F2;
  color: var(--pchos-ink);
  font-size: 14px;
  line-height: 1.5;
}

.pchos-ui *,
.pchos-ui *::before,
.pchos-ui *::after {
  box-sizing: border-box;
}

.pchos-ui [hidden] {
  display: none !important;
}

/* Cards */
.pchos-ui .pchos-card {
  background: var(--pchos-card);
  border: 1px solid var(--pchos-line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 16px;
}

.pchos-ui .pchos-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
}

/* Not an h3: PrestaShop's theme pulls every h3 of the back office out of its box. */
.pchos-ui .pchos-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pchos-ink);
}

/* Buttons */
.pchos-ui .pchos-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #9CA3AF;
  background: #fff;
  color: var(--pchos-ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}

.pchos-ui .pchos-btn:hover {
  border-color: var(--pchos-primary);
  color: var(--pchos-primary-ink);
  text-decoration: none;
}

.pchos-ui .pchos-btn:focus-visible,
.pchos-ui select:focus-visible,
.pchos-ui input:focus-visible {
  outline: 2px solid var(--pchos-primary);
  outline-offset: 2px;
}

.pchos-ui .pchos-btn-primary,
.pchos-ui .pchos-btn[aria-pressed="true"] {
  background: var(--pchos-primary);
  border-color: var(--pchos-primary);
  color: #fff;
}

.pchos-ui .pchos-btn-primary:hover,
.pchos-ui .pchos-btn[aria-pressed="true"]:hover {
  background: var(--pchos-primary-ink);
  border-color: var(--pchos-primary-ink);
  color: #fff;
}

.pchos-ui .pchos-btn-small {
  padding: 4px 10px;
  font-size: 12px;
}

.pchos-ui .pchos-btn[disabled] {
  opacity: .6;
  cursor: default;
}

.pchos-ui .pchos-switch {
  display: inline-flex;
  gap: 6px;
}

/* A note that needs a decision or an eye */
.pchos-ui .pchos-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: var(--pchos-warn-soft);
  border: 1px solid var(--pchos-warn-line);
  color: #78350F;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.pchos-ui .pchos-note p {
  margin: 0;
  flex: 1 1 320px;
}

.pchos-ui .pchos-empty {
  background: var(--pchos-primary-soft);
  border: 1px solid var(--pchos-primary-line);
  color: var(--pchos-primary-ink);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.pchos-ui .pchos-error {
  background: var(--pchos-bad-soft);
  border: 1px solid #FECACA;
  color: var(--pchos-bad);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

/* Dashboard: filters */
.pchos-ui .pchos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: 0 0 16px;
}

.pchos-ui .pchos-filters label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  /* Darker than the muted grey: small text on PrestaShop 8's grey page needs 4.5:1. */
  color: #4B5563;
  margin: 0 0 3px;
  text-align: left;
}

.pchos-ui .pchos-filters select,
.pchos-ui .pchos-filters input[type="date"] {
  display: block;
  width: auto;
  min-width: 150px;
  height: 34px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 5px 10px;
  background: #fff;
  color: var(--pchos-ink);
  font-size: 14px;
  box-shadow: none;
}

/* Dashboard: the five figures */
.pchos-ui .pchos-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.pchos-ui .pchos-kpi {
  background: #fff;
  border: 1px solid var(--pchos-line);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}

.pchos-ui .pchos-kpi-label {
  font-size: 12px;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-kpi-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* The top source is a name a visitor typed: at most two lines, the whole of it in its title. */
.pchos-ui .pchos-kpi-value.pchos-kpi-text {
  font-size: 17px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* While the numbers of a new choice are on their way, the old ones are dimmed. */
.pchos-ui[aria-busy="true"] .pchos-kpis,
.pchos-ui[aria-busy="true"] .pchos-card {
  opacity: .55;
  transition: opacity .15s;
}

.pchos-ui .pchos-kpi-sub {
  font-size: 12px;
  color: var(--pchos-muted);
  min-height: 18px;
}

/* Dashboard: the chart. It is drawn in the pixels of its card; below 480 pixels the card scrolls sideways. */
.pchos-ui .pchos-chart-frame {
  overflow-x: auto;
}

.pchos-ui .pchos-chart svg {
  display: block;
  max-width: none;
}

.pchos-ui .pchos-chart .pchos-bar-hit {
  fill: transparent;
  cursor: default;
  outline: none;
}

.pchos-ui .pchos-chart .pchos-bar:hover .pchos-bar-hit,
.pchos-ui .pchos-chart .pchos-bar-hit:focus {
  fill: rgba(15, 118, 110, .08);
}

/* The bar a keyboard is on has a frame that stands out from the white card. */
.pchos-ui .pchos-chart .pchos-bar-hit:focus-visible {
  stroke: var(--pchos-primary);
  stroke-width: 2;
}

.pchos-ui .pchos-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--pchos-muted);
  margin-top: 8px;
}

.pchos-ui .pchos-legend span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pchos-ui .pchos-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--pchos-line);
}

.pchos-ui .pchos-bar-detail {
  width: auto;
  max-width: 100%;
  margin: 10px 0 0;
  font-size: 12px;
  border-collapse: collapse;
}

.pchos-ui .pchos-bar-detail th {
  padding: 1px 14px 1px 0;
  border: 0;
  font-weight: 400;
  color: var(--pchos-muted);
  text-align: left;
  overflow-wrap: anywhere;
}

.pchos-ui .pchos-bar-detail .pchos-bar-total th,
.pchos-ui .pchos-bar-detail .pchos-bar-total td {
  font-weight: 600;
}

.pchos-ui .pchos-bar-detail caption {
  text-align: left;
  font-weight: 600;
  color: var(--pchos-ink);
  padding: 0 0 2px;
  caption-side: top;
}

.pchos-ui .pchos-bar-detail td {
  padding: 1px 14px 1px 0;
  border: 0;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-bar-detail td.pchos-num {
  color: var(--pchos-ink);
}

/* Tables of numbers */
.pchos-ui .pchos-table-wrap {
  overflow-x: auto;
}

.pchos-ui table.pchos-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: transparent;
}

.pchos-ui table.pchos-table thead th {
  text-align: left;
  font-size: 12px;
  color: var(--pchos-muted);
  font-weight: 600;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid var(--pchos-ink);
  background: transparent;
  white-space: nowrap;
}

/* The first cell of a row names it (a header for screen readers), and looks like the others. */
.pchos-ui table.pchos-table tbody th,
.pchos-ui table.pchos-table tfoot th,
.pchos-ui table.pchos-table td {
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--pchos-line);
  background: transparent;
  vertical-align: middle;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: var(--pchos-ink);
}

.pchos-ui .pchos-num,
.pchos-ui table.pchos-table th.pchos-num,
.pchos-ui table.pchos-table td.pchos-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pchos-ui table.pchos-table .pchos-label {
  overflow-wrap: anywhere;
}

.pchos-ui table.pchos-table tr.pchos-untracked th,
.pchos-ui table.pchos-table tr.pchos-untracked td {
  color: var(--pchos-muted);
}

/* The row that adds up the sources the page does not list: not a source of its own. */
.pchos-ui table.pchos-table tr.pchos-more th,
.pchos-ui table.pchos-table tr.pchos-more td {
  color: var(--pchos-muted);
  font-style: italic;
}

.pchos-ui table.pchos-table tfoot th,
.pchos-ui table.pchos-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--pchos-ink);
  border-bottom: 0;
}

.pchos-ui .pchos-share-track {
  display: inline-block;
  width: 96px;
  height: 8px;
  border-radius: 4px;
  background: #F3F4F6;
  vertical-align: middle;
  overflow: hidden;
}

.pchos-ui .pchos-share {
  display: block;
  height: 8px;
  background: var(--pchos-primary);
}

.pchos-ui tr.pchos-untracked .pchos-share,
.pchos-ui tr.pchos-more .pchos-share {
  background: #9CA3AF;
}

.pchos-ui .pchos-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--pchos-muted);
}

@media (max-width: 1100px) {
  .pchos-ui .pchos-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pchos-ui .pchos-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Settings shell */

/* The top bar: back to the modules, and the three ways out of the settings */
.pchos-ui .pchos-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.pchos-ui .pchos-grow {
  flex: 1 1 auto;
}

.pchos-ui a.pchos-crumb {
  color: var(--pchos-primary);
  font-weight: 600;
  text-decoration: none;
}

.pchos-ui a.pchos-crumb:hover,
.pchos-ui a.pchos-crumb:focus {
  color: var(--pchos-primary-ink);
  text-decoration: underline;
}

/* The status line, above every section */
.pchos-ui .pchos-status {
  background: #fff;
  border: 1px solid var(--pchos-line);
  border-radius: 8px;
  padding: 9px 14px;
  margin: 0 0 14px;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-status b {
  color: var(--pchos-ink);
  font-weight: 700;
}

.pchos-ui .pchos-status-item + .pchos-status-item::before {
  content: "\00B7";
  margin: 0 8px;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-info {
  background: var(--pchos-primary-soft);
  border: 1px solid var(--pchos-primary-line);
  color: var(--pchos-primary-ink);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 0 14px;
}

/* The navigation and the column of the sections */
.pchos-ui .pchos-shell-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pchos-ui .pchos-main,
.pchos-ui .pchos-section {
  min-width: 0;
}

.pchos-ui .pchos-nav {
  position: sticky;
  top: var(--pchos-sticky-top, 16px);
  background: #fff;
  border: 1px solid var(--pchos-line);
  border-radius: 8px;
  padding: 10px 0;
}

.pchos-ui .pchos-nav-group {
  margin: 0;
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pchos-ui a.pchos-nav-item {
  display: block;
  padding: 6px 16px 6px 26px;
  border-left: 3px solid transparent;
  color: var(--pchos-ink);
  line-height: 1.4;
  text-decoration: none;
}

.pchos-ui .pchos-nav-list:first-child a.pchos-nav-item {
  padding-left: 16px;
}

.pchos-ui a.pchos-nav-item:hover,
.pchos-ui a.pchos-nav-item:focus {
  background: #F9FAFB;
  color: var(--pchos-ink);
  text-decoration: none;
}

/* PrestaShop 9.2's legacy pages underline links with "#content.bootstrap a[href]:not(...)", which outweighs the
   rules above: the page's id, two classes and the attribute outweigh it in turn. */
#pchos-admin.pchos-ui .pchos-nav a.pchos-nav-item[href],
#pchos-admin.pchos-ui .pchos-nav a.pchos-nav-item[href]:hover,
#pchos-admin.pchos-ui .pchos-nav a.pchos-nav-item[href]:focus {
  text-decoration: none;
}

.pchos-ui a.pchos-nav-item:focus-visible {
  outline: 2px solid var(--pchos-primary);
  outline-offset: -2px;
}

.pchos-ui a.pchos-nav-item.is-active {
  background: var(--pchos-primary-soft);
  border-left-color: var(--pchos-primary);
  color: var(--pchos-primary-ink);
  font-weight: 600;
}

/* A section: one card, one Save */
.pchos-ui .pchos-lead {
  margin: 4px 0 14px;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-card-foot {
  text-align: right;
  border-top: 1px solid var(--pchos-line);
  padding-top: 12px;
  margin-top: 4px;
}

.pchos-ui .pchos-messages {
  margin: 0 0 14px;
}

.pchos-ui .pchos-alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 0 8px;
}

.pchos-ui .pchos-alert-success {
  background: var(--pchos-ok-soft);
  border: 1px solid #BBF7D0;
  color: var(--pchos-ok);
}

.pchos-ui .pchos-alert-error {
  background: var(--pchos-bad-soft);
  border: 1px solid #FECACA;
  color: var(--pchos-bad);
}

.pchos-ui .pchos-alert-icon {
  flex: none;
  font-weight: 700;
}

/* A field: label and info button, the control, the help under it */
.pchos-ui .pchos-field {
  margin: 0 0 16px;
}

.pchos-ui .pchos-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}

.pchos-ui .pchos-field-label .pchos-label {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pchos-ink);
  text-align: left;
}

.pchos-ui button.pchos-help-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--pchos-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--pchos-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.pchos-ui button.pchos-help-toggle:hover,
.pchos-ui button.pchos-help-toggle[aria-expanded="true"] {
  background: var(--pchos-primary);
  color: #fff;
}

.pchos-ui button.pchos-help-toggle:focus-visible {
  outline: 2px solid var(--pchos-primary);
  outline-offset: 2px;
}

.pchos-ui .pchos-help-text {
  background: var(--pchos-primary-soft);
  border-left: 3px solid var(--pchos-primary);
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 8px 0 0;
  color: var(--pchos-primary-ink);
}

.pchos-ui .pchos-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Radio cards: a choice with its explanation */
.pchos-ui label.pchos-radio-card {
  position: relative;
  display: block;
  margin: 0 0 8px;
  padding: 10px 14px 10px 40px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #fff;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.pchos-ui label.pchos-radio-card.is-checked {
  border-color: var(--pchos-primary);
  background: var(--pchos-primary-soft);
}

.pchos-ui .pchos-radio-card input[type="radio"] {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--pchos-primary);
}

.pchos-ui .pchos-radio-card-text b {
  display: block;
  color: var(--pchos-ink);
}

.pchos-ui .pchos-radio-card-text span {
  color: var(--pchos-muted);
}

.pchos-ui .pchos-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.pchos-ui label.pchos-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.pchos-ui .pchos-radio input[type="radio"] {
  margin: 0;
  accent-color: var(--pchos-primary);
}

/* Numbers and text areas */
.pchos-ui .pchos-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pchos-ui .pchos-field input[type="number"],
.pchos-ui .pchos-field textarea {
  display: block;
  height: auto;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #fff;
  color: var(--pchos-ink);
  font-size: 14px;
  box-shadow: none;
}

.pchos-ui .pchos-field input[type="number"] {
  width: 110px;
}

.pchos-ui .pchos-field textarea {
  width: 100%;
  max-width: 520px;
  min-height: 90px;
  resize: vertical;
}

.pchos-ui .pchos-field input[type="number"]:focus,
.pchos-ui .pchos-field textarea:focus {
  border-color: var(--pchos-primary);
  outline: 2px solid var(--pchos-primary-line);
  outline-offset: 0;
}

.pchos-ui .pchos-unit {
  color: var(--pchos-muted);
}

/* Switches: a check box drawn as a toggle, its state beside it */
.pchos-ui label.pchos-switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.pchos-ui .pchos-switch-toggle input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 44px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pchos-ui .pchos-switch-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #CBD5E1;
  transition: background-color .2s ease-out;
}

.pchos-ui .pchos-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .25);
  transition: left .2s ease-out;
}

.pchos-ui .pchos-switch-toggle input:checked + .pchos-switch-track {
  background: var(--pchos-primary);
}

.pchos-ui .pchos-switch-toggle input:checked + .pchos-switch-track::after {
  left: 23px;
}

.pchos-ui .pchos-switch-toggle input:focus-visible + .pchos-switch-track {
  outline: 2px solid var(--pchos-primary);
  outline-offset: 2px;
}

.pchos-ui .pchos-switch-state {
  font-size: 12px;
  font-weight: 700;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-switch-on,
.pchos-ui .pchos-switch-toggle input:checked ~ .pchos-switch-state .pchos-switch-off {
  display: none;
}

.pchos-ui .pchos-switch-toggle input:checked ~ .pchos-switch-state .pchos-switch-on {
  display: inline;
  color: var(--pchos-primary-ink);
}

/* A section this build cannot show */
.pchos-ui .pchos-section-state .pchos-lead {
  color: var(--pchos-ink);
}

/* A box inside a card: the calls for a cookie banner, what is always excluded */
.pchos-ui .pchos-box {
  border: 1px solid var(--pchos-primary-line);
  background: var(--pchos-primary-soft);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.pchos-ui .pchos-box p {
  margin: 0 0 8px;
}

.pchos-ui .pchos-box p:last-child {
  margin-bottom: 0;
}

.pchos-ui .pchos-box-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.pchos-ui code {
  background: #F3F4F6;
  color: var(--pchos-ink);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
  white-space: nowrap;
}

.pchos-ui .pchos-code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pchos-ui .pchos-code-line code {
  background: #fff;
  border: 1px solid var(--pchos-line);
}

.pchos-ui .pchos-field-extra {
  margin: -6px 0 16px;
}

/* Labelled inputs side by side: the forms that add a rule or a site */
.pchos-ui .pchos-add-form {
  border-top: 1px solid var(--pchos-line);
  padding-top: 14px;
}

.pchos-ui .pchos-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.pchos-ui .pchos-inputs label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #4B5563;
  text-align: left;
}

.pchos-ui .pchos-inputs input[type="text"],
.pchos-ui .pchos-copy-row input[type="text"],
.pchos-ui .pchos-tester input[type="text"] {
  display: block;
  height: 34px;
  min-width: 180px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #fff;
  color: var(--pchos-ink);
  font-size: 14px;
}

.pchos-ui .pchos-inputs input[type="text"]:focus,
.pchos-ui .pchos-copy-row input[type="text"]:focus,
.pchos-ui .pchos-tester input[type="text"]:focus {
  border-color: var(--pchos-primary);
  outline: 2px solid var(--pchos-primary-line);
  outline-offset: 0;
}

.pchos-ui .pchos-row-form {
  display: inline;
  margin: 0;
}

/* Read-only lines of a form: the housekeeping, the maintenance address */
.pchos-ui .pchos-readonly,
.pchos-ui .pchos-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.pchos-ui .pchos-copy-row input[type="text"] {
  flex: 1 1 360px;
  max-width: 640px;
  background: #F9FAFB;
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
}

.pchos-ui .pchos-hint.is-failed {
  color: var(--pchos-bad);
}

/* Overview: the getting-started steps */
.pchos-ui button.pchos-link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--pchos-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.pchos-ui button.pchos-link-button:hover {
  color: var(--pchos-primary-ink);
}

/* "Hide these steps" and, next to it, that it applies to all shops (design 5.6). */
.pchos-ui .pchos-steps-hide {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.pchos-ui .pchos-steps-scope {
  font-size: 12px;
  color: var(--pchos-muted);
}

.pchos-ui .pchos-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
}

.pchos-ui .pchos-step {
  border: 1px solid var(--pchos-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.pchos-ui .pchos-step.is-now {
  border-color: var(--pchos-primary);
}

.pchos-ui .pchos-step p {
  margin: 6px 0 8px;
}

.pchos-ui .pchos-step-n {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pchos-line);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  margin-right: 6px;
}

.pchos-ui .pchos-step.is-now .pchos-step-n {
  background: var(--pchos-primary);
  color: #fff;
}

.pchos-ui .pchos-step.is-done .pchos-step-n {
  background: var(--pchos-ok);
  color: #fff;
}

.pchos-ui .pchos-step-tick,
.pchos-ui .pchos-step-done,
.pchos-ui .pchos-step.is-done .pchos-step-number {
  display: none;
}

.pchos-ui .pchos-step.is-done .pchos-step-tick {
  display: inline;
}

.pchos-ui .pchos-step.is-done .pchos-step-done {
  display: inline-block;
}

/* Overview: the checklist */
.pchos-ui .pchos-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pchos-ui .pchos-check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--pchos-line);
}

.pchos-ui .pchos-check:last-child {
  border-bottom: 0;
}

.pchos-ui .pchos-check-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--pchos-ok);
}

.pchos-ui .pchos-check.is-warn .pchos-check-dot {
  background: var(--pchos-accent);
}

.pchos-ui .pchos-check.is-bad .pchos-check-dot {
  background: var(--pchos-bad);
}

.pchos-ui .pchos-check small {
  display: block;
  color: var(--pchos-muted);
  font-size: 12px;
}

.pchos-ui a.pchos-check-link {
  color: var(--pchos-primary);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.pchos-ui a.pchos-check-link:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .pchos-ui .pchos-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Help */
.pchos-ui .pchos-help .pchos-card-title {
  margin: 0 0 8px;
}

.pchos-ui .pchos-help-steps,
.pchos-ui .pchos-help-limits,
.pchos-ui .pchos-help-links {
  margin: 0;
  padding: 0 0 0 22px;
}

.pchos-ui .pchos-help-steps {
  list-style: decimal;
}

.pchos-ui .pchos-help-limits,
.pchos-ui .pchos-help-links {
  list-style: disc;
}

.pchos-ui .pchos-help-steps li,
.pchos-ui .pchos-help-limits li,
.pchos-ui .pchos-help-links li {
  margin: 0 0 6px;
}

.pchos-ui .pchos-help-words {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
}

.pchos-ui .pchos-help-words dt {
  font-weight: 600;
}

.pchos-ui .pchos-help-words dd {
  margin: 0;
}

/* Test a link: the result */
.pchos-ui .pchos-tester-run {
  margin: 0 0 14px;
}

.pchos-ui .pchos-result {
  border: 1px solid var(--pchos-primary-line);
  background: var(--pchos-primary-soft);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0;
}

.pchos-ui .pchos-result dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 8px 0;
}

.pchos-ui .pchos-result dt {
  color: var(--pchos-muted);
  font-weight: 400;
}

.pchos-ui .pchos-result dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pchos-ui .pchos-result p {
  margin: 0;
}

@media (max-width: 700px) {
  .pchos-ui .pchos-result dl {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

/* What is always excluded */
.pchos-ui .pchos-builtin {
  border-top: 1px solid var(--pchos-line);
  padding-top: 14px;
  margin-top: 4px;
}

.pchos-ui .pchos-builtin .pchos-hint {
  margin: 0 0 10px;
}

.pchos-ui .pchos-builtin-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}

.pchos-ui .pchos-builtin-list dt {
  font-weight: 600;
  color: var(--pchos-muted);
  font-size: 12px;
  padding-top: 3px;
}

.pchos-ui .pchos-builtin-list dd {
  margin: 0;
}

.pchos-ui .pchos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pchos-ui .pchos-chips li {
  background: #F3F4F6;
  border: 1px solid var(--pchos-line);
  border-radius: 12px;
  padding: 1px 10px;
  font-size: 12.5px;
}

/* Below 992px the navigation becomes a strip above the section */
@media (max-width: 991px) {
  .pchos-ui .pchos-shell-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pchos-ui .pchos-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 6px;
  }

  .pchos-ui .pchos-nav-group {
    display: none;
  }

  .pchos-ui .pchos-nav-list {
    display: flex;
    gap: 4px;
  }

  .pchos-ui a.pchos-nav-item,
  .pchos-ui .pchos-nav-list:first-child a.pchos-nav-item {
    padding: 6px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .pchos-ui a.pchos-nav-item.is-active {
    border-bottom-color: var(--pchos-primary);
  }
}
