/**
 * Facetta - front styles
 * Every colour / size comes from a CSS variable set in the back office (Design tab).
 * All selectors are prefixed "fct-" so theme rules do not reach them and they do not reach the theme.
 */
:root {
  --fct-accent: #077f99;
  --fct-accent-dark: #066d84;
  --fct-accent-soft: rgba(7, 127, 153, .1);
  --fct-focus: rgba(7, 127, 153, .35);
  --fct-accent-text: #fff;
  --fct-bg: #fff;
  --fct-text: #1d2327;
  --fct-muted: #6b7780;
  --fct-line: #e7ebee;
  --fct-soft: #f2f5f7;
  --fct-radius: 10px;
  --fct-font: inherit;
  --fct-font-size: 14px;
  --fct-swatch: 30px;
  --fct-drawer-width: 400px;
  --fct-overlay: rgba(12, 18, 22, .45);
  --fct-anim: 280ms;
  --fct-fab-bg: #077f99;
  --fct-fab-bg2: #06667a;
  --fct-fab-color: #fff;
  --fct-fab-size: 56px;
  --fct-fab-icon: 24px;
  --fct-fab-x: 24px;
  --fct-fab-y: 24px;
  --fct-fab-z: 1040;
  --fct-fab-ring: rgba(7, 127, 153, .45);
  --fct-badge-bg: #fff;
  --fct-badge-color: #077f99;
  --fct-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ================================================================ block */

.fct-block {
  position: relative;
  margin: 0 0 24px;
  color: var(--fct-text);
  font-family: var(--fct-font);
  font-size: var(--fct-font-size);
  line-height: 1.4;
  text-align: left;
}
.fct-block *, .fct-block *::before, .fct-block *::after,
.fct-fab, .fct-fab *, .fct-drawer, .fct-drawer * { box-sizing: border-box; }
.fct-block.fct-empty { display: none; }
.fct-block a, .fct-block button, .fct-block input, .fct-block select, .fct-block label, .fct-block p, .fct-block li { letter-spacing: normal; text-shadow: none; }
.fct-block [hidden] { display: none !important; }
.fct-block .fct-drawer-head, .fct-block .fct-drawer-foot { display: none; }

.fct-block .fct-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .2s; z-index: 3; pointer-events: none; }
.fct-block .fct-progress span { position: absolute; top: 0; bottom: 0; width: 40%; background: var(--fct-accent); border-radius: 2px; animation: fct-progress 1.1s var(--fct-ease) infinite; }
.fct-block.fct-loading .fct-progress { opacity: 1; }
@keyframes fct-progress { from { left: -40%; } to { left: 100%; } }
.fct-block.fct-loading .fct-filters { opacity: .55; pointer-events: none; }
.fct-list-loading { opacity: .5; transition: opacity .2s; pointer-events: none; }

.fct-filters { display: block !important; margin: 0; padding: 0; background: transparent; transition: opacity .2s; }
.fct-block:not(.fct-in-drawer).fct-column-card .fct-filters { background: var(--fct-bg); padding: 18px 20px 6px; border-radius: var(--fct-radius); box-shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 0 0 1px var(--fct-line); }
.fct-block:not(.fct-in-drawer) .fct-filters.fct-bar-on > .fct-chips { display: none; }
.fct-block:not(.fct-in-drawer) .fct-facet:last-of-type { border-bottom: 0; }

.fct-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 2px 0 12px; border-bottom: 1px solid var(--fct-line); }
.fct-block .fct-title { margin: 0; font-size: 1.08em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fct-text); }
.fct-clear-all, .fct-save { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: .9em; font-weight: 600; color: var(--fct-accent); text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
.fct-clear-all:hover, .fct-save:hover { color: var(--fct-accent-dark); text-decoration: underline; }
.fct-save { margin-left: auto; }

/* ================================================================ chips */

.fct-chips { list-style: none; margin: 12px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fct-chips li { margin: 0; padding: 0; list-style: none; }
.fct-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 5px 8px 5px 11px; border-radius: 999px; background: var(--fct-accent-soft); color: var(--fct-accent-dark); font-size: .86em; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s; }
.fct-chip:hover, .fct-chip:focus { background: var(--fct-accent); color: var(--fct-accent-text); text-decoration: none; }
.fct-chip-group { opacity: .75; }
.fct-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; font-size: 14px; line-height: 1; background: rgba(255, 255, 255, .55); }
.fct-active-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-family: var(--fct-font); }
.fct-active-bar.hide { display: none; }
.fct-active-bar .fct-chips { margin: 0; align-items: center; }
.fct-active-title { font-weight: 600; font-size: .92em; }

