/**
 * NTT RFQ List - layout fix
 * File: wp-content/themes/basel-child/assets/css/ntt-rfq-list.css
 */

.ntt-rfq-wrap {
	max-width: 1170px;
	margin: 0 auto;
}

.ntt-rfq-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

/* ── Tabela produktow (lewa kolumna) ── */
.ntt-rfq-table {
	flex: 1 1 640px;
	min-width: 0;
	width: 100%;
	border-collapse: collapse;
}

.ntt-rfq-table thead th {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8a8a8a;
	padding: 0 12px 14px 0;
	border-bottom: 2px solid #eaeaea;
}

.ntt-rfq-table tbody tr {
	border-bottom: 1px solid #eaeaea;
	transition: opacity 0.25s ease;
}

.ntt-rfq-table tbody td {
	padding: 20px 12px 20px 0;
	vertical-align: middle;
}

/* Kolumna produktu */
.ntt-rfq-product-cell {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ntt-rfq-product-link {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: inherit;
}

.ntt-rfq-product-link img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: #f7f7f7;
	border-radius: 4px;
	flex-shrink: 0;
}

.ntt-rfq-product-title {
	font-size: 13px;
	font-weight: 500;
	color: #222;
	line-height: 1.4;
}

/* Ilosc */
.ntt-rfq-table td:nth-child(2) {
	white-space: nowrap;
}

/* Kolumna ilosci - cala kolumna wezsza */
.ntt-rfq-table th:nth-child(2),
.ntt-rfq-table td:nth-child(2) {
	width: 50px;
	white-space: nowrap;
}

.ntt-rfq-qty-input {
	width: 36px !important;
	height: 26px !important;
	padding: 0 2px !important;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 12px;
	line-height: 26px;
	text-align: center;
	-moz-appearance: textfield;
	box-sizing: content-box;
}

.ntt-rfq-qty-input::-webkit-outer-spin-button,
.ntt-rfq-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Notatka - textarea rosnaca wraz z tekstem */
.ntt-rfq-note {
	width: 100%;
	max-width: 220px;
	min-height: 26px;
	padding: 5px 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 12px;
	font-family: inherit;
	resize: none;
	overflow: hidden;
	line-height: 1.4;
	display: block;
}

/* Usun */
.ntt-rfq-remove {
	font-size: 11px;
	color: #b33;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.ntt-rfq-remove:hover {
	border-color: #b33;
}

/* ── Formularz (prawa kolumna) ── */
.ntt-rfq-layout form {
	flex: 0 0 320px;
	background: #f9f9f9;
	padding: 28px;
	border-radius: 4px;
}

.ntt-rfq-layout form p {
	margin: 0 0 16px;
}

.ntt-rfq-layout form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #444;
	margin-bottom: 6px;
}

.ntt-rfq-layout form input[type="text"],
.ntt-rfq-layout form input[type="email"],
.ntt-rfq-layout form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.ntt-rfq-layout form textarea {
	resize: vertical;
}

.ntt-rfq-layout form button[type="submit"] {
	width: 100%;
	padding: 13px 20px;
	background: #0367c9;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ntt-rfq-layout form button[type="submit"]:hover {
	background: #0268b3;
}

/* ── Notice (sukces/blad) ── */
.ntt-rfq-notice {
	flex-basis: 100%;
	padding: 12px 16px;
	border-radius: 3px;
	font-size: 14px;
	margin-bottom: -16px;
}

.ntt-rfq-notice--success {
	background: #e7f6ec;
	color: #1e7a38;
	border: 1px solid #b9e5c6;
}

.ntt-rfq-notice--error {
	background: #fbe9e9;
	color: #b33;
	border: 1px solid #f0c2c2;
}

/* ── Pusta lista ── */
.ntt-rfq-empty {
	padding: 60px 0;
	text-align: center;
}

.ntt-rfq-empty p {
	font-size: 15px;
	color: #666;
}

.ntt-rfq-empty a {
	color: #0367c9;
	font-weight: 600;
	text-decoration: none;
}

.ntt-rfq-empty a:hover {
	text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.ntt-rfq-layout {
		flex-direction: column;
		gap: 32px;
	}

	.ntt-rfq-table thead {
		display: none;
	}

	.ntt-rfq-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		gap: 12px 16px;
		padding: 20px 0;
	}

	.ntt-rfq-table tbody td {
		padding: 0;
		flex: 1 1 auto;
	}

	.ntt-rfq-product-cell {
		flex: 1 1 100%;
	}

	.ntt-rfq-layout form {
		flex-basis: auto;
	}
}