/* Sokrates Nadruk DTF / Haft v4 — mobile-first */

/* ===== Przyciski na stronie produktu ===== */
.snh-btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 20px;
}

.snh-open-btn {
	width: 100%;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	border: 2px solid #5a7a3a;
	border-radius: 8px;
	background: #fff;
	color: #3a5a1a;
	cursor: pointer;
	text-align: center;
	transition: background .15s, color .15s;
}

.snh-open-btn:hover,
.snh-open-btn:focus {
	background: #5a7a3a;
	color: #fff;
	outline: none;
}

/* ===== Modal overlay ===== */
.snh-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 99999;
	display: flex;
	align-items: flex-end;   /* wysuwa się od dołu na telefonie */
	justify-content: center;
	padding: 0;
}

.snh-modal[hidden] { display: none; }

.snh-modal-box {
	background: #fff;
	width: 100%;
	max-width: 680px;
	max-height: 92vh;
	border-radius: 18px 18px 0 0;
	overflow-y: auto;
	padding: 24px 20px 32px;
	position: relative;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

/* Na dużych ekranach — wyśrodkowany jako dialog */
@media (min-width: 640px) {
	.snh-modal { align-items: center; }
	.snh-modal-box {
		border-radius: 12px;
		max-height: 88vh;
		padding: 32px 36px 40px;
	}
}

/* ===== Nagłówek modala ===== */
.snh-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #888;
	line-height: 1;
	padding: 4px 8px;
}

.snh-modal-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 18px;
	padding-right: 32px;
	color: #222;
}

.snh-back-btn {
	background: none;
	border: none;
	color: #5a7a3a;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 12px;
	display: block;
}

/* ===== Cennik ===== */
.snh-price-block { margin-bottom: 28px; }

.snh-price-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #5a7a3a;
	margin: 0 0 10px;
}

.snh-price-table-wrap { overflow-x: auto; margin-bottom: 14px; }

.snh-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 340px;
}

.snh-price-table th {
	background: #f2f5ef;
	padding: 7px 9px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #dde8d4;
	white-space: nowrap;
}

.snh-price-table td {
	padding: 7px 9px;
	border-bottom: 1px solid #eee;
}

.snh-price-table tr:last-child td { border-bottom: none; }

.snh-choose-btn {
	width: 100%;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	background: #5a7a3a;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}

.snh-choose-btn:hover { background: #3a5a1a; }

/* ===== Formularz — krok 2 ===== */
.snh-section-label {
	font-weight: 700;
	font-size: 14px;
	margin: 18px 0 8px;
	color: #333;
}

/* Tabelka rozmiarów */
.snh-sizes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

@media (min-width: 400px) {
	.snh-sizes { grid-template-columns: repeat(7, 1fr); }
}

.snh-sz {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.snh-sz span {
	font-size: 12px;
	font-weight: 700;
	color: #444;
}

.snh-sz input {
	width: 100%;
	padding: 8px 4px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.snh-sz input::-webkit-outer-spin-button,
.snh-sz input::-webkit-inner-spin-button { -webkit-appearance: none; }

.snh-sz input:focus { border-color: #5a7a3a; outline: none; }

.snh-total-line {
	font-size: 13px;
	color: #555;
	margin: 4px 0 16px;
}

/* Upload pliku */
.snh-file-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px dashed #aaa;
	border-radius: 7px;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	background: #fafafa;
}

.snh-file-label input[type="file"] { display: none; }

.snh-hint {
	font-size: 12px;
	color: #999;
	margin: 5px 0 0;
}

.snh-opt { font-weight: 400; color: #aaa; font-size: 12px; }

/* Pola kontaktowe */
.snh-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.snh-field-row { display: flex; gap: 10px; }
.snh-field-row input { flex: 1; min-width: 0; }

.snh-fields input,
.snh-fields textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #ccc;
	border-radius: 7px;
	font-size: 15px;
	box-sizing: border-box;
	font-family: inherit;
}

.snh-fields input:focus,
.snh-fields textarea:focus { border-color: #5a7a3a; outline: none; }

/* Wyślij */
.snh-send-btn {
	width: 100%;
	margin-top: 16px;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	background: #5a7a3a;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}

.snh-send-btn:hover { background: #3a5a1a; }
.snh-send-btn:disabled { background: #aaa; cursor: default; }

.snh-note { font-size: 12px; color: #aaa; margin: 8px 0 0; text-align: center; }

/* Komunikaty */
.snh-success-msg {
	background: #d4edda;
	border: 1px solid #5a7a3a;
	color: #1a4a0a;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 15px;
	margin-bottom: 12px;
}

.snh-error-msg {
	background: #fff3cd;
	border: 1px solid #e0a800;
	color: #856404;
	padding: 12px 16px;
	border-radius: 7px;
	font-size: 14px;
	margin-bottom: 12px;
}
