/* ShipBridge – Pigeon Express checkout picker. Inherits the theme's fonts and colours. */
.sbpx-picker {
	--sbpx-border: rgba(0, 0, 0, 0.18);
	--sbpx-muted: rgba(0, 0, 0, 0.62);
	--sbpx-accent: #1d6fd8;
	--sbpx-bg-active: rgba(29, 111, 216, 0.08);
	margin: 10px 0 4px;
	font-size: 0.95em;
	line-height: 1.4;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.sbpx-picker *,
.sbpx-picker *::before,
.sbpx-picker *::after {
	box-sizing: border-box;
}
.sbpx-label {
	display: block;
	font-weight: 600;
	margin: 0 0 6px;
}
.sbpx-sublabel {
	display: block;
	font-size: 0.9em;
	margin: 8px 0 4px;
	opacity: 0.75; /* readable on light and dark themes */
}
.sbpx-input {
	width: 100%;
	min-height: 44px; /* comfortable tap target on phones */
	padding: 8px 12px;
	border: 1px solid var(--sbpx-border);
	border-radius: 6px;
	font: inherit;
}
.sbpx-input:focus {
	outline: 2px solid var(--sbpx-accent);
	outline-offset: 1px;
}
.sbpx-list-wrap {
	max-height: 300px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--sbpx-border);
	border-top: 0;
	border-radius: 0 0 6px 6px;
}
.sbpx-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sbpx-list:empty {
	display: none;
}
.sbpx-list__heading {
	padding: 6px 12px;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.75; /* readable on light and dark themes */
}
.sbpx-option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	cursor: pointer;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.sbpx-option:hover,
.sbpx-option.is-active {
	background: var(--sbpx-bg-active);
}
.sbpx-option__name {
	font-weight: 600;
}
.sbpx-option__address,
.sbpx-option__hours {
	font-size: 0.88em;
	opacity: 0.75; /* readable on light and dark themes */
}
.sbpx-hint {
	margin: 6px 0 0;
	font-size: 0.85em;
	opacity: 0.75; /* readable on light and dark themes */
}
.sbpx-hint:empty {
	display: none;
}
.sbpx-selected {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--sbpx-accent);
	border-radius: 6px;
	background: var(--sbpx-bg-active);
}
.sbpx-selected__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sbpx-selected__address,
.sbpx-selected__hours {
	font-size: 0.88em;
	opacity: 0.75; /* readable on light and dark themes */
}
.sbpx-selected__actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
	align-items: center;
}
.sbpx-btn-link,
.sbpx-link {
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--sbpx-accent);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
	min-height: 32px;
}
.sbpx-ac {
	position: relative;
}
.sbpx-list--dropdown {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	top: 100%;
	max-height: 260px;
	overflow-y: auto;
	background: var(--sbpx-surface, #fff);
	color: var(--sbpx-surface-text, #1e1e1e);
	border: 1px solid var(--sbpx-border);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.sbpx-list--dropdown[hidden] {
	display: none;
}
.sbpx-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.sbpx-candidates {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.sbpx-chip {
	border: 1px solid var(--sbpx-border);
	background: #fff;
	border-radius: 999px;
	padding: 6px 12px;
	cursor: pointer;
	font: inherit;
	font-size: 0.88em;
	min-height: 36px;
}
.sbpx-chip:hover {
	border-color: var(--sbpx-accent);
}
.sbpx-badge {
	margin-left: 6px;
	color: #1a7f37;
	font-weight: 600;
}
.sbpx-error {
	margin-top: 6px;
	color: #b32d2e;
	font-size: 0.9em;
}
.sbpx-blocks {
	margin: 8px 0 0;
}
@media (max-width: 480px) {
	.sbpx-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sbpx-selected {
		flex-direction: column;
	}
}

/* Combined Pigeon Express + Econt chooser (classic checkout). */
.sbpx-cc-hidden {
	display: none !important;
}
.sbpx-cc {
	--sbpx-border: rgba(0, 0, 0, 0.18);
	--sbpx-accent: #1d6fd8;
	--sbpx-bg-active: rgba(29, 111, 216, 0.08);
	clear: both;
	margin: 0 0 1em;
}
.sbpx-cc *,
.sbpx-cc *::before,
.sbpx-cc *::after {
	box-sizing: border-box;
}
.sbpx-cc .sbpx-ac {
	display: block;
}
.sbpx-cc-heading {
	font-weight: 600;
	margin: 0.75em 0 0.5em;
}
.sbpx-cc-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.sbpx-cc-cards.is-single {
	grid-template-columns: minmax(0, 1fr);
}
.sbpx-cc-card {
	border: 1px solid var(--sbpx-border);
	border-radius: 10px;
	padding: 10px;
	background: #fff;
	color: #1e1e1e;
	min-width: 0;
}
.sbpx-cc-card__head {
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}
.sbpx-cc-card__head.has-bg {
	border-radius: 6px;
	padding: 7px 10px;
}
.sbpx-cc-card__head.has-bg .sbpx-cc-logo {
	max-height: 22px;
}
.sbpx-cc-logo {
	display: block;
	max-height: 34px;
	max-width: 100%;
	width: auto;
	height: auto;
}
.sbpx-cc-name {
	font-weight: 700;
}
.sbpx-cc-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 6px 0 0;
	padding: 8px 10px;
	min-height: 44px; /* tap target */
	border: 1px solid var(--sbpx-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
}
.sbpx-cc-row:hover,
.sbpx-cc-row:focus {
	border-color: var(--sbpx-accent);
	background: #fff;
	color: inherit;
}
.sbpx-cc-row.is-chosen,
.sbpx-cc-row.is-chosen:hover {
	border: 2px solid var(--sbpx-accent);
	padding: 7px 9px;
	background: var(--sbpx-bg-active);
}
.sbpx-cc-row.is-off,
.sbpx-cc-row.is-off:hover {
	cursor: default;
	border-color: rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.03);
	color: rgba(0, 0, 0, 0.45);
}
.sbpx-cc-radio {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.4);
	border-radius: 50%;
}
.sbpx-cc-row.is-chosen .sbpx-cc-radio {
	border: 5px solid var(--sbpx-accent);
}
.sbpx-cc-row.is-off .sbpx-cc-radio {
	border-color: rgba(0, 0, 0, 0.15);
}
.sbpx-cc-row__label {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 6px;
}
.sbpx-cc-row__price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
}
.sbpx-cc-row.is-off .sbpx-cc-row__price {
	font-weight: 400;
	font-size: 0.85em;
}
.sbpx-cc-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: #e3f4e8;
	color: #17643a;
	font-size: 0.75em;
	font-weight: 700;
	white-space: nowrap;
}
.sbpx-cc-detail {
	margin-top: 4px;
}
.sbpx-cc-note,
.sbpx-cc-loading,
.sbpx-cc-empty {
	font-size: 0.88em;
	opacity: 0.8;
	margin: 0.6em 0 0;
}
.sbpx-cc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 8px;
}
.sbpx-cc-f {
	margin: 0;
}
.sbpx-cc-f--street,
.sbpx-cc-f--quarter {
	grid-column: span 3;
}
.sbpx-cc-f--other {
	grid-column: 1 / -1;
}
.sbpx-cc-pending {
	display: block;
	font-size: 0.9em;
	color: #b32d2e;
}
body.sbpx-cc-on #shipping_method input.shipping_method {
	display: none;
}
body.sbpx-cc-on #shipping_method li {
	padding-left: 0;
	margin-left: 0;
}
body.sbpx-cc-on #shipping_method li.sbpx-cc-other,
.sbpx-cc-nochoice #shipping_method {
	display: none !important;
}
@media (max-width: 480px) {
	.sbpx-cc-cards {
		gap: 6px;
	}
	.sbpx-cc-card {
		padding: 6px;
	}
	.sbpx-cc-row {
		gap: 6px;
		padding: 6px 7px;
		font-size: 0.88em;
	}
	.sbpx-cc-row.is-chosen,
	.sbpx-cc-row.is-chosen:hover {
		padding: 5px 6px;
	}
	.sbpx-cc-radio {
		display: none;
	}
	.sbpx-cc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sbpx-cc-f--street,
	.sbpx-cc-f--quarter {
		grid-column: 1 / -1;
	}
}
