.gfs {--gfs-ink:#1b2038;--gfs-muted:#555e77;--gfs-line:#e2e6f1;--gfs-accent:#4534ac;color:var(--gfs-ink);max-width:1250px}
.gfs [hidden] {display:none!important}
.gfs * {box-sizing:border-box}
.gfs-head {padding:22px;margin-bottom:16px;border:1px solid var(--gfs-line);border-radius:17px;background:linear-gradient(125deg,#f7f5ff,#edf3ff)}
.gfs h1,.gfs h2 {margin:0 0 .45em;line-height:1.2;color:var(--gfs-ink);font-size:clamp(18px,3vw,24px)}
.gfs p {margin:.5em 0}
.gfs-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:16px}
.gfs-inbox,.gfs-panel {min-width:0;padding:16px;border:1px solid var(--gfs-line);border-radius:14px;background:#fff}
.gfs button,.gfs select,.gfs input,.gfs textarea {font:inherit;min-height:42px;padding:8px 12px;color:var(--gfs-ink);border:1px solid #cdd3e1;border-radius:9px;background:#fff;max-width:100%}
.gfs button {cursor:pointer;text-align:center}
.gfs button:disabled {opacity:.55}
.gfs :is(button,input,textarea,select):focus-visible {outline:2px solid var(--gfs-accent);outline-offset:2px}
.gfs .gfs-primary {background:var(--gfs-accent);color:#fff;border-color:var(--gfs-accent);font-weight:700}
.gfs label {display:block;margin:.7em 0;font-weight:650}
.gfs label :is(input:not([type=checkbox]),select,textarea) {display:block;width:100%;margin-top:4px}
.gfs textarea {resize:vertical}
.gfs .gfs-check input {min-height:0}
.gfs-list {display:grid;gap:6px;margin-bottom:10px;max-height:480px;overflow:auto}
.gfs-list button {display:grid;gap:4px;text-align:left;overflow-wrap:anywhere}
.gfs-list button[aria-pressed=true] {border-color:var(--gfs-accent);background:#f2eeff}
.gfs-list button span,.gfs-timezone {color:var(--gfs-muted);font-size:.85em}
.gfs-pages,.gfs-actions,.gfs-thread-head {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.gfs-thread-head {justify-content:space-between}
.gfs-thread-head [data-status] {border-radius:20px;background:#efedff;padding:5px 10px;color:#332886;font-size:.85em;font-weight:650}
.gfs-timeline {list-style:none;margin:12px 0 0;padding:8px;max-height:52vh;overflow:auto;background:#f7f8fc;border-radius:10px}
.gfs-timeline li {padding:10px 12px;margin:6px 0;background:#fff;border:1px solid var(--gfs-line);border-radius:10px;overflow-wrap:anywhere}
.gfs-timeline li[data-actor=agent] {background:#eef3ff}
.gfs-timeline li[data-actor=note] {background:#fff6d7}
.gfs-timeline li p {white-space:pre-wrap;margin-bottom:0}
.gfs-timeline small {color:var(--gfs-muted);margin-inline-start:8px}
.gfs .gfs-error {padding:10px;background:#ffeff0;color:#8e1522;border-radius:9px}
@media(max-width:700px) {
    .gfs-layout {grid-template-columns:minmax(0,1fr)}
    .gfs-list {max-height:210px}
    .gfs :is(input,select,textarea) {font-size:16px}
    .gfs-inbox,.gfs-panel {padding:12px}
}
/* GF 0.2.0: read-only order summary and compact form */
.gfs .gfs-linked-order {display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;background:#f6f5ff;border:1px solid #dcd8f5;border-radius:12px;padding:13px 15px;margin:14px 0;overflow-wrap:anywhere}
.gfs .gfs-linked-order span {font-weight:650;color:var(--gfs-muted)}
.gfs .gfs-linked-order strong {font-size:1.12em;color:var(--gfs-accent);font-variant-numeric:tabular-nums}
.gfs .gfs-linked-order small {grid-column:1/-1;color:var(--gfs-muted);font-size:.85em}
.gfs .gfs-counter {display:block;text-align:right;color:var(--gfs-muted);font-size:.78em;font-weight:400;margin-top:4px;font-variant-numeric:tabular-nums}
.gfs [data-order-hint] {display:block;color:var(--gfs-muted);font-size:.85em}
.gfs .gfs-feedback {padding:10px;background:#eef3ff;color:#344781;border-radius:9px}
.gfs form textarea {min-height:100px;line-height:1.5}
.gfs .gfs-timeline li[data-actor=customer] {margin-inline-start:12%;background:#f2eeff}
.gfs .gfs-timeline li[data-actor=bot] {background:#f1f5f5;color:#35545a}
.gfs .gfs-timeline li[data-actor=agent] {margin-inline-end:12%}
@media(max-width:700px) {.gfs form .gfs-primary {width:100%}.gfs .gfs-timeline li[data-actor=customer] {margin-inline-start:5%}.gfs .gfs-timeline li[data-actor=agent] {margin-inline-end:5%}.gfs .gfs-linked-order {padding:11px}}


/* GF 1.0.0 Premium */
.gfs {--gfs-ink:#151b35;--gfs-muted:#5c6582;--gfs-line:#dde4f2;--gfs-accent:#4b3dbb;--gfs-accent-2:#6c5ce7;--gfs-bg-soft:#f7f8ff;--gfs-success:#1a8b5c;--gfs-warn:#a86b00;--gfs-danger:#b42318}
.gfs-head {box-shadow:0 10px 30px rgba(77,61,187,.08)}
.gfs-inbox,.gfs-panel {box-shadow:0 8px 24px rgba(21,27,53,.05)}
.gfs .gfs-primary {background:linear-gradient(135deg,var(--gfs-accent),var(--gfs-accent-2));border-color:var(--gfs-accent);box-shadow:0 10px 22px rgba(75,61,187,.2)}
.gfs .gfs-primary:hover {filter:brightness(1.03)}
.gfs .gfs-limit-pill,.gfs .gfs-topic-help,.gfs .gfs-submit-note {display:block}
.gfs .gfs-limit-pill {margin-top:10px;padding:8px 10px;border:1px solid #d8cffd;background:#f6f2ff;color:#4534ac;border-radius:999px;font-size:.82em;font-weight:700;text-align:center}
.gfs .gfs-topic-help {margin:.25em 0 .8em;padding:11px 12px;border:1px solid #dce7fb;background:#f5f9ff;border-radius:12px;color:#2e4c77;font-size:.92em;line-height:1.45}
.gfs .is-required > select,.gfs .is-required > input,.gfs .is-required > textarea {border-color:#c6b8ff}
.gfs .gfs-submit-row {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px}
.gfs .gfs-submit-note {flex:1;min-width:220px;color:var(--gfs-muted);font-size:.85em}
.gfs .gfs-counter.is-warning {color:var(--gfs-warn);font-weight:700}
.gfs .gfs-counter.is-danger {color:var(--gfs-danger);font-weight:800}
.gfs .gfs-inbox h2,.gfs .gfs-panel h2 {display:flex;align-items:center;gap:10px}
.gfs .gfs-list button {padding:12px 13px;border-radius:12px}
.gfs .gfs-list button strong {font-size:.96em}
.gfs .gfs-linked-order {background:linear-gradient(135deg,#f7f4ff,#f4f8ff)}
.gfs .gfs-actions button {background:#fff;border:1px solid #d1d7e7;font-weight:650}
.gfs .gfs-actions button:hover {background:#f5f7ff}
.gfs .gfs-thread-head {padding-bottom:6px;border-bottom:1px solid var(--gfs-line)}
.gfs .gfs-timezone {margin-top:8px}
.gfs [data-empty] {display:block;padding:18px;border:1px dashed #d7dded;border-radius:14px;background:var(--gfs-bg-soft);color:var(--gfs-muted)}
@media(max-width:900px){
  .gfs-layout {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  .gfs-head {padding:16px}
  .gfs button,.gfs select,.gfs input,.gfs textarea {min-height:44px}
  .gfs .gfs-submit-row {align-items:stretch}
  .gfs .gfs-submit-row > * {width:100%}
  .gfs .gfs-actions {display:grid;grid-template-columns:1fr;gap:10px}
  .gfs .gfs-actions button,.gfs .gfs-pages button,.gfs [data-new] {width:100%}
  .gfs .gfs-linked-order {grid-template-columns:1fr}
  .gfs .gfs-linked-order strong {justify-self:start}
  .gfs .gfs-thread-head {align-items:flex-start}
}
/* 1.1.0: accessible, compact support desk */
.gfs .gfs-primary:hover,.gfs .gfs-primary:focus-visible{background:#35268f;color:#fff;border-color:#35268f;filter:none}
.gfs .gfs-priority{display:inline-flex;align-items:center;justify-self:start;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:750;background:#edf0f7;color:#3b465d;border:1px solid #d6dce8}
.gfs .gfs-priority[data-level="1"]{background:#eef3ff;color:#25458c;border-color:#c7d5fc}
.gfs .gfs-priority[data-level="2"]{background:#fff3df;color:#884600;border-color:#f0cb99}
.gfs .gfs-priority[data-level="3"]{background:#ffebec;color:#9b242c;border-color:#f1bfc3}
.gfs [data-status][data-state="closed"]{background:#eceff3;color:#495366}
.gfs [data-status][data-state="active"]{background:#e0f4e9;color:#145e3d}
.gfs [data-status][data-state="waiting"]{background:#fff1d7;color:#804900}
.gfs .gfs-list button{border-inline-start:3px solid #cbd4e5}
.gfs .gfs-list button[data-state="waiting"]{border-inline-start-color:#c78118}
.gfs .gfs-list button[data-state="active"]{border-inline-start-color:#19845b}
.gfs .gfs-list button[aria-pressed="true"]{border-color:var(--gfs-accent)}
.gfs .gfs-attachment{padding:10px 12px;border:1px dashed #c7cce0;border-radius:10px;background:#f8f8fc;overflow-wrap:anywhere}
.gfs .gfs-attachment input{min-width:0;padding:5px;white-space:normal;width:100%;font-size:14px}
.gfs .gfs-attachment small{display:block;color:var(--gfs-muted);font-size:12px;font-weight:400}
.gfs .gfs-capture-link{display:inline-flex;margin-top:8px;padding:8px 12px;border:1px solid #bcb1ee;border-radius:8px;color:#3b2897;background:#f8f5ff;font-weight:700;text-decoration:none}
.gfs .gfs-mobile-back{display:none}
.gfs .gfs-thread-head h2{flex:1;min-width:0;overflow-wrap:anywhere}
.gfs .gfs-submit-note{min-width:0}
.gfs .gfs-inbox,.gfs .gfs-panel{container-type:inline-size}
.gfs .gfs-timeline{overscroll-behavior:contain}
@media(max-width:700px){.gfs[data-view="thread"] .gfs-inbox{display:none}.gfs[data-view="thread"] .gfs-mobile-back{display:block;width:100%;margin:8px 0}.gfs[data-view="empty"] .gfs-panel:not(:has([data-error]:not([hidden]))){display:none}.gfs .gfs-list{max-height:unset}.gfs .gfs-layout{gap:10px}.gfs .gfs-timeline{max-height:48vh}.gfs .gfs-thread-head{gap:6px}.gfs .gfs-attachment input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.gfs *{transition:none!important;animation:none!important}}


/* Keep the desk inside its WooCommerce column, including narrow desktop layouts. */
.woocommerce-MyAccount-content:has(.gfs[data-gfs]) {min-inline-size:0}
.gfs[data-gfs] {
    inline-size:100%;min-inline-size:0;max-inline-size:1250px;
    container:gfs-desk / inline-size;overflow-wrap:anywhere;
}
.gfs[data-gfs] :is(.gfs-head,.gfs-layout,.gfs-inbox,.gfs-panel,form,label) {
    min-inline-size:0;max-inline-size:100%;
}
.gfs[data-gfs] label :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) {
    box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:100%;
    margin-inline:0;
}
.gfs[data-gfs] [data-search] {padding-inline:12px;text-overflow:ellipsis}
.gfs[data-gfs] :is(.gfs-inbox,.gfs-panel) {align-self:start}
@container gfs-desk (max-width: 720px) {
    .gfs-layout {grid-template-columns:minmax(0,1fr);gap:10px}
    .gfs-inbox,.gfs-panel {padding:clamp(10px,3cqi,16px)}
}
@container gfs-desk (max-width: 560px) {
    .gfs[data-view="thread"] .gfs-inbox {display:none}
    .gfs[data-view="thread"] .gfs-mobile-back {display:block;inline-size:100%;margin:8px 0}
    .gfs[data-view="empty"] .gfs-panel:not(:has([data-error]:not([hidden]))) {display:none}
}