/* ================================================================ facet */

.fct-facet { border-bottom: 1px solid var(--fct-line); }
.fct-facet-title {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin: 0; padding: 15px 2px; border: 0; background: none; box-shadow: none; border-radius: 0;
  font: inherit; font-size: 1.05em; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none;
  color: var(--fct-text); text-align: left; cursor: pointer;
}
.fct-titles-upper .fct-facet-title { font-size: .82em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fct-facet-title:hover { color: var(--fct-accent); background: none; }
.fct-facet-title:focus-visible { outline: 2px solid var(--fct-focus); outline-offset: 2px; border-radius: 6px; }
.fct-facet-name { flex: 1 1 auto; min-width: 0; }
.fct-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--fct-accent); box-shadow: 0 0 0 3px var(--fct-accent-soft); }
.fct-caret { flex: 0 0 auto; width: 8px; height: 8px; margin: 0 4px 3px 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform var(--fct-anim) var(--fct-ease), margin var(--fct-anim); opacity: .55; }
.fct-collapsed .fct-caret { transform: rotate(-45deg); margin-bottom: 0; }
.fct-facet-body { padding: 0 0 14px; }
.fct-collapsed .fct-facet-body { display: none; }

/* ---------------- options */

.fct-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--fct-line) transparent; }
.fct-list::-webkit-scrollbar { width: 6px; }
.fct-list::-webkit-scrollbar-thumb { background: var(--fct-line); border-radius: 3px; }
.fct-item { margin: 0; padding: 0; list-style: none; }
.fct-item.fct-hidden { display: none; }
.fct-expanded .fct-item.fct-hidden, .fct-searching .fct-item.fct-hidden { display: block; }
.fct-item.fct-search-miss { display: none !important; }
.fct-depth-1 { padding-left: 20px; }
.fct-depth-2 { padding-left: 40px; }
.fct-depth-3, .fct-depth-4, .fct-depth-5 { padding-left: 56px; }
.fct-option {
  display: flex; align-items: center; gap: 10px; min-height: 36px;
  margin: 0; padding: 6px 8px; border-radius: 8px;
  color: var(--fct-text); font-size: 1em; line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: normal;
  transition: background .15s;
}
.fct-option:hover, .fct-option:focus { background: var(--fct-soft); color: var(--fct-text); text-decoration: none; }
.fct-option:focus-visible { outline: 2px solid var(--fct-focus); outline-offset: 0; }
.fct-disabled .fct-option { opacity: .4; cursor: default; }
.fct-disabled .fct-option:hover { background: none; }

.fct-box { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid #b9c3ca; border-radius: 5px; background: #fff; transition: background .15s, border-color .15s, box-shadow .15s; }
.fct-check-square .fct-box-check { border-radius: 2px; }
.fct-check-circle .fct-box-check { border-radius: 50%; }
.fct-box-radio { border-radius: 50% !important; }
.fct-option:hover .fct-box { border-color: var(--fct-accent); }
.fct-option.is-active .fct-box { background: var(--fct-accent); border-color: var(--fct-accent); box-shadow: 0 0 0 3px var(--fct-accent-soft); }
.fct-option.is-active .fct-box-check::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9.5px; border: solid var(--fct-accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fct-option.is-active .fct-box-radio::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--fct-accent-text); }

