/**
 * Stamp Duty Calculator — simplified split-screen UI.
 * v3.6.8: matched split-screen column widths to shared PAYE/VAT 50:50 layout.
 */

.ic-stampdutycalc.ic-payecalc .ic-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 0 !important;
}

.ic-stampdutycalc.ic-payecalc .ic-inputs {
	padding: clamp(20px, 2.4vw, 28px) !important;
	background: var(--ic-surface);
	border-right: 1px solid var(--ic-border);
	border-bottom: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ic-stampdutycalc.ic-payecalc .ic-results {
	padding: clamp(20px, 2.4vw, 28px) !important;
	background: var(--ic-bg);
	border-left: 0 !important;
	min-height: 420px;
	display: block;
}

.ic-stampdutycalc .ic-stagger,
.ic-stampdutycalc .ic-sd-results-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ic-stampdutycalc .ic-input-prefix-wrap {
	position: relative;
	display: block;
}

.ic-stampdutycalc .ic-input-prefix {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ic-text-light);
	font-size: var(--ic-base-font-size);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	z-index: 1;
}

.ic-stampdutycalc .ic-input-has-prefix {
	padding-left: 30px !important;
}

.ic-stampdutycalc .ic-sd-mixed-fields[hidden] {
	display: none !important;
}

.ic-stampdutycalc .ic-sd-mixed-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	align-items: start;
}

.ic-stampdutycalc .ic-sd-actions-main {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.ic-stampdutycalc .ic-sd-actions-main .ic-calc-btn {
	flex: 1 1 auto;
	min-width: 0;
}

.ic-stampdutycalc .ic-sd-actions-main .ic-reset-btn {
	flex: 0 0 auto;
}

.ic-stampdutycalc .ic-sd-input-note {
	margin-top: 2px;
}

.ic-stampdutycalc .ic-sd-hero {
	min-height: auto;
	padding: 22px 24px;
	margin-bottom: 0;
}

.ic-stampdutycalc .ic-sd-hero .ic-result-primary-value,
.ic-stampdutycalc .ic-summary-value {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.ic-stampdutycalc .ic-sd-chips {
	margin: -2px 0 0;
}

.ic-stampdutycalc .ic-sd-summary-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0;
}

.ic-stampdutycalc .ic-sd-breakdown {
	margin-bottom: 0;
}

.ic-stampdutycalc .ic-sd-breakdown-row {
	display: grid;
	grid-template-columns: minmax(150px, 1.25fr) minmax(100px, .85fr) minmax(70px, .55fr) minmax(100px, .85fr);
	gap: 12px;
	align-items: center;
	padding: 11px 16px;
	border-bottom: 1px solid var(--ic-border);
	font-size: 13px;
}

.ic-stampdutycalc .ic-sd-breakdown-row:last-child {
	border-bottom: none;
}

.ic-stampdutycalc .ic-sd-breakdown-row--header {
	background: var(--ic-bg-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ic-text-muted);
}

.ic-stampdutycalc .ic-sd-breakdown-row span:nth-child(n+2),
.ic-stampdutycalc .ic-sd-breakdown-row strong {
	text-align: right;
}

.ic-stampdutycalc .ic-sd-breakdown-row__label {
	font-weight: 600;
	color: var(--ic-text);
}

.ic-stampdutycalc .ic-sd-breakdown-row strong {
	font-family: var(--ic-font-display);
	font-weight: 600;
	color: var(--ic-text);
}

.ic-stampdutycalc .ic-sd-note-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0;
}

.ic-stampdutycalc .ic-sd-ref-card {
	background: var(--ic-surface);
	border: 1px solid var(--ic-border);
	border-radius: var(--ic-radius);
	overflow: hidden;
	box-shadow: var(--ic-shadow-sm);
	margin-top: 14px;
}

.ic-stampdutycalc .ic-sd-ref-title {
	padding: 12px 18px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ic-text-muted);
	background: var(--ic-bg-muted);
	border-bottom: 1px solid var(--ic-border);
}

.ic-stampdutycalc .ic-sd-ref-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 18px;
	border-bottom: 1px solid var(--ic-border);
	font-size: 13px;
}

.ic-stampdutycalc .ic-sd-ref-row:last-child {
	border-bottom: 0;
}

.ic-stampdutycalc .ic-sd-ref-row strong {
	font-family: var(--ic-font-display);
	font-weight: 600;
	color: var(--ic-text);
	text-align: right;
}

.ic-stampdutycalc .ic-shared-copy .ic-note {
	margin-top: 14px;
}

@media (max-width: 700px) {
	.ic-stampdutycalc.ic-payecalc .ic-grid {
		grid-template-columns: 1fr !important;
	}

	.ic-stampdutycalc.ic-payecalc .ic-inputs {
		border-right: 0;
		border-bottom: 1px solid var(--ic-border) !important;
	}

	.ic-stampdutycalc.ic-payecalc .ic-results {
		border-top: 0 !important;
	}
}

@media (max-width: 760px) {
	.ic-stampdutycalc .ic-sd-mixed-fields,
	.ic-stampdutycalc .ic-sd-summary-cards,
	.ic-stampdutycalc .ic-sd-note-grid {
		grid-template-columns: 1fr;
	}

	.ic-stampdutycalc .ic-sd-actions-main {
		flex-direction: column;
	}

	.ic-stampdutycalc .ic-sd-actions-main .ic-calc-btn,
	.ic-stampdutycalc .ic-sd-actions-main .ic-reset-btn {
		width: 100%;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row,
	.ic-stampdutycalc .ic-sd-breakdown-row--header {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row--header {
		display: none;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row span,
	.ic-stampdutycalc .ic-sd-breakdown-row span:nth-child(n+2),
	.ic-stampdutycalc .ic-sd-breakdown-row strong {
		text-align: left;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row span:nth-child(2)::before {
		content: 'Amount: ';
		color: var(--ic-text-muted);
		font-weight: 400;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row span:nth-child(3)::before {
		content: 'Rate: ';
		color: var(--ic-text-muted);
		font-weight: 400;
	}

	.ic-stampdutycalc .ic-sd-breakdown-row strong::before {
		content: 'Duty: ';
		color: var(--ic-text-muted);
		font-weight: 400;
	}
}
