/**
 * JSN WooCommerce — Product page styles.
 *
 * Uses theme CSS variables where available.
 * Designed to harmonize with jsn-theme design system.
 */

/* ─── Shared: field labels ─── */

.jsn-field-label {
	display: block;
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--neutral-600, #6e6e73);
	margin-bottom: 4px;
}

/* ─── Shared: inputs & selects ─── */

.jsn-field-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: #fff;
	color: #1d1d1f;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.jsn-field-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: #fff;
	color: #1d1d1f;
}

.jsn-field-input:focus,
.jsn-field-select:focus {
	outline: none;
	border-color: var(--wp--preset--color--teal-700, #148387);
	box-shadow: 0 0 0 2px rgba(20, 131, 135, 0.15);
}

/* ─── Shared: utility ─── */

.jsn-hidden {
	display: none !important;
}

/* ─── Shared: buttons ─── */

.jsn-btn-validate {
	padding: 10px 20px;
	border-radius: 980px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
}

.jsn-btn-validate:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ─── SIM Selector ─── */

#jsn-sim-wrap,
.jsn-sim-wrap {
	margin: 0 0 8px;
	padding: 0;
}

.jsn-iccid-wrap {
	margin-top: 8px;
}

.jsn-sim-msg {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.jsn-sim-msg.jsn-msg-ok,
.jsn-msg-ok {
	color: var(--wp--preset--color--teal-700, #148387);
}

.jsn-sim-msg.jsn-msg-error {
	color: #dc2626;
}

/* ─── Validated SIM input ─── */

.jsn-field-input.jsn-validated {
	border-color: var(--wp--preset--color--teal-700, #148387);
	background: rgba(20, 131, 135, 0.04);
}

/* ─── Prepaid Term Selector ─── */

.jsn-prepaid-term {
	margin: 0 0 8px;
	padding: 0;
}

.jsn-prepaid-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.jsn-term-amount {
	width: 100px !important;
	flex: 0 0 100px;
}

.jsn-term-unit {
	width: auto !important;
	flex: 0 0 auto;
	min-width: 110px;
}

.jsn-prepaid-price {
	margin-left: auto;
	font-weight: 700;
	font-size: 1rem;
	color: #1d1d1f;
	white-space: nowrap;
}

.jsn-prepaid-ends {
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--neutral-600, #6e6e73);
}

.jsn-prepaid-nudge {
	margin-top: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--teal-700, #148387);
}
