.kepuke-quote-modal[hidden],
.kepuke-product-quote-modal[hidden] { display: none !important; }
.kepuke-quote-modal,
.kepuke-product-quote-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.kepuke-quote-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 34, 0.72); }
.kepuke-quote-modal__dialog { position: relative; width: min(640px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; background: #ffffff; color: #132238; border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28); padding: 30px; }
.kepuke-product-quote-modal__dialog { width: min(860px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: hidden; padding: 24px 30px; }
.kepuke-quote-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f2f4f7 !important;
	color: #132238 !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
}
.kepuke-quote-modal__close:hover, .kepuke-quote-modal__close:focus { background: #ffc244; color: #111827; }
.kepuke-quote-modal__header { padding-right: 44px; margin-bottom: 20px; }
.kepuke-quote-modal__header h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; color: #132238; }
.kepuke-quote-modal__header p { margin: 0; color: #526070; }
.kepuke-quote-modal.is-products-pdf-sent .kepuke-quote-modal__dialog { width: min(460px, 100%); }
.kepuke-quote-modal.is-products-pdf-sent .kepuke-quote-modal__header h2 { color: #117a37; }
.kepuke-quote-modal__pdf-confirmation p { margin: 0 0 20px; overflow-wrap: anywhere; }
.kepuke-quote-modal__pdf-confirmation button { min-width: 92px; min-height: 44px; }
.kepuke-product-quote-modal__product {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	margin: 0 44px 22px 0;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e9f0;
}
.kepuke-product-quote-modal__image {
	display: block;
	width: 112px;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	background: #f2f5f7;
}
.kepuke-product-quote-modal__copy p {
	margin: 0 0 5px;
	color: #7a8594;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}
.kepuke-product-quote-modal__copy h2 {
	margin: 0;
	color: #132238;
	font-size: 26px;
	line-height: 1.22;
}
.kepuke-product-quote-modal__dialog .kepuke-product-quote-modal__product {
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	margin: 0 44px 14px 0;
	padding-bottom: 14px;
}
.kepuke-product-quote-modal__dialog .kepuke-product-quote-modal__image {
	width: 96px;
}
.kepuke-product-quote-modal__dialog .kepuke-product-quote-modal__copy h2 {
	font-size: 24px;
	line-height: 1.18;
}
.kepuke-quote-modal__form .srfm-form-container {
	--srfm-color-scheme-text: #132238;
	--srfm-color-input-label: #132238;
	--srfm-color-input-placeholder: #667085;
	--srfm-color-input-text: #132238;
	--srfm-color-input-background: #ffffff;
	--srfm-color-input-background-hover: #ffffff;
	--srfm-color-input-border: #d7dde6;
	--srfm-color-input-border-hover: #ffc244;
	--srfm-color-input-border-focus-glow: rgba(255, 194, 68, 0.22);
	--srfm-row-gap-between-blocks: 14px;
	--srfm-input-height: 46px;
	--srfm-input-field-padding: 11px 14px;
}
.kepuke-quote-modal__form .srfm-form { display: grid; gap: 14px; }
.kepuke-quote-modal__form .srfm-block-single { margin: 0 !important; }
.kepuke-quote-modal__form .srfm-input-common {
	box-sizing: border-box;
	width: 100%;
	color: #132238 !important;
	background: #ffffff !important;
	border: 1px solid #d7dde6 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	outline: none;
}
.kepuke-quote-modal__form .srfm-input-common::placeholder { color: #667085 !important; opacity: 1; }
.kepuke-quote-modal__form .srfm-input-common:focus {
	border-color: #ffc244 !important;
	box-shadow: 0 0 0 4px rgba(255, 194, 68, 0.18) !important;
}
.kepuke-product-quote-modal__form .srf-input-product_name-block {
	display: none !important;
}
.kepuke-quote-modal__form textarea.srfm-input-common,
.kepuke-quote-modal__form .srfm-input-textarea {
	min-height: 118px !important;
	height: 118px !important;
	max-height: 180px !important;
	resize: vertical;
}
.kepuke-quote-modal__form .srfm-error-wrap { margin-top: 4px; min-height: 0; }
.kepuke-quote-modal__form .srfm-error-message { font-size: 13px; line-height: 18px; }
.kepuke-products-pdf-email-status {
	margin: 0 0 12px;
	color: #526070;
	font-size: 14px;
	line-height: 1.45;
}
.kepuke-products-pdf-email-status.is-error { color: #e11d2e; }
.kepuke-quote-modal__form .srfm-submit-container { margin-top: 2px; }
.kepuke-quote-modal__form .srfm-submit-container .wp-block-button { width: auto; }
.kepuke-quote-modal__form .srfm-button,
.kepuke-quote-modal__form .srfm-submit-button {
	min-height: 46px;
	padding: 11px 22px !important;
	border-radius: 7px !important;
	background: #ffc244 !important;
	color: #132238 !important;
	border: 1px solid #ffc244 !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0;
}
.kepuke-quote-modal__form .srfm-button:hover,
.kepuke-quote-modal__form .srfm-submit-button:hover { background: #f5b52e !important; border-color: #f5b52e !important; }

/* 所有询价表单共用反馈，图标继承按钮颜色，兼容深色首页与白色弹窗。 */
.srfm-form .kepuke-feedback-button { transition: box-shadow .18s ease, opacity .18s ease; max-width: 100%; }
.srfm-form-container .srfm-form .kepuke-feedback-button .srfm-submit-wrap { flex-wrap: nowrap !important; gap: .5em; }
.srfm-form .kepuke-feedback-button .srfm-loader { display: none !important; }
.kepuke-feedback-icon { display: none; flex: 0 0 auto; width: 1em; height: 1em; line-height: 1; font-weight: 800; }
.srfm-form:is([data-kepuke-feedback-state="checking"], [data-kepuke-feedback-state="sending"], [data-kepuke-feedback-state="preparing"]) .kepuke-feedback-button { cursor: progress; pointer-events: none; opacity: .9; }
.srfm-form:is([data-kepuke-feedback-state="checking"], [data-kepuke-feedback-state="sending"], [data-kepuke-feedback-state="preparing"]) .kepuke-feedback-icon {
	display: inline-block; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kepuke-form-spin .75s linear infinite;
}
.srfm-form[data-kepuke-feedback-state="success"] .kepuke-feedback-button { pointer-events: none; box-shadow: 0 0 0 3px rgba(21, 128, 61, .2); }
.srfm-form:is([data-kepuke-feedback-state="success"], [data-kepuke-feedback-state="error"]) .kepuke-feedback-icon { display: inline-block; animation: kepuke-form-pop .22s ease-out; }
.kepuke-form-status { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.4; text-align: start; overflow-wrap: anywhere; }
.kepuke-form-status[hidden] { display: none !important; }
.srfm-form:is([data-kepuke-feedback-state="invalid"], [data-kepuke-feedback-state="error"]) .kepuke-form-status { color: #9f2032; background: #fff0f2; border: 1px solid #ffc3cc; border-radius: 6px; padding: 8px 10px; }
.srfm-form[data-kepuke-feedback-state="success"] .kepuke-form-status { color: #116239; background: #e8f7ee; border: 1px solid #b5e0c5; border-radius: 6px; padding: 8px 10px; }
.kepuke-feedback-invalid { animation: kepuke-form-nudge .28s ease-in-out; }
.kepuke-feedback-invalid .srfm-input-common { border-color: #d63638 !important; }
.kepuke-feedback-success.srfm-active, .is-products-pdf-sent .kepuke-quote-modal__pdf-confirmation { animation: kepuke-form-pop .25s ease-out; }
@keyframes kepuke-form-spin { to { transform: rotate(360deg); } }
@keyframes kepuke-form-pop { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kepuke-form-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
	.kepuke-feedback-icon, .kepuke-feedback-invalid, .kepuke-feedback-success, .kepuke-quote-modal__pdf-confirmation { animation: none !important; }
	.srfm-form .kepuke-feedback-button { transition: none; }
}
.kepuke-product-quote-modal__form .srfm-form-container {
	--srfm-row-gap-between-blocks: 10px;
	--srfm-input-height: 40px;
	--srfm-input-field-padding: 8px 12px;
}
.kepuke-product-quote-modal__form .srfm-form {
	gap: 10px;
}
.kepuke-product-quote-modal__form .srfm-input-common {
	min-height: 40px !important;
	border-radius: 5px !important;
	font-size: 14px !important;
}
.kepuke-product-quote-modal__form textarea.srfm-input-common,
.kepuke-product-quote-modal__form .srfm-input-textarea {
	min-height: 92px !important;
	height: 92px !important;
	max-height: 92px !important;
	resize: none;
}
.kepuke-product-quote-modal__form .srfm-submit-container {
	margin-top: 0;
}
.kepuke-product-quote-modal__form .srfm-button,
.kepuke-product-quote-modal__form .srfm-submit-button {
	min-height: 40px !important;
	padding: 8px 20px !important;
	border-radius: 6px !important;
}
body.kepuke-quote-modal-open { touch-action: none; }
@media (max-width: 544px) {
	/* 手机页脚的询价按钮与同栏文字居中对齐。 */
	#colophon .site-footer-primary-section-4 .wp-block-buttons:has(> .wp-block-button > a[href="#get-a-quote"]) {
		justify-content: center;
	}
	.kepuke-quote-modal,
	.kepuke-product-quote-modal { padding: 12px; align-items: flex-start; }
	.kepuke-quote-modal__dialog { max-height: calc(100vh - 24px); padding: 22px; }
	.kepuke-quote-modal__header h2 { font-size: 24px; }
	.kepuke-product-quote-modal__product {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 14px;
		margin-right: 36px;
	}
	.kepuke-product-quote-modal__image { width: 82px; }
	.kepuke-product-quote-modal__copy h2 { font-size: 21px; }
}
