/* Commercial Inventory Loss Calculator — scoped ilc- styles */

.ilc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ilc-page {
	max-width: 52rem;
	margin: 0 auto 2rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #1a1a1a;
}

.ilc-noscript {
	padding: 1rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #f9f9f9;
}

.ilc-step {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e2e2;
}

.ilc-step h3 {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	color: #1e3a5f;
}

.ilc-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 1rem;
}

.ilc-fieldset legend {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.ilc-field-row {
	margin-bottom: 1rem;
}

.ilc-field-row label,
.ilc-label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.ilc-optional {
	font-weight: 400;
	color: #666;
	font-size: 0.875rem;
}

.ilc-field-row input[type="text"],
.ilc-field-row input[type="date"],
.ilc-field-row input[type="number"],
.ilc-field-row select {
	width: 100%;
	max-width: 28rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.ilc-address-wrap {
	position: relative;
	max-width: 28rem;
}

.ilc-address-wrap input[type="text"] {
	width: 100%;
	max-width: none;
}

.ilc-address-suggestions {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0.15rem 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-height: 14rem;
	overflow-y: auto;
}

.ilc-address-suggestion {
	padding: 0.5rem 0.65rem;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.35;
}

.ilc-address-suggestion:hover,
.ilc-address-suggestion.is-active {
	background: #f0f5fa;
}

.ilc-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: #666;
}

.ilc-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ilc-radio-row label {
	font-weight: 400;
	cursor: pointer;
}

/* Scenario cards */
.ilc-scenario-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.75rem;
}

.ilc-scenario-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.85rem 1rem;
	border: 2px solid #d0d0d0;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.ilc-scenario-card:hover {
	border-color: #1e3a5f;
}

.ilc-scenario-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ilc-scenario-card:has(input:checked) {
	border-color: #1e3a5f;
	background: #f0f5fa;
}

.ilc-scenario-card__title {
	font-weight: 600;
	color: #1e3a5f;
}

.ilc-scenario-card__desc {
	font-size: 0.875rem;
	color: #555;
}

/* Tooltip */
.ilc-tooltip-trigger {
	display: inline;
	margin-left: 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	color: #1e3a5f;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 400;
}

.ilc-tooltip {
	margin: 0.5rem 0 1rem;
	padding: 0.75rem 1rem;
	background: #f5f8fc;
	border-left: 3px solid #1e3a5f;
	border-radius: 0 4px 4px 0;
	font-size: 0.9rem;
}

.ilc-tooltip p {
	margin: 0 0 0.5rem;
}

.ilc-tooltip p:last-child {
	margin-bottom: 0;
}

/* Table */
.ilc-table-hint {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	background: #f5f8fc;
	border-left: 3px solid #1e3a5f;
	border-radius: 0 4px 4px 0;
	font-size: 0.9rem;
	color: #333;
}

.ilc-table-hint__title {
	margin: 0 0 0.5rem;
	font-weight: 600;
	color: #1e3a5f;
}

.ilc-table-hint__list {
	margin: 0;
	padding-left: 1.15rem;
}

.ilc-table-hint__list li {
	margin-bottom: 0.35rem;
	line-height: 1.45;
}

.ilc-table-hint__list li:last-child {
	margin-bottom: 0;
}

.ilc-table-wrap {
	overflow-x: auto;
	margin: 1rem 0;
}

.ilc-items-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.ilc-items-table th,
.ilc-items-table td {
	padding: 0.4rem 0.35rem;
	border-bottom: 1px solid #e2e2e2;
	vertical-align: middle;
	text-align: left;
}

.ilc-items-table th {
	font-size: 0.8rem;
	color: #444;
	background: #f7f7f7;
}

.ilc-items-table input,
.ilc-items-table select {
	width: 100%;
	min-width: 4.5rem;
	padding: 0.35rem 0.4rem;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.875rem;
	box-sizing: border-box;
}

.ilc-col-actions {
	width: 2rem;
	text-align: center;
}

.ilc-btn-remove {
	padding: 0.15rem 0.45rem;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #c00;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.ilc-btn-remove:hover {
	background: #fef2f2;
}

