/* Free Utility Tools — Discount Calculator */

.fut-discount-calculator {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Header ── */
.fut-dc-header {
	padding: 22px 28px 18px;
	background: linear-gradient(135deg, #1a5fa3 0%, #2271b1 100%);
}
.fut-dc-title {
	margin: 0 0 5px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}
.fut-dc-desc {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,.82);
}

/* ── Body ── */
.fut-dc-body {
	padding: 22px 28px 26px;
}

/* ── Section ── */
.fut-dc-section {
	margin-bottom: 4px;
}

.fut-dc-divider {
	height: 1px;
	background: #e1e5e9;
	margin: 24px 0;
}

.fut-dc-section-title {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 4px;
}
.fut-dc-section-desc {
	margin: 0 0 16px;
	font-size: 13px;
	color: #8a9ab0;
}

/* ── Labels ── */
.fut-dc-lbl {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #646970;
	margin-bottom: 6px;
}
.fut-dc-optional {
	font-style: normal;
	font-weight: 400;
	text-transform: none;
	font-size: 10px;
	color: #9ca3af;
}

/* ── Discount type toggle ── */
.fut-dc-type-row {
	margin-bottom: 14px;
}
.fut-dc-type-toggle {
	display: inline-flex;
	border: 1.5px solid #d0d5dd;
	border-radius: 8px;
	overflow: hidden;
}
.fut-dc-type-btn {
	padding: 9px 20px;
	border: none;
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: #50575e;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.fut-dc-type-btn + .fut-dc-type-btn {
	border-left: 1.5px solid #d0d5dd;
}
.fut-dc-type-btn.active { background: #2271b1; color: #fff; }
.fut-dc-type-btn:not(.active):hover { background: #f0f6fc; color: #2271b1; }

/* ── Currency selector ── */
.fut-dc-curr-row {
	margin-bottom: 16px;
}
.fut-dc-curr-sel {
	padding: 8px 12px;
	border: 1.5px solid #d0d5dd;
	border-radius: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
	min-width: 180px;
}
.fut-dc-curr-sel:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}

/* ── Input fields grid ── */
.fut-dc-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}
.fut-dc-field {
	display: flex;
	flex-direction: column;
}

/* ── Input group (prefix + input + suffix) ── */
.fut-dc-input-grp {
	display: flex;
	align-items: center;
	border: 1.5px solid #d0d5dd;
	border-radius: 7px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.fut-dc-input-grp:focus-within {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
.fut-dc-sym {
	padding: 9px 10px;
	font-size: 14px;
	font-weight: 700;
	color: #2271b1;
	background: #f0f6fc;
	border-right: 1px solid #d0d5dd;
	flex-shrink: 0;
	min-width: 28px;
	text-align: center;
}
.fut-dc-unit {
	padding: 9px 10px;
	font-size: 13px;
	font-weight: 700;
	color: #8a9ab0;
	background: #f8f9fa;
	border-left: 1px solid #d0d5dd;
	flex-shrink: 0;
	min-width: 28px;
	text-align: center;
}
.fut-dc-input {
	flex: 1;
	padding: 9px 8px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	background: transparent;
	width: 0;
	min-width: 0;
	-moz-appearance: textfield;
}
.fut-dc-input:focus { outline: none; }
.fut-dc-input::-webkit-outer-spin-button,
.fut-dc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Results ── */
.fut-dc-results {
	margin-bottom: 16px;
}
.fut-dc-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}
.fut-dc-stat {
	background: #f8f9fa;
	border: 1px solid #e1e5e9;
	border-radius: 9px;
	padding: 12px 10px;
	text-align: center;
}
.fut-dc-stat-lbl {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #8a9ab0;
	margin-bottom: 5px;
}
.fut-dc-stat-val {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: #1d2327;
	font-variant-numeric: tabular-nums;
}

/* ── Final price box ── */
.fut-dc-final-box {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1.5px solid #86efac;
	border-radius: 10px;
	padding: 16px 20px;
	text-align: center;
}
.fut-dc-final-lbl {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #16a34a;
	margin-bottom: 4px;
	opacity: .8;
}
.fut-dc-final-val {
	font-size: 34px;
	font-weight: 800;
	color: #15803d;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	margin-bottom: 4px;
}
.fut-dc-saving {
	font-size: 13px;
	font-weight: 600;
	color: #22c55e;
}

/* ── Clear button ── */
.fut-dc-btn-sec {
	margin-top: 14px;
	padding: 8px 22px;
	border: 1px solid #dcdcde;
	border-radius: 7px;
	background: #f0f0f1;
	font-size: 13px;
	font-weight: 600;
	color: #3c434a;
	cursor: pointer;
	transition: background .15s;
}
.fut-dc-btn-sec:hover { background: #dcdcde; }

/* ── Reverse calc result ── */
.fut-dc-rev-result {
	background: #f8f9fa;
	border: 1px solid #e1e5e9;
	border-radius: 9px;
	overflow: hidden;
	margin-top: 4px;
}
.fut-dc-rev-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	font-size: 13.5px;
	border-bottom: 1px solid #f0f0f1;
}
.fut-dc-rev-row:last-child { border-bottom: none; }
.fut-dc-rev-row:hover { background: #f0f6fc; }
.fut-dc-rev-lbl { color: #646970; font-weight: 500; }
.fut-dc-rev-val {
	color: #2271b1;
	font-weight: 800;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

/* ── Responsive ── */
@media (max-width: 540px) {
	.fut-dc-body { padding: 18px 18px 22px; }
	.fut-dc-fields { grid-template-columns: 1fr 1fr; }
	.fut-dc-stats-grid { grid-template-columns: 1fr 1fr; }
	.fut-dc-final-val { font-size: 26px; }
}
@media (max-width: 380px) {
	.fut-dc-fields { grid-template-columns: 1fr; }
	.fut-dc-stats-grid { grid-template-columns: 1fr; }
	.fut-dc-type-btn { padding: 8px 14px; font-size: 12.5px; }
}