/* single switch (on sale, new, online only) */
.fct-kind-toggle .fct-box { flex-basis: 36px; width: 36px; height: 20px; border-radius: 999px !important; border: 0; background: #cfd7dc; }
.fct-kind-toggle .fct-box::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; margin: 0 !important; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--fct-ease); }
.fct-kind-toggle .fct-option.is-active .fct-box { background: var(--fct-accent); box-shadow: none; }
.fct-kind-toggle .fct-option.is-active .fct-box::after { transform: translateX(16px); left: 2px; top: 2px; width: 16px; height: 16px; border: 0; background: #fff; }

.fct-color { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.fct-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fct-option.is-active .fct-label { font-weight: 600; }
.fct-count { flex: 0 0 auto; min-width: 26px; padding: 2px 7px; border-radius: 999px; background: var(--fct-soft); color: var(--fct-muted); font-size: .8em; font-weight: 500; line-height: 1.35; text-align: center; font-variant-numeric: tabular-nums; }
.fct-count-plain .fct-count { background: none; padding: 0; min-width: 0; }
.fct-option.is-active .fct-count { background: var(--fct-accent-soft); color: var(--fct-accent-dark); }

.fct-more { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0 8px; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: .92em; font-weight: 600; color: var(--fct-accent); text-transform: none; letter-spacing: normal; cursor: pointer; }
.fct-more:hover { color: var(--fct-accent-dark); }
.fct-more .fct-more-off, .fct-expanded .fct-more .fct-more-on { display: none; }
.fct-expanded .fct-more .fct-more-off { display: inline; }
.fct-searching .fct-more { display: none; }

/* ---------------- search in values / select */

.fct-search-wrap { position: relative; margin: 0 0 8px; }
.fct-search {
  display: block; width: 100%; height: 38px; margin: 0; padding: 0 12px 0 34px;
  border: 1px solid var(--fct-line); border-radius: var(--fct-radius); background: var(--fct-bg) no-repeat 11px 50% / 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a959c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  color: var(--fct-text); font: inherit; font-size: .95em; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.fct-search:focus { outline: none; border-color: var(--fct-accent); box-shadow: 0 0 0 3px var(--fct-accent-soft); }
.fct-no-match { margin: 6px 2px 0; color: var(--fct-muted); font-size: .9em; }
.fct-select {
  display: block; width: 100%; height: 40px; margin: 0; padding: 0 36px 0 12px;
  border: 1px solid var(--fct-line); border-radius: var(--fct-radius); background: var(--fct-bg) no-repeat right 12px center / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7780' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color: var(--fct-text); font: inherit; font-size: .95em; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.fct-select:focus { outline: none; border-color: var(--fct-accent); box-shadow: 0 0 0 3px var(--fct-accent-soft); }

/* ---------------- swatches */

.fct-swatches { list-style: none; margin: 0; padding: 2px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--fct-swatch) + 26px), 1fr)); gap: 10px 6px; }
.fct-swatches .fct-item { margin: 0; }
.fct-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0; color: var(--fct-text); font-size: .8em; text-decoration: none; }
.fct-swatch:hover, .fct-swatch:focus { color: var(--fct-text); text-decoration: none; }
.fct-swatch-color {
  display: flex; align-items: center; justify-content: center; width: var(--fct-swatch); height: var(--fct-swatch);
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background-size: cover; background-position: center;
  box-shadow: 0 0 0 2px var(--fct-bg); transition: box-shadow .2s, transform .2s var(--fct-ease);
  color: var(--fct-muted); font-size: .85em; font-weight: 600;
}
.fct-swatch-rounded .fct-swatch-color { border-radius: 8px; }
.fct-swatch-square .fct-swatch-color { border-radius: 2px; }
.fct-swatch:hover .fct-swatch-color { transform: scale(1.07); }
.fct-swatch-text { background: var(--fct-soft); }
.fct-swatch.is-active .fct-swatch-color { box-shadow: 0 0 0 2px var(--fct-bg), 0 0 0 4px var(--fct-accent); }
.fct-swatch:focus-visible { outline: none; }
.fct-swatch:focus-visible .fct-swatch-color { box-shadow: 0 0 0 2px var(--fct-bg), 0 0 0 4px var(--fct-focus); }
.fct-swatch-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; line-height: 1.2; }
.fct-swatch.is-active .fct-swatch-label { font-weight: 700; }
.fct-disabled .fct-swatch { opacity: .35; }

