/** Shopify CDN: Minification failed

Line 20:7 Unexpected "("
Line 23:69 Unterminated string token
Line 26:72 Unterminated string token
Line 40:73 Unterminated string token
Line 41:24 Unterminated string token
Line 47:46 Unterminated string token
Line 50:73 Unterminated string token

**/
/* Sleeping Booty Co — live embroidery preview, v12 (duplicate theme only).
   v12 (2026-11-20): David chose "Leave it blank until they type".
   The preview name area is blank when no name is typed — no "Your name"
   placeholder, so it cannot be mistaken for a text input. The canvas
   keeps a min-height so the layout stays stable (no jump) when the name
   appears/disappears. The --placeholder opacity rule is deleted (unused
   since v12 — the JS no longer sets a placeholder class).
   v11 header follows. */
   v11 (2026-11-20): fix the v10 size bug — the name is now
   display:inline-block (was block). As a full-width block, scrollWidth
   was always >= box width, so fitTextFont() always shrank the name to
   ~14-18px. As an inline-block its width IS the name's width, so the
   fit measures the name. Centring unchanged (canvas text-align: center).
   v10 header follows. */
   v10 (2026-11-20): David's feedback after checking v9 on his phone —
   "its good except its not centred and the font size is too small".
   (1) The preview NAME is now CENTRED (text-align: center on the name
   and its canvas wrapper). The label above and the font-name/counter
   meta line underneath stay as they are — only the name centres.
   Note: v8 deliberately left-aligned it to avoid looking like a button;
   David now wants it centred, so centred it is.
   (2) Preview name is noticeably BIGGER on mobile AND desktop:
   Clarendon 30px -> 40px mobile / 34px -> 44px desktop;
   Brush Script / English Script 38px -> 48px mobile / 42px -> 52px
   desktop. The JS fitTextFont() base sizes are updated to match, so
   12-char names still shrink by measured width to fit on one line.
   v9 header follows. */
   v8 (2026-11-20): restyle so the preview flows like an SC Product Options
   row instead of a button/card. David: "the embroidery preview box kinda
   looks like a button".
   What SC does (read from options.js templates + browser tests): each
   option is a flat .bold_option — a plain
   <label><span class="bold_option_title">Title</span></label> above the
   control, no border, no background, no card, no shadow around the group;
   controls are full-width and left-aligned. SC ships no CSS of its own;
   the look is the theme's plain form styling.
   v8 therefore: no card (no blush border, no white background, no radius,
   no padding on the outer box — it is now transparent and flush, exactly
   like an SC option block); the label reuses SC's own .bold_option_title
   class and is plain sentence-case text, not uppercase bold letterspaced;
   the navy canvas keeps the fabric/white-thread idea but with a small
   field-like radius and LEFT-aligned text — buttons centre their text,
   fields left-align it — so it reads as a preview field, not a CTA.
   Colours unchanged: site navy #403c65, blush #ffcec6 / #feefed,
   cream #fff6e4, Helvetica throughout.
   Mobile-first: base styles are for a ~390px iPhone screen; larger
   screens get roomier sizes via the media query at the end.
   The old .sb-embroidery-preview__letters rules are deleted in v8 — dead
   since v7 (Font B is real text now, no letter images). */
@font-face {
  font-family: 'SB Clarendon';
  src: url(//sleepingbooty.com.au/cdn/shop/t/22/assets/sb-clarendon.woff2?v=124568050142022397131795165514) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SB Brush Script';
  src: url(//sleepingbooty.com.au/cdn/shop/t/22/assets/sb-brush-script.woff2?v=62038019504482395241795165514) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SB English Script';
  src: url(//sleepingbooty.com.au/cdn/shop/t/22/assets/sb-english-script.woff2?v=143422823953309260151795165514) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Mobile-first base — ~390px iPhone.
   Flat, like an SC option block: no card, no border, no background. */
.sb-embroidery-preview {
  display: none; /* v6: hidden by default — the JS shows it (display:block)
    only once ADD PERSONALISATION is actually ticked. Never visible on load. */
  margin: 14px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
}
.sb-embroidery-preview__label {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #403c65; /* site navy */
  margin: 0 0 6px;
}
.sb-embroidery-preview__canvas {
  /* v9: no box at all — transparent wrapper only, name sits directly on
     the white page background. No background, border, radius or padding.
     v12: min-height keeps the layout stable when the name area is blank
     (no name typed yet) — 56px covers the tallest script name at 48px
     x 1.15 line-height. Kept as a plain block so the markup/JS hooks
     are unchanged. */
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 56px;
  display: block;
  overflow: hidden;
  padding: 0;
  text-align: center; /* v10: name centred — wrapper centres it too */
}
.sb-embroidery-preview__text {
  color: #403c65; /* v9: navy text on white — was white on the navy canvas */
  font-size: 40px; /* v10: was 30px — David: font size too small */
  line-height: 1.15;
  white-space: nowrap;
  text-align: center; /* v10: was left — David wants the name centred */
  /* v11: inline-block, NOT block. Root cause of the v10 size bug: as a
     full-width block, scrollWidth was always >= its own clientWidth,
     which is always > box.clientWidth - 4, so fitTextFont()'s shrink
     loop ALWAYS ran its full 30 iterations (48px -> 18px). As an
     inline-block the element is only as wide as the name itself, so
     offsetWidth/scrollWidth actually measure the name. The canvas
     wrapper's text-align: center centres the inline-block. */
  display: inline-block;
  max-width: 100%;
  flex-shrink: 0;
}
.sb-embroidery-preview__text--clarendon { font-family: 'SB Clarendon', Georgia, serif; letter-spacing: 0.12em; /* v9: was 0.06em in v8 — David still saw bunching, doubled */ }
.sb-embroidery-preview__text--brush { font-family: 'SB Brush Script', cursive; font-size: 48px; /* v10: was 38px */ }
.sb-embroidery-preview__text--english { font-family: 'SB English Script', 'Brush Script MT', cursive; font-size: 48px; /* v10: was 38px */ }
.sb-embroidery-preview__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #403c65;
}
.sb-embroidery-preview__meta .sb-over { color: #b3261e; font-weight: 700; }

/* Larger screens: roomier, v1 sizes. */
@media (min-width: 750px) {
  .sb-embroidery-preview__canvas { min-height: 60px; /* v12: covers 52px scripts x 1.15 */ }
  .sb-embroidery-preview__text { font-size: 44px; /* v10: was 34px */ }
  .sb-embroidery-preview__text--brush { font-size: 52px; /* v10: was 42px */ }
  .sb-embroidery-preview__text--english { font-size: 52px; /* v10: was 42px */ }
}