/* Buttons */
.ilc-btn {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	border: 0;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.ilc-btn--primary {
	background: #1e3a5f;
	color: #fff;
}

.ilc-btn--primary:hover {
	background: #152a45;
}

.ilc-btn--secondary {
	background: #fff;
	color: #1e3a5f;
	border: 1px solid #1e3a5f;
}

.ilc-btn--secondary:hover {
	background: #f0f5fa;
}

.ilc-form-actions {
	margin-top: 1rem;
}

/* Callouts & warnings */
.ilc-api-callouts,
.ilc-result-callouts {
	margin-top: 1rem;
}

.ilc-callout {
	margin: 0 0 0.65rem;
	padding: 0.75rem 1rem;
	background: #eef6ee;
	border-left: 3px solid #2d6a2d;
	border-radius: 0 4px 4px 0;
	font-size: 0.9rem;
}

.ilc-warning {
	margin: 0.5rem 0 0;
	padding: 0.6rem 0.85rem;
	background: #fff8e6;
	border-left: 3px solid #c8860a;
	border-radius: 0 4px 4px 0;
	font-size: 0.9rem;
}

.ilc-warning--soft {
	background: #f5f8fc;
	border-left-color: #1e3a5f;
}

/* Results */
.ilc-results {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 2px solid #1e3a5f;
}

.ilc-output-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.ilc-tab {
	padding: 0.5rem 0.85rem;
	border: 1px solid #ccc;
	border-radius: 4px 4px 0 0;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 0.9rem;
}

.ilc-tab.is-active {
	background: #fff;
	border-bottom-color: #fff;
	font-weight: 600;
	color: #1e3a5f;
}

.ilc-panel {
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 0 4px 4px 4px;
	background: #fff;
}

.ilc-estimate-figure {
	margin: 0 0 1rem;
	text-align: center;
}

.ilc-estimate-label {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ilc-estimate-amount {
	margin: 0.25rem 0 0;
	font-size: 2.25rem;
	font-weight: 700;
	color: #1e3a5f;
}

.ilc-summary-dl {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.35rem 1.5rem;
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.ilc-summary-dl dt {
	color: #555;
}

.ilc-summary-dl dd {
	margin: 0;
	text-align: right;
}

.ilc-policy-note {
	font-size: 0.9rem;
	color: #444;
	font-style: italic;
}

.ilc-breakdown-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.ilc-breakdown-table th,
.ilc-breakdown-table td {
	padding: 0.45rem 0.5rem;
	border: 1px solid #e2e2e2;
	text-align: right;
}

.ilc-breakdown-table th:first-child,
.ilc-breakdown-table td:first-child {
	text-align: left;
}

.ilc-breakdown-table thead th {
	background: #f7f7f7;
}

.ilc-breakdown-table tfoot {
	font-weight: 600;
	background: #f0f5fa;
}

.ilc-checklist h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1rem;
}

.ilc-checklist ul {
	margin: 0;
	padding-left: 1.25rem;
}

.ilc-checklist li {
	margin-bottom: 0.35rem;
}

.ilc-results-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.ilc-disclaimer {
	margin-top: 1rem;
	font-size: 0.8rem;
	color: #666;
}

/* SEO, intro, below-tool & FAQ content */

.ilc-intro-content,
.ilc-below-content,
.ilc-faq {
	max-width: 52rem;
	margin: 0 auto;
	color: #333;
}

.ilc-intro-content {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e2e2;
}

.ilc-intro-content h2,
.ilc-below-content h3,
.ilc-faq h3 {
	font-size: 1.25rem;
	color: #1e3a5f;
	margin: 0 0 1rem;
}

.ilc-intro-content h3,
.ilc-below-content h4 {
	font-size: 1.0625rem;
	color: #1e3a5f;
	margin: 1.5rem 0 0.75rem;
}

.ilc-intro-content p,
.ilc-below-content p {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.ilc-below-content {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e2e2;
}

.ilc-below-content a {
	color: #1e3a5f;
}

.ilc-below-content a:hover {
	color: #0f2744;
}

.ilc-faq {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e2e2;
	margin-bottom: 2rem;
}

.ilc-faq__item {
	border-bottom: 1px solid #e2e2e2;
}

.ilc-faq__question {
	padding: 0.85rem 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ilc-faq__question::-webkit-details-marker {
	display: none;
}

.ilc-faq__answer {
	padding: 0 0 0.85rem;
	color: #444;
}

.ilc-faq__answer p {
	margin: 0 0 0.5rem;
}

/* Mobile */
@media (max-width: 640px) {
	.ilc-scenario-grid {
		grid-template-columns: 1fr;
	}

	.ilc-estimate-amount {
		font-size: 1.75rem;
	}

	.ilc-output-tabs {
		flex-direction: column;
	}

	.ilc-tab {
		border-radius: 4px;
		text-align: left;
	}

	.ilc-summary-dl {
		grid-template-columns: 1fr;
	}

	.ilc-summary-dl dd {
		text-align: left;
		margin-bottom: 0.5rem;
	}
}

@media print {
	.ilc-form,
	.ilc-output-tabs,
	.ilc-results-actions,
	.ilc-intro-content,
	.ilc-below-content,
	.ilc-faq {
		display: none !important;
	}

	.ilc-results {
		border: 0;
	}
}
