/* Local Brand Boost — T-Shirt Builder (mobile-first) */

.lbb-app {
    --bg: #0A0F1A;
    --card: #0E1525;
    --border: #1A2540;
    --blue: #0099FF;
    --orange: #C8702A;
    --text: #E8ECF1;
    --muted: #8A94A6;
    --dark: #121A2B;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
}

/* Box-sizing reset for the entire app to prevent overflow issues */
.lbb-app, .lbb-app *, .lbb-app *::before, .lbb-app *::after {
    box-sizing: border-box;
}

.lbb-step { animation: lbbFade .3s ease; }
@keyframes lbbFade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ======================
   COMPACT INTRO (no landing step — shows above first step)
   ====================== */
.lbb-intro { text-align: center; padding: 0.5rem 0.5rem 1.5rem; max-width: 720px; margin: 0 auto; }
.lbb-intro-h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.375rem, 5.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 0.5rem; color: var(--text); }
.lbb-intro-sub { font-size: 14px; color: var(--muted); margin: 0 auto; line-height: 1.5; max-width: 560px; }

/* ======================
   PROGRESS STEP BAR (visual)
   ====================== */
.lbb-progress { max-width: 480px; margin: 0 auto 1.5rem; }
.lbb-progress-bar { position: relative; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 0 0 0.85rem; }
.lbb-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 999px; transition: width 0.3s ease; }
.lbb-progress-steps { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; counter-reset: stepnum; }
.lbb-progress-step {
    flex: 1; position: relative; padding-top: 30px; text-align: center;
    font-size: 0; /* hide raw number text */
    counter-increment: stepnum;
}
.lbb-progress-step em {
    font-style: normal; display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted);
}
.lbb-progress-step::before {
    content: counter(stepnum); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--card); border: 2px solid var(--border); color: var(--muted);
    font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0;
    display: flex; align-items: center; justify-content: center;
}
.lbb-progress-step.active::before { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(0,153,255,0.15); }
.lbb-progress-step.active em { color: var(--text); }
.lbb-progress-step.done::before { content: '✓'; background: var(--orange); border-color: var(--orange); color: #fff; }
.lbb-progress-step.done em { color: var(--text); }

/* ======================
   BUTTONS
   ====================== */
.lbb-btn-primary, .lbb-btn-outline, .lbb-btn-back {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 1rem 1.75rem; border-radius: 10px; cursor: pointer; transition: all 0.18s; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0;
    min-height: 52px; /* touch target — consistent across all CTAs */
    width: 100%; max-width: 380px;
}
.lbb-btn-back { width: auto; max-width: none; }
.lbb-btn-primary { background: var(--orange); color: #fff; }
.lbb-btn-primary:hover, .lbb-btn-primary:focus { background: #A85D22; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,112,42,0.3); }
.lbb-btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.lbb-btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.lbb-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.lbb-btn-back { background: transparent; color: var(--muted); padding: 0.7rem 1rem; }
.lbb-btn-back:hover { color: var(--text); }
.lbb-btn-block { width: 100%; max-width: 360px; }
.lbb-btn-submit { width: 100%; padding: 1.1rem 1rem; font-size: 15px; }

/* ======================
   STEP HEADER
   ====================== */
.lbb-step-head { text-align: center; margin-bottom: 1.75rem; }
.lbb-step-num { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.lbb-step-head h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.lbb-step-sub { color: var(--muted); font-size: 14px; margin: 0.5rem 0 0; }
@media (max-width: 767px) { .lbb-step-sub { font-size: 12.5px; } }

/* ======================
   STEP 2: COLOR + SIZE
   ====================== */
.lbb-section { margin-bottom: 2rem; }
.lbb-section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; text-align: center; }

.lbb-colors { display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.lbb-swatch { position: relative; background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 1.25rem; cursor: pointer; color: var(--text); font-weight: 600; font-size: 14px; transition: all 0.18s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; width: 220px; }
.lbb-swatch-img { width: 180px; height: 180px; object-fit: cover; display: block; border-radius: 14px; background: #fff; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35)); }
.lbb-swatch.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,153,255,0.2); background: rgba(0,153,255,0.05); }
.lbb-swatch:hover { transform: translateY(-2px); }

.lbb-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; max-width: 360px; margin: 0 auto; }
.lbb-size-btn { background: var(--card); border: 2px solid var(--border); border-radius: 10px; padding: 1rem 0.5rem; color: var(--text); font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.15s; min-height: 56px; }
.lbb-size-btn:hover { border-color: var(--blue); }
.lbb-size-btn.selected { border-color: var(--blue); background: rgba(0,153,255,0.1); color: var(--blue); }

/* ======================
   STEP 3: BUILDER
   ====================== */
.lbb-builder-grid { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.lbb-canvas-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lbb-canvas-wrap .canvas-container { margin: 0 auto !important; }
#lbb-canvas { display: block; margin: 0 auto; max-width: 100%; width: 500px; height: auto; border-radius: 8px; touch-action: none; }
.lbb-canvas-note { color: var(--muted); font-size: 12px; margin-top: 0.5rem; }

.lbb-controls { display: flex; flex-direction: column; gap: 0.5rem; }

/* Accordion sections */
.lbb-accordion { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lbb-accordion[open] { border-color: var(--blue); }
.lbb-accordion summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none !important; list-style-type: none !important; user-select: none; min-height: 48px; }
.lbb-accordion summary::-webkit-details-marker { display: none !important; }
.lbb-accordion summary::marker { content: '' !important; display: none !important; }
.lbb-acc-icon { font-size: 20px; }
.lbb-acc-title { flex: 1; }
.lbb-acc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--blue);
    font-size: 0;
    line-height: 0;
    transition: transform 0.25s ease;
}
.lbb-acc-arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid currentColor;
}
.lbb-accordion[open] .lbb-acc-arrow { transform: rotate(180deg); }
.lbb-acc-body { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid var(--border); }

