/* PHEWFIX customer theme for the inspected HESK 3.7.10 installation.
   Load LAST using head.txt. Keep HESK's original app.min.css and core CSS.
   All layout overrides are scoped to the customer interface. */
:root {
  --pf-bg: #f6f4fb;
  --pf-surface: #ffffff;
  --pf-soft: #eee8fa;
  --pf-text: #261d38;
  --pf-muted: #62586f;
  --pf-border: #ded6eb;
  --pf-link: #6232a8;
  --pf-hover: #4b1e8b;
  --pf-purple: #9a71e3;
  --pf-orange: #f57508;
  --pf-orange-hover: #ff963d;
  --pf-on-orange: #241305;
  --pf-shadow: 0 7px 24px rgb(49 24 84 / 6%);
  --pf-radius: 20px;
  color-scheme: light;
}
:root[data-phewfix-theme="dark"] {
  --pf-bg: #14101e;
  --pf-surface: #211a2e;
  --pf-soft: #302440;
  --pf-text: #f4effb;
  --pf-muted: #c0b4cf;
  --pf-border: #493858;
  --pf-link: #c9a7ff;
  --pf-hover: #ecdfff;
  --pf-shadow: 0 7px 24px rgb(0 0 0 / 18%);
  color-scheme: dark;
}
/* Map both modes onto HESK's own variables, including the current admin overrides. */
:root:root {
  --primary: var(--pf-text);
  --secondary: var(--pf-link);
  --tertiary: var(--pf-purple);
  --surface: var(--pf-surface);
  --foreground: var(--pf-text);
  --main-background: var(--pf-bg);
  --font__pri-clr: var(--pf-text);
  --font__sec-clr: var(--pf-muted);
  --header__bg: var(--pf-surface);
  --header_border__clr: var(--pf-border);
  --header_logo__clr: var(--pf-text);
  --header_nav__clr: var(--pf-link);
  --header_nav__hover_clr: var(--pf-hover);
  --header_profile__clr: var(--pf-text);
  --header_profile__menu-bg: var(--pf-surface);
  --navlink__bg: var(--pf-surface);
  --navlink__clr: var(--pf-muted);
  --navlink__hover-bg: var(--pf-surface);
  --navlink__title-clr: var(--pf-text);
  --icon_circle__bg: var(--pf-soft);
  --icon_circle__clr: var(--pf-link);
  --navlink_icon_hover__bg: var(--pf-purple);
  --navlink_icon_hover__clr: #20132e;
  --link__pri-clr: var(--pf-link);
  --link__pri-hover-clr: var(--pf-hover);
  --link__sec-clr: var(--pf-link);
  --link__sec-hover-clr: var(--pf-hover);
  --footer__link-clr: var(--pf-link);
  --breadcrumbs__a-clr: var(--pf-link);
  --breadcrumbs__a-hover-clr: var(--pf-hover);
  --input-bg: var(--pf-surface);
  --input-clr: var(--pf-text);
  --search__clr: var(--pf-text);
  --search__bg: transparent;
  --search__input-bg: var(--pf-surface);
  --search__title-clr: var(--pf-text);
  --search__input-placeholder-clr: var(--pf-muted);
  --search__icon-fill: var(--pf-link);
  --preview__clr: var(--pf-muted);
  --preview__bg: var(--pf-surface);
  --preview__border-clr: var(--pf-border);
  --preview__hover-bg: var(--pf-soft);
  --preview__title-clr: var(--pf-text);
  --suggest_preview__bg: var(--pf-surface);
  --suggest_preview__clr: var(--pf-text);
  --suggest_preview__border-clr: var(--pf-border);
  --suggest_preview__hover-bg: var(--pf-soft);
  --suggest_preview__title-clr: var(--pf-link);
  --article_preview_suggestion_clr: var(--pf-text);
  --ticket_body__bg: var(--pf-surface);
  --ticket_response__bg: var(--pf-surface);
  --modal_body__bg: var(--pf-surface);
  --dropdown__bg: var(--pf-surface);
  --dropdown__clr: var(--pf-text);
  --dropdown__border-clr: var(--pf-border);
  --dropdown__hover-bg: var(--pf-soft);
  --dropdown__hover-clr: var(--pf-text);
  --btn_full_bg: var(--pf-orange);
  --btn_full_clr: var(--pf-on-orange);
  --btn_full_border-clr: var(--pf-orange);
  --btn_full__hover_bg: var(--pf-orange-hover);
  --btn__bg-clr-pri: var(--pf-orange);
  --btn__clr-pri: var(--pf-on-orange);
  --btn__border-clr-pri: var(--pf-orange);
  --table_row__bg: var(--pf-surface);
  --table_row__bg-even: var(--pf-soft);
  --table_row__bg-hover: var(--pf-soft);
  --dark-text: var(--pf-text);
}
body.cust-help, .cust-help .wrapper, .cust-help .main, .cust-help .main__content {
  background: var(--pf-bg); color: var(--pf-text);
}
body.cust-help { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; }
.cust-help .contr { max-width: 1160px; padding-inline: 24px; }
.cust-help .phewfix-masthead { background: var(--pf-surface); border-top: 4px solid var(--pf-orange); }
.cust-help .phewfix-masthead__inner { max-width: 1160px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cust-help .phewfix-brand { display: inline-flex; flex-shrink: 0; border-radius: 14px; background: #fff; padding: 8px 12px; }
.cust-help .phewfix-brand img { display: block; width: 185px; height: 72px; object-fit: contain; }
.cust-help .phewfix-masthead__tools { display: flex; align-items: center; gap: 22px; }
.cust-help .phewfix-support-label { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--pf-muted); }
.cust-help .phewfix-theme-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--pf-border); border-radius: 999px; background: var(--pf-soft); color: var(--pf-text); font: inherit; font-size: 13px; cursor: pointer; }
.cust-help .phewfix-theme-toggle[hidden] { display: none; }
.cust-help .phewfix-switch { width: 28px; height: 16px; border-radius: 99px; background: var(--pf-muted); padding: 3px; }
.cust-help .phewfix-switch::after { content: ''; display: block; width: 10px; height: 10px; background: white; border-radius: 50%; }
.cust-help .phewfix-theme-toggle[aria-pressed="true"] .phewfix-switch { background: #7851b7; }
.cust-help .phewfix-theme-toggle[aria-pressed="true"] .phewfix-switch::after { transform: translateX(12px); }
.cust-help .header__inner { padding-block: 12px; gap: 16px; flex-wrap: wrap; }
.cust-help .header__logo { font-size: 14px; font-weight: 600; }
.cust-help .breadcrumbs { background: transparent; }
.cust-help .breadcrumbs__inner { flex-wrap: wrap; color: var(--pf-muted); }
.cust-help .help-search { padding: 30px 24px; margin: 12px 0 28px; border: 1px solid var(--pf-border); border-radius: 24px; background: linear-gradient(125deg, var(--pf-soft), var(--pf-surface)); }
.cust-help .search__title { font-size: clamp(26px, 4vw, 38px); font-weight: 750; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 24px; }
.cust-help .search__form { padding: 0; background: transparent; }
.cust-help .search__form .form-group { flex-wrap: nowrap; gap: 10px; }
.cust-help #kb_search { width: auto; flex: 1 1 0; min-width: 0; height: 54px; border: 1px solid var(--pf-border); border-radius: 14px; padding-left: 50px; }
.cust-help #search-button { width: auto; min-width: 110px; margin: 0; height: 54px !important; }
.cust-help .search__form .search__submit { left: 14px; top: 5px; bottom: auto; margin: 0; width: 34px; height: 44px; background: transparent; border: none; color: var(--pf-link); }
/* The actual ticket cards are .navlink. Do not turn every .block__body into a grid. */
.cust-help .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 36px; padding: 0; }
.cust-help .navlink { width: 100%; max-width: none; margin: 0; padding: 26px; min-height: 124px; text-decoration: none; }
.cust-help :is(.navlink, .preview, .topics__block, .ticket__body_block, .ticket__params, .boxed, .modal__body, .form-submit-ticket, .block) {
  border: 1px solid var(--pf-border); border-radius: var(--pf-radius) !important;
  background-color: var(--pf-surface); box-shadow: var(--pf-shadow); box-sizing: border-box;
}
.cust-help :is(.navlink, .preview) { transition: border-color .18s ease, box-shadow .18s ease; }
.cust-help :is(.navlink, .preview):hover { border-color: var(--pf-purple); background: var(--pf-surface); box-shadow: 0 8px 26px rgb(120 75 185 / 14%); }
.cust-help .navlink__title { color: var(--pf-text); font-size: 19px; line-height: 1.35; margin-bottom: 6px; }
.cust-help .navlink__descr { color: var(--pf-muted); font-size: 14px; line-height: 1.6; }
.cust-help .icon-in-circle { flex-shrink: 0; background: var(--pf-soft); color: var(--pf-link); border-radius: 14px; }
.cust-help .icon-in-circle .icon { fill: currentColor; }
.cust-help .navlink > .icon-in-circle { width: 48px; height: 48px; margin-right: 18px; }
.cust-help .article__heading { color: var(--pf-text); font-size: 25px; }
.cust-help .article__heading a { color: var(--pf-text); }
.cust-help .tabbed__head_tabs { gap: 12px; }
.cust-help .tabbed__head_tabs li { color: var(--pf-muted); border-radius: 10px 10px 0 0; }
.cust-help .tabbed__head_tabs li.current { color: var(--pf-link); border-bottom-color: var(--pf-purple); background: var(--pf-soft); }
.cust-help .tabbed__tabs .tabbed__tabs_tab { background: transparent; box-shadow: none; }
.cust-help .tabbed__tabs .tabbed__tabs_tab.is-visible { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cust-help .preview { width: 100%; margin: 0; padding: 24px; min-width: 0; text-decoration: none; align-items: flex-start; }
.cust-help .preview__text { min-width: 0; }
.cust-help .preview__title { color: var(--pf-text); font-size: 17px; line-height: 1.45; }
.cust-help .preview p { color: var(--pf-muted); }
.cust-help .preview .rate { margin-left: 8px; flex-shrink: 0; }
.cust-help .lightgrey { color: var(--pf-muted); }
.cust-help .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; background: transparent; box-shadow: none; }
.cust-help .topics__block { width: auto; margin: 0; padding: 24px; }
.cust-help .topics__title { color: var(--pf-text); line-height: 1.5; }
.cust-help .topics__list { padding-left: 24px; }
.cust-help .topics__list a { color: var(--pf-link); padding-block: 5px; }
.cust-help .ticket__body_block { text-align: left; padding: 26px; }
.cust-help .ticket__body_block.response { border-left: 4px solid #42b99a; }
.cust-help .ticket__params { padding: 18px; align-self: flex-start; }
.cust-help .ticket__body_block .block--description { font-family: inherit; font-size: 16px; line-height: 1.8; }
.cust-help .ticket__body_block .block--description a { color: var(--pf-link); text-decoration: underline; text-underline-offset: 3px; }
.cust-help .ticket__body_block :is(img, video, iframe) { max-width: 100%; }
.cust-help .ticket__body_block :is(img, video) { height: auto; }
.cust-help .form-submit-ticket { padding: 26px; }
.cust-help :is(.form-control, .selectize-input, .dropdown-select .label, .dropzone) { border-radius: 12px !important; }
.cust-help .form .form-control { background: var(--pf-surface); color: var(--pf-text); border-color: var(--pf-border); }
.cust-help .form :is(input.form-control, select.form-control) { min-height: 44px; }
.cust-help .form textarea.form-control { resize: vertical; }
.cust-help .form-control::placeholder { color: var(--pf-muted); opacity: 1; }
.cust-help .btn { border-radius: 12px; }
.cust-help .btn-full { background: var(--pf-orange); border-color: var(--pf-orange); color: var(--pf-on-orange); min-height: 44px; font-weight: 700; }
.cust-help .btn-full:hover { background: var(--pf-orange-hover); color: var(--pf-on-orange); }
.cust-help .btn-full:disabled, .cust-help .btn-full.disabled { opacity: .5; cursor: not-allowed; }
.cust-help .btn--blue-border { border: 1px solid var(--pf-link); color: var(--pf-link); background: transparent; min-height: 44px; }
.cust-help .btn--blue-border:hover { background: var(--pf-soft); color: var(--pf-hover); }
.cust-help .kb-suggestions { border-radius: 16px; background: var(--pf-surface); color: var(--pf-text); }
.cust-help .suggest-preview { border-radius: 12px; }
.cust-help .footer { background: var(--pf-bg); color: var(--pf-muted); padding-block: 30px; }
.cust-help :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--pf-link) !important; outline-offset: 3px; }
@media (max-width: 700px) {
  .cust-help .contr { padding-inline: 16px; }
  .cust-help .phewfix-masthead__inner { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .cust-help .phewfix-brand img { width: 135px; height: 52px; }
  .cust-help .phewfix-support-label { display: none; }
  .cust-help .phewfix-theme-toggle { padding: 9px 11px; gap: 7px; }
  .cust-help .phewfix-theme-toggle > svg { display: none; }
  .cust-help .help-search { padding: 24px 16px; }
  .cust-help .nav, .cust-help .topics, .cust-help .tabbed__tabs .tabbed__tabs_tab.is-visible { grid-template-columns: minmax(0, 1fr); }
  .cust-help :is(.navlink, .preview, .topics__block, .ticket__body_block, .form-submit-ticket) { padding: 20px; }
  .cust-help #search-button { min-width: 76px; padding-inline: 12px; }
  .cust-help .preview__title { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .cust-help :is(.navlink, .preview, .form-control, .btn) { transition: none; }
}
@media print {
  body.cust-help, .cust-help .main__content { background: white; color: black; }
  .cust-help .phewfix-masthead__tools { display: none; }
  .cust-help .ticket__body_block { background: white; color: black; box-shadow: none; }
}