/* ==========================================================================
   Nasze materiały – lista i popup „Interesuje mnie” wg projektu (Figma: NASZE MATERIAŁY, POP UP).
   Selektory zaczynają się od .ssk-materialy, żeby wygrać z przyciskami motywu Hello
   (różowe [type=button]) i nie dotknąć skupu surowców.
   ========================================================================== */

/* Atrybut hidden przegrywa z display ustawionym klasą – wymuszamy go jawnie. */
.ssk-materialy [hidden],
.ssk-modal[hidden] {
	display: none !important;
}

/* ---------- Wiersz materiału: formy ---------- */
.ssk-materialy .ssk-mat-row__formy-label {
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.1em;
	color: #013462;
}

.ssk-materialy .ssk-mat-row__formy-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 6px;
	margin-top: 6px;
	font-family: "ddt", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.4;
	color: #013462;
}

.ssk-materialy .ssk-mat-forma {
	position: relative;
	display: inline-block;
	padding: 0 20px;
}

.ssk-materialy .ssk-mat-forma:first-child {
	padding-left: 0;
}

/* Krótka niebieska kreska między formami, jak w projekcie. */
.ssk-materialy .ssk-mat-forma + .ssk-mat-forma::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 16px;
	transform: translateY(-50%);
	background: #24BAE8;
}

.ssk-materialy .ssk-mat-forma::first-letter {
	text-transform: uppercase;
}

.ssk-materialy .ssk-mat-tooltip {
	margin-left: 4px;
}

.ssk-materialy button.ssk-mat-tooltip__trigger {
	padding: 2px 10px;
	border: 1px solid #24BAE8;
	border-radius: 4px;
	background: transparent;
	color: #00B6F1;
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	transition: background 0.2s ease, color 0.2s ease;
}

.ssk-materialy button.ssk-mat-tooltip__trigger:hover,
.ssk-materialy button.ssk-mat-tooltip__trigger:focus-visible,
.ssk-materialy .ssk-mat-tooltip.is-open button.ssk-mat-tooltip__trigger {
	background: #00B6F1;
	color: #fff;
}

.ssk-materialy .ssk-mat-tooltip__panel {
	background: #013462;
	font-family: "ff-utility-web-pro", sans-serif;
	font-size: 13px;
}

/* ---------- Przycisk „Zapytaj” – pełny gradient jak przyciski w hero ---------- */
.ssk-materialy .ssk-mat-ask-wrap a.ssk-mat-ask.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 188px;
	height: 58px;
	padding: 0 40px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(258.8deg, #002C6A 0.6%, #5AE1FF 103.7%) !important;
	color: #E9F0F2;
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: filter 0.25s ease;
}

.ssk-materialy .ssk-mat-ask-wrap a.ssk-mat-ask.elementor-button:hover {
	filter: brightness(1.12);
}

/* Animacja zamiany ikony z .button__primary liczy szerokość ze zmiennej – plus jest szerszy niż strzałka. */
.ssk-materialy .ssk-mat-ask .elementor-button-content-wrapper {
	--arrow-w: 11px;
	--arrow-gap: 16px;
}

.ssk-materialy .ssk-mat-ask .elementor-button-icon svg {
	width: 11px;
	height: 11px;
}

/* Kolumna form może zająć wolne miejsce przed przyciskiem (bazowe 326 px z Dodatkowego CSS zostaje) –
   przy sztywnej szerokości formy łamały się i separator lądował na początku linii. */
.ssk-wrap.ssk-materialy .ssk-materialy-list .ssk-row .ssk-row__price {
	flex: 1 1 326px;
	min-width: 0;
}

