/* FoxnFound — Ring Size Converter + International Chart (/ring-size-guide) */

/* ── конвертер ── */
.fnf-ring-calc {
	background: #fcf8ef;
	border: 1px solid #1c160d;
	box-shadow: 0 0 0 4px #fcf8ef, 0 0 0 5px #8c6f3f;
	border-radius: 2px;
	max-width: 680px;
	margin: 10px auto 30px;
	padding: 28px 32px 32px;
}
.fnf-ring-calc h3 {
	text-align: center;
	margin-bottom: 6px;
}
.fnf-ring-calc > p {
	text-align: center;
	color: #5a4d3a;
	margin-bottom: 18px;
}
.fnf-calc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}
.fnf-calc-row .fnf-field {
	flex: 1 1 180px;
	margin: 0;
}
.fnf-calc-row label {
	display: block;
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8c6f3f;
	margin-bottom: 4px;
}
/* идентичные контролы: одна высота, одна рамка, один радиус — перебиваем тему */
.fnf-calc-row select,
.fnf-calc-row input[type="text"] {
	width: 100%;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 14px;
	background-color: #fff;
	border: 1px solid #8c6f3f !important;
	border-radius: 6px !important;
	color: #1c160d;
	box-shadow: none !important;
	font-size: 1em;
	line-height: 44px;
}
/* wpautop оборачивает кнопку в <p> — это и есть flex-элемент, гасим его отступы */
.fnf-calc-row p {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0;
	line-height: 1;
}
.fnf-calc-row .button {
	flex: 0 0 auto;
	height: 46px;
	line-height: 46px;
	margin: 0 !important;
	padding: 0 26px;
	border-radius: 6px;
	vertical-align: bottom;
}
.fnf-calc-result {
	margin-top: 20px;
	border-top: 1px solid #e4d9c3;
	padding-top: 16px;
}
.fnf-calc-result.is-error {
	color: #b3261e;
}
.fnf-calc-note {
	color: #8c6f3f;
	font-style: italic;
	margin-bottom: 8px;
}
.fnf-calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px 18px;
	margin: 0;
}
.fnf-calc-grid dt {
	font-size: 0.75em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8c6f3f;
}
.fnf-calc-grid dd {
	font-size: 1.25em;
	font-weight: 600;
	color: #1c160d;
	margin: 0;
}

/* ── международная таблица: обычный контент, без фрейма и скролла ── */
.fnf-ring-table-wrap {
	border: 0;
	overflow: visible;
}
table.fnf-ring-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 0 0 1.5em;
}
table.fnf-ring-table thead th {
	background: #1c160d;
	color: #fcf8ef;
	text-align: center;
	padding: 10px 8px;
}
table.fnf-ring-table td {
	text-align: center;
	padding: 7px 8px;
	border-bottom: 1px solid #eee8da;
	white-space: nowrap;
}
table.fnf-ring-table td:first-child {
	font-weight: 700;
}
table.fnf-ring-table tbody tr:nth-child(even) td {
	background: #faf6ec;
}
table.fnf-ring-table tbody tr.fnf-ring-hit td {
	background: #f3e7c9;
	box-shadow: inset 0 1px 0 #8c6f3f, inset 0 -1px 0 #8c6f3f;
}

@media (max-width: 549px) {
	.fnf-ring-calc {
		padding: 20px 16px 24px;
	}
	.fnf-calc-row p {
		flex: 1 1 100%;
	}
	.fnf-calc-row .button {
		width: 100%;
	}
	table.fnf-ring-table {
		font-size: 12px;
	}
	table.fnf-ring-table thead th {
		font-size: 11px;
		padding: 8px 3px;
		white-space: normal; /* «Circumference (mm)» переносится, колонки влезают */
	}
	table.fnf-ring-table td {
		padding: 5px 3px;
	}
}