/* ---------------- slider */

.fct-slider { padding: 4px 2px 2px; }
.fct-hist { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin: 0 10px 2px; }
.fct-hist i { flex: 1 1 0; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--fct-line); transition: background .2s; }
.fct-hist i.on { background: var(--fct-accent); opacity: .5; }
.fct-range { position: relative; height: 28px; margin: 0 0 10px; }
.fct-range-track { position: absolute; left: 10px; right: 10px; top: 12px; height: 4px; border-radius: 2px; background: var(--fct-line); }
.fct-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--fct-accent); }
.fct-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; box-shadow: none; }
.fct-range input[type=range].fct-top { z-index: 3; }
.fct-range input[type=range]:focus { outline: none; }
.fct-range input[type=range]::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.fct-range input[type=range]::-moz-range-track { height: 28px; background: transparent; border: 0; }
.fct-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: #fff; border: 2px solid var(--fct-accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: grab; transition: box-shadow .15s, transform .15s; }
.fct-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--fct-accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: grab; }
.fct-range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.fct-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--fct-accent-soft); }
.fct-range-inputs { display: flex; align-items: flex-end; gap: 8px; }
.fct-num { flex: 1 1 0; min-width: 0; margin: 0; font-size: .78em; font-weight: 500; color: var(--fct-muted); text-align: left; text-transform: none; letter-spacing: normal; }
.fct-num span { display: block; margin: 0 0 4px; }
.fct-num input {
  display: block; width: 100%; height: 38px; margin: 0; padding: 0 10px;
  border: 1px solid var(--fct-line); border-radius: var(--fct-radius); background: var(--fct-bg); box-shadow: none;
  color: var(--fct-text); font: inherit; font-size: 1.2em; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.fct-num input::-webkit-outer-spin-button, .fct-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fct-num input:focus { outline: none; border-color: var(--fct-accent); box-shadow: 0 0 0 3px var(--fct-accent-soft); }
.fct-num-sep { padding-bottom: 10px; color: var(--fct-muted); }
.fct-range-labels { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: .85em; color: var(--fct-muted); font-variant-numeric: tabular-nums; }

/* ================================================================ buttons */

.fct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; margin: 0; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--fct-radius); box-shadow: none;
  font-family: var(--fct-font); font-size: var(--fct-font-size); font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-transform: none; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.fct-btn:active { transform: translateY(1px); }
.fct-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fct-focus); }
.fct-btn-primary { background: var(--fct-accent); color: var(--fct-accent-text); }
.fct-btn-primary:hover, .fct-btn-primary:focus { background: var(--fct-accent-dark); color: var(--fct-accent-text); }
.fct-btn-ghost { background: transparent; border-color: var(--fct-line); color: var(--fct-text); }
.fct-btn-ghost:hover, .fct-btn-ghost:focus { border-color: var(--fct-text); color: var(--fct-text); background: transparent; }
.fct-btn[disabled] { opacity: .45; cursor: default; }
.fct-btn[disabled]:active { transform: none; }

.fct-shown { max-width: 260px; margin: 28px auto 0; color: var(--fct-muted); font-family: var(--fct-font); font-size: .9em; text-align: center; }
.fct-shown::after { content: ""; display: block; height: 3px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--fct-accent) calc(var(--p, 0) * 100%), var(--fct-line) 0); }
.fct-loadmore { display: flex; margin: 14px auto 28px; min-width: 240px; }
.fct-loadmore.is-loading { opacity: .6; pointer-events: none; }
.fct-hide-pagination .pagination, .fct-hide-pagination nav.pagination { display: none !important; }

/* apply button in column mode */
.fct-block.fct-apply-pending:not(.fct-in-drawer) .fct-drawer-foot { display: flex; position: sticky; bottom: 0; gap: 8px; padding: 12px 20px; background: var(--fct-bg); border-radius: 0 0 var(--fct-radius) var(--fct-radius); box-shadow: 0 -8px 16px -12px rgba(0, 0, 0, .25); }
.fct-block.fct-apply-pending:not(.fct-in-drawer) .fct-drawer-foot .fct-btn { flex: 1 1 0; }
.fct-block.fct-apply-pending:not(.fct-in-drawer) .fct-drawer-foot .fct-btn-ghost { display: none; }

