/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Program banner: top of page, above main navigation */
.srp-program-banner {
	width: 100%;
	display: block;
	min-height: 0;
	box-sizing: border-box;
	padding: 8px 16px;
	text-align: center;
	font-size: max(10px, 14px);
	line-height: 1.4;
}

.srp-program-banner .srp-program-banner-text {
	font-size: inherit;
}

.srp-program-banner-switcher-button {
	background-color: transparent !important;
	text-transform: uppercase;
	/* text-decoration: underline; */
	color: blue !important;
	font-weight: 700 !important;
}

@media (max-width: 767px) {
	.srp-program-banner {
		font-size: 12px;
		padding: 6px 12px;
	}
}

/* My Account Special Pricing tab: terms with scroll-to-agree */
.srp-myaccount-terms {
	margin: 1em 0;
}

.srp-myaccount-terms .srp-myaccount-terms-body {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	padding: 12px 16px;
	margin: 1em 0;
	border-radius: 4px;
}

.srp-myaccount-terms .srp-myaccount-terms-actions {
	display: flex;
	gap: 12px;
	margin-top: 1em;
}

.srp-myaccount-terms .srp-terms-agree:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.srp-dealer-id-content {
	color: #000 !important;
}

/* FFL limit toast notification (sco_employee exceeds limit) */
.srp-ffl-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	max-width: calc(100% - 32px);
	width: auto;
	padding: 12px 20px;
	background: #ff7f00;
	color: #fff;
	border-radius: 8px;
	font-size: 1em;
	line-height: 1.4;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}
.srp-ffl-toast.srp-ffl-toast-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

select#srp-dealer-id {
	margin-bottom: 2em;
}

.srp-terms-modal-actions,
.srp-terms-modal-actions-buttons {
	display: flex;
	flex-direction: row;
	gap: 12px;
	justify-content: space-between;
	align-items: start;
}

.srp-terms-modal-actions-text {
	font-size: 14px;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.srp-terms-modal-actions,
	.srp-terms-modal-actions-buttons {
		flex-direction: column;
		align-items: stretch; /* optional, makes buttons full width */
	}
}