/* labelGo bag tag designer. Uses the colour variables from funky.css. */
.bt-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--pop-sm); padding: .5rem 1rem; margin: .6rem 0 0; }
.bt-price strong { font-family: Fredoka, Outfit, sans-serif; font-size: 1.7rem; }
.bt-price small { font-size: .95rem; }

.bt-designer, .bt-cart, .bt-info { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.bt-designer { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr); gap: 2rem; align-items: start; margin-block: 1.5rem 2.5rem; }
.bt-stage-col { position: sticky; top: 1rem; }
.bt-stage { min-height: 260px; display: grid; place-items: center; padding: 1.5rem; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); overflow: hidden;
  background-image: linear-gradient(45deg, #f6f1e6 25%, transparent 25% 75%, #f6f1e6 75%), linear-gradient(45deg, #f6f1e6 25%, transparent 25% 75%, #f6f1e6 75%); background-size: 24px 24px; background-position: 0 0, 12px 12px; }
.bt-stage svg { max-width: 100%; height: auto; filter: drop-shadow(2px 5px 3px rgba(27, 20, 100, .35)); transition: transform .2s; }
.bt-stage-empty { color: var(--muted); text-align: center; max-width: 18rem; }
.bt-stage-meta { margin: .6rem 0 .2rem; font-weight: 600; text-align: center; }

.bt-controls { display: grid; gap: 1.1rem; }
.bt-step { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--card); padding: 1rem 1.1rem 1.1rem; margin: 0; min-width: 0; }
.bt-step legend { font-family: Fredoka, Outfit, sans-serif; font-weight: 700; font-size: 1.15rem; padding: 0 .5rem; display: flex; gap: .5rem; align-items: center; }

.bt-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .7rem; }
.bt-design { position: relative; display: grid; gap: .15rem; justify-items: center; text-align: center; padding: .5rem .4rem .6rem; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: #fffdf8; transition: transform .12s, border-color .12s; }
.bt-design:hover { transform: translateY(-2px); border-color: var(--cyan-deep); }
.bt-design input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bt-design.is-picked { border-color: var(--magenta); box-shadow: var(--pop-sm); background: #fff; }
.bt-design:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.bt-design-thumb { display: grid; place-items: center; width: 100%; height: 84px; }
.bt-design-thumb svg { max-width: 100%; max-height: 80px; width: auto; height: auto; }
.bt-design strong { font-family: Fredoka, Outfit, sans-serif; font-size: .98rem; line-height: 1.1; }
.bt-design small { color: var(--muted); font-size: .78rem; line-height: 1.2; }
.bt-design.is-unfit { opacity: .55; }
.bt-design.is-unfit .bt-design-warn { color: var(--bad); font-weight: 600; }
.bt-nofit { font-size: .8rem; color: var(--bad); }

.bt-name input { display: block; width: 100%; margin-top: .3rem; font-size: 1.4rem; padding: .55rem .8rem; border: 3px solid var(--ink); border-radius: 14px; font-family: Fredoka, Outfit, sans-serif; }
.bt-name input:focus { outline: 3px solid var(--cyan); outline-offset: 2px; }
.bt-bad { color: var(--bad); font-weight: 600; }

.bt-colour-group + .bt-colour-group { margin-top: .9rem; }
.bt-colour-title { margin: 0 0 .35rem; font-weight: 600; font-family: Fredoka, Outfit, sans-serif; }
.bt-picked { color: var(--muted); font-weight: 500; font-family: Outfit, sans-serif; }
.bt-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); gap: .5rem .3rem; }
.bt-swatch { position: relative; display: grid; justify-items: center; gap: .1rem; width: 100%; cursor: pointer; padding: .25rem 0; border-radius: 14px; }
.bt-swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.bt-dot { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); transition: transform .12s; position: relative; }
.bt-swatch:hover .bt-dot { transform: scale(1.08); }
.bt-swatch-name { font-size: .78rem; color: var(--muted); }
.bt-swatch.is-picked .bt-dot { outline: 4px solid var(--magenta); outline-offset: 3px; }
.bt-swatch.is-picked .bt-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.bt-swatch.is-picked .bt-swatch-name { color: var(--ink); font-weight: 700; }
.bt-swatch:focus-within { outline: 3px solid var(--cyan); outline-offset: 1px; }
.bt-swatch.is-disabled { cursor: not-allowed; opacity: .38; }
.bt-swatch.is-disabled input { cursor: not-allowed; }
.bt-swatch.is-disabled:hover .bt-dot { transform: none; }
.bt-swatch.is-disabled .bt-dot::before { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 3px; background: var(--ink); transform: rotate(-45deg); }

.bt-fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.bt-font { position: relative; display: grid; justify-items: center; gap: .15rem; padding: .6rem .5rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fffdf8; color: var(--ink); }
.bt-font input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bt-font.is-picked { border-color: var(--magenta); box-shadow: var(--pop-sm); background: #fff; }
.bt-font:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.bt-font-sample svg { height: 1.7rem; width: auto; max-width: 100%; }
.bt-font small { color: var(--muted); }

.bt-qty { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.bt-qty output { font-family: Fredoka, Outfit, sans-serif; font-weight: 700; font-size: 1.6rem; min-width: 2ch; text-align: center; }
.bt-total { margin: 0 0 .6rem; }
.bt-total-big { font-family: Fredoka, Outfit, sans-serif; font-weight: 700; font-size: 2rem; }
.bt-buy .btn { width: 100%; }

.bt-cart { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); padding: 1.2rem 1.4rem; margin-block: 0 2.5rem; }
.cart-tags { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .5rem; }
.cart-tags li { display: flex; gap: .8rem; justify-content: space-between; align-items: center; padding: .5rem .7rem; border: 2px solid var(--line); border-radius: 12px; background: #fffdf8; font-size: .95rem; }
.cart-tags form { margin: 0; }
.bt-info { margin-block: 0 2rem; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--magenta); color: #fff; font-size: .78rem; font-weight: 700; vertical-align: middle; }

@media (max-width: 860px) {
  .bt-designer { grid-template-columns: 1fr; }
  .bt-stage-col { position: sticky; top: 0; z-index: 3; background: var(--paper); padding-bottom: .4rem; }
  .bt-stage { min-height: 150px; padding: .8rem; }
  .bt-stage svg { max-height: 130px; }
  .bt-stage-meta, .bt-stage-col .hint { font-size: .85rem; margin: .3rem 0 0; }
  .bt-stage-col .hint { display: none; }
  .bt-designs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .bt-design, .bt-dot, .bt-stage svg { transition: none; } }
