/* IO Windows configurator — self-contained styles (theme provides variables). */
.iow-app {
	--iow-navy: #0a2540;
	--iow-blue: #1e6fd9;
	--iow-sky: #eaf2fb;
	--iow-ink: #101828;
	--iow-mut: #5b6b7e;
	--iow-line: #dbe4ef;
	--iow-good: #0c7a43;
	max-width: 1120px;
	margin: 0 auto;
	color: var(--iow-ink);
	font-size: 16px;
}
.iow-app[data-loading] { opacity: 0.4; pointer-events: none; }
.iow-app * { box-sizing: border-box; }
.iow-app button { font: inherit; cursor: pointer; }

/* step tabs */
.iow-steps {
	display: flex; gap: 4px; flex-wrap: wrap;
	margin: 0 0 28px; padding: 6px;
	background: var(--iow-sky); border-radius: 14px;
}
.iow-step-tab {
	flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 8px; border: 0; border-radius: 10px;
	background: transparent; color: var(--iow-mut);
	font-weight: 600; font-size: 14px; white-space: nowrap;
}
.iow-step-tab span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: #fff; color: var(--iow-mut);
	font-size: 12px; box-shadow: 0 1px 2px rgba(16, 40, 74, 0.12);
}
.iow-step-tab.iow-active { background: var(--iow-navy); color: #fff; }
.iow-step-tab.iow-active span { background: var(--iow-blue); color: #fff; }
.iow-step-tab.iow-done { color: var(--iow-navy); }
.iow-step-tab.iow-done span { background: var(--iow-good); color: #fff; }

/* layout */
.iow-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) {
	.iow-layout { grid-template-columns: 1fr; }
	.iow-side { position: sticky; bottom: 0; z-index: 30; order: 2; }
}

.iow-panel { display: none; animation: iowfade 0.25s ease; }
.iow-panel.iow-active { display: block; }
@keyframes iowfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.iow-h { font-size: 26px; line-height: 1.2; margin: 0 0 6px; color: var(--iow-navy); }
.iow-sub { margin: 0 0 20px; color: var(--iow-mut); }
.iow-sub a { color: var(--iow-blue); }

/* option cards */
.iow-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.iow-cards-series { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.iow-cards-glass { grid-template-columns: 1fr; }
.iow-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
	padding: 18px; border: 2px solid var(--iow-line); border-radius: 14px; background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.iow-card:hover { border-color: var(--iow-blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 40, 74, 0.1); }
.iow-card.iow-selected { border-color: var(--iow-blue); box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.18); }
.iow-card.iow-disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; border-color: var(--iow-line); }
.iow-card-icon { color: var(--iow-navy); }
.iow-card-icon .iow-svg { width: 56px; height: 66px; }
.iow-card-name { font-weight: 700; color: var(--iow-navy); font-size: 17px; }
.iow-code { font-style: normal; font-weight: 600; font-size: 12px; color: var(--iow-mut); }
.iow-card-desc { color: var(--iow-mut); font-size: 14px; line-height: 1.45; }
.iow-card-from { margin-top: auto; font-weight: 700; color: var(--iow-blue); font-size: 14px; }
.iow-card-from.iow-included { color: var(--iow-good); }
.iow-tier {
	font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 3px 10px; border-radius: 99px; background: var(--iow-sky); color: var(--iow-navy);
}
.iow-tier-fortis { background: #e5f0ff; color: var(--iow-blue); }
.iow-tier-potomac { background: var(--iow-navy); color: #fff; }
.iow-feat { margin: 4px 0 8px; padding: 0 0 0 18px; color: var(--iow-mut); font-size: 13.5px; line-height: 1.6; }

/* size step */
.iow-size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 18px 0 6px; }
.iow-field label, .iow-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--iow-navy); }
.iow-size-pair { display: flex; gap: 6px; }
.iow-app input[type="number"], .iow-app select {
	width: 100%; padding: 11px 12px; border: 2px solid var(--iow-line); border-radius: 10px;
	font: inherit; font-size: 17px; background: #fff; color: var(--iow-ink);
}
.iow-app input[type="number"]:focus, .iow-app select:focus { border-color: var(--iow-blue); outline: none; }
.iow-size-pair select { width: 84px; flex: 0 0 auto; }
.iow-range-note { color: var(--iow-mut); font-size: 13.5px; margin: 4px 0 18px; }
.iow-field-wide { margin: 16px 0; }

/* pills */
.iow-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.iow-pill {
	padding: 9px 16px; border: 2px solid var(--iow-line); border-radius: 99px;
	background: #fff; color: var(--iow-ink); font-size: 14px; font-weight: 600;
}
.iow-pill em { font-style: normal; color: var(--iow-blue); font-weight: 700; }
.iow-pill:hover { border-color: var(--iow-blue); }
.iow-pill.iow-selected { border-color: var(--iow-blue); background: var(--iow-sky); }

