/**
 * Stamp Duty Calculator — calculator-specific polish.
 */

.ic-stampdutycalc .ic-sd-nonres-note {
	margin-top: 4px;
}

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

.ic-stampdutycalc .ic-breakdown-table--summary {
	overflow: hidden;
}

.ic-stampdutycalc .ic-breakdown-row--highlight {
	background: var(--ic-primary-light);
}

.ic-stampdutycalc .ic-breakdown-row--highlight .ic-breakdown-value {
	color: var(--ic-primary);
}

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

.ic-stampdutycalc .ic-note--warning {
	color: var(--ic-text-secondary);
	background: var(--ic-accent-light);
	border: 1px solid rgba(217, 119, 6, 0.25);
}

.ic-stampdutycalc .ic-note--warning a {
	color: inherit;
	text-decoration: underline;
}

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

/* Force the property price prefix to use the same inline PAYE-style layout.
   The calculator root currently shares two prefix systems, so we neutralise
   the boxed-affix rules here to avoid the clipped € badge. */
.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;
	min-width: 0;
	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-ref-card {
	background: var(--ic-surface);
	border: 1px solid var(--ic-border);
	border-radius: var(--ic-radius);
	overflow: hidden;
}

.ic-stampdutycalc .ic-sd-ref-title,
.ic-stampdutycalc .ic-section-heading {
	margin: 0;
	padding: 12px 18px;
	font-size: 10px;
	font-weight: var(--ic-heading-weight);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ic-primary);
}

.ic-stampdutycalc .ic-sd-ref-table {
	background: var(--ic-surface);
	border-top: 1px solid var(--ic-border);
	border-bottom: 1px solid var(--ic-border);
}

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

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

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

.ic-stampdutycalc .ic-sd-ref-row span:last-child {
	font-weight: 700;
	color: var(--ic-text);
}

.ic-stampdutycalc .ic-sd-ref-notes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 18px 16px;
}

.ic-stampdutycalc .ic-sd-ref-note {
	font-size: 13px;
	line-height: 1.55;
	color: var(--ic-text-secondary);
}

.ic-stampdutycalc .ic-sd-band-table {
	background: var(--ic-surface);
	border: 1px solid var(--ic-border);
	border-radius: var(--ic-radius);
	overflow: hidden;
}

.ic-stampdutycalc .ic-sd-band-row {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--ic-border);
	font-size: 13px;
	align-items: center;
}

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

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

.ic-stampdutycalc .ic-sd-band-row--total {
	background: var(--ic-primary-light);
}

.ic-stampdutycalc .ic-sd-band-cell--right {
	text-align: right;
}

.ic-stampdutycalc .ic-sd-band-cell--strong {
	font-weight: 700;
	color: var(--ic-text);
}

.ic-stampdutycalc .ic-sd-short-note {
	padding: 14px 16px;
}

.ic-stampdutycalc .ic-sd-short-note p {
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 900px) {
	.ic-stampdutycalc .ic-sd-band-row {
		grid-template-columns: 1.2fr auto auto auto;
		font-size: 12px;
	}
}
