/**
 * Boxy informacyjne na karcie produktu — jak flexible-theme.
 */

body.single-product div.summary .customProductModals {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 13px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 24px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

body.single-product div.summary .customProductModals:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}

body.single-product div.summary .customProductModals__btn {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 5px 16px;
	border: 0;
	border-radius: 0;
	background: #f2f9ff;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	box-sizing: border-box;
	overflow: hidden;
}

body.single-product div.summary .customProductModals__btn-icon {
	flex-shrink: 0;
	width: 48px;
	height: auto;
	margin-right: 12px;
}

body.single-product div.summary .customProductModals__btn.modal-order .customProductModals__btn-icon {
	width: 40px;
}

body.single-product div.summary .customProductModals__btn-txt {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	padding-bottom: 4px;
}

body.single-product div.summary .customProductModals__btn-txt p {
	margin-bottom: 0;
}

body.single-product div.summary .customProductModals__btn-txt .txt-one {
	display: block;
	font-family: var(--laki-font-heading, 'Oswald', sans-serif);
	font-size: clamp(16px, 1.6vw, 21px);
	font-weight: 400;
	line-height: 1.15;
	color: #464646;
	text-transform: none;
}

body.single-product div.summary .customProductModals__btn-txt .txt-two {
	display: block;
	margin-top: 2px;
	font-family: var(--laki-font-heading, 'Oswald', sans-serif);
	font-size: clamp(13px, 1.35vw, 18px);
	font-weight: 700;
	line-height: 1.15;
	color: #464646;
	text-transform: none;
}

body.single-product div.summary .customProductModals__info {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 16px;
	height: 16px;
	border-radius: 100px;
	background: #dcdcdc;
	font-size: 11px;
	line-height: 15px;
	text-align: center;
	z-index: 1;
}

/* Info list = zawsze ta sama szerokość co boxy / formularz powyżej */
body.single-product div.summary .customProductPage__info {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 0;
	box-sizing: border-box;
}

body.single-product div.summary .customProductPage__info-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 11px 20px;
	border-radius: 0;
	background: #f2f9ff;
	box-sizing: border-box;
}

body.single-product div.summary .customProductPage__info-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

body.single-product div.summary .customProductPage__info-icon {
	width: 25px;
	height: auto;
}

body.single-product div.summary .customProductPage__info-text p,
body.single-product div.summary .customProductPage__info-text .customProductPage__valuesText p {
	margin-bottom: 0;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #464646;
}

body.single-product div.summary .customProductPage__info-text a {
	color: inherit;
	text-decoration: none;
}

/* Modale — nad sticky headerem (JS przenosi do <body>) */
.customProductModals__modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: none;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: max(24px, env(safe-area-inset-top, 0px)) 16px 24px;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, 0.35);
	-webkit-overflow-scrolling: touch;
}

.customProductModals__modal.open {
	display: flex;
}

.customProductModals__modal[hidden] {
	display: none !important;
}

.customProductModals__modal.open[hidden] {
	display: flex !important;
}

.customProductModals__modal-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 600px;
	margin: auto;
	padding: 38px 50px 17px;
	border-radius: 10px;
	background-color: #f2f9ff;
	text-align: center;
	flex-shrink: 0;
}

/* Przy otwartym modalu header nie może wystawać nad overlay */
html.ochaka-product-modal-open .pls-site-header.fixed .pls-header-main.pls-header-sticked,
html.ochaka-product-modal-open .pls-site-header.laki-sticky-active .pls-header-main.pls-header-sticked,
html.ochaka-product-modal-open .pls-site-header.fixed.laki-sticky-with-nav .pls-header-navigation {
	z-index: 1 !important;
}

.customProductModals__modal-intro {
	text-align: center;
}

.customProductModals__modal-intro h2:last-child,
.customProductModals__modal-content > .customProductModals__modal-intro h2 {
	margin: 0;
	padding-bottom: 16px;
}

.customProductModals__modal-content h2 {
	margin: 0;
	padding-bottom: 16px;
	font-family: var(--laki-font-heading, 'Oswald', sans-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: rgba(0, 0, 0, 0.75);
}

.customProductModals__modal-content h3 {
	margin: 0;
	padding: 23px 0 45px;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: #c44e8c;
}

.customProductModals__modal-content p {
	margin: 0 0 12px;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.35;
	color: #464646;
}

#modal_order .customProductModals__modal-intro p {
	max-width: 34em;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 8px;
}

#modal_order .customProductModals__modal-intro a {
	color: #c44e8c;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#modal_order .customProductModals__modal-content {
	max-height: min(90vh, 820px);
	overflow-y: auto;
	padding-bottom: 28px;
}

#modal_order .customProductModals__modal-form {
	margin-top: 20px;
}

#modal_order .customProductModals__modal-form .wpcf7-acceptance,
#modal_order .customProductModals__modal-form .wpcf7-list-item-label {
	font-size: 13px;
	line-height: 1.4;
	color: #5a5a5a;
	text-align: left;
}

/* Formularz hurtowy — jak na starej stronie */
#modal_order .customProductModals__modal-form .wpcf7 {
	max-width: 400px;
	margin: 0 auto;
}

