/* SkyShot Team Configurator. Change the colours here. */
.sky-tc, .sky-intro { --navy: #071B42; --blue: #0877D1; --line: #dbe1ea; --bg: #f5f7fb; --ok: #1b8a3a; --bad: #b3261e; max-width: 1200px; margin: 0 auto; color: #14213d; font-size: 16px; line-height: 1.45; }
.sky-tc *, .sky-tc *::before, .sky-tc *::after { box-sizing: border-box; }
.sky-intro { padding: 0 16px; }
.sky-tc h2 { margin: 0 0 12px; font-size: 1.5rem; color: var(--navy); }
.sky-tc h3 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--navy); }
.sky-hint { color: #5b667a; font-size: .9rem; margin: 6px 0 12px; }
.sky-warn { color: #a15c00; }

/* progress */
.sky-progress { display: flex; list-style: none; margin: 0 0 16px; padding: 8px; gap: 4px; overflow-x: auto; background: var(--bg); border-radius: 12px; }
.sky-progress li { flex: 1 0 auto; }
.sky-progress button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: #5b667a; font: inherit; font-size: .85rem; white-space: nowrap; }
.sky-progress button:disabled { cursor: default; opacity: .55; }
.sky-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .8rem; }
.is-current button { background: var(--navy); color: #fff; }
.is-current .sky-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.is-done .sky-num { background: var(--ok); border-color: var(--ok); color: #fff; }

/* layout: preview + controls */
.sky-main { display: grid; gap: 20px; padding-bottom: 96px; }
.sky-main.has-preview { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
.sky-panel, .sky-preview-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.sky-preview { align-self: start; position: sticky; top: 12px; }

/* cards */
.sky-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sky-cards-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sky-cards-designs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.sky-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; text-align: center; color: inherit; }
.sky-card:hover { border-color: var(--blue); }
.sky-card.is-selected { border-color: var(--blue); background: #eef6ff; }
.sky-card-img { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; background: var(--bg); border-radius: 8px; overflow: hidden; }
.sky-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sky-emoji { font-size: 2.2rem; }
.sky-card small ul { margin: 4px 0 0; padding-left: 18px; text-align: left; font-size: .8rem; }
.sky-card em { font-style: normal; color: var(--blue); font-weight: 600; font-size: .85rem; }
.sky-tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; }

/* qty + toggle */
.sky-qty { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.sky-qty button { width: 48px; border: 0; background: var(--bg); font-size: 1.4rem; cursor: pointer; }
.sky-qty input { width: 84px; text-align: center; border: 0; font-size: 1.2rem; font-weight: 700; -moz-appearance: textfield; }
.sky-toggle { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sky-toggle button { flex: 1; padding: 12px; border: 2px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.sky-toggle .is-on { border-color: var(--blue); background: #eef6ff; color: var(--navy); }

/* colours */
.sky-colour { margin-bottom: 12px; }
.sky-colour > span { display: block; font-weight: 600; margin-bottom: 6px; }
.sky-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sky-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa5b8; cursor: pointer; }
.sky-sw.is-on { box-shadow: 0 0 0 3px var(--blue); }
.sky-swatches input[type=color] { width: 38px; height: 34px; border: 0; padding: 0; background: none; }
.sky-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #333; margin-right: 4px; vertical-align: middle; }

/* forms */
.sky-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.sky-field { margin-bottom: 14px; }
.sky-field label, .sky-check { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.sky-check { margin-bottom: 12px; }
.sky-tc input[type=text], .sky-tc input[type=email], .sky-tc input[type=tel], .sky-tc input[type=date], .sky-tc input[type=number], .sky-tc select, .sky-tc textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c2d3; border-radius: 8px; font: inherit; background: #fff; }
.sky-tc input:focus, .sky-tc select:focus, .sky-tc textarea:focus, .sky-tc button:focus-visible { outline: 3px solid rgba(8, 119, 209, .35); outline-offset: 1px; }
.sky-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) 40px; gap: 10px; align-items: end; padding: 12px; margin-bottom: 10px; background: var(--bg); border-radius: 10px; }

/* buttons */
.sky-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.sky-btn:disabled { opacity: .6; cursor: wait; }
.sky-btn-light { background: #fff; color: var(--navy); border: 2px solid var(--line); padding: 9px 16px; }
.sky-file.is-busy { opacity: .6; pointer-events: none; }
.sky-file.is-busy::after { content: ' …'; }
.sky-x { border: 0; background: transparent; color: var(--bad); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.sky-link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.sky-file-chip { display: inline-block; margin: 6px 0 0; padding: 4px 10px; background: var(--bg); border-radius: 20px; font-size: .85rem; }
.sky-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }

/* table */
.sky-scroll { overflow-x: auto; }
.sky-table { width: 100%; border-collapse: collapse; }
.sky-table th, .sky-table td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
.sky-table td input, .sky-table td select { min-width: 80px; padding: 7px 8px; }
.sky-price td:last-child { text-align: right; }
.sky-total td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--navy); }

/* review */
.sky-summary { margin: 0 0 16px; }
.sky-sum { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sky-sum dt { font-weight: 700; } .sky-sum dd { margin: 0; }

/* preview */
.sky-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sky-tabs button { padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 20px; cursor: pointer; font: inherit; font-size: .85rem; }
.sky-tabs .is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sky-svg-wrap { background: var(--bg); border-radius: 12px; padding: 12px; }
.sky-svg { width: 100%; max-height: 460px; display: block; margin: 0 auto; }
.layer-primary { fill: var(--p); } .layer-secondary { fill: var(--s); } .layer-accent { fill: var(--a); }
.sky-svg path, .sky-svg polygon, .sky-svg rect.layer-primary, .sky-svg rect.layer-secondary, .sky-svg rect.layer-accent { stroke: rgba(0, 0, 0, .18); stroke-width: .8; }
.sky-zone { fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-dasharray: 3 2; stroke-width: 1; }
.sky-zone-label { fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: 2px; }
.sky-upload-preview { max-width: 100%; border-radius: 10px; }

/* messages */
.sky-errors { background: #fdecea; border: 1px solid #f5b5b0; color: var(--bad); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.sky-errors ul { margin: 4px 0 0; padding-left: 20px; }
.sky-notice { background: #e8f6ec; border: 1px solid #b6e0c1; color: #14612b; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.sky-success { text-align: center; padding: 40px 20px; }

/* sticky bottom bar (quantity + total + Continue) */
.sky-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-top: -84px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -4px 20px rgba(7, 27, 66, .12); }
.sky-bar-info { display: flex; flex-direction: column; } .sky-bar-info span { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.sky-bar-btns { display: flex; gap: 8px; }

/* mobile: one column, preview first, full-width sticky bar */
@media (max-width: 800px) {
	.sky-main.has-preview, .sky-grid { grid-template-columns: 1fr; }
	.sky-preview { position: static; }
	.sky-sum { grid-template-columns: 1fr auto; } .sky-sum dt { grid-column: 1 / -1; }
	.sky-bar { position: fixed; left: 8px; right: 8px; bottom: 8px; margin: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
	.sky-progress .sky-lbl { display: none; } .sky-progress .is-current .sky-lbl { display: inline; }
	.sky-main { padding-bottom: 110px; }
}
