.fws-shop {
	--fws-navy: #202040;
	--fws-cyan: #40C0F0;
	--fws-cyan-dark: #185FA5;
	--fws-bg: #ffffff;
	--fws-line: rgba(32,32,64,0.12);
	--fws-muted: #6b6b82;
	font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--fws-navy);
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.fws-shop *, .fws-modal * { box-sizing: border-box; }
.fws-loading { padding: 40px; text-align: center; color: var(--fws-muted); }

.fws-ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.fws-send .fws-ic, .fws-submit .fws-ic { vertical-align: -3px; margin-right: 2px; }
.fws-segbtn .fws-ic { vertical-align: -3px; margin-right: 2px; }
.fws-var-check .fws-ic { color: var(--fws-cyan); vertical-align: -2px; }
.fws-var-wrap.fws-on .fws-var-check .fws-ic { color: var(--fws-cyan); }
.fws-promo-ic .fws-ic { color: #D85A30; vertical-align: -3px; }
.fws-var-wrap.fws-on .fws-promo-ic .fws-ic { color: #ffc9b0; }
.fws-ok .fws-ic { color: #1d9e75; }
.fws-channels-ext .fws-ic { vertical-align: -2px; }


/* Controls */
.fws-controls { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.fws-ctrl-block { flex: 1; min-width: 260px; }
.fws-ctrl-label { font-size: 13px; color: var(--fws-muted); margin-bottom: 6px; font-weight: 500; }
.fws-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.fws-segbtn {
	flex: 1; min-width: 90px;
	background: #fff; border: 1px solid var(--fws-line);
	border-radius: 10px; padding: 10px 12px;
	font-family: inherit; font-size: 14px; font-weight: 500;
	color: var(--fws-muted); cursor: pointer; transition: .15s;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.fws-segbtn:hover { border-color: var(--fws-cyan); }
.fws-seg:not(.fws-seg-loc) .fws-segbtn.fws-on { background: var(--fws-cyan); border-color: var(--fws-cyan); color: var(--fws-navy); }
.fws-seg-loc .fws-segbtn.fws-on { background: var(--fws-navy); border-color: var(--fws-navy); color: #fff; }
.fws-seg-loc .fws-segbtn.fws-obca.fws-on { background: var(--fws-cyan); border-color: var(--fws-cyan); color: var(--fws-navy); }

/* Layout */
.fws-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.fws-catalog { min-width: 0; }
.fws-cat { font-size: 16px; font-weight: 600; margin: 22px 0 12px; color: var(--fws-navy); padding-bottom: 6px; border-bottom: 2px solid var(--fws-cyan); display: inline-block; }
.fws-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1100px) {
	.fws-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 28px; }
}

/* Product card */
.fws-prod {
	position: relative; background: var(--fws-bg);
	border: 1.5px solid #eceef4; border-radius: 16px; padding: 16px 14px 14px;
	transition: border-color .15s, box-shadow .15s;
}
.fws-prod:hover { border-color: #d8dbe6; }
.fws-prod.fws-feat { border: 2px solid var(--fws-cyan); }
.fws-badge {
	position: absolute; top: 14px; right: 16px;
	background: var(--fws-navy); color: #fff;
	font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 8px;
	letter-spacing: .5px; z-index: 1;
}
.fws-prod-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.fws-icon-tile {
	width: 42px; height: 42px; border-radius: 11px; background: #E6F4FC;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fws-icon-tile .fws-ic { color: var(--fws-cyan); }
.fws-prod-title { min-width: 0; }
.fws-prod-name { font-weight: 700; font-size: 16px; color: var(--fws-navy); line-height: 1.25; }
.fws-prod-sub { font-size: 12px; color: #8a8a9e; margin-top: 1px; }

/* Spec chips */
.fws-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fws-chip {
	display: inline-flex; align-items: center; gap: 4px;
	background: #f1f3f9; color: #4a4a66; border-radius: 7px;
	padding: 4px 9px; font-size: 12px; font-weight: 600;
}
.fws-chip .fws-ic { vertical-align: -2px; }
.fws-chip-fiber { background: #E1F5EE; color: #0F6E56; }

/* Variant rows */
.fws-variants { display: flex; flex-direction: column; gap: 8px; }
.fws-var-wrap {
	border: 1.5px solid #eceef4; border-radius: 12px; overflow: hidden;
	transition: border-color .15s, background .15s;
}
.fws-var-wrap:hover { border-color: var(--fws-cyan); }
.fws-var-wrap.fws-on { border-color: var(--fws-navy); background: var(--fws-navy); }
.fws-var-row { display: flex; align-items: center; gap: 0; }
.fws-var-main {
	flex: 1; min-width: 0; background: transparent; border: none;
	padding: 13px 14px; font-family: inherit; cursor: pointer; text-align: left;
	display: flex; align-items: center;
}
.fws-var-l { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.fws-var-n { font-weight: 600; font-size: 15px; color: var(--fws-navy); }
.fws-var-wrap.fws-on .fws-var-n { color: #fff; }
.fws-var-info { font-size: 12px; color: #8a8a9e; font-weight: 500; }
.fws-var-wrap.fws-on .fws-var-info { color: #9a9ab8; }
.fws-var-check { color: var(--fws-cyan); font-size: 15px; margin-left: 4px; }

/* Inline channel link, between name and price */
.fws-chan-link {
	align-self: center; margin: 0 14px 0 4px; flex-shrink: 0;
	background: #fff; border: 1px solid var(--fws-cyan); color: var(--fws-cyan-dark);
	border-radius: 8px; padding: 6px 11px; font-family: inherit; font-size: 12px;
	font-weight: 600; cursor: pointer; transition: .15s;
	display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.fws-chan-link:hover { background: #E6F1FB; }
.fws-chan-link .fws-ic { vertical-align: -2px; }

.fws-var-pricebtn {
	background: transparent; border: none; cursor: pointer; padding: 13px 16px 13px 8px;
	display: flex; align-items: center; flex-shrink: 0;
}
.fws-var-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.fws-var-num { font-size: 24px; font-weight: 700; color: var(--fws-navy); line-height: 1; }
.fws-var-wrap.fws-on .fws-var-num { color: #fff; }
.fws-var-unit { font-size: 13px; font-weight: 600; color: #8a8a9e; }
.fws-var-wrap.fws-on .fws-var-unit { color: #9a9ab8; }
.fws-old { text-decoration: line-through; color: #c0392b; font-weight: 600; font-size: 13px; opacity: .75; }
.fws-var-wrap.fws-on .fws-old { color: #ff9c92; }
.fws-promo-ic { color: #D85A30; font-size: 16px; }
.fws-var-wrap.fws-on .fws-promo-ic { color: #ffc9b0; }

/* Per-variant chips (speeds, params) */
.fws-vchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 11px; }
.fws-vchip {
	display: inline-flex; align-items: center; gap: 4px;
	background: #f1f3f9; color: #4a4a66; border-radius: 7px;
	padding: 3px 8px; font-size: 11px; font-weight: 600;
}
.fws-var-wrap.fws-on .fws-vchip { background: #2e2e54; color: #c8c8e0; }
.fws-vchip .fws-ic { vertical-align: -2px; }
.fws-unavail { font-size: 13px; color: var(--fws-muted); margin: 6px 0 0; }

/* Towar modes + qty */
.fws-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fws-mode {
	flex: 1; min-width: 120px; background: #fff; border: 1.5px solid #eceef4; border-radius: 11px;
	padding: 11px 13px; font-family: inherit; cursor: pointer;
	transition: .15s; display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.fws-mode:hover { border-color: var(--fws-cyan); }
.fws-mode.fws-on { background: #E6F1FB; border-color: var(--fws-cyan); }
.fws-mode-l { font-size: 12px; color: var(--fws-muted); font-weight: 600; }
.fws-mode.fws-on .fws-mode-l { color: var(--fws-cyan-dark); }
.fws-mode-p { font-size: 16px; font-weight: 700; color: var(--fws-navy); }
.fws-qty-row { display: flex; align-items: center; justify-content: space-between; }
.fws-qty-label { font-size: 13px; color: var(--fws-muted); font-weight: 600; }
.fws-qty { display: flex; align-items: center; gap: 10px; }
.fws-qty button {
	width: 34px; height: 34px; border: 1.5px solid #eceef4; background: #fff;
	border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--fws-navy); line-height: 1;
	transition: .15s;
}
.fws-qty button:hover { border-color: var(--fws-cyan); }
.fws-qn { min-width: 24px; text-align: center; font-weight: 700; font-size: 16px; }

/* Cart */
.fws-cart {
	position: sticky; top: 16px; background: var(--fws-bg);
	border: 1px solid var(--fws-line); border-radius: 14px; padding: 16px;
}
.fws-cart-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.fws-cart-head .fws-ic { color: var(--fws-cyan); vertical-align: -3px; }
.fws-cart-term { font-size: 12px; color: var(--fws-muted); margin: 4px 0 12px; }
.fws-cart-items { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.fws-cart-empty { font-size: 13px; color: var(--fws-muted); padding: 6px 0; }
.fws-cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.fws-cr-l { color: var(--fws-navy); }
.fws-cr-v { color: var(--fws-muted); white-space: nowrap; }
.fws-cr-meta { display: block; font-size: 11px; color: var(--fws-muted); margin-top: 2px; }
.fws-cr-x { border: none; background: none; color: #b9281f; cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.fws-cart-row.fws-fee .fws-cr-l, .fws-cart-row.fws-fee .fws-cr-v { color: #BA7517; font-size: 12px; }
.fws-sub { color: var(--fws-muted); font-size: 12px; }
.fws-warn { color: #b9281f; font-size: 11px; }
.fws-cart-sum { border-top: 1px solid var(--fws-line); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.fws-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fws-muted); }
.fws-sum-row strong { color: var(--fws-navy); font-size: 14px; }
.fws-send {
	width: 100%; margin-top: 14px; background: var(--fws-cyan); color: var(--fws-navy);
	border: none; border-radius: 10px; padding: 12px; font-family: inherit;
	font-weight: 600; font-size: 15px; cursor: pointer; transition: .15s;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.fws-send:hover { background: #2aa8da; }
.fws-send:disabled { opacity: .5; cursor: not-allowed; }

/* Mobile bar + drawer */
.fws-mobile-bar { display: none; }
.fws-drawer-backdrop { display: none; }

@media (max-width: 860px) {
	.fws-layout { grid-template-columns: 1fr; }
	.fws-cart {
		position: fixed; top: 0; right: 0; height: 100%; width: 88%; max-width: 360px;
		border-radius: 0; z-index: 100000; overflow-y: auto;
		transform: translateX(100%); transition: transform .25s ease;
		box-shadow: -8px 0 24px rgba(0,0,0,.15);
	}
	.fws-drawer-open .fws-cart { transform: translateX(0); }
	.fws-drawer-backdrop {
		display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
		z-index: 99999; opacity: 0; pointer-events: none; transition: opacity .25s;
	}
	.fws-drawer-open .fws-drawer-backdrop { opacity: 1; pointer-events: auto; }
	.fws-mobile-bar {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998;
		justify-content: space-between; align-items: center;
		background: var(--fws-navy); color: #fff; border: none;
		padding: 14px 18px; font-family: inherit; font-size: 15px; font-weight: 600;
		cursor: pointer;
	}
	.fws-mobile-bar .fws-ic { color: var(--fws-cyan); margin-right: 4px; vertical-align: -3px; }
	.fws-mobile-sum { color: var(--fws-cyan); }
}

/* Desktop drawer mode (setting: koszyk_desktop = drawer) */
.fws-edge-bar { display: none; }
.fws-cart-close { display: none; }
@media (min-width: 861px) {
	.fws-desktop-drawer .fws-layout { grid-template-columns: 1fr; }
	.fws-desktop-drawer .fws-cart {
		position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw;
		border-radius: 0; z-index: 100000; overflow-y: auto;
		transform: translateX(100%); transition: transform .28s ease;
		box-shadow: -8px 0 28px rgba(0,0,0,.18); border: none;
	}
	.fws-desktop-drawer.fws-drawer-open .fws-cart { transform: translateX(0); }
	.fws-desktop-drawer .fws-drawer-backdrop {
		display: block; position: fixed; inset: 0; background: rgba(20,20,40,.4);
		z-index: 99999; opacity: 0; pointer-events: none; transition: opacity .28s;
	}
	.fws-desktop-drawer.fws-drawer-open .fws-drawer-backdrop { opacity: 1; pointer-events: auto; }
	.fws-desktop-drawer .fws-cart-close {
		display: block; position: absolute; top: 12px; right: 14px; z-index: 2;
		border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #9a9aae;
	}
	.fws-desktop-drawer .fws-edge-bar {
		display: flex; flex-direction: column; align-items: center; gap: 8px;
		position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 99990;
		background: var(--fws-navy); color: #fff; border: none; cursor: pointer;
		padding: 16px 10px; border-radius: 12px 0 0 12px; font-family: inherit;
		box-shadow: -4px 0 16px rgba(0,0,0,.15); transition: padding .15s;
	}
	.fws-desktop-drawer .fws-edge-bar:hover { padding-right: 14px; }
	.fws-desktop-drawer.fws-drawer-open .fws-edge-bar { display: none; }
	.fws-edge-bar .fws-ic { color: var(--fws-cyan); }
	.fws-edge-count {
		background: var(--fws-cyan); color: var(--fws-navy); font-size: 12px; font-weight: 700;
		min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center;
		justify-content: center; padding: 0 5px;
	}
	.fws-edge-sum { font-size: 13px; font-weight: 700; color: var(--fws-cyan); writing-mode: vertical-rl; transform: rotate(180deg); }
	.fws-edge-label { font-size: 12px; font-weight: 600; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 1px; }
}

/* Lead form modal */
.fws-modal {
	--fws-navy: #202040;
	--fws-cyan: #40C0F0;
	--fws-cyan-dark: #185FA5;
	--fws-line: rgba(32,32,64,0.12);
	--fws-muted: #6b6b82;
	position: fixed; inset: 0; z-index: 100001; background: rgba(32,32,64,.55);
	display: flex; align-items: center; justify-content: center; padding: 16px;
	font-family: 'Quicksand', sans-serif;
}
.fws-modal-box {
	background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 460px;
	max-height: 95vh; overflow-y: auto; position: relative; color: var(--fws-navy, #202040);
	scrollbar-width: thin; scrollbar-color: #d8dce6 transparent;
}
.fws-modal-box::-webkit-scrollbar { width: 6px; }
.fws-modal-box::-webkit-scrollbar-track { background: transparent; }
.fws-modal-box::-webkit-scrollbar-thumb { background: #dfe3ec; border-radius: 6px; }
.fws-modal-box::-webkit-scrollbar-thumb:hover { background: #c8cedd; }
.fws-modal-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #9a9aae; }
.fws-modal-box h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.fws-modal-sum { background: #f4f6fb; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.fws-modal-sum > div { display: flex; justify-content: space-between; font-size: 13px; color: #6b6b82; margin-bottom: 4px; }
.fws-modal-sum > div strong { color: #202040; font-size: 14px; }
.fws-modal-term { justify-content: flex-start !important; font-size: 12px !important; margin-top: 4px; }
.fws-field { margin-bottom: 12px; }
.fws-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: #6b6b82; }
.fws-field input, .fws-field textarea {
	width: 100%; border: 1px solid rgba(32,32,64,.18); border-radius: 9px;
	padding: 10px 12px; font-family: inherit; font-size: 14px; color: #202040;
}
.fws-field input:focus, .fws-field textarea:focus { outline: none; border-color: #40C0F0; box-shadow: 0 0 0 3px rgba(64,192,240,.18); }
.fws-rodo { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: #6b6b82; line-height: 1.45; margin: 4px 0 8px; cursor: pointer; padding: 8px 10px; border-radius: 9px; border: 1.5px solid transparent; transition: .15s; }
.fws-rodo input { margin-top: 2px; flex-shrink: 0; }
.fws-rodo-error { border-color: #e05548; background: #fdf5f4; }
.fws-rodo-error span { color: #c0392b; }
.fws-err { display: block; color: #b9281f; font-size: 12px; margin-top: 4px; line-height: 1.35; }
.fws-err:empty { display: none; }
.fws-err-general { margin-top: 8px; }

/* Invalid field highlight */
.fws-field-error input, .fws-field-error textarea {
	border-color: #e05548 !important; background: #fdf5f4;
}
.fws-field-error input:focus, .fws-field-error textarea:focus {
	border-color: #e05548 !important; box-shadow: 0 0 0 3px rgba(224,85,72,.16) !important;
}
.fws-field-error label { color: #c0392b; }
.fws-submit {
	width: 100%; background: var(--fws-cyan, #40C0F0); color: #202040; border: none;
	border-radius: 10px; padding: 13px; font-family: inherit; font-weight: 600;
	font-size: 15px; cursor: pointer; margin-top: 6px;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.fws-submit:hover { background: #2aa8da; }
.fws-submit:disabled { opacity: .6; cursor: wait; }
.fws-ok { text-align: center; color: #1d9e75; font-size: 52px; margin: 6px 0; }
.fws-code-box { background: #f4f6fb; border-radius: 12px; padding: 14px; text-align: center; font-size: 13px; color: #6b6b82; margin: 14px 0 8px; }
.fws-code { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: #202040; display: block; margin-top: 4px; }
.fws-code-hint { font-size: 12px; color: #6b6b82; text-align: center; }
.fws-contact { font-size: 12px; color: #6b6b82; text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(32,32,64,.1); }

/* Channel-list modal */
.fws-modal-channels { z-index: 100002; }
.fws-channels-box { max-width: 920px; width: 96%; height: 86vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.fws-channels-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-bottom: 1px solid rgba(32,32,64,.1);
	font-weight: 600; font-size: 15px; color: #202040; flex-shrink: 0;
}
.fws-channels-head .fws-ic { color: #40C0F0; vertical-align: -3px; }
.fws-channels-actions { display: flex; align-items: center; gap: 14px; }
.fws-channels-ext { font-size: 13px; font-weight: 500; color: #185FA5; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fws-channels-ext:hover { text-decoration: underline; }
.fws-channels-box .fws-modal-x { position: static; font-size: 26px; }
.fws-channels-frame { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 860px) {
	.fws-channels-box { height: 92vh; width: 98%; }
	.fws-channels-ext span { display: none; }
}

@media (max-width: 480px) {
	.fws-var-row { flex-wrap: wrap; }
	.fws-var-main { flex: 1 1 60%; }
	.fws-var-pricebtn { padding: 13px 14px; }
	.fws-chan-link { order: 3; margin: 0 14px 11px; }
}

/* Wider lead form on desktop */
.fws-form-box { max-width: 480px; }
.fws-form-box.fws-form-wide { max-width: 620px; }
.fws-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fws-form-grid .fws-field { margin-bottom: 12px; }
.fws-field-full { grid-column: 1 / -1; }
.fws-field-city { grid-column: 1 / -1; }
/* Street + number + (apartment) share one line via a flex sub-row. */
.fws-addr-line { grid-column: 1 / -1; display: flex; gap: 10px; }
.fws-addr-line .fws-field { margin: 0; }
.fws-addr-line .fws-field-street { flex: 1 1 auto; }
.fws-addr-line .fws-field-num { flex: 0 0 72px; }
.fws-addr-line .fws-field-apt { flex: 0 0 78px; }
@media (max-width: 560px) {
	.fws-form-grid { grid-template-columns: 1fr; }
	.fws-field-street, .fws-field-num, .fws-field-city { grid-column: 1 / -1; }
}

/* Map button + coverage status */
.fws-map-btn {
	width: 100%; background: #fff; border: 1px solid var(--fws-cyan); color: var(--fws-cyan-dark);
	border-radius: 9px; padding: 10px; font-family: inherit; font-size: 13px; font-weight: 600;
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	margin-bottom: 8px; transition: .15s;
}
.fws-map-btn:hover { background: #E6F1FB; }
.fws-cov-status { font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.fws-cov-status:empty { display: none; }
.fws-cov-loading { background: #f1f3f9; color: #6b6b82; }
.fws-cov-ok { background: #E1F5EE; color: #0F6E56; }
.fws-cov-no { background: #E6F1FB; color: #185FA5; align-items: flex-start; line-height: 1.45; }
.fws-cov-no .fws-ic { margin-top: 1px; }
.fws-cov-status .fws-ic { flex-shrink: 0; }

/* Coverage map modal */
.fws-modal-map { z-index: 100002; }
.fws-map-box { max-width: 820px; width: 96%; height: 80vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.fws-map-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(32,32,64,.1); font-weight: 600; font-size: 15px; color: #202040; flex-shrink: 0; }
.fws-map-head .fws-ic { color: #40C0F0; vertical-align: -3px; }
.fws-map-box .fws-modal-x { position: static; font-size: 26px; }
.fws-map-hint { padding: 8px 16px; font-size: 12px; color: #6b6b82; background: #f7f8fb; flex-shrink: 0; }
.fws-map-canvas { flex: 1; width: 100%; }
.fws-map-canvas .mapboxgl-popup-content { font-family: 'Quicksand', sans-serif; }

/* Map search box */
.fws-map-search { position: relative; padding: 10px 16px 0; flex-shrink: 0; z-index: 2; }
.fws-map-search-wrap { display: flex; align-items: center; gap: 8px; border: 1.5px solid #eceef4; border-radius: 10px; padding: 0 12px; background: #fff; }
.fws-map-search-wrap .fws-ic { color: #8a8a9e; flex-shrink: 0; }
.fws-map-search-input { flex: 1; border: none; outline: none; padding: 11px 0; font-family: inherit; font-size: 14px; color: var(--fws-navy); background: transparent; }
.fws-map-results { position: absolute; left: 16px; right: 16px; top: 100%; margin-top: 4px; background: #fff; border: 1px solid #e0e3ec; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; display: none; z-index: 5; }
.fws-map-res { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; cursor: pointer; color: var(--fws-navy); border-bottom: 1px solid #f2f3f7; }
.fws-map-res:last-child { border-bottom: none; }
.fws-map-res:hover { background: #E6F1FB; }
.fws-map-res .fws-ic { color: var(--fws-cyan); flex-shrink: 0; }
.fws-map-res > span:first-of-type { flex: 1; }
.fws-map-res-foreign { font-size: 11px; font-weight: 600; color: #0F6E56; background: #E1F5EE; border-radius: 6px; padding: 2px 7px; }
.fws-map-res-empty { padding: 12px 14px; font-size: 13px; color: #8a8a9e; }

/* Cart category headers */
.fws-cart-cat {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
	color: var(--fws-cyan-dark); margin: 12px 0 6px; padding-bottom: 3px;
	border-bottom: 1px solid var(--fws-line);
}
.fws-cart-cat:first-child { margin-top: 0; }
.fws-old-sm { font-size: 11px; margin-right: 4px; }

/* Activation note on product card */
.fws-akt-note {
	font-size: 12px; color: #6b6b82; margin-top: 10px;
	display: flex; align-items: center; gap: 5px;
}
.fws-akt-note .fws-old { font-size: 12px; }
.fws-akt-note strong { color: var(--fws-navy); font-weight: 600; }

/* Product card with supplementary image (towary) */
.fws-prod-img { display: flex; gap: 16px; align-items: stretch; }
.fws-prod-img .fws-prod-main { flex: 1; min-width: 0; }
.fws-prod-photo {
	flex-shrink: 0; width: 120px; align-self: center;
	border-radius: 12px; overflow: hidden; background: #eef1f7;
}
.fws-prod-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 560px) {
	.fws-prod-img { flex-direction: column-reverse; }
	.fws-prod-photo { width: 100%; max-height: 160px; align-self: stretch; }
	.fws-prod-photo img { aspect-ratio: auto; height: 160px; }
}

/* ============================================================
   STYLE VARIANTS (ustawienie: styl)
   Base CSS above = "minimal". These blocks override for the
   "zywy" (lively/sales) and "solidny" (corporate) themes.
   ============================================================ */

/* ---- ŻYWY (sprzedażowy) ---- */
.fws-style-zywy .fws-prod {
	border: 2px solid #e4e7f0; border-radius: 18px; padding: 18px 16px 16px;
	box-shadow: 0 2px 10px rgba(32,32,64,.04);
}
.fws-style-zywy .fws-prod:hover { border-color: var(--fws-cyan); box-shadow: 0 8px 22px rgba(32,32,64,.10); }
.fws-style-zywy .fws-prod.fws-feat { border-color: var(--fws-cyan); box-shadow: 0 8px 22px rgba(64,192,240,.18); }
.fws-style-zywy .fws-icon-tile { width: 48px; height: 48px; border-radius: 13px; background: var(--fws-navy); }
.fws-style-zywy .fws-icon-tile .fws-ic { color: var(--fws-cyan); }
.fws-style-zywy .fws-prod-name { font-size: 17px; }
.fws-style-zywy .fws-cat {
	font-size: 17px; font-weight: 700; border-bottom: none;
	padding: 4px 14px; background: var(--fws-navy); color: #fff; border-radius: 20px;
}
.fws-style-zywy .fws-chip { border-radius: 20px; background: #E6F1FB; color: var(--fws-cyan-dark); padding: 4px 11px; }
.fws-style-zywy .fws-chip-fiber { background: #E1F5EE; color: #0F6E56; }
.fws-style-zywy .fws-badge { background: #D85A30; border-radius: 20px; box-shadow: 0 3px 10px rgba(216,90,48,.3); }
/* Towar buy/rent: selected fills with color */
.fws-style-zywy .fws-mode { border-width: 2px; border-radius: 12px; }
.fws-style-zywy .fws-mode.fws-on { background: var(--fws-cyan); border-color: var(--fws-cyan); }
.fws-style-zywy .fws-mode.fws-on .fws-mode-l { color: #0a4763; }
.fws-style-zywy .fws-mode.fws-on .fws-mode-p { color: #0a2540; }
/* Variant rows: stronger */
.fws-style-zywy .fws-var-wrap { border-width: 2px; border-radius: 13px; }
.fws-style-zywy .fws-var-wrap.fws-on { background: var(--fws-navy); border-color: var(--fws-navy); box-shadow: 0 6px 16px rgba(32,32,64,.18); }
.fws-style-zywy .fws-var-num { font-size: 25px; }
/* Image panel gets its own surface */
.fws-style-zywy .fws-prod-img { padding: 0; overflow: hidden; gap: 0; }
.fws-style-zywy .fws-prod-img .fws-prod-main { padding: 18px 16px 16px 18px; }
.fws-style-zywy .fws-prod-photo {
	width: 140px; border-radius: 0; align-self: stretch; background: #f4f7fc;
	border-left: 1px solid #eef0f5; display: flex; align-items: center; justify-content: center;
}
.fws-style-zywy .fws-prod-photo img { width: 100%; height: 100%; padding: 10px; aspect-ratio: auto; object-fit: contain; }
.fws-style-zywy .fws-send { box-shadow: 0 6px 16px rgba(64,192,240,.32); }
.fws-style-zywy .fws-akt-note { background: #FFF4E8; color: #9A5510; border-radius: 9px; padding: 8px 11px; }
.fws-style-zywy .fws-akt-note strong { color: #9A5510; }

/* ---- SOLIDNY (korporacyjny) ---- */
.fws-style-solidny .fws-prod {
	border: 1px solid #d8dce8; border-radius: 10px; padding: 15px 16px 14px;
	border-top: 4px solid var(--fws-navy);
}
.fws-style-solidny .fws-prod:hover { border-color: #c2c8da; }
.fws-style-solidny .fws-prod.fws-feat { border-top-color: var(--fws-cyan); border-top-width: 4px; }
.fws-style-solidny .fws-icon-tile { border-radius: 8px; background: #eef1f7; }
.fws-style-solidny .fws-icon-tile .fws-ic { color: var(--fws-navy); }
.fws-style-solidny .fws-cat {
	font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--fws-navy);
	border-radius: 0; padding-bottom: 5px;
}
.fws-style-solidny .fws-chip { border-radius: 4px; }
.fws-style-solidny .fws-chip-fiber { background: var(--fws-navy); color: #fff; }
.fws-style-solidny .fws-badge { border-radius: 4px; }
.fws-style-solidny .fws-var-wrap { border-radius: 6px; }
.fws-style-solidny .fws-var-wrap.fws-on { background: var(--fws-navy); border-color: var(--fws-navy); }
.fws-style-solidny .fws-mode { border-radius: 6px; }
.fws-style-solidny .fws-mode.fws-on { background: #fafbfd; border-color: var(--fws-navy); }
.fws-style-solidny .fws-mode.fws-on .fws-mode-l { color: var(--fws-navy); }
.fws-style-solidny .fws-prod-photo { background: #f7f9fc; }
.fws-style-solidny .fws-send { border-radius: 6px; }

/* ---- Oferty promocyjne ---- */
.fws-offer-banner {
	background: var(--fws-navy); border-radius: 16px; margin-bottom: 22px;
	padding: 28px 30px; color: #fff; position: relative; overflow: hidden;
}
.fws-offer-banner-img { background-size: cover; background-position: center; }
.fws-offer-banner-img::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(20,20,40,.88) 0%, rgba(20,20,40,.62) 60%, rgba(20,20,40,.35) 100%);
}
.fws-offer-banner-inner { position: relative; z-index: 1; }
.fws-offer-h { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.fws-offer-sub { font-size: 15px; color: #d6dbf0; line-height: 1.55; max-width: 640px; }
.fws-offer-chip {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
	background: var(--fws-cyan); color: #0a2540; font-size: 13px; font-weight: 700;
	padding: 6px 14px; border-radius: 20px;
}
.fws-offer-chip .fws-ic { vertical-align: -2px; }
@media (max-width: 600px) {
	.fws-offer-banner { padding: 22px 20px; }
	.fws-offer-h { font-size: 21px; }
}

.fws-shop .fws-badge.fws-badge-offer { background: var(--fws-cyan); color: #0a2540; display: inline-flex; align-items: center; gap: 4px; box-shadow: none; }
.fws-badge-offer .fws-ic { vertical-align: -2px; }

.fws-cart-row-locked { opacity: .92; }
.fws-cr-lock { display: inline-flex; align-items: center; color: var(--fws-cyan-dark); padding: 0 4px; }
.fws-cr-lock .fws-ic { vertical-align: -2px; }

.fws-seg-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---- Zwijane warianty ---- */
.fws-variants.fws-collapsed { display: none; }
.fws-var-toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: 12px; background: #f7f8fb; border: 1.5px solid var(--fws-line); border-radius: 12px;
	padding: 12px 15px; cursor: pointer; font-family: inherit; transition: .15s;
	margin-top: 4px;
}
.fws-var-toggle:hover { border-color: var(--fws-cyan); background: #f2f9fe; }
.fws-var-toggle-l { font-size: 14px; font-weight: 600; color: var(--fws-navy); }
.fws-var-toggle-r { display: flex; align-items: center; gap: 10px; }
.fws-var-from { font-size: 13px; color: var(--fws-muted); }
.fws-var-from strong { color: var(--fws-navy); font-size: 15px; }
.fws-var-caret { display: inline-flex; color: var(--fws-muted); transition: transform .2s; }
.fws-var-toggle.fws-open .fws-var-caret { transform: rotate(180deg); }
.fws-style-zywy .fws-var-toggle { border-width: 2px; border-radius: 13px; }
.fws-style-zywy .fws-var-toggle:hover { background: #E6F1FB; }

/* ---- Tuning koszyka ---- */
.fws-cart {
	border-radius: 16px;
}
.fws-cart-head {
	display: flex; align-items: center; gap: 8px;
	font-size: 16px; font-weight: 700; color: var(--fws-navy);
	padding-bottom: 12px; border-bottom: 2px solid var(--fws-cyan); margin-bottom: 4px;
}
.fws-cart-term {
	display: inline-block; font-size: 12px; font-weight: 600; color: var(--fws-cyan-dark);
	background: #E6F1FB; border-radius: 20px; padding: 3px 12px; margin: 10px 0 6px;
}
.fws-cart-items { margin: 4px 0; }
.fws-cart-row {
	display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
	padding: 9px 0; border-bottom: 1px dashed var(--fws-line);
}
.fws-cart-row:last-child { border-bottom: none; }
.fws-cr-l { font-size: 13.5px; color: var(--fws-navy); font-weight: 600; line-height: 1.35; }
.fws-cr-meta { display: block; font-size: 11.5px; color: var(--fws-muted); font-weight: 400; margin-top: 2px; }
.fws-cr-v { font-size: 13.5px; font-weight: 700; color: var(--fws-navy); white-space: nowrap; }
.fws-cr-x {
	width: 22px; height: 22px; border-radius: 6px; border: none; background: #f1f3f8;
	color: #9a9aae; font-size: 16px; line-height: 1; cursor: pointer; transition: .15s;
}
.fws-cr-x:hover { background: #ffe3e3; color: #d0454e; }
.fws-cart-sum {
	margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--fws-line);
}
.fws-sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fws-sum-row span { font-size: 13px; color: var(--fws-muted); }
.fws-sum-row strong { font-size: 17px; color: var(--fws-navy); font-weight: 700; }
.fws-sum-row:first-child strong { color: var(--fws-cyan-dark); font-size: 20px; }
.fws-send {
	width: 100%; margin-top: 14px; border: none; border-radius: 12px;
	background: var(--fws-cyan); color: #0a2540; font-family: inherit; font-size: 15px;
	font-weight: 700; padding: 13px; cursor: pointer; display: flex; align-items: center;
	justify-content: center; gap: 7px; transition: .15s;
}
.fws-send:hover:not(:disabled) { background: #2fb4e8; transform: translateY(-1px); }
.fws-send:disabled { background: #d8dce6; color: #9a9aae; cursor: not-allowed; }
.fws-cart-empty { font-size: 13px; color: var(--fws-muted); text-align: center; padding: 20px 0; }

/* ---- Zwijane kategorie ---- */
.fws-grid-collapsed { display: none; }
button.fws-cat-toggle {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
	padding: 0; margin: 22px 0 12px;
}
button.fws-cat-toggle:first-child { margin-top: 0; }
.fws-cat-name { display: inline-flex; align-items: center; gap: 8px; }
.fws-cat-count {
	font-size: 12px; font-weight: 700; background: var(--fws-cyan); color: #0a2540;
	min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex;
	align-items: center; justify-content: center; padding: 0 6px;
}
.fws-cat-caret { display: inline-flex; color: var(--fws-muted); transition: transform .2s; }
.fws-cat-toggle.fws-open .fws-cat-caret { transform: rotate(180deg); }
/* keep the underline accent from the base .fws-cat on the toggle's name */
button.fws-cat-toggle .fws-cat-name { border-bottom: 2px solid var(--fws-cyan); padding-bottom: 4px; }
.fws-style-zywy button.fws-cat-toggle .fws-cat-name {
	border-bottom: none; background: var(--fws-navy); color: #fff;
	padding: 4px 14px; border-radius: 20px;
}
.fws-style-zywy .fws-cat-toggle .fws-cat-caret { color: var(--fws-navy); }
.fws-style-solidny button.fws-cat-toggle .fws-cat-name { border-bottom: 2px solid var(--fws-navy); border-radius: 0; }

/* Apartment field (blok) — sits next to building number */
.fws-form-grid .fws-field-num { grid-column: span 1; }
.fws-field-apt { grid-column: span 1; }
@media (max-width: 560px) {
	.fws-field-apt { grid-column: 1 / -1; }
}

/* Contact-time picker */
.fws-contact-time { margin: 6px 0 12px; }
.fws-ct-label { font-size: 13px; font-weight: 600; color: #6b6b82; margin-bottom: 8px; }
.fws-ct-opt { font-weight: 400; color: #a0a0b0; font-size: 12px; }
.fws-ct-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fws-ct-btn {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	background: #fff; border: 1.5px solid var(--fws-line); border-radius: 12px;
	padding: 11px 6px; cursor: pointer; font-family: inherit; transition: .15s; color: var(--fws-navy);
}
.fws-ct-btn:hover { border-color: var(--fws-cyan); background: #f4fbff; }
.fws-ct-btn .fws-ic { color: #b3bccd; transition: color .15s; }
.fws-ct-btn span { font-size: 13px; font-weight: 600; }
.fws-ct-btn small { font-size: 11px; color: #9a9aae; }
.fws-ct-btn.fws-on {
	border-color: var(--fws-navy); background: var(--fws-navy); color: #fff;
	box-shadow: 0 4px 12px rgba(32,32,64,.22);
}
.fws-ct-btn.fws-on .fws-ic { color: var(--fws-cyan); }
.fws-ct-btn.fws-on span { color: #fff; }
.fws-ct-btn.fws-on small { color: var(--fws-cyan); }
.fws-style-zywy .fws-ct-btn { border-width: 2px; }

/* ---- Promocje ---- */
.fws-promo-tag {
	display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
	background: #FBE9DF; color: #C2410C; font-size: 11px; font-weight: 700;
	padding: 2px 9px; border-radius: 20px; white-space: nowrap;
}
.fws-promo-tag .fws-ic { vertical-align: -2px; }
.fws-promo-note {
	font-size: 12px; color: #C2410C; font-weight: 600;
	margin: 3px 0 1px 0; padding-right: 16px; text-align: right;
}
.fws-var-wrap.fws-on .fws-promo-note { color: #ffc9a8; }
.fws-var-promo { border-color: #F0A878; }
.fws-var-promo.fws-on { border-color: var(--fws-navy); }
.fws-style-zywy .fws-var-promo { border-color: #F0A878; }
.fws-cr-promo {
	display: block; font-size: 11.5px; color: #C2410C; font-weight: 600; margin-top: 2px;
}
.fws-cr-promo .fws-ic { vertical-align: -2px; }

/* ---- Wyróżnik promocji w koszyku ---- */
.fws-cart-row .fws-cr-promo-row {
	grid-column: 1 / -1;           /* full width under the line */
	display: flex; justify-content: flex-end;   /* push to the right */
	margin-top: 4px;
}
.fws-cr-promo {
	display: inline-flex; align-items: center; gap: 5px;
	background: linear-gradient(90deg, #FFE9D6 0%, #FFD9B8 100%);
	color: #B4490E; font-size: 11.5px; font-weight: 700;
	padding: 3px 10px; border-radius: 20px; line-height: 1.3;
	border: 1px solid #FFC79A; white-space: nowrap;
}
.fws-cr-promo .fws-ic { color: #E0631A; vertical-align: -2px; flex-shrink: 0; }
/* Promo cart row: subtle left accent so it reads as special */
.fws-cart-row-promo {
	position: relative;
	background: linear-gradient(90deg, rgba(255,233,214,.35) 0%, rgba(255,255,255,0) 60%);
	border-radius: 8px;
	padding-left: 9px; margin-left: -9px;
	border-left: 3px solid #F08A3C;
}
.fws-cart-row-promo .fws-cr-v {
	color: var(--fws-navy); font-weight: 700;
}

/* ---- Wybór dnia kontaktu ---- */
.fws-ct-days {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.fws-ctd-btn {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	background: #fff; border: 1.5px solid var(--fws-line); border-radius: 10px;
	padding: 8px 2px 7px; cursor: pointer; font-family: inherit; color: var(--fws-navy);
	transition: .15s; position: relative; min-width: 0;
}
.fws-ctd-btn:hover:not(.fws-ctd-off) { border-color: var(--fws-cyan); background: #f4fbff; }
.fws-ctd-dow { font-size: 11px; color: #9a9aae; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.fws-ctd-dm { font-size: 13px; font-weight: 700; }
.fws-ctd-today {
	font-size: 9px; font-weight: 700; color: #0a4763; background: var(--fws-cyan);
	border-radius: 8px; padding: 0 5px; margin-top: 2px; line-height: 1.5;
}
.fws-ctd-btn.fws-on {
	border-color: var(--fws-navy); background: var(--fws-navy); color: #fff;
	box-shadow: 0 4px 12px rgba(32,32,64,.22); transform: translateY(-1px);
}
.fws-ctd-btn.fws-on .fws-ctd-dow { color: var(--fws-cyan); }
.fws-ctd-btn.fws-on .fws-ctd-dm { color: #fff; }
.fws-ctd-btn.fws-on .fws-ctd-today { background: var(--fws-cyan); color: #0a2540; }
.fws-ctd-off {
	background: #f4f5f8; border-color: #edeef2; color: #c2c2d0; cursor: not-allowed;
}
.fws-ctd-off .fws-ctd-dow { color: #cfcfda; }
.fws-style-zywy .fws-ctd-btn { border-width: 2px; }
@media (max-width: 460px) {
	.fws-ctd-dm { font-size: 12px; }
	.fws-ctd-dow { font-size: 10px; }
}

/* Discount-matrix note in cart (green, distinct from orange promo) */
.fws-cr-rabat {
	display: inline-flex; align-items: center; gap: 5px;
	background: linear-gradient(90deg, #E1F5EE 0%, #CFF0E4 100%);
	color: #0F6E56; font-size: 11.5px; font-weight: 700;
	padding: 3px 10px; border-radius: 20px; line-height: 1.3;
	border: 1px solid #A8E0CC; white-space: nowrap;
}
.fws-cr-rabat .fws-ic { color: #12A77B; vertical-align: -2px; flex-shrink: 0; }