/* ---------- Popup „Interesuje mnie” ---------- */
.ssk-materialy .ssk-modal__backdrop {
	background: rgba(0, 33, 70, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ssk-materialy .ssk-materialy-modal__dialog {
	max-width: 673px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 52px;
	border-radius: 12px;
	background: linear-gradient(213deg, #C5DCE3 3.3%, #F3F2EF 90.5%);
	box-shadow: 0 30px 60px rgba(0, 33, 70, 0.25);
	font-family: "ff-utility-web-pro", sans-serif;
}

.ssk-materialy .ssk-materialy-modal__dialog h3 {
	margin: 0 0 28px;
	font-family: "ddt", sans-serif;
	font-weight: 300;
	font-size: 24px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #013462;
}

.ssk-materialy .ssk-materialy-modal__dialog h3.ssk-mat-contact-title {
	margin-top: 52px;
}

.ssk-materialy button.ssk-modal__close {
	top: 20px;
	right: 20px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #013462;
	font-size: 26px;
	line-height: 1;
}

.ssk-materialy button.ssk-modal__close:hover,
.ssk-materialy button.ssk-modal__close:focus {
	color: #00B6F1;
	background: transparent;
}

.ssk-materialy .ssk-mat-inquiry-rows {
	gap: 12px;
	margin-bottom: 12px;
}

.ssk-materialy .ssk-mat-inquiry-row {
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 8px;
}

/* Wspólny wygląd pól: przezroczyste z białą ramką na gradiencie popupu. */
.ssk-materialy .ssk-mat-inquiry-row select,
.ssk-materialy .ssk-mat-inquiry-row input,
.ssk-materialy .ssk-mat-contact input {
	height: 52px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 0;
	background-color: transparent;
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 400;
	font-size: 13px;
	color: #013462;
	box-shadow: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ssk-materialy .ssk-mat-inquiry-row select {
	padding-right: 44px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' fill='none'%3E%3Cpath d='M.354.354l6 6 6-6' stroke='%2324BAE8'/%3E%3C/svg%3E") !important;
	/* !important: ogólne reguły formularzy (motyw/wtyczka) nadpisują tło skrótem „background”. */
	background-repeat: no-repeat !important;
	background-position: right 22px center !important;
	background-size: 13px 8px !important;
	cursor: pointer;
}

/* Wybrany materiał na niebiesko – jak w projekcie. */
.ssk-materialy .ssk-mat-inquiry-row select.ssk-mat-inquiry-rodzaj {
	color: #00B6F1;
}

.ssk-materialy .ssk-mat-inquiry-row select:focus,
.ssk-materialy .ssk-mat-inquiry-row input:focus,
.ssk-materialy .ssk-mat-contact input:focus {
	outline: none;
	border-color: #00B6F1;
	background-color: rgba(255, 255, 255, 0.35);
}

.ssk-materialy .ssk-mat-inquiry-row input::placeholder,
.ssk-materialy .ssk-mat-contact input::placeholder {
	color: #013462;
	opacity: 1;
}

.ssk-materialy button.ssk-mat-inquiry-remove {
	padding: 0 0 0 6px;
	border: 0;
	background: transparent;
	color: #00B6F1;
	font-family: "ff-utility-web-pro", sans-serif;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

.ssk-materialy button.ssk-mat-inquiry-remove:hover,
.ssk-materialy button.ssk-mat-inquiry-remove:focus {
	color: #013462;
	background: transparent;
}

.ssk-materialy button.ssk-mat-add-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #013462;
	font-family: "ff-utility-web-pro", sans-serif;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	transition: background 0.2s ease;
}

.ssk-materialy button.ssk-mat-add-row span {
	color: #00B6F1;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
}

.ssk-materialy button.ssk-mat-add-row:hover,
.ssk-materialy button.ssk-mat-add-row:focus {
	background: #EFF6FD;
	color: #013462;
}

.ssk-materialy .ssk-mat-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ssk-materialy .ssk-mat-contact input {
	width: 100%;
}

.ssk-materialy .ssk-mat-contact__grid {
	gap: 12px;
}

.ssk-materialy .ssk-mat-contact .ssk-submit-wrap {
	align-self: flex-start;
	width: auto;
	margin-top: 40px;
}

.ssk-materialy .ssk-mat-contact .ssk-submit-wrap a.ssk-submit.elementor-button {
	width: auto;
}

.ssk-materialy .ssk-mat-contact a.ssk-submit.elementor-button {
	display: inline-flex;
	align-items: center;
	height: 58px;
	padding: 0 52px;
	border-radius: 6px;
	background: linear-gradient(258.8deg, #002C6A 0.6%, #5AE1FF 103.7%) !important;
	color: #E9F0F2;
	font-family: "ff-utility-web-pro", sans-serif;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ssk-materialy .ssk-mat-contact .ssk-status:empty {
	display: none;
}

@media (max-width: 767px) {
	.ssk-materialy .ssk-materialy-modal__dialog {
		padding: 52px 20px 32px;
	}

	.ssk-materialy .ssk-mat-inquiry-row {
		grid-template-columns: 1fr 1fr;
	}

	.ssk-materialy .ssk-mat-inquiry-row .ssk-mat-inquiry-rodzaj {
		grid-column: 1 / -1;
	}

	.ssk-materialy button.ssk-mat-inquiry-remove {
		grid-column: 1 / -1;
		justify-self: end;
		padding: 4px 0;
	}

	.ssk-materialy .ssk-mat-contact__grid {
		grid-template-columns: 1fr;
	}

	.ssk-materialy .ssk-mat-contact .ssk-submit-wrap,
	.ssk-materialy .ssk-mat-contact a.ssk-submit.elementor-button {
		width: 100%;
		justify-content: center;
	}

	.ssk-materialy .ssk-mat-row__formy-list {
		font-size: 14px;
	}

	.ssk-materialy .ssk-mat-forma {
		padding: 0 12px;
	}
}
