/* BuySand ZIP gate: popup, quote request and the "delivering to" line.
   Same idiom as the homepage ZIP bar: dark scrim, white field, brand red button. */

.bspm-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 9vh 20px 20px;
	background: rgba(18, 16, 16, 0.82);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.bspm-gate-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	padding: 34px 36px 26px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	color: #201e1f;
	text-align: left;
}

.bspm-gate-title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 700;
	color: #201e1f;
}

.bspm-gate-lede {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #45474b;
}

.bspm-gate-error {
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #fcf0f0;
	border-left: 3px solid #b20000;
	color: #7a1c1c;
	font-size: 14px;
}

.bspm-gate-label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #5a5d62;
}

.bspm-gate-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.bspm-gate .bspm-gate-input {
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0 16px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #201e1f;
	background: #fff;
	border: 1.5px solid #c9ced4;
	border-radius: 4px;
	box-shadow: none;
}

.bspm-gate .bspm-gate-input:focus {
	outline: 0;
	border-color: #b20000;
	box-shadow: 0 0 0 3px rgba(254, 5, 0, 0.25);
}

.bspm-gate .bspm-gate-btn {
	flex: 0 0 auto;
	height: 56px;
	margin: 0;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
	color: #fff;
	background: #b20000;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.16s;
}

.bspm-gate .bspm-gate-btn:hover {
	background: #8f0000;
	color: #fff;
}

.bspm-gate .bspm-gate-btn-wide {
	width: 100%;
	margin-top: 6px;
}

.bspm-gate-foot {
	margin: 16px 0 0;
	font-size: 14px;
	color: #5a5d62;
}

.bspm-gate-back {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid #eceef0;
	font-size: 14px;
}

.bspm-gate-back a {
	color: #b20000;
	text-decoration: underline;
}

/* quote request */
.bspm-gate-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
	margin-bottom: 14px;
}

.bspm-gate-grid .bspm-gate-field:nth-child(2) {
	grid-column: 1 / -1;
}

.bspm-gate-field {
	min-width: 0;
}

.bspm-quote-form .bspm-gate-input {
	height: 48px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
}

.bspm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* the line under the header */
.bspm-zipline {
	background: #f4f5f6;
	border-bottom: 1px solid #e3e6e9;
	font-size: 14px;
	color: #45474b;
}

.bspm-zipline-inner {
	max-width: 1170px;
	margin: 0 auto;
	padding: 8px 15px;
}

.bspm-zipline strong {
	color: #201e1f;
}

.bspm-zipline-sep {
	margin: 0 6px;
	color: #a7abb0;
}

.bspm-zipline a {
	color: #b20000;
	text-decoration: underline;
}

@media (max-width: 549px) {
	.bspm-gate {
		padding: 5vh 12px 12px;
	}

	.bspm-gate-card {
		padding: 26px 20px 20px;
	}

	.bspm-gate-title {
		font-size: 23px;
	}

	.bspm-gate-row {
		flex-wrap: wrap;
	}

	.bspm-gate .bspm-gate-btn {
		flex: 1 1 100%;
	}

	.bspm-gate-grid {
		grid-template-columns: 1fr;
	}
}

/* Checkout: the delivery ZIP is set by the gate, so the field reads as
   disabled and the note stays small and quiet. */
.bspm-zip-locked input[readonly] {
	background: #f2f3f4;
	color: #6b6e72;
	border-color: #d9dcdf;
	cursor: not-allowed;
}

.bspm-zip-locked .description {
	display: block;
	margin-top: 4px;
	font-size: 0.76em;
	line-height: 1.45;
	color: #8b8e93;
}
