/* Product Inquiry for WooCommerce — front-end styles.
   BEM under the jk- prefix. Deliberately low specificity (single class
   selectors, no !important) so the Custom CSS box in Inquiry Settings →
   Design can override any of this without a fight.

   Sizing note: Bricks sets html { font-size: 62.5% } (1rem = 10px), so rem
   units here come out ~40% too small. The modal anchors its own 16px base
   and everything inside is sized in em, immune to the theme's root size. */

/* =====================================================================
   Trigger buttons
   ===================================================================== */

.jk-inquiry-button-wrap {
	margin: 1em 0;
}

.jk-inquiry-button-wrap--single {
	display: inline-block;
	margin-left: .5em;
}

.jk-inquiry-button {
	display: inline-block;
	padding: .7em 1.4em;
	border: 1px solid currentColor;
	border-radius: 3px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.jk-inquiry-button:hover,
.jk-inquiry-button:focus {
	background: currentColor;
}

/* Keeps the label readable once the background inherits currentColor. */
.jk-inquiry-button:hover {
	color: inherit;
}

.jk-inquiry-button--cart {
	display: block;
	width: 100%;
	text-align: center;
}

/* =====================================================================
   Modal
   ===================================================================== */

.jk-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 1em;
	overflow-y: auto;
	font-size: 16px; /* own base — see sizing note above */
	line-height: 1.5;
}

.jk-modal--open {
	display: flex;
}

.jk-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.jk-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	padding: 2em;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.jk-modal__close {
	position: absolute;
	top: .5em;
	right: .75em;
	padding: .25em .5em;
	border: 0;
	background: none;
	color: #666;
	font-size: 1.75em;
	line-height: 1;
	cursor: pointer;
}

.jk-modal__close:hover {
	color: #000;
}

.jk-modal__title {
	margin: 0 0 .35em;
	font-size: 1.4em;
}

.jk-modal__intro {
	margin: 0 0 1.25em;
	color: #555;
	font-size: .95em;
}

/* =====================================================================
   Form
   ===================================================================== */

.jk-form__summary {
	margin-bottom: 1.25em;
	padding: .85em 1em;
	border-radius: 4px;
	background: #f6f7f7;
	font-size: .9em;
}

.jk-form__summary:empty {
	display: none;
}

.jk-form__summary-title {
	margin: 0 0 .5em;
	font-weight: 600;
}

.jk-form__summary-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jk-form__summary-item {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: .3em 0;
	border-bottom: 1px solid #e5e5e5;
}

.jk-form__summary-item:last-child {
	border-bottom: 0;
}

.jk-form__summary-qty {
	color: #666;
	white-space: nowrap;
}

.jk-form__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.jk-form__field {
	flex: 1 1 100%;
	min-width: 0;
}

.jk-form__field--half {
	flex: 1 1 calc(50% - .5em);
}

.jk-form__label {
	display: block;
	margin-bottom: .35em;
	font-size: .9em;
	font-weight: 600;
}

.jk-form__required {
	color: #b32d2e;
}

.jk-form__optional {
	color: #888;
	font-weight: 400;
}

.jk-form__input,
.jk-form__textarea,
.jk-form__select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: .6em .75em;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: .95em;
}

.jk-form__input:focus,
.jk-form__textarea:focus,
.jk-form__select:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #2271b1;
}

.jk-form__textarea {
	min-height: 6em;
	resize: vertical;
}

.jk-form__radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: .75em;
}

.jk-form__radio,
.jk-form__checkbox {
	display: flex;
	align-items: center;
	gap: .4em;
}

.jk-form__radio-label,
.jk-form__checkbox-label {
	margin: 0;
	font-weight: 400;
}

.jk-form__error {
	display: none;
	margin-top: .3em;
	color: #b32d2e;
	font-size: .85em;
}

.jk-form__field--error .jk-form__input,
.jk-form__field--error .jk-form__textarea,
.jk-form__field--error .jk-form__select {
	border-color: #b32d2e;
}

.jk-form__field--error .jk-form__error {
	display: block;
}

.jk-form__feedback {
	margin-top: 1em;
	font-size: .9em;
}

.jk-form__feedback:empty {
	margin-top: 0;
}

.jk-form__feedback--error {
	color: #b32d2e;
}

.jk-form__feedback--success {
	padding: .85em 1em;
	border-radius: 4px;
	background: #edfaef;
	color: #1e6b25;
}

.jk-form__submit {
	margin-top: 1.25em;
	padding: .8em 1.6em;
	border: 0;
	border-radius: 3px;
	background: #2271b1;
	color: #fff;
	font: inherit;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}

.jk-form__submit:hover {
	background: #135e96;
}

.jk-form--loading .jk-form__submit {
	opacity: .6;
	pointer-events: none;
}

/* On success the fields have served their purpose; only the confirmation
   and the close button remain. */
.jk-form--done .jk-form__fields,
.jk-form--done .jk-form__submit,
.jk-form--done .jk-form__summary {
	display: none;
}

/* Off-screen rather than display:none — bots skip hidden inputs. */
.jk-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.jk-modal__dialog {
		padding: 1.5em 1.25em;
	}

	.jk-form__field--half {
		flex: 1 1 100%;
	}
}
