.wsc-it-plan-builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: 2.5em;
	margin-top: 1em;
	align-items: start;
}

.wsc-it-plan-builder h1 {
	font-size: 1.5em;
	margin: 0 0 0.75em;
}

.wsc-it-field {
	margin-bottom: 1.25em;
}

.wsc-it-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.wsc-it-field input[type="text"],
.wsc-it-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65em 0.75em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.wsc-it-schedule-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.wsc-it-schedule-box {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.wsc-it-schedule-header {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1em;
	padding: 0.85em 1em;
	font-weight: 700;
	border-bottom: 1px solid #c3c4c7;
}

.wsc-it-help {
	color: #888;
	font-weight: 400;
	cursor: help;
}

.wsc-it-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1em;
	align-items: center;
	padding: 0.85em 1em;
	border-bottom: 1px solid #e2e2e2;
}

.wsc-it-row:last-of-type {
	border-bottom: none;
}

.wsc-it-row-amount {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.wsc-it-amount-input {
	width: 80px;
}

.wsc-it-row-interval {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
}

.wsc-it-interval-days {
	width: 70px;
}

.wsc-it-row-actions {
	display: flex;
	gap: 0.4em;
}

.wsc-it-row-actions button {
	width: 2em;
	height: 2em;
	border: 1px solid #2271b1;
	background: #fff;
	color: #2271b1;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}

.wsc-it-row-actions button:hover {
	background: #2271b1;
	color: #fff;
}

.wsc-it-remove-row {
	border-color: #b32d2e !important;
	color: #b32d2e !important;
}

.wsc-it-remove-row:hover {
	background: #b32d2e !important;
	color: #fff !important;
}

.wsc-it-schedule-footer {
	display: flex;
	justify-content: space-between;
	padding: 0.85em 1em;
	background: #f6f7f7;
	border-top: 1px solid #c3c4c7;
}

.wsc-it-plans-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.wsc-it-plans-table th {
	text-align: left;
	padding: 0.9em 1em;
	border-bottom: 1px solid #c3c4c7;
	font-weight: 700;
}

.wsc-it-plans-table td {
	padding: 1em;
	border-bottom: 1px solid #e2e2e2;
	vertical-align: top;
}

.wsc-it-plans-table tbody tr:nth-child(even) {
	background: #f6f7f7;
}

.wsc-it-plan-link {
	font-weight: 700;
	text-decoration: none;
}

.wsc-it-delete-link {
	color: #b32d2e;
}

@media (max-width: 900px) {
	.wsc-it-plan-builder {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------
   Customer-facing plan options at checkout
------------------------------------------------------------------- */

.wsc-it-plan-options {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.wsc-it-plan-option {
	display: block;
	border: 1px solid var(--wsc-line, #e4e0d4);
	border-radius: 6px;
	padding: 0.85em 1em;
	cursor: pointer;
}

.wsc-it-plan-option:has(input:checked) {
	border-color: var(--wsc-accent, #1f6f43);
	background: var(--wsc-accent-tint, #e6f1ea);
}

.wsc-it-plan-name {
	display: block;
	font-weight: 600;
	margin-left: 1.6em;
}

.wsc-it-plan-description {
	display: block;
	margin-left: 1.6em;
	font-size: 0.88rem;
	color: var(--wsc-muted, #5b6660);
	margin-top: 0.2em;
}

.wsc-it-plan-schedule {
	display: block;
	margin-left: 1.6em;
	margin-top: 0.4em;
	font-size: 0.82rem;
	color: var(--wsc-muted, #5b6660);
}
