.fvc-calculator {
	--fvc-primary: #1c4e80;
	--fvc-primary-dark: #143a5e;
	--fvc-accent: #f28c28;
	--fvc-border: #e2e5e9;
	--fvc-bg: #ffffff;
	--fvc-bg-soft: #f7f8fa;
	--fvc-text: #24292e;
	--fvc-radius: 8px;

	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--fvc-text);
	box-sizing: border-box;
	position: relative;
	z-index: 5;
}

.fvc-calculator input,
.fvc-calculator button {
	pointer-events: auto;
}

.fvc-calculator *,
.fvc-calculator *::before,
.fvc-calculator *::after {
	box-sizing: border-box;
}

.fvc-categories {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.fvc-category {
	border: 1px solid var(--fvc-border);
	border-radius: var(--fvc-radius);
	overflow: hidden;
	background: var(--fvc-bg);
}

.fvc-category-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--fvc-bg-soft);
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--fvc-primary-dark);
	text-align: left;
}

.fvc-category-toggle:hover {
	background: #eef1f4;
}

.fvc-caret {
	transition: transform 0.15s ease;
	font-size: 12px;
	color: var(--fvc-primary);
}

.fvc-category-toggle.fvc-open .fvc-caret {
	transform: rotate(90deg);
}

.fvc-category-body {
	padding: 6px 18px 12px;
}

.fvc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fvc-border);
}

.fvc-item:last-child {
	border-bottom: none;
}

.fvc-item-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fvc-item-name {
	font-weight: 500;
}

.fvc-item-volume {
	font-size: 13px;
	color: #6b7280;
}

.fvc-item-stepper {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.fvc-step {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--fvc-primary);
	background: #fff;
	color: var(--fvc-primary);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fvc-step:hover {
	background: var(--fvc-primary);
	color: #fff;
}

.fvc-qty {
	min-width: 20px;
	text-align: center;
	font-weight: 600;
}

/* Custom item form */
.fvc-custom-help {
	color: #6b7280;
	font-size: 14px;
	margin-top: 4px;
}

.fvc-custom-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px 0 14px;
}

.fvc-custom-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
}

.fvc-custom-form input {
	padding: 8px 10px;
	border: 1px solid var(--fvc-border);
	border-radius: 6px;
	font-size: 14px;
}

.fvc-custom-dims {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.fvc-custom-error {
	color: #b3261e;
	font-size: 13px;
	margin: 0;
}

.fvc-custom-item-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fvc-custom-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--fvc-bg-soft);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
}

.fvc-custom-item-volume {
	color: #6b7280;
	margin-left: auto;
	margin-right: 10px;
}

.fvc-remove-custom-item {
	border: none;
	background: none;
	color: #b3261e;
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
}

/* Summary */
.fvc-summary {
	background: var(--fvc-primary);
	color: #fff;
	border-radius: var(--fvc-radius);
	padding: 20px;
	text-align: center;
	margin-bottom: 24px;
}

.fvc-total-label {
	font-size: 14px;
	opacity: 0.85;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fvc-total-value {
	font-size: 36px;
	font-weight: 700;
	margin: 6px 0 10px;
}

.fvc-truck-suggestion {
	font-size: 15px;
	margin-bottom: 16px;
	opacity: 0.95;
}

.fvc-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	border: none;
	background: var(--fvc-accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.fvc-btn:hover {
	filter: brightness(0.95);
}

.fvc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.fvc-btn-secondary {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
}

.fvc-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Email section */
.fvc-email-section {
	border: 1px solid var(--fvc-border);
	border-radius: var(--fvc-radius);
	padding: 20px;
	background: var(--fvc-bg-soft);
}

.fvc-email-section h3 {
	margin-top: 0;
	margin-bottom: 4px;
}

.fvc-email-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 14px;
}

.fvc-email-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
}

.fvc-email-form input {
	padding: 9px 10px;
	border: 1px solid var(--fvc-border);
	border-radius: 6px;
	font-size: 14px;
}

.fvc-email-form #fvc-email-submit {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 4px;
}

.fvc-email-message {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.fvc-email-message.fvc-success {
	background: #e6f4ea;
	color: #1e7b34;
}

.fvc-email-message.fvc-error {
	background: #fdecea;
	color: #b3261e;
}

@media (max-width: 560px) {
	.fvc-custom-dims {
		grid-template-columns: 1fr 1fr;
	}
	.fvc-email-form {
		grid-template-columns: 1fr;
	}
	.fvc-total-value {
		font-size: 30px;
	}
}