/* checkboxes */
.iow-checks { margin-top: 18px; display: grid; gap: 10px; }
.iow-check {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
	border: 2px solid var(--iow-line); border-radius: 12px; background: #fff;
	font-size: 14.5px; color: var(--iow-mut); cursor: pointer;
}
.iow-check strong { color: var(--iow-ink); }
.iow-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--iow-blue); }

/* swatches */
.iow-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.iow-swatch {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 10px; width: 96px; border: 2px solid var(--iow-line); border-radius: 12px; background: #fff;
}
.iow-swatch:hover { border-color: var(--iow-blue); }
.iow-swatch.iow-selected { border-color: var(--iow-blue); box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.18); }
.iow-swatch.iow-disabled { opacity: 0.35; cursor: not-allowed; }
.iow-swatch-chip { width: 100%; height: 34px; border-radius: 8px; border: 1px solid rgba(16, 40, 74, 0.15); }
.iow-swatch-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--iow-ink); }
.iow-swatch-name em { display: block; font-style: normal; color: var(--iow-mut); font-weight: 500; font-size: 11px; }

/* review */
.iow-spec { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--iow-line); }
.iow-spec th, .iow-spec td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--iow-line); font-size: 14.5px; }
.iow-spec th { width: 38%; color: var(--iow-mut); font-weight: 600; background: #f8fafc; }
.iow-spec tr:last-child th, .iow-spec tr:last-child td { border-bottom: 0; }
.iow-spec-total th, .iow-spec-total td { font-weight: 800; color: var(--iow-navy); font-size: 17px; background: var(--iow-sky); }
.iow-review-note {
	padding: 14px 16px; background: #f0f7ee; border: 1px solid #cde3c8; border-radius: 12px;
	color: #2f5233; font-size: 14.5px; line-height: 1.55;
}

/* nav */
.iow-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.iow-btn { border: 0; border-radius: 12px; padding: 14px 26px; font-weight: 700; font-size: 16px; transition: transform 0.1s, box-shadow 0.15s; }
.iow-btn:active { transform: translateY(1px); }
.iow-btn-ghost { background: transparent; color: var(--iow-mut); border: 2px solid var(--iow-line); }
.iow-btn-ghost:hover { color: var(--iow-navy); border-color: var(--iow-navy); }
.iow-btn-primary { background: var(--iow-navy); color: #fff; }
.iow-btn-primary:hover { background: #123a63; box-shadow: 0 6px 18px rgba(10, 37, 64, 0.3); }
.iow-btn-cta { background: var(--iow-blue); color: #fff; display: none; }
.iow-btn-cta:hover { background: #1a5fc0; box-shadow: 0 6px 18px rgba(30, 111, 217, 0.35); }
.iow-btn-cta:disabled { opacity: 0.6; cursor: wait; }
.iow-error { display: none; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; }

/* sidebar */
.iow-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.iow-preview {
	background: linear-gradient(160deg, #f2f7fd, #e2edf9);
	border: 1px solid var(--iow-line); border-radius: 16px;
	padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.iow-preview svg { max-width: 200px; max-height: 210px; filter: drop-shadow(0 10px 18px rgba(16, 40, 74, 0.18)); }
.iow-preview-label { font-size: 13px; font-weight: 700; color: var(--iow-navy); }
.iow-pricebox {
	background: #fff; border: 1px solid var(--iow-line); border-radius: 16px; padding: 20px;
	box-shadow: 0 10px 30px rgba(16, 40, 74, 0.08);
}
.iow-price-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.iow-price-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--iow-mut); }
.iow-price { font-size: 32px; font-weight: 800; color: var(--iow-navy); }
.iow-price-per { font-size: 13px; color: var(--iow-mut); margin-top: 2px; min-height: 18px; }
.iow-breakdown { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--iow-line); display: grid; gap: 7px; }
.iow-breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--iow-mut); }
.iow-breakdown li span:last-child { font-weight: 600; color: var(--iow-ink); white-space: nowrap; }
.iow-trust { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--iow-line); display: grid; gap: 7px; }
.iow-trust li { font-size: 13px; color: var(--iow-mut); padding-left: 22px; position: relative; }
.iow-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--iow-good); font-weight: 800; }

@media (max-width: 900px) {
	.iow-steps { overflow-x: auto; flex-wrap: nowrap; }
	.iow-step-tab { font-size: 0; gap: 0; padding: 10px 12px; }
	.iow-step-tab span { font-size: 12px; }
	.iow-preview { display: none; }
	.iow-side { top: auto; }
	.iow-pricebox { border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(16, 40, 74, 0.18); }
	.iow-breakdown { display: none; }
}