/* ================================================================ panel (drawer / bottom sheet) */

.fct-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: calc(var(--fct-fab-z) + 15); background: var(--fct-overlay); opacity: 0; visibility: hidden; transition: opacity var(--fct-anim) var(--fct-ease), visibility 0s linear var(--fct-anim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.fct-drawer-open .fct-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
.fct-drawer {
  position: fixed; top: 0; bottom: 0; z-index: calc(var(--fct-fab-z) + 20);
  width: min(var(--fct-drawer-width), 92vw); display: flex; flex-direction: column;
  background: var(--fct-bg); color: var(--fct-text);
  box-shadow: 0 0 0 1px rgba(16, 24, 32, .04), 0 24px 70px rgba(16, 24, 32, .22);
  visibility: hidden; transition: transform var(--fct-anim) var(--fct-ease), visibility 0s linear var(--fct-anim);
}
.fct-drawer-left { left: 0; transform: translateX(-104%); border-radius: 0 var(--fct-radius) var(--fct-radius) 0; }
.fct-drawer-right { right: 0; transform: translateX(104%); border-radius: var(--fct-radius) 0 0 var(--fct-radius); }
.fct-drawer-open .fct-drawer { transform: none; visibility: visible; transition-delay: 0s; }
.fct-drawer.fct-sheet { top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(104%); }
.fct-drawer-open .fct-drawer.fct-sheet { transform: translateY(0); }
.fct-drawer.fct-dragging { transition: none; }
html.fct-drawer-open, html.fct-drawer-open body { overflow: hidden !important; }
html.fct-drawer-open body { padding-right: var(--fct-sbw, 0); }

.fct-drawer .fct-block { display: flex; flex-direction: column; height: 100%; margin: 0; overflow: hidden; border-radius: inherit; }
.fct-drawer .fct-block.fct-empty { display: flex; }
.fct-drawer .fct-drawer-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 14px 12px 22px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--fct-line); background: var(--fct-bg); }
.fct-drawer.fct-sheet .fct-drawer-head { padding-top: 20px; cursor: grab; touch-action: none; }
.fct-sheet-handle { display: none; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--fct-line); }
.fct-drawer.fct-sheet .fct-sheet-handle { display: block; }
.fct-drawer-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.28em; font-weight: 700; letter-spacing: .01em; color: var(--fct-text); }
.fct-head-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--fct-accent); color: var(--fct-accent-text); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.fct-drawer-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--fct-soft); color: var(--fct-text); box-shadow: none; cursor: pointer; transition: background .2s, transform .2s var(--fct-ease); }
.fct-drawer-close:hover { background: var(--fct-line); transform: rotate(90deg); }
.fct-drawer-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fct-focus); }
.fct-head-accent .fct-drawer-head { background: var(--fct-accent); border-bottom-color: transparent; }
.fct-head-accent .fct-drawer-title { color: var(--fct-accent-text); }
.fct-head-accent .fct-head-count { background: var(--fct-accent-text); color: var(--fct-accent); }
.fct-head-accent .fct-drawer-close { background: rgba(255, 255, 255, .18); color: var(--fct-accent-text); }
.fct-head-accent .fct-drawer-close:hover { background: rgba(255, 255, 255, .3); }
.fct-head-accent .fct-sheet-handle { background: rgba(255, 255, 255, .5); }
.fct-drawer .fct-progress { top: 64px; }
.fct-drawer .fct-block-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 22px 20px; scrollbar-width: thin; scrollbar-color: var(--fct-line) transparent; }
.fct-drawer .fct-block-body::-webkit-scrollbar { width: 6px; }
.fct-drawer .fct-block-body::-webkit-scrollbar-thumb { background: var(--fct-line); border-radius: 3px; }
.fct-drawer .fct-filters .fct-head .fct-title, .fct-drawer .fct-filters .fct-head .fct-clear-all { display: none; }
.fct-drawer .fct-filters .fct-head { border-bottom: 0; padding: 0; }
.fct-drawer .fct-filters .fct-head .fct-save { margin: 14px 0 0; }
.fct-drawer .fct-filters .fct-chips { margin-top: 16px; }
.fct-drawer .fct-drawer-close:focus { outline: none; }
.fct-drawer:focus { outline: none; }
.fct-drawer .fct-drawer-foot { display: flex; gap: 10px; padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--fct-line); background: var(--fct-bg); box-shadow: 0 -10px 24px -18px rgba(16, 24, 32, .35); }
.fct-drawer .fct-drawer-foot .fct-btn-ghost { flex: 0 0 auto; }
.fct-drawer .fct-drawer-foot .fct-btn-primary { flex: 1 1 auto; }
.fct-drawer .fct-list { max-height: none; }
.fct-drawer .fct-option { min-height: 40px; }
@media (max-width: 480px) {
  .fct-drawer .fct-drawer-head { padding-left: 18px; }
  .fct-drawer .fct-block-body { padding: 4px 18px 18px; }
  .fct-drawer .fct-drawer-foot { padding-left: 14px; padding-right: 14px; }
}