#modal_order .customProductModals__modal-form .wpcf7 form,
#modal_order .customProductModals__modal-form .wpcf7-form {
	margin: 0;
}

#modal_order .customProductModals__modal-form .wpcf7 form > p,
#modal_order .customProductModals__modal-form .wpcf7-form > p {
	margin: 0;
}

#modal_order .customProductModals__modal-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

#modal_order .customProductModals__modal-form input.wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
#modal_order .customProductModals__modal-form textarea.wpcf7-form-control {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 12px;
	padding: 12px 16px;
	border: 2px solid #a2c18e !important;
	border-radius: 12px;
	background: #fff;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #607850;
	text-align: center;
	box-shadow: none;
}

#modal_order .customProductModals__modal-form textarea.wpcf7-form-control {
	min-height: 120px;
	resize: vertical;
}

#modal_order .customProductModals__modal-form input.wpcf7-form-control::placeholder,
#modal_order .customProductModals__modal-form textarea.wpcf7-form-control::placeholder {
	color: #9aaa8e;
	opacity: 1;
	text-align: center;
}

#modal_order .customProductModals__modal-form .small-desc {
	margin: 4px 0 16px;
	text-align: center;
}

#modal_order .customProductModals__modal-form .small-desc p {
	margin: 0;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	color: #6b6b6b !important;
}

#modal_order .customProductModals__modal-form .small-desc a {
	color: #6b6b6b;
	text-decoration: underline;
}

#modal_order .customProductModals__modal-form .wpcf7-submit {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 8px 0 0;
	padding: 12px 20px;
	border: 2px solid #c44e8c !important;
	border-radius: 12px;
	background-color: #c44e8c !important;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff !important;
	cursor: pointer;
	text-align: center;
}

#modal_order .customProductModals__modal-form .wpcf7-submit:hover,
#modal_order .customProductModals__modal-form .wpcf7-submit:focus {
	background-color: #b0437c !important;
	border-color: #b0437c !important;
	color: #fff !important;
}

#modal_order .customProductModals__modal-form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

#modal_order .customProductModals__modal-form .g-recaptcha,
#modal_order .customProductModals__modal-form .cf7sr-g-recaptcha {
	display: flex;
	justify-content: center;
	margin: 8px 0 12px;
}

#modal_order .customProductModals__modal-form .altEmail_container,
#modal_order .customProductModals__modal-form .wpa_hidden_field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.customProductModals__modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.customProductModals__send-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin-bottom: 22px;
}

.customProductModals__send-list-item {
	display: grid;
	grid-template-columns: 2.5fr 1fr;
	gap: 15px;
	width: 100%;
	max-width: 344px;
}

.customProductModals__send-list-name,
.customProductModals__send-list-price {
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: #464646;
}

.customProductModals__send-list-price {
	text-align: right;
}

.customProductModals__send-list-info {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 8px;
}

.customProductModals__footer-info {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	margin-top: 40px;
	margin-bottom: 20px;
}

.customProductModals__send-list-info,
.customProductModals__footer-info {
	font-family: var(--laki-font-body, 'Lato', sans-serif);
	color: #464646;
	text-align: center;
}

.customProductModals__footer-info a {
	font-size: 16px;
	color: #464646;
	text-decoration: underline;
}

.customProductModals__modal-form {
	margin-top: 20px;
	text-align: left;
}

.customProductModals__modal-form .wpcf7 {
	max-width: 383px;
	margin: 0 auto;
}

.customProductModals__modal-form input,
.customProductModals__modal-form textarea {
	width: 100%;
	text-align: center;
	border: 2px solid #a2c18e !important;
	border-radius: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #607850;
	font-family: var(--laki-font-body, 'Lato', sans-serif);
}

.customProductModals__modal-form .wpcf7-submit {
	font-weight: 800;
	font-size: 20px;
	color: #fff;
	background-color: #c44e8c;
	border: 2px solid #c44e8c !important;
}

html.ochaka-product-modal-open {
	overflow: hidden;
}

/* Węższa kolumna summary — trzymaj grid w szerokości formularza */
@media (max-width: 1200px) {
	body.single-product div.summary .customProductModals {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}

	body.single-product div.summary .customProductModals__btn {
		padding: 8px 12px;
	}

	body.single-product div.summary .customProductModals__btn-icon {
		width: 40px;
		margin-right: 8px;
	}

	body.single-product div.summary .customProductModals__btn.modal-order .customProductModals__btn-icon {
		width: 36px;
	}
}

@media (max-width: 650px) {
	body.single-product div.summary .customProductModals {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 6px;
	}

	body.single-product div.summary .customProductModals__btn {
		padding: 10px;
	}

	body.single-product div.summary .customProductModals__btn-icon {
		width: 40px;
		margin-right: 10px;
	}

	body.single-product div.summary .customProductModals__btn-txt .txt-one {
		font-size: 16px;
	}

	body.single-product div.summary .customProductModals__btn-txt .txt-two {
		font-size: 13px;
	}

	.customProductModals__modal-content {
		padding: 28px 24px 17px;
	}
}
