/* =============================================
   Pretpot Smart Pricing Calculator
============================================= */

.pretpot-spc-wrap {
	width: 100%;
}

.pretpot-spc-card {
	background-color: #ffffff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 4px 30px rgba(0,0,0,0.08);
	max-width: 480px;
	margin: 0 auto;
	font-family: inherit;
}

/* ---- Header / Price Display ---- */
.pretpot-spc-header {
	margin-bottom: 24px;
}

.pretpot-spc-title {
	font-size: 13px;
	color: #999;
	margin-bottom: 4px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pretpot-spc-price-display {
	font-size: 36px;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
	transition: color 0.2s ease;
}

.pretpot-spc-price-display.pretpot-spc-animating {
	color: #4a90e2;
}

.pretpot-spc-divider {
	height: 1px;
	background: #eeeeee;
	margin-bottom: 20px;
}

/* ---- Items ---- */
.pretpot-spc-items {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pretpot-spc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid #eeeeee;
	gap: 12px;
}

.pretpot-spc-item:first-child {
	border-top: none;
}

.pretpot-spc-item-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.pretpot-spc-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #555;
	flex-shrink: 0;
	width: 22px;
}

.pretpot-spc-item-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.pretpot-spc-item-info {
	display: flex;
	flex-direction: column;
}

.pretpot-spc-item-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 1.3;
}

.pretpot-spc-item-tooltip {
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}

.pretpot-spc-item-control {
	flex-shrink: 0;
}

/* ---- Toggle Switch ---- */
.pretpot-spc-toggle {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	cursor: pointer;
}

.pretpot-spc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.pretpot-spc-slider-track {
	position: absolute;
	inset: 0;
	background-color: #ccc;
	border-radius: 34px;
	transition: background-color 0.25s ease;
}

.pretpot-spc-slider-track::after {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #fff;
	transition: transform 0.25s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.pretpot-spc-toggle input:checked + .pretpot-spc-slider-track {
	background-color: #4a90e2;
}

.pretpot-spc-toggle input:checked + .pretpot-spc-slider-track::after {
	transform: translateX(20px);
}

.pretpot-spc-toggle input:focus-visible + .pretpot-spc-slider-track {
	outline: 2px solid #4a90e2;
	outline-offset: 2px;
}

/* ---- Checkbox ---- */
.pretpot-spc-checkbox-wrap {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	width: 22px;
	height: 22px;
}

.pretpot-spc-checkbox-wrap input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.pretpot-spc-checkmark {
	position: absolute;
	inset: 0;
	border: 2px solid #ccc;
	border-radius: 5px;
	background: #fff;
	transition: background 0.2s, border-color 0.2s;
}

.pretpot-spc-checkmark::after {
	content: '';
	position: absolute;
	display: none;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.pretpot-spc-checkbox-wrap input:checked + .pretpot-spc-checkmark {
	background-color: #4a90e2;
	border-color: #4a90e2;
}

.pretpot-spc-checkbox-wrap input:checked + .pretpot-spc-checkmark::after {
	display: block;
}

.pretpot-spc-checkbox-wrap input:focus-visible + .pretpot-spc-checkmark {
	outline: 2px solid #4a90e2;
	outline-offset: 2px;
}

/* ---- Quantity Stepper ---- */
.pretpot-spc-stepper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pretpot-spc-stepper button {
	width: 30px;
	height: 30px;
	border: none;
	background-color: #f0f0f0;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	color: #333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background-color 0.2s;
	padding: 0;
}

.pretpot-spc-stepper button:hover {
	background-color: #e0e0e0;
}

.pretpot-spc-stepper button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pretpot-spc-qty {
	width: 36px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: #111;
	-moz-appearance: textfield;
	pointer-events: none;
}

.pretpot-spc-qty::-webkit-inner-spin-button,
.pretpot-spc-qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

/* ---- Range Slider ---- */
.pretpot-spc-range-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pretpot-spc-range {
	-webkit-appearance: none;
	width: 120px;
	height: 4px;
	border-radius: 2px;
	background: #ddd;
	outline: none;
	cursor: pointer;
}

.pretpot-spc-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #4a90e2;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.pretpot-spc-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #4a90e2;
	cursor: pointer;
	border: none;
}

.pretpot-spc-range-val {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	min-width: 28px;
	text-align: right;
}

/* ---- Select ---- */
.pretpot-spc-select {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 13px;
	color: #333;
	background-color: #fafafa;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}

.pretpot-spc-select:focus {
	border-color: #4a90e2;
}

/* ---- Subtotal Row ---- */
.pretpot-spc-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0 4px;
	border-top: 1px solid #eeeeee;
	margin-top: 8px;
	font-size: 13px;
	color: #888;
}

/* ---- Total Row ---- */
.pretpot-spc-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid #eeeeee;
	margin-top: 8px;
}

.pretpot-spc-total-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.pretpot-spc-total-value {
	font-size: 20px;
	font-weight: 700;
}

/* ---- CTA Button ---- */
.pretpot-spc-cta {
	display: block;
	width: 100%;
	text-align: center;
	background-color: #111;
	color: #fff;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	margin-top: 16px;
	transition: background-color 0.2s ease, transform 0.15s ease;
	cursor: pointer;
}

.pretpot-spc-cta:hover {
	background-color: #333;
	transform: translateY(-1px);
	color: #fff;
}

/* ---- Footer Note ---- */
.pretpot-spc-footer-note {
	margin-top: 16px;
	font-size: 12px;
	color: #aaa;
	line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
	.pretpot-spc-card {
		padding: 24px 20px;
	}
	.pretpot-spc-price-display {
		font-size: 28px;
	}
	.pretpot-spc-range {
		width: 90px;
	}
}