/* =====================================================================
   Shipping and payment page (templates/shipping_payment.jinja) — loaded on this page only; scoped by .sp-page
   (the covered-cities panels, outside the page, by .sp-cities-panel).
   Phones: one column. 768px and up: the page scaled like the others (zoom 1.15 from 768, 1.3 from 1200, content
   at most 1240px wide); shipping in 2 columns (3 from 1024), payment logos in one row on desktops, banks in 2.
   Logos: 2:1 boxes, the logo contained (never squeezed or cut); Barq (no margin of its own) drawn smaller.
   ===================================================================== */
.sp-page {
	--sp-ink: #121826;
	--sp-muted: #667085;
	--sp-line: #eceef2;
	--sp-sub: #f5f6f8;
	--sp-accent: var(--primary-color, #3b82f6);
	--sp-soft: #f1f6fe;
	--sp-soft: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	--sp-green: #15803d;
	--sp-green-soft: #e8f6ec;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 12px 16px;
	color: var(--sp-ink);
	text-align: start;
}
.sp-page *,
.sp-page *::before,
.sp-page *::after {
	box-sizing: border-box;
}
.sp-page :where(button) {
	font-family: inherit;
	cursor: pointer;
}
.sp-page a {
	text-decoration: none;
}

/* head and chips */
.sp-title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--sp-ink);
}
.sp-sub {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--sp-muted);
}
.sp-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}
.sp-chips::-webkit-scrollbar {
	display: none;
}
.sp-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: #fff;
	color: var(--sp-ink);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.sp-chip:hover {
	color: var(--sp-ink);
}
button.sp-chip {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}
.sp-chip:focus-visible {
	outline: 2px solid var(--sp-accent);
	outline-offset: 2px;
}
.sp-sec[hidden] {
	display: none;
}
.sp-chip.is-active,
.sp-chip.is-active:hover {
	background-color: var(--sp-ink);
	color: #fff;
}

/* sections */
.sp-sec {
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-margin-top: 90px;
}
.sp-sec-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 2px 0;
}
.sp-sec-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 11px;
	background-color: var(--sp-soft);
	color: var(--sp-accent);
}
.sp-sec-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--sp-ink);
}
.sp-count {
	font-size: 11.5px;
	color: var(--sp-muted);
}
.sp-card {
	padding: 14px;
	border-radius: 22px;
	background-color: #fff;
}

/* shipping cards */
.sp-ships {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}
.sp-ship-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.sp-ship-logo {
	flex: 0 0 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background-color: var(--sp-sub);
	color: var(--sp-accent);
}
.sp-ship-logo img {
	display: block;
	width: 36px;
	height: 18px;
	object-fit: contain;
}
.sp-ship-logo img.is-tight {
	height: 13px;
}
.sp-ship-name {
	flex: 1 1 auto;
	min-width: 0;
}
.sp-ship-name b {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
}
.sp-eta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--sp-muted);
}
.sp-from {
	flex: 0 0 auto;
	text-align: end;
}
.sp-from small {
	display: block;
	font-size: 10px;
	color: var(--sp-muted);
}
.sp-from b {
	font-size: 15px;
	font-weight: 800;
	color: var(--sp-accent);
	white-space: nowrap;
}
.sp-costs {
	margin: 10px 0;
	padding: 6px 10px;
	border-radius: 14px;
	background-color: var(--sp-sub);
}
.sp-cost {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 26px;
	font-size: 12px;
}
.sp-cost > span {
	min-width: 0;
	color: var(--sp-muted);
}
.sp-cost > b {
	flex: 0 0 auto;
	font-weight: 800;
	white-space: nowrap;
}
.sp-ship-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.sp-costs + .sp-ship-foot {
	margin-top: 0;
}
.sp-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 26px;
	padding: 2px 10px;
	border-radius: 999px;
	background-color: var(--sp-sub);
	color: var(--sp-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}
.sp-tag.is-ok {
	background-color: var(--sp-green-soft);
	color: var(--sp-green);
}
.sp-cities {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	font-size: 11px;
	color: var(--sp-muted);
	line-height: 1.6;
}
.sp-cities > .ico {
	flex: 0 0 auto;
	margin-top: 3px;
}
.sp-more {
	padding: 0;
	border: 0;
	background: none;
	color: var(--sp-accent);
	font-size: 11px;
	font-weight: 800;
	text-decoration: underline;
}

