/* Shared studio controls, basket drawer and toast. Themed by each concept through these variables:
   --gw-bg, --gw-panel, --gw-text, --gw-muted, --gw-accent, --gw-accent-ink, --gw-line, --gw-radius, --gw-font */
.gw-opt { position: relative; display: inline-flex; cursor: pointer; }
.gw-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gw-opt span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--gw-line); border-radius: var(--gw-radius, 10px); color: var(--gw-text); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.gw-opt--design span { flex-direction: row; gap: 6px; }
.gw-opt span small { font-size: 12px; color: var(--gw-muted); }
.gw-opt:hover span { border-color: var(--gw-accent); }
.gw-opt input:checked + span { border-color: var(--gw-accent); background: var(--gw-accent); color: var(--gw-accent-ink); }
.gw-opt input:checked + span small { color: inherit; opacity: .85; }
.gw-opt input:focus-visible + span { outline: 2px solid var(--gw-accent); outline-offset: 3px; }

.gw-error { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(200, 60, 40, .12); color: #e98b7a; font-size: 14px; }
.gw-light .gw-error { color: #9a2f1f; background: #fbe6e1; }

html.gw-lock { overflow: hidden; }
.gw-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.gw-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.gw-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--gw-panel); color: var(--gw-text); font-family: var(--gw-font); transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); outline: none; }
.gw-drawer.is-open { pointer-events: auto; }
.gw-drawer.is-open .gw-drawer__scrim { opacity: 1; }
.gw-drawer.is-open .gw-drawer__panel { transform: none; }
.gw-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--gw-line); }
.gw-drawer__head h2 { margin: 0; font-size: 22px; }
.gw-drawer__x { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 28px; cursor: pointer; }
.gw-drawer__body { flex: 1; overflow: auto; padding: 8px 22px; }
.gw-drawer__empty { color: var(--gw-muted); margin: 24px 0; }
.gw-line { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gw-line); }
.gw-line strong { display: block; }
.gw-line span, .gw-line em { display: block; font-size: 14px; color: var(--gw-muted); margin-top: 3px; }
.gw-line em { font-style: italic; }
.gw-line__right { text-align: right; white-space: nowrap; }
.gw-line__right button { display: block; margin: 6px 0 0 auto; padding: 4px 0; border: 0; background: none; color: var(--gw-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.gw-drawer__foot { padding: 18px 22px 24px; border-top: 1px solid var(--gw-line); }
.gw-sum { display: flex; justify-content: space-between; margin-bottom: 8px; }
.gw-sum--muted { color: var(--gw-muted); font-size: 14px; }
.gw-drawer__note { font-size: 13px; color: var(--gw-muted); margin: 8px 0; line-height: 1.5; }
.gw-region { border: 0; padding: 0; margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--gw-text); }
.gw-region legend { padding: 0; margin-bottom: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gw-muted); }
.gw-region label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.gw-region input { width: 18px; height: 18px; margin: 0; accent-color: var(--gw-accent); }
.gw-drawer__cta { width: 100%; min-height: 50px; margin-top: 8px; border: 0; border-radius: var(--gw-radius, 10px); background: var(--gw-accent); color: var(--gw-accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.gw-drawer__cta:disabled { opacity: .55; cursor: not-allowed; }

.gw-toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 140%); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--gw-panel); color: var(--gw-text); border: 1px solid var(--gw-line); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-family: var(--gw-font); font-size: 15px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.gw-toast.is-on { transform: translate(-50%, 0); }
.gw-toast button { flex: none; border: 0; background: none; color: var(--gw-accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; }
@media (prefers-reduced-motion: reduce) { .gw-drawer__panel, .gw-toast, .gw-drawer__scrim { transition: none; } }
.gw-opt--lettering span, .gw-opt--finish span { flex-direction: row; gap: 8px; }
.gw-letter { font-style: normal; display: inline-block; min-width: 1.5em; text-align: center; line-height: 1; }
.gw-letter--script { font-family: 'Great Vibes', cursive; font-size: 1.35em; }
.gw-letter--classic { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.15em; }
.gw-letter--modern { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 500; }
