/* Built to Order — popup form */

.bto-contact-btn {
	cursor: pointer;
}

.bto-contact-btn--single {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.85em 1.6em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	border: none;
	border-radius: 4px;
	background: #111;
	color: #fff;
	transition: opacity 0.15s ease;
}

.bto-contact-btn--single:hover,
.bto-contact-btn--single:focus-visible {
	opacity: 0.85;
	outline: none;
}

.bto-modal[hidden] {
	display: none !important;
}

.bto-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.bto-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.55);
}

.bto-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bto-modal__close {
	position: absolute;
	top: 0.6rem;
	right: 0.75rem;
	margin: 0;
	padding: 0.25rem 0.45rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.bto-modal__close:hover,
.bto-modal__close:focus-visible {
	color: #111;
}

.bto-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.bto-modal__product {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	color: #555;
}

.bto-modal__product-name {
	color: #111;
}

.bto-field {
	margin: 0 0 1rem;
}

.bto-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.bto-field input,
.bto-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: #111;
}

.bto-field input:focus,
.bto-field textarea:focus {
	outline: 2px solid #111;
	outline-offset: 1px;
	border-color: #111;
}

.bto-modal__actions {
	margin: 1.25rem 0 0;
}

.bto-submit {
	width: 100%;
	padding: 0.85em 1.25em;
	border: none;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bto-submit:hover:not(:disabled),
.bto-submit:focus-visible:not(:disabled) {
	opacity: 0.9;
}

.bto-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.bto-modal__status {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
}

.bto-modal__status.is-success {
	color: #0a7a3e;
}

.bto-modal__status.is-error {
	color: #b42318;
}

/* Hidden honeypot */
.bto-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.bto-modal-open {
	overflow: hidden;
}