/* ================================================================ floating button */

.fct-fab { position: fixed; z-index: var(--fct-fab-z); display: flex; align-items: center; gap: 12px; font-family: var(--fct-font); font-size: var(--fct-font-size); letter-spacing: normal; pointer-events: none; transition: opacity .25s, bottom .3s var(--fct-ease); }
.fct-fab[hidden] { display: none !important; }
.fct-fab--bottom-right { right: var(--fct-fab-x); bottom: calc(var(--fct-fab-y) + var(--fct-fab-lift, 0px) + env(safe-area-inset-bottom, 0px)); flex-direction: row-reverse; }
.fct-fab--bottom-left { left: var(--fct-fab-x); bottom: calc(var(--fct-fab-y) + var(--fct-fab-lift, 0px) + env(safe-area-inset-bottom, 0px)); }
.fct-fab--middle-right { right: var(--fct-fab-x); top: 50%; transform: translateY(-50%); flex-direction: row-reverse; }
.fct-fab--middle-left { left: var(--fct-fab-x); top: 50%; transform: translateY(-50%); }
.fct-fab.fct-fab--placed { transform: none; bottom: auto; }

.fct-fab__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: var(--fct-fab-size); height: var(--fct-fab-size); margin: 0; padding: 0;
  border: 0; border-radius: 50%; color: var(--fct-fab-color); background: var(--fct-fab-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  cursor: pointer; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--fct-ease), box-shadow .25s var(--fct-ease), opacity .25s, background .25s;
  animation: fct-pop .5s cubic-bezier(.2, .9, .3, 1.25) backwards;
}
.fct-fab__btn svg { display: block; width: var(--fct-fab-icon); height: var(--fct-fab-icon); }
.fct-fab--gradient .fct-fab__btn { background: linear-gradient(145deg, var(--fct-fab-bg) 0%, var(--fct-fab-bg2) 100%); }
.fct-fab--glass .fct-fab__btn { background: rgba(255, 255, 255, .72); color: var(--fct-fab-bg); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.fct-fab--outline .fct-fab__btn { background: var(--fct-bg); color: var(--fct-fab-bg); box-shadow: inset 0 0 0 2px var(--fct-fab-bg); }
.fct-fab--shadow-soft .fct-fab__btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -8px rgba(16, 24, 32, .45), 0 2px 6px rgba(16, 24, 32, .12); }
.fct-fab--shadow-strong .fct-fab__btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 36px -8px rgba(16, 24, 32, .6), 0 4px 12px rgba(16, 24, 32, .2); }
.fct-fab--glass.fct-fab--shadow-soft .fct-fab__btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 24px -8px rgba(16, 24, 32, .35), 0 2px 6px rgba(16, 24, 32, .1); }
.fct-fab--outline.fct-fab--shadow-soft .fct-fab__btn { box-shadow: inset 0 0 0 2px var(--fct-fab-bg), 0 10px 24px -8px rgba(16, 24, 32, .35); }
.fct-fab__btn:hover { transform: translateY(-2px); }
.fct-fab--shadow-soft .fct-fab__btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 30px -10px rgba(16, 24, 32, .5), 0 3px 8px rgba(16, 24, 32, .14); }
.fct-fab__btn:active { transform: scale(.94); }
.fct-fab__btn:focus { outline: none; }
.fct-fab__btn:focus-visible { box-shadow: 0 0 0 3px var(--fct-bg), 0 0 0 6px var(--fct-fab-ring); }
.fct-fab.fct-fab--dragging .fct-fab__btn { transform: scale(1.06); cursor: grabbing; transition: none; }

