/**
 * Product Syringe Calculator styles
 *
 * Edit this file freely — changes are picked up automatically (filemtime cache-bust).
 * Hard-refresh the front-end (Ctrl+Shift+R) if the browser caches an old version.
 */

.pcalc {
	max-width: 560px;
	margin: 1em 0;
	font-family: inherit;
	color: inherit;
}

.pcalc__body {
	padding: 0;
}

.pcalc__title {
	font-size: 1.1em;
	margin: 8px 0 14px;
}

.pcalc__rows {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.pcalc__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 10px;
}

@media (max-width: 480px) {
	.pcalc__row {
		grid-template-columns: 1fr;
	}
}

.pcalc__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	margin: 0;
}

.pcalc__tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f0f0f0;
	color: #444;
	font-size: 11px;
	font-weight: 700;
	font-style: italic;
	cursor: help;
	position: relative;
	user-select: none;
}

.pcalc__tip:hover::after,
.pcalc__tip:focus::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	background: #222;
	color: #fff;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	padding: 6px 8px;
	border-radius: 4px;
	width: max-content;
	max-width: 220px;
	z-index: 10;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
}

.pcalc__field {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.pcalc__field input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #111;
}

.pcalc__field input[readonly] {
	background: #fafafa;
	color: #333;
}

.pcalc__field select {
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #111;
}

.pcalc__suffix {
	display: flex;
	align-items: center;
	padding: 0 8px;
	color: #666;
	font-size: 14px;
}

.pcalc__result {
	margin-top: 14px;
	padding: 12px;
	background: #f7f7f7;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.pcalc__result:empty {
	display: none;
}

.pcalc__result p {
	margin: 0 0 8px;
}

.pcalc__result p:last-child {
	margin-bottom: 0;
}

.pcalc__result strong {
	color: #111;
}

.pcalc__credit {
	margin-top: 12px;
	text-align: right;
	font-size: 12px;
	color: #888;
}

.pcalc__credit a {
	color: inherit;
	text-decoration: underline;
}

.pcalc__credit a:hover {
	color: #111;
}
