/**
 * Ready-made kits in the cart sidebar, plus the specification gate.
 * The sidebar is 320px with 20px of padding, so everything here is built for
 * roughly 280px of room. Dark to match the quote builder it sits inside.
 */

/* The sidebar is a flex column and the cart's item list has no flex-shrink of
   its own, so without this the kits below it squash the cart (and its empty
   message) to nothing. */
.sqb-cart-sidebar .sqb-cart-items {
	flex-shrink: 0;
	min-height: 84px;
}

/* The empty-cart block is trimmed a little so the first kit card lines up with
   the first product card across the layout. The 40px trolley was running to
   60px of line box on its own. */
.sqb-cart-sidebar .sqb-cart-empty { padding: 14px 0; }
.sqb-cart-sidebar .sqb-cart-empty-icon {
	font-size: 30px;
	line-height: 1;
	margin-bottom: 6px;
}

/* The sidebar is one solid slab by default, so anything inside it reads as part
   of the cart. Above the stacked breakpoint the column goes transparent and the
   cart and the kits become two cards with page background showing between them,
   which is the actual break. */
@media (min-width: 1025px) {
	.sqb-cart-sidebar {
		background: #0b1121;
		padding: 20px 20px 28px;
	}
	.sqb-cart-sidebar .sqb-cart-panel {
		flex-shrink: 0;
		padding: 16px;
		background: #131c31;
		border: 1px solid #1e2d4a;
		border-radius: 12px;
	}
	.sqb-kits {
		background: #131c31;
		border: 1px solid #1e2d4a;
	}
}

.sqb-kits {
	flex-shrink: 0;
	margin-top: 38px;
	padding: 14px;
	border-radius: 12px;
	color: #e2e8f0;
	container-type: inline-size;
}

.sqb-kits *, .sqb-kits *::before, .sqb-kits *::after { box-sizing: border-box; }