/* Control groups */
.lbb-control-group { margin-bottom: 1rem; }
.lbb-control-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.lbb-control-group input[type="text"], .lbb-control-group select { width: 100%; background: var(--dark); border: 1px solid var(--border); color: var(--text); padding: 0.85rem 0.95rem; border-radius: 8px; font-size: 15px; font-family: Inter, sans-serif; box-sizing: border-box; min-height: 48px; }
.lbb-control-group input[type="text"]:focus, .lbb-control-group select:focus { border-color: var(--blue); outline: none; }
.lbb-control-group input[type="range"] { width: 100%; height: 36px; }
.lbb-control-group input[type="color"] { width: 100%; height: 48px; background: var(--dark); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 4px; }

.lbb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Per-row text block (each text line gets its own font/color/size) */
.lbb-text-row { padding: 0.85rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.015); margin-bottom: 0.85rem; }
.lbb-text-row .lbb-control-group:last-child { margin-bottom: 0; }
.lbb-text-row + .lbb-btn-row { margin-top: 0.25rem; }

/* Bold / Italic toggle buttons */
.lbb-text-style { display: flex; gap: 0.5rem; }
.lbb-style-btn {
    flex: 1;
    background: var(--dark);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    min-height: 44px;
    cursor: pointer;
    font-size: 18px;
    font-family: Inter, sans-serif;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lbb-style-btn:hover { border-color: var(--blue); color: var(--blue); }
.lbb-style-btn.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.lbb-bold-btn strong { font-weight: 800; }
.lbb-italic-btn em { font-style: italic; font-weight: 600; font-family: 'Playfair Display', Georgia, serif; }

/* Mini buttons (Center H/V/Reset/Remove) — equal width grid */
.lbb-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.lbb-btn-mini { background: var(--dark); border: 1px solid var(--border); color: var(--text); padding: 0.7rem 0.5rem; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; min-height: 44px; line-height: 1.2; }
.lbb-btn-mini:hover { border-color: var(--blue); color: var(--blue); }
.lbb-btn-danger { color: #E53935; border-color: rgba(229,57,53,0.3); }
.lbb-btn-danger:hover { border-color: #E53935; color: #E53935; }
.lbb-btn-block { width: 100%; }

.lbb-upload-btn { background: var(--blue); color: #fff; border: 0; padding: 1rem; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; width: 100%; margin-bottom: 0.6rem; min-height: 52px; }
.lbb-upload-btn:hover { background: #007ACC; }
.lbb-logo-tip { font-size: 12px; color: var(--muted); line-height: 1.5; }
.lbb-logo-controls { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Icons grid */
.lbb-icons-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; max-height: 280px; overflow-y: auto; padding: 0.25rem; margin-bottom: 1rem; }
.lbb-icon-btn { background: var(--dark); border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem; cursor: pointer; color: var(--muted); transition: all 0.15s; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.lbb-icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.lbb-icon-btn.selected { border-color: var(--blue); color: var(--blue); background: rgba(0,153,255,0.08); }
.lbb-icon-btn svg { width: 22px; height: 22px; }
.lbb-icons-cat { grid-column: 1/-1; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 0 0.25rem; }
.lbb-icon-controls { padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }

/* ======================
   STEP 4: FORM — Typeform-style one question at a time
   ====================== */
.lbb-flow { max-width: 560px; margin: 0 auto; }
.lbb-flow-intro { text-align: center; margin-bottom: 2rem; }
.lbb-flow-step { display: none; animation: lbbFade 0.25s ease; }
.lbb-flow-step.active { display: block; }
.lbb-flow-q { text-align: center; margin-bottom: 1.5rem; }
.lbb-flow-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.85rem;
}
.lbb-flow-q h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.lbb-flow-q p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.lbb-flow-step input {
    width: 100%;
    background: var(--dark);
    border: 2px solid var(--border);
    color: #FFFFFF;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-text-fill-color: #FFFFFF;
}
.lbb-flow-step input::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}
.lbb-flow-step input:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,153,255,0.15);
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}
/* Override Chrome / Safari autofill (which paints text blue / yellow) */
.lbb-flow-step input:-webkit-autofill,
.lbb-flow-step input:-webkit-autofill:hover,
.lbb-flow-step input:-webkit-autofill:focus,
.lbb-flow-step input:-webkit-autofill:active {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0 1000px #121A2B inset !important;
    caret-color: #FFFFFF !important;
    transition: background-color 99999s ease-in-out 0s;
    font-weight: 700 !important;
}
.lbb-flow-step input.lbb-flow-error {
    border-color: #E53935;
    box-shadow: 0 0 0 4px rgba(229,57,53,0.15);
    animation: lbbShake 0.4s;
}
@keyframes lbbShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.lbb-flow-nav { display: flex; gap: 0.75rem; align-items: center; justify-content: center; }
.lbb-flow-nav .lbb-flow-prev {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    cursor: pointer;
    flex: 0 0 auto;
}
.lbb-flow-nav .lbb-flow-prev:hover { color: var(--text); }
.lbb-flow-nav .lbb-btn-primary { flex: 1 1 auto; max-width: 280px; }

/* ======================
   STEP 4: FORM (legacy classes still used elsewhere)
   ====================== */
.lbb-form { max-width: 700px; margin: 0 auto; }
.lbb-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1.5rem; }
.lbb-field-full { grid-column: 1 / -1; }
.lbb-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.lbb-field input, .lbb-field select { width: 100%; background: var(--dark); border: 1px solid var(--border); color: var(--text); padding: 0.95rem 1rem; border-radius: 8px; font-size: 16px; /* prevent iOS zoom */ font-family: Inter, sans-serif; box-sizing: border-box; min-height: 50px; }
.lbb-field input:focus, .lbb-field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0,153,255,0.1); }

