/* The complete storefront is scoped to its mount. All breakpoints follow the host. */
.fas-store {
  --ink: #292923;
  --subtle: #65635b;
  --line: #d7d2c8;
  --paper: #f7f5ef;
  --serif: "Baskervville", "Baskerville", "Iowan Old Style", Georgia, serif;
  position: relative;
  isolation: isolate;
  container: apparel / size;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color-scheme: light;
  color: var(--ink);
  font: 400 14px/1.35 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.fas-store *, .fas-store *::before, .fas-store *::after { box-sizing: border-box; }
.fas-store [hidden] { display: none !important; }
.fas-store :is(button, input, summary) { font: inherit; }
.fas-store button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fas-store button:focus-visible, .fas-store :is(input, summary, [tabindex]):focus-visible {
  outline: 2px solid #476c59;
  outline-offset: 3px;
}
.fas-store button:disabled { opacity: 0.35; cursor: default; }
.fas-store svg { display: block; flex: none; width: 18px; height: 18px; }
.fas-store h1, .fas-store h2, .fas-store p { margin: 0; }
.fas-body { position: relative; flex: 1 1 0; display: flex; min-height: 0; min-width: 0; }
.fas-studio {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.fas-stage { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; user-select: none; }
.fas-store[data-editing] .fas-stage { touch-action: none; }
.fas-stage[data-holding] { cursor: grabbing; }
.fas-stage canvas { display: block; width: 100%; height: 100%; }
.fas-view {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 5px;
  background: #f8f7f0f5;
  border: 1px solid #24231d28;
  border-radius: 100px;
}
.fas-store[data-editing] .fas-view { left: calc((100% - clamp(265px, 30%, 410px)) / 2); }
.fas-view > svg { width: 15px; margin: 0 4px; }
.fas-view button { padding: 5px 10px; border-radius: 30px; font-size: 11px; }
.fas-view button[aria-pressed="true"] { background: #37382f; color: white; }
.fas-panel {
  --inset: clamp(10px, 1.6cqw, 24px);
  position: absolute;
  inset: 0 var(--inset) 0 auto;
  display: flex;
  flex-direction: column;
  width: min(320px, calc(clamp(265px, 30%, 410px) - var(--inset)));
  height: fit-content;
  max-height: calc(100% - 2 * var(--inset));
  margin-block: auto;
  overflow: hidden;
  background: #fbfaf6;
  border: 1px solid #37362a2b;
  border-radius: 15px;
  box-shadow: 0 7px 28px #24201814;
  animation: fas-panel-enter 240ms ease-out;
}
.fas-panel-head { display: flex; align-items: center; gap: 2px; padding: 12px 12px 0 17px; }
.fas-panel-head h2 { flex: 1; font: 400 clamp(22px, 2cqw, 29px)/1.15 var(--serif); letter-spacing: -0.045em; }
.fas-store .fas-tool { width: 32px; height: 32px; border-radius: 50%; color: var(--subtle); }
.fas-tool:hover { background: #eeede6; }
.fas-tool svg { width: 16px; height: 16px; }
.fas-controls { overflow-y: auto; min-height: 0; padding: 0 17px 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9c6bb transparent; }
.fas-controls fieldset { min-width: 0; padding: 0; margin: 13px 0 0; border: 0; }
.fas-controls legend, .fas-controls summary { padding: 0; margin: 0 0 6px; color: var(--ink); font-size: 12px; font-weight: 600; }
.fas-controls legend span { margin-left: 6px; color: var(--subtle); font-weight: 400; }
.fas-segment, .fas-zones, .fas-sizes, .fas-swatches { display: flex; align-items: center; gap: 4px; }
.fas-segment button, .fas-zones button, .fas-sizes button {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  background: #f9f8f3;
}
.fas-segment button[aria-pressed="true"], .fas-sizes button[aria-pressed="true"] { background: #36382f; color: white; border-color: #36382f; }
.fas-zones button { flex-direction: column; gap: 3px; padding: 6px 1px; font-size: 9px; }
.fas-zones svg { width: 25px; height: 23px; }
.fas-zones button[aria-pressed="true"] { border-color: #555b48; background: #e8eadd; }
.fas-store .fas-upload, .fas-text { display: flex; align-items: center; justify-content: flex-start; width: 100%; gap: 10px; min-height: 38px; padding: 0 11px; border-radius: 7px; font-size: 13px; }
.fas-store .fas-upload { margin-top: 13px; background: #36382f; color: #fffef9; }
.fas-store .fas-upload:hover { background: #494c40; }
.fas-upload svg { width: 16px; height: 16px; }
.fas-text { margin: 6px 0 9px; border: 1px solid var(--line); background: #fffefa; }
.fas-text > span { font: 15px var(--serif); color: var(--subtle); }
.fas-text input { flex: 1; width: 0; min-height: 34px; padding: 0; border: 0; color: var(--ink); background: transparent; }
.fas-text:focus-within { outline: 2px solid #476c59; outline-offset: 1px; }
.fas-text input:focus-visible { outline: none; }
.fas-text input::placeholder { color: var(--subtle); }
.fas-details { border-top: 1px solid var(--line); }
.fas-controls summary { margin: 0; padding: 8px 2px; cursor: pointer; color: var(--subtle); font-weight: 500; }
.fas-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 35px; list-style: none; }
.fas-details > summary::-webkit-details-marker { display: none; }
.fas-details > summary::after { content: ""; width: 6px; height: 6px; margin-right: 4px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.fas-details[open] > summary::after { transform: rotate(225deg); }
.fas-details > fieldset:first-of-type { margin-top: 4px; }
.fas-print-actions { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 10px; }
.fas-print-actions button { min-height: 28px; font-size: 11px; color: var(--subtle); text-decoration: underline; text-underline-offset: 3px; }
.fas-transform { margin-top: 6px; }
.fas-slider { display: grid; grid-template-columns: 1fr auto; margin: 6px 0; font-size: 10px; }
.fas-slider input { grid-column: span 2; width: 100%; height: 15px; margin: 0; accent-color: #555d49; }
.fas-swatches { gap: 7px; padding: 3px 2px; }
.fas-swatches button, .fas-custom-color { position: relative; width: 25px; height: 25px; border: 1px solid #28241c28; border-radius: 50%; background: var(--swatch); }
.fas-swatches button[aria-pressed="true"] { outline: 1px solid #33372e; outline-offset: 2px; }
.fas-custom-color { display: grid; place-items: center; background: transparent; overflow: hidden; }
.fas-custom-color:focus-within { outline: 2px solid #476c59; }
.fas-custom-color svg { width: 12px; height: 12px; }
.fas-custom-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fas-notice:not(:empty) { position: absolute; bottom: 11%; left: 50%; z-index: 5; transform: translateX(-50%); padding: 8px 13px; border-radius: 8px; background: #30312af5; color: white; text-align: center; font-size: 12px; pointer-events: none; }

@container apparel (max-width: 640px) {
  .fas-store[data-editing] .fas-body { flex-direction: column; }
  .fas-panel { position: relative; inset: auto; width: auto; max-height: 49%; flex: 0 1 auto; min-height: 0; margin: 4px 9px 8px; border-radius: 12px; }
  .fas-panel-head { padding: 5px 9px 0 13px; }
  .fas-panel-head h2 { font-size: 22px; }
  .fas-controls { padding-inline: 13px; }
  .fas-controls > fieldset { margin-top: 5px; }
  .fas-store[data-editing] .fas-view { bottom: 3px; left: 50%; }
  .fas-view button { padding: 4px 9px; }
  .fas-notice:not(:empty) { bottom: 10%; width: max-content; max-width: 90%; }
}
@keyframes fas-panel-enter {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fas-panel { animation: none; }
}