.sqb-kits-head { margin-bottom: 10px; }
.sqb-kits-head p { display: none; }
.sqb-kits-head h2 {
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 3px;
	letter-spacing: -.2px;
}
.sqb-kits-head p { font-size: 11.5px; color: #8896b0; margin: 0; line-height: 1.45; }

.sqb-kits-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.sqb-kit {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 13px;
	background: #0f172a;
	border: 1px solid #22314f;
	border-radius: 10px;
	transition: border-color .15s ease;
}
.sqb-kit:hover { border-color: #35507e; }

.sqb-kit-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.sqb-kit-top h3 { font-size: 13px; font-weight: 700; color: #fff; margin: 0; line-height: 1.35; min-width: 0; }
.sqb-kit-size {
	flex-shrink: 0;
	background: rgba(20,184,166,.14);
	border: 1px solid rgba(20,184,166,.35);
	color: #14b8a6;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 100px;
	white-space: nowrap;
}

/* Two lines is enough to say what it powers; the rest is in the document. */
.sqb-kit-desc {
	font-size: 11.5px;
	color: #8896b0;
	line-height: 1.45;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sqb-kit-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	font-size: 10.5px;
	color: #5a6a85;
	margin-bottom: 10px;
}

.sqb-kit-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	margin-top: auto;
	border-top: 1px solid #22314f;
}
.sqb-kit-price-label { font-size: 11px; color: #8896b0; }
.sqb-kit-price strong { font-size: 16px; font-weight: 800; color: #14b8a6; }

.sqb-kit-btn {
	width: 100%;
	margin-top: 10px;
	padding: 9px 12px;
	font: inherit;
	font-size: 11.5px;
	font-weight: 700;
	color: #fff;
	background: #14b8a6;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}
.sqb-kit-btn:hover { background: #0d9488; }
.sqb-kit-btn:focus-visible,
.sqb-kit-go:focus-visible,
.sqb-kit-close:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

.sqb-kits-note {
	margin: 12px 0 0;
	font-size: 10.5px;
	line-height: 1.5;
	color: #5a6a85;
}

/* Wider than the sidebar (an embedded page with its own layout), so the cards
   can sit side by side. */
@container (min-width: 560px) {
	.sqb-kits-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
	.sqb-kits-head p { display: block; }
}

/* Gate ----------------------------------------------------------------- */

.sqb-kit-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(4, 8, 18, .82);
	overflow-y: auto;
}
.sqb-kit-modal[hidden] { display: none; }

.sqb-kit-modal-box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #131c31;
	border: 1.5px solid #1e2d4a;
	border-radius: 14px;
	padding: 26px;
	color: #e2e8f0;
	font-family: inherit;
	max-height: 92vh;
	overflow-y: auto;
}

.sqb-kit-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	font-size: 22px;
	line-height: 1;
	color: #5a6a85;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: 6px;
}
.sqb-kit-close:hover { color: #fff; background: #1e2d4a; }

.sqb-kit-modal-box h3 { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 3px; }
.sqb-kit-modal-sub { font-size: 13px; color: #14b8a6; font-weight: 600; margin: 0 0 16px; }

.sqb-kit-step { display: none; }
.sqb-kit-step.is-active { display: block; }

.sqb-kit-help { font-size: 12.5px; color: #8896b0; line-height: 1.55; margin: 0 0 14px; }

.sqb-kit-field { margin-bottom: 12px; }
.sqb-kit-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #8896b0;
	margin-bottom: 5px;
}
.sqb-kit-field label span { font-weight: 400; color: #5a6a85; }

.sqb-kit-modal-box input[type="text"],
.sqb-kit-modal-box input[type="tel"],
.sqb-kit-modal-box input[type="email"] {
	width: 100%;
	min-width: 0;
	font: inherit;
	font-size: 14px;
	padding: 11px 13px;
	color: #e2e8f0;
	background: #0f172a;
	border: 1.5px solid #1e2d4a;
	border-radius: 8px;
	outline: none;
}
.sqb-kit-modal-box input:focus { border-color: #14b8a6; }
.sqb-kit-modal-box input.is-bad { border-color: #ef4444; }

.sqb-kit-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
	padding: 12px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: #14b8a6;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	text-decoration: none;
}
.sqb-kit-go:hover { background: #0d9488; color: #fff; }
.sqb-kit-go[disabled] { opacity: .55; cursor: not-allowed; }
.sqb-kit-go.slim { width: auto; margin-top: 0; flex-shrink: 0; }

.sqb-kit-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sqb-kit-row input { flex: 1 1 160px; }

.sqb-kit-msg { font-size: 12px; margin: 10px 0 0; min-height: 1.1em; color: #8896b0; }
.sqb-kit-msg.is-bad { color: #f87171; font-weight: 600; }
.sqb-kit-msg.is-good { color: #34d399; font-weight: 600; }

.sqb-kit-ref {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	margin-bottom: 14px;
	background: #0f172a;
	border: 1px solid #1e2d4a;
	border-radius: 9px;
}
.sqb-kit-ref span { font-size: 11.5px; color: #5a6a85; }
.sqb-kit-ref strong { font-size: 15px; font-weight: 800; color: #14b8a6; letter-spacing: .04em; }

.sqb-kit-pay { padding: 14px; background: #0f172a; border: 1px solid #1e2d4a; border-radius: 10px; }
.sqb-kit-pay + .sqb-kit-pay { margin-top: 12px; }
.sqb-kit-pay-title { display: block; font-size: 13px; color: #fff; margin-bottom: 4px; }

.sqb-kit-steps { margin: 0 0 12px; padding-left: 18px; font-size: 12.5px; color: #8896b0; }
.sqb-kit-steps li { margin-bottom: 5px; }
.sqb-kit-steps strong { color: #fff; }

.sqb-kit-code-label { display: block; font-size: 12px; font-weight: 700; color: #8896b0; margin-bottom: 6px; }
#sqb-kit-code { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.sqb-kit-or { position: relative; text-align: center; margin: 14px 0; }
.sqb-kit-or::before {
	content: '';
	position: absolute;
	top: 50%; left: 0; right: 0;
	height: 1px;
	background: #1e2d4a;
}
.sqb-kit-or span {
	position: relative;
	padding: 0 12px;
	background: #131c31;
	font-size: 11.5px;
	color: #5a6a85;
}

.sqb-kit-done {
	width: 52px;
	height: 52px;
	margin: 4px auto 12px;
	border-radius: 50%;
	background: #14b8a6;
	color: #fff;
	font-size: 26px;
	line-height: 52px;
	text-align: center;
	font-weight: 700;
}
.sqb-kit-done.is-waiting { background: #f59e0b; }
.sqb-kit-done-text { font-size: 13px; color: #8896b0; text-align: center; line-height: 1.6; margin: 0 0 16px; }

/* Stacked, the sidebar is a single dark bar, so the break is a rule rather
   than two cards. */
@media (max-width: 1024px) {
	.sqb-kits {
		margin-top: 16px;
		padding: 16px 0 0;
		border-top: 1px solid #1e2d4a;
		border-radius: 0;
	}
}

@media (max-width: 640px) {
	.sqb-kit-row .sqb-kit-go.slim { width: 100%; }
}