.lbb-form-h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.lbb-form-desc { color: var(--muted); font-size: 13px; margin: 0 0 0.85rem; line-height: 1.5; }

/* Chip-style multi-toggle (replaces dropdown — better mobile UX) */
.lbb-chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.lbb-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--dark); border: 1.5px solid var(--border); color: var(--text);
    padding: 0.7rem 1rem; border-radius: 999px; cursor: pointer;
    font-size: 14px; font-weight: 500; transition: all 0.15s ease;
    min-height: 44px; user-select: none;
}
.lbb-chip:hover { border-color: var(--blue); background: rgba(0,153,255,0.05); }
.lbb-chip input[type="checkbox"] { display: none; }
.lbb-chip-check {
    width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; flex-shrink: 0;
}
.lbb-chip-check::after {
    content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity 0.15s ease;
}
.lbb-chip:has(input:checked) {
    border-color: var(--blue); background: rgba(0,153,255,0.12); color: var(--blue);
}
.lbb-chip:has(input:checked) .lbb-chip-check {
    background: var(--blue); border-color: var(--blue);
}
.lbb-chip:has(input:checked) .lbb-chip-check::after { opacity: 1; }
.lbb-chip-label { line-height: 1.2; }

/* ======================
   CHECKLIST (vertical, evenly stacked — used for "Anything Else You'd Be Interested In")
   ====================== */
