/**
 * PWYC Seating Charts widget styles.
 *
 * The widget sits inside .tc-checkout-bar (a flex row, height: 100%,
 * inside a position:absolute container ~70px tall).  Every child must
 * participate inline in that flex context.
 */

/* ─── Widget container ─────────────────────────────────── */
.pwyc-sc-widget {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	margin: 0;
	padding: 0 14px 0 0;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 13px;
	color: #353535;
	white-space: nowrap;
	opacity: 0.55;
	transition: opacity 0.15s linear;
}

.pwyc-sc-widget--active {
	opacity: 1;
}

/* ─── Label column: label on top, hint below ──────────── */
.pwyc-sc-label-wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	line-height: 1;
}

.pwyc-sc-label {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	color: #353535;
}

.pwyc-sc-checkbox {
	margin: 0;
	vertical-align: middle;
	cursor: pointer;
}

/* ─── Amount row: currency + input + hint ──────────────── */
.pwyc-sc-amount-row {
	display: flex;
	align-items: center;
	gap: 3px;
}

.pwyc-sc-currency {
	font-weight: 600;
	font-size: 14px;
	color: #6b5f89;
}

.pwyc-sc-input {
	width: 72px;
	padding: 4px 6px;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 14px;
	color: #353535;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 3px;
	box-sizing: border-box;
	text-align: right;
	transition: border-color 0.15s linear;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pwyc-sc-input:focus {
	outline: none;
	border-color: #6b5f89;
}

.pwyc-sc-input::-webkit-inner-spin-button,
.pwyc-sc-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pwyc-sc-input:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ─── Hint (minimum / suggested) ───────────────────────── */
.pwyc-sc-hint {
	font-size: 10px;
	color: #aaa;
	white-space: nowrap;
	padding-left: 18px; /* align with label text (past checkbox) */
}

/* ─── Feedback badge (added amount after AJAX) ─────────── */
.pwyc-sc-feedback {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #6b5f89;
	white-space: nowrap;
}

/* ─── Responsive ───────────────────────────────────────── */
@media screen and (max-width: 768px) {
	.pwyc-sc-widget {
		gap: 4px;
		padding: 0 8px 0 0;
	}

	.pwyc-sc-hint {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	.pwyc-sc-widget {
		padding: 0 4px 0 0;
		gap: 3px;
	}

	.pwyc-sc-label {
		font-size: 0;
	}

	.pwyc-sc-label .pwyc-sc-checkbox {
		font-size: 14px;
	}

	.pwyc-sc-input {
		width: 56px;
		font-size: 12px;
	}

	.pwyc-sc-feedback {
		display: none;
	}
}