/* payment logos: a 2:1 box each, the name under it */
.sp-pays {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sp-pay {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 12px 4px;
	border-radius: 16px;
	background-color: var(--sp-sub);
}
.sp-pay-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 26px;
}
.sp-pay-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sp-pay-name {
	max-width: 100%;
	overflow: hidden;
	font-size: 10.5px;
	color: var(--sp-ink);
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sp-note {
	margin: 10px 0 0;
	font-size: 11px;
	color: var(--sp-muted);
}

/* bank accounts */
.sp-banks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}
.sp-bank {
	padding: 12px;
	border-radius: 18px;
	background-color: var(--sp-sub);
}
.sp-bank-head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--sp-ink);
	text-align: start;
}
.sp-bank-head > b {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 800;
}
.sp-bank-logo {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 4px;
	border-radius: 12px;
	background-color: #fff;
	color: var(--sp-accent);
	overflow: hidden;
}
.sp-bank-logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.sp-bank-ic {
	flex: 0 0 auto;
}
.sp-bank-ic.is-minus,
.sp-bank.is-open .sp-bank-ic:not(.is-minus) {
	display: none;
}
.sp-bank.is-open .sp-bank-ic.is-minus {
	display: block;
}
.sp-bank-body {
	display: none;
	margin-top: 6px;
}
.sp-bank.is-open .sp-bank-body {
	display: block;
}
.sp-bank-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 36px;
	font-size: 11.5px;
}
.sp-bank-row > span:first-child {
	flex: 0 0 auto;
	color: var(--sp-muted);
}
.sp-bank-row b {
	min-width: 0;
	font-size: 12px;
	font-weight: 800;
	overflow-wrap: anywhere;
	text-align: end;
}
.sp-copy-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.sp-copy {
	flex: 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background-color: var(--sp-soft);
	color: var(--sp-accent);
	transition: background-color .2s, color .2s;
}
.sp-copy .is-done,
.sp-copy.is-done .ico:not(.is-done) {
	display: none;
}
.sp-copy.is-done {
	background-color: var(--sp-green-soft);
	color: var(--sp-green);
}
.sp-copy.is-done .is-done {
	display: block;
}
.sp-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.sp-empty {
	font-size: 12.5px;
	color: var(--sp-muted);
	text-align: center;
}

/* ---------- tablets and desktops ---------- */
@media (min-width: 768px) {
	.sp-page {
		--sp-z: 1.15;
		zoom: var(--sp-z);
		padding: calc(16px / var(--sp-z)) calc(20px / var(--sp-z)) 16px;
	}
	.sp-title {
		font-size: 26px;
	}
	.sp-ships,
	.sp-banks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sp-sec {
		scroll-margin-top: calc(110px / var(--sp-z));
	}
}
@media (min-width: 1024px) {
	.sp-ships {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.sp-pays {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	}
}
@media (min-width: 1200px) {
	.sp-page {
		--sp-z: 1.3;
		width: 100%;
		max-width: calc((1240px + 40px) / 1.3);
		margin-inline: auto;
	}
}

/* ---------- covered cities panel (navigation engine; site-chrome.css draws the sheet / the centred window) ---------- */
.sp-cities-panel .sp-cp-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.sp-cities-panel .sp-cp-head b {
	display: block;
	font-size: 15px;
	font-weight: 800;
}
.sp-cities-panel .sp-cp-head small {
	display: block;
	font-size: 11.5px;
	color: var(--nv-muted);
}
.sp-cities-panel .sp-cp-close {
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--nv-card);
	color: var(--nv-ink);
	cursor: pointer;
}
.sp-cities-panel .sp-cp-search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	margin: 0 0 10px;
	padding: 0 12px;
	border-radius: 14px;
	background-color: var(--nv-card);
	color: var(--nv-muted);
}
.sp-cities-panel .sp-cp-search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	color: var(--nv-ink);
	font: inherit;
	font-size: 13px;
}
.sp-cities-panel .sp-cp-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sp-cities-panel .sp-cp-list li {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 4px 12px;
	border-radius: 12px;
	background-color: var(--nv-card);
	font-size: 12.5px;
	line-height: 1.4;
}
.sp-cities-panel .sp-cp-list li[hidden] {
	display: none;
}
.sp-cities-panel .sp-cp-none {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--nv-muted);
	text-align: center;
}