.lbb-checklist {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: stretch;
}
@media (max-width: 540px) {
    .lbb-checklist { grid-template-columns: 1fr; }
}
.lbb-checklist-item { margin: 0; padding: 0; display: flex; }
.lbb-checklist-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: var(--dark);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    height: 60px;
    user-select: none;
}
.lbb-checklist-label:hover { border-color: var(--blue); background: rgba(0,153,255,0.04); }
.lbb-checklist-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.lbb-checklist-box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.lbb-checklist-box::after {
    content: '';
    width: 11px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.lbb-checklist-emoji {
    flex: 0 0 24px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}
.lbb-checklist-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lbb-checklist-label:has(.lbb-checklist-input:checked) {
    border-color: var(--blue);
    background: rgba(0,153,255,0.10);
}
.lbb-checklist-label:has(.lbb-checklist-input:checked) .lbb-checklist-box {
    background: var(--blue);
    border-color: var(--blue);
}
.lbb-checklist-label:has(.lbb-checklist-input:checked) .lbb-checklist-box::after { opacity: 1; }
.lbb-checklist-label:focus-within { outline: 2px solid rgba(0,153,255,0.5); outline-offset: 2px; }

/* Method cards (legacy, in case kept) */
.lbb-methods { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.lbb-method-card { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 2rem 1.25rem; text-align: center; cursor: pointer; color: var(--text); transition: all 0.2s; }
.lbb-method-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.lbb-method-icon { font-size: 40px; margin-bottom: 0.75rem; }
.lbb-method-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; margin: 0 0 0.4rem; }
.lbb-method-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* Nav row (back / next) — primary CTA consistent width, centered */
.lbb-nav-row { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.lbb-nav-row .lbb-btn-back { flex: 0 0 auto; order: 1; }
.lbb-nav-row .lbb-btn-primary { order: 2; width: 100%; max-width: 380px; }
/* When a Back button is present, push the primary to the right on wider screens */
@media (min-width: 540px) {
    .lbb-nav-row:has(.lbb-btn-back) { justify-content: space-between; }
    .lbb-nav-row:has(.lbb-btn-back) .lbb-btn-primary { width: auto; flex: 0 0 auto; min-width: 240px; }
}

.lbb-submit-status { margin-top: 1rem; text-align: center; font-size: 14px; }
.lbb-trust-line { text-align: center; font-size: 12px; color: var(--muted); margin: 6rem 0 0; line-height: 1.5; }

/* Hide third-party chat widgets on the LBB builder/thank-you pages at every viewport size
   (covers Tidio, Drift, Intercom, Crisp, HubSpot, Tawk.to, Olark, Zendesk, generic iframes) */
body:has(.lbb-app) #tidio-chat,
body:has(.lbb-app) #tidio-chat-iframe,
body:has(.lbb-app) #drift-widget,
body:has(.lbb-app) #drift-widget-container,
body:has(.lbb-app) .intercom-lightweight-app,
body:has(.lbb-app) .intercom-launcher,
body:has(.lbb-app) .intercom-launcher-frame,
body:has(.lbb-app) #intercom-container,
body:has(.lbb-app) #crisp-chatbox,
body:has(.lbb-app) .crisp-client,
body:has(.lbb-app) #hubspot-messages-iframe-container,
body:has(.lbb-app) #tawkchat-container,
body:has(.lbb-app) .tawk-min-container,
body:has(.lbb-app) #olark-box-container,
body:has(.lbb-app) #launcher,
body:has(.lbb-app) #zsiq_float,
body:has(.lbb-app) .zsiq_floatmain,
body:has(.lbb-app) .fb_dialog,
body:has(.lbb-app) iframe[title*="chat" i],
body:has(.lbb-app) iframe[id*="chat" i],
body:has(.lbb-app) iframe[src*="messenger"],
body:has(.lbb-thanks-wrap) #tidio-chat,
body:has(.lbb-thanks-wrap) #tidio-chat-iframe,
body:has(.lbb-thanks-wrap) #drift-widget,
body:has(.lbb-thanks-wrap) #drift-widget-container,
body:has(.lbb-thanks-wrap) .intercom-lightweight-app,
body:has(.lbb-thanks-wrap) .intercom-launcher,
body:has(.lbb-thanks-wrap) .intercom-launcher-frame,
body:has(.lbb-thanks-wrap) #intercom-container,
body:has(.lbb-thanks-wrap) #crisp-chatbox,
body:has(.lbb-thanks-wrap) .crisp-client,
body:has(.lbb-thanks-wrap) #hubspot-messages-iframe-container,
body:has(.lbb-thanks-wrap) #tawkchat-container,
body:has(.lbb-thanks-wrap) .tawk-min-container,
body:has(.lbb-thanks-wrap) #olark-box-container,
body:has(.lbb-thanks-wrap) #launcher,
body:has(.lbb-thanks-wrap) #zsiq_float,
body:has(.lbb-thanks-wrap) .zsiq_floatmain,
body:has(.lbb-thanks-wrap) .fb_dialog,
body:has(.lbb-thanks-wrap) iframe[title*="chat" i],
body:has(.lbb-thanks-wrap) iframe[id*="chat" i],
body:has(.lbb-thanks-wrap) iframe[src*="messenger"],
/* Floating "quick contact" / sticky call buttons / contact bubbles */
body:has(.lbb-app) .quick-contact,
body:has(.lbb-app) #quick-contact,
body:has(.lbb-app) .quick-contact-button,
body:has(.lbb-app) .sticky-contact,
body:has(.lbb-app) .floating-contact,
body:has(.lbb-app) .float-contact,
body:has(.lbb-app) .wp-call-button,
body:has(.lbb-app) .cuar_floating_button,
body:has(.lbb-app) .contact_btn_sticky,
body:has(.lbb-app) [class*="quick-contact" i],
body:has(.lbb-app) [class*="floating-contact" i],
body:has(.lbb-app) [class*="sticky-contact" i],
body:has(.lbb-app) [class*="call-now" i],
body:has(.lbb-app) [id*="quick-contact" i],
body:has(.lbb-app) [id*="floating-contact" i],
body:has(.lbb-app) [id*="sticky-contact" i],
body:has(.lbb-app) [id*="call-now" i],
body:has(.lbb-thanks-wrap) .quick-contact,
body:has(.lbb-thanks-wrap) #quick-contact,
body:has(.lbb-thanks-wrap) .quick-contact-button,
body:has(.lbb-thanks-wrap) .sticky-contact,
body:has(.lbb-thanks-wrap) .floating-contact,
body:has(.lbb-thanks-wrap) .float-contact,
body:has(.lbb-thanks-wrap) .wp-call-button,
body:has(.lbb-thanks-wrap) .cuar_floating_button,
body:has(.lbb-thanks-wrap) .contact_btn_sticky,
body:has(.lbb-thanks-wrap) [class*="quick-contact" i],
body:has(.lbb-thanks-wrap) [class*="floating-contact" i],
body:has(.lbb-thanks-wrap) [class*="sticky-contact" i],
body:has(.lbb-thanks-wrap) [class*="call-now" i],
body:has(.lbb-thanks-wrap) [id*="quick-contact" i],
body:has(.lbb-thanks-wrap) [id*="floating-contact" i],
body:has(.lbb-thanks-wrap) [id*="sticky-contact" i],
body:has(.lbb-thanks-wrap) [id*="call-now" i] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ======================
   THANK-YOU + RAFFLE / SHARE UI
   ====================== */
.lbb-thanks-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    --bg: #0A0F1A; --card: #0E1525; --border: #1A2540; --blue: #0099FF; --orange: #C8702A; --text: #E8ECF1; --muted: #8A94A6; --dark: #121A2B;
}
.lbb-thanks-wrap, .lbb-thanks-wrap *, .lbb-thanks-wrap *::before, .lbb-thanks-wrap *::after { box-sizing: border-box; }
.lbb-thanks-card { text-align: center; padding: 2.5rem 1.25rem 0; }
.lbb-thanks-icon { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.lbb-thanks-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.lbb-thanks-h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; color: var(--text); }
.lbb-thanks-sub { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 580px; margin: 0 auto 3.5rem; }

/* Raffle / share section */
.lbb-raffle {
    background: linear-gradient(180deg, rgba(0,153,255,0.08), rgba(200,112,42,0.05));
    border: 1px solid rgba(0,153,255,0.25);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    max-width: 560px;
}
.lbb-raffle-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.lbb-raffle-h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.lbb-raffle-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 460px; }
.lbb-raffle-preview {
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    margin: 0 auto 1.5rem;
    width: min(280px, 100%);
    aspect-ratio: 5 / 6; /* match canvas aspect so full shirt is visible */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    overflow: hidden;
}
.lbb-raffle-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.lbb-share-caption { text-align: left; margin-bottom: 1.25rem; }
.lbb-share-caption label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.lbb-share-caption textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.75rem 0.85rem;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    margin-bottom: 0.5rem;
}
.lbb-share-caption .lbb-btn-mini {
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    min-height: 38px;
}
.lbb-share-caption .lbb-btn-mini:hover { border-color: var(--blue); color: var(--blue); }