.fct-fab__badge {
  position: absolute; top: -3px; right: -3px; display: none; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px;
  background: var(--fct-badge-bg); color: var(--fct-badge-color);
  font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--fct-fab-bg), 0 2px 6px rgba(0, 0, 0, .18);
}
.fct-fab__badge.is-on { display: inline-flex; animation: fct-pop .35s cubic-bezier(.2, .9, .3, 1.4) backwards; }
.fct-fab--glass .fct-fab__badge, .fct-fab--outline .fct-fab__badge { background: var(--fct-fab-bg); color: var(--fct-fab-color); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .18); }

.fct-fab__label {
  pointer-events: none; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  background: var(--fct-bg); color: var(--fct-text);
  font-size: .95em; font-weight: 600; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 8px 22px -8px rgba(16, 24, 32, .35), 0 0 0 1px rgba(16, 24, 32, .05);
  opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .25s var(--fct-ease);
}
.fct-fab--bottom-left .fct-fab__label, .fct-fab--middle-left .fct-fab__label { transform: translateX(-8px); }
.fct-fab--label-never .fct-fab__label { display: none; }
.fct-fab--label-always .fct-fab__label { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .fct-fab--label-hover .fct-fab__btn:hover + .fct-fab__label,
  .fct-fab--label-hover .fct-fab__btn:focus-visible + .fct-fab__label { opacity: 1; transform: none; }
}

.fct-fab--pulse .fct-fab__btn::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; animation: fct-pulse 1.8s ease-out .6s 2; pointer-events: none; }
.fct-fab--away .fct-fab__btn, .fct-fab--away .fct-fab__label { opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none; }
.fct-drawer-open .fct-fab { opacity: 0; }
.fct-drawer-open .fct-fab * { pointer-events: none !important; }
html.fct-busy .fct-fab__btn { opacity: .9; }

@keyframes fct-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes fct-pulse { 0% { box-shadow: 0 0 0 0 var(--fct-fab-ring); } 100% { box-shadow: 0 0 0 20px rgba(0, 0, 0, 0); } }

/* ================================================================ "Filters" button above the list */

.fct-inline-bar { margin: 0 0 16px; font-family: var(--fct-font); }
.fct-inline-bar[hidden] { display: none; }
.fct-inline-toggle { min-height: 42px; background: var(--fct-bg); }
.fct-inline-toggle .fct-fab__badge { position: static; box-shadow: none; background: var(--fct-accent); color: var(--fct-accent-text); }

/* the theme's own filter wrapper and other filter modules still switched on are not shown */
html.fct-ready #search_filters_wrapper, html.fct-ready #aaf-block, html.fct-ready .aaf-drawer, html.fct-ready .aaf-backdrop, html.fct-ready .aaf-fab,
html.fct-ready .aaf-inline-bar, html.fct-ready .akramfilter-floating, html.fct-ready .akramfilter-drawer, html.fct-ready .akramfilter-backdrop { display: none !important; }
body:has(#fct-block) #search_filters_wrapper { display: none !important; }

.fct-debug { margin: 8px 0 0; font-size: .75em; color: var(--fct-muted); }
.fct-block .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .fct-drawer, .fct-backdrop, .fct-caret, .fct-box, .fct-fab__btn, .fct-fab__label, .fct-drawer-close, .fct-swatch-color { transition: none !important; animation: none !important; }
  .fct-fab--pulse .fct-fab__btn::after { animation: none; }
  .fct-block .fct-progress span { animation: none; left: 0; width: 100%; }
}
