/* ============================================================
   Kasirye Labs — Bulk Order Calculator
   ============================================================ */

.kl-calc-wrap {
	background: #fff;
	border: 1.5px solid #eee;
	border-radius: 16px;
	overflow: hidden;
	font-family: 'Jost', sans-serif;
	max-width: 620px;
}

/* ── Header ──────────────────────────────────────────────────── */
.kl-calc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #1a2035;
	padding: 18px 24px;
	color: #fff;
}

.kl-calc-header svg { color: #ffbe00; flex-shrink: 0; }

.kl-calc-header h3 {
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Sections ────────────────────────────────────────────────── */
.kl-calc-section {
	padding: 20px 24px 0;
}

.kl-calc-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #888;
	margin-bottom: 10px;
}

/* ── Product selector ────────────────────────────────────────── */
.kl-calc-select-wrap {
	position: relative;
}

.kl-calc-select-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-top-color: #888;
	pointer-events: none;
}

.kl-calc-select {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 14px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	color: #1a2035;
	background: #fff;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.15s;
}

.kl-calc-select:focus { border-color: #ffbe00; }

/* ── Product info bar ────────────────────────────────────────── */
.kl-calc-product-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background: #f8f9ff;
	border-bottom: 1px solid #eee;
	margin-top: 16px;
}

.kl-calc-product-name {
	font-size: 14px;
	font-weight: 700;
	color: #1a2035;
}

.kl-calc-unit-price {
	font-size: 13px;
	font-weight: 600;
	color: #888;
}

/* ── Colors ──────────────────────────────────────────────────── */
.kl-calc-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kl-calc-color-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 12px;
	border: 1.5px solid #e0e0e0;
	border-radius: 20px;
	background: #fff;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.kl-calc-color-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.12) inset;
	flex-shrink: 0;
}

.kl-calc-color-btn.active {
	border-color: #1a2035;
	background: #1a2035;
	color: #fff;
}

.kl-calc-color-btn.active .kl-calc-color-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255,255,255,0.4);
}

/* ── Size quantities ─────────────────────────────────────────── */
.kl-calc-sizes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.kl-calc-size-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kl-calc-size-label {
	font-size: 11px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

.kl-calc-size-input {
	width: 100%;
	height: 42px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	text-align: center;
	font-family: 'Jost', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1a2035;
	outline: none;
	transition: border-color 0.15s;
	-moz-appearance: textfield;
}

.kl-calc-size-input::-webkit-outer-spin-button,
.kl-calc-size-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.kl-calc-size-input:focus { border-color: #ffbe00; }

/* ── Single qty ──────────────────────────────────────────────── */
.kl-calc-single-qty-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	height: 46px;
	width: fit-content;
}

.kl-calc-qty-btn {
	width: 46px;
	height: 100%;
	border: none;
	background: #fff;
	font-size: 20px;
	font-weight: 300;
	color: #1a2035;
	cursor: pointer;
	transition: background 0.15s;
}

.kl-calc-qty-btn:hover { background: #f5f5f5; }

.kl-calc-qty-input {
	width: 60px;
	height: 100%;
	border: none;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	text-align: center;
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #1a2035;
	outline: none;
	-moz-appearance: textfield;
}

.kl-calc-qty-input::-webkit-outer-spin-button,
.kl-calc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Discount tiers ──────────────────────────────────────────── */
.kl-calc-tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 24px 0;
}

.kl-calc-tier {
	font-size: 11px;
	color: #888;
	background: #f5f5f5;
	padding: 4px 10px;
	border-radius: 20px;
	transition: background 0.15s, color 0.15s;
}

.kl-calc-tier.active {
	background: #fff8e1;
	color: #b8860b;
}

.kl-calc-tier strong { font-weight: 700; }

/* ── Summary ─────────────────────────────────────────────────── */
.kl-calc-summary {
	margin: 20px 24px 0;
	border: 1.5px solid #eee;
	border-radius: 10px;
	overflow: hidden;
}

.kl-calc-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	font-size: 13px;
	color: #555;
	border-bottom: 1px solid #f0f0f0;
}

.kl-calc-summary-row:last-child { border-bottom: none; }

.kl-calc-total-row {
	background: #1a2035;
	font-size: 15px;
	color: #fff !important;
}

.kl-calc-total-row span { color: #fff; }

.kl-calc-grand-total {
	font-size: 18px;
	font-weight: 800;
	color: #ffbe00 !important;
}

.kl-calc-discount-val { color: #16a34a; font-weight: 700; }

.kl-calc-deposit-row { background: #fafafa; }
.kl-calc-deposit-label { color: #888; }
.kl-calc-deposit-val { font-weight: 700; color: #1a2035; }

/* ── Actions ─────────────────────────────────────────────────── */
.kl-calc-actions {
	padding: 16px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kl-calc-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	background: #25d366;
	color: #fff !important;
	border-radius: 10px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.kl-calc-wa-btn:hover {
	background: #1da851;
	transform: translateY(-1px);
}

.kl-calc-cart-link {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-decoration: none;
	font-family: 'Jost', sans-serif;
	transition: color 0.15s;
}

.kl-calc-cart-link:hover { color: #1a2035; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
	.kl-calc-sizes { grid-template-columns: repeat(2, 1fr); }
	.kl-calc-header,
	.kl-calc-section,
	.kl-calc-tiers,
	.kl-calc-actions { padding-left: 16px; padding-right: 16px; }
	.kl-calc-summary { margin-left: 16px; margin-right: 16px; }
	.kl-calc-product-info { padding-left: 16px; padding-right: 16px; }
}