.lbb-share-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 480px) {
    .lbb-share-buttons { grid-template-columns: 1fr 1fr; }
}
.lbb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    min-height: 50px;
}
.lbb-share-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.lbb-share-fb { background: #1877F2; }
.lbb-share-fb:hover { background: #0F65D7; }
.lbb-share-li { background: #0A66C2; }
.lbb-share-li:hover { background: #084FA1; }
.lbb-share-native {
    background: linear-gradient(135deg, #C8702A, #E89240);
    border: 0;
    cursor: pointer;
    grid-column: 1 / -1;
}
.lbb-share-native:hover { background: linear-gradient(135deg, #A85D22, #C8702A); }

/* On mobile, when native share API is supported, hide the FB/LinkedIn web sharers
   (they're broken inside the FB iOS/Android app) and let the user use native share. */
@media (max-width: 768px) {
    .lbb-share-buttons.lbb-has-native-share .lbb-share-fb,
    .lbb-share-buttons.lbb-has-native-share .lbb-share-li { display: none; }
}

.lbb-raffle-status { margin-top: 1rem; font-size: 13px; min-height: 1.2em; }

/* ======================
   THANK-YOU OFFER CARD ($297 Starter Kit)
   ====================== */
.lbb-offer {
    max-width: 600px;
    margin: 4rem auto 4rem;
    text-align: center;
}
.lbb-offer-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 12px;
    color: var(--muted);
}
.lbb-offer-badge-pill {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}
.lbb-offer-from { color: var(--muted); font-size: 12px; }
.lbb-offer-from strong { color: var(--text); }
.lbb-offer-h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    color: var(--text);
}
.lbb-offer-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    max-width: 520px;
}
.lbb-offer-card {
    background: linear-gradient(180deg, rgba(200,112,42,0.10), rgba(0,153,255,0.04));
    border: 1.5px solid rgba(200,112,42,0.35);
    border-radius: 16px;
    padding: 2rem 1.5rem 0;  /* no bottom padding — button is flush with card bottom */
    text-align: left;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    overflow: hidden;        /* clip button corners to card border-radius */
}
.lbb-offer-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.lbb-offer-card-eyebrow {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.25rem;
}
.lbb-offer-card-price { text-align: right; line-height: 1.1; }
.lbb-offer-from-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.lbb-offer-amount {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.lbb-offer-card-tagline {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 1.25rem;
    line-height: 1.5;
    font-style: italic;
}
.lbb-offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
.lbb-offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.5;
}
.lbb-offer-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
}
.lbb-offer-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Break out of card padding to make the button truly edge-to-edge with the card */
    width: calc(100% + 3rem) !important;
    max-width: none !important;
    margin: 1.75rem -1.5rem 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 !important;
    background: var(--orange) !important;
    color: #fff !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    min-height: 60px;
    transition: background 0.18s ease;
    box-sizing: border-box;
}
.lbb-offer-cta:hover {
    background: #A85D22;
    color: #fff;
}
.lbb-offer-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 1.5rem 0 0;
    line-height: 1.5;
}

.lbb-thanks-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1rem;
}
.lbb-thanks-cta-row .lbb-btn-primary,
.lbb-thanks-cta-row .lbb-btn-outline {
    flex: 1 1 240px;
    max-width: 280px;
    min-height: 52px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    transition: all 0.18s;
}
.lbb-thanks-cta-row .lbb-btn-primary { background: var(--orange); color: #fff; border: 0; }
.lbb-thanks-cta-row .lbb-btn-primary:hover { background: #A85D22; transform: translateY(-1px); }
.lbb-thanks-cta-row .lbb-btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.lbb-thanks-cta-row .lbb-btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ======================
   MOBILE: HIDE THE GLOBAL SITE HEADER on the builder pages (steps 1-3 only).
   The header reappears on the thank-you page (body:has(.lbb-thanks-wrap)) so the user
   can navigate back to the rest of the site after submitting.
   ====================== */
@media (max-width: 767px) {
    /* Hide the design-step header on mobile — frees vertical space for the canvas + dock */
    .lbb-builder > .lbb-step-head { display: none; }
    /* Page-level intro: show ONLY on Step 1 (the shirt picker, data-step="2").
       Hide on Design + Submit steps to free up vertical space. */
    .lbb-app > .lbb-intro { display: none; }
    
    .lbb-app:has(.lbb-step[data-step="2"]:not([hidden])) > .lbb-intro { display: block; }

    /* Hide ONLY the Kadence site header (not the mobile menu drawer, not generic .header). */
    body:has(.lbb-app) #masthead,
    body:has(.lbb-app) header.site-header,
    body:has(.lbb-app) #wpadminbar {
        display: none !important;
    }
    body:has(.lbb-app) { padding-top: 0 !important; margin-top: 0 !important; }
    html:has(.lbb-app) { padding-top: 0 !important; margin-top: 0 !important; }
}

/* ======================
   MOBILE BOTTOM SHEET — pin Upload Logo / Add Text controls to the bottom of the screen
   so the user never has to scroll to access them. Tapping a summary slides the panel UP.
   ====================== */
@media (max-width: 767px) {
    /* Reserve space at the bottom of the builder step so the dock doesn't cover the canvas */
    .lbb-builder { padding-bottom: 280px; }

    /* Dock the controls panel to the bottom of the viewport */
    .lbb-builder .lbb-controls {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--card);
        border-top: 1px solid var(--border);
        box-shadow: 0 -12px 32px rgba(0,0,0,0.55);
        z-index: 95;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        overflow: visible;
    }
    /* Each accordion sits flush in the dock — no rounded card look on mobile */
    .lbb-builder .lbb-accordion {
        border-radius: 0;
        border: 0;
        border-top: 1px solid var(--border);
        background: var(--card);
        flex: 0 0 auto;
    }
    .lbb-builder .lbb-accordion:first-child { border-top: 0; }
    .lbb-builder .lbb-accordion[open] { border-color: var(--border); }
    /* Tappable tab/summary row — generous side padding so the arrow + label aren't
       hugging the screen edges */
    .lbb-builder .lbb-accordion summary {
        padding: 0.95rem 1.4rem;
        font-size: 14px;
        font-weight: 700;
        min-height: 50px;
    }
    /* Body padding — inputs / color picker / sliders / B/I buttons need breathing room
       on the left and right of the screen on mobile so they're easier to tap */
    .lbb-builder .lbb-accordion[open] .lbb-acc-body {
        max-height: none;
        overflow: visible;
        padding: 1rem 1.4rem 1.5rem;
    }
    /* Make the canvas wrap sticky to the top so it stays in view as the dock expands */
    .lbb-builder .lbb-canvas-wrap {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--card);
    }
    /* Slim the canvas slightly so 50% of the viewport is left for the dock */
    .lbb-builder .lbb-canvas-wrap canvas { max-height: 45vh; }
    /* On mobile, the desktop nav row stays visible in the page flow but ONLY the Back button shows.
       Continue lives in the dock; users who want to go Back scroll down to find it. */
    .lbb-builder .lbb-nav-row-desktop {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .lbb-builder .lbb-nav-row-desktop .lbb-btn-primary { display: none; }
    .lbb-builder .lbb-nav-row-desktop .lbb-btn-back {
        padding: 0.85rem 1.5rem;
        min-height: 44px;
    }

    /* When any accordion is open, hide the *other* (closed) accordion summaries —
       only the open section + the Continue/Back CTA remain visible. */
    .lbb-builder .lbb-controls:has(.lbb-accordion[open]) .lbb-accordion:not([open]) {
        display: none;
    }

    /* Mobile in-dock CTA: Back + Continue, always visible at bottom of dock */
    .lbb-mobile-cta {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom, 0));
        background: var(--dark);
        border-top: 1px solid var(--border);
        flex: 0 0 auto;
        position: sticky;
        bottom: 0;
        z-index: 2;
    }
    .lbb-mobile-cta .lbb-btn-back {
        flex: 0 0 auto;
        padding: 0.85rem 1rem;
        min-height: 48px;
        width: auto;
        max-width: none;
    }
    .lbb-mobile-cta .lbb-btn-primary {
        flex: 1 1 auto;
        padding: 0.95rem 1rem;
        min-height: 48px;
        width: auto;
        max-width: none;
        font-size: 14px;
    }
}
/* Desktop: hide the in-dock mobile CTA */
@media (min-width: 768px) {
    .lbb-mobile-cta { display: none; }
}

/* ======================
   DESKTOP UPGRADE
   ====================== */
@media (min-width: 768px) {
    .lbb-app { padding: 2rem 1.5rem; }
    .lbb-builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: flex-start; }
    .lbb-canvas-wrap { padding: 1.5rem; position: sticky; top: 1rem; }
    .lbb-form-grid { grid-template-columns: 1fr 1fr; }
    .lbb-icons-grid { grid-template-columns: repeat(4, 1fr); }
    .lbb-trust { gap: 2rem; font-size: 14px; }
}
@media (min-width: 1024px) {
    .lbb-icons-grid { grid-template-columns: repeat(5, 1fr); }
}
