/**
 * Price Slider Styles
 * Separate stylesheet for the price slider component
 */

/* Design Tokens */
:root {
	--mp-slider-orange: #EF5C33;
	--mp-slider-black: #141414;
	--mp-slider-grey-01: #363636;
	--mp-slider-white: #FFFFFF;
	--mp-slider-grey-03: #E4E4E4;
	--mp-slider-grey-02: #8E8E8E;
	--mp-slider-grey-05: #FAFAFA;
}

/* Container */
.mp-price-slider-container {
	width: 100%;
	max-width: 1272px;
	margin: 0 auto;
	padding: 40px;
	box-sizing: border-box;
}

.mp-price-slider-wrapper {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* Left Column */
.mp-price-slider-left {
	flex: 1;
	min-width: 0;
}

.mp-price-slider-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 40px 40px 0 40px;
}

.mp-price-slider-title p {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-slider-black);
	letter-spacing: -0.72px;
	margin: 0;
}

/* Slider Component */
.mp-price-slider-component {
	position: relative;
	width: 100%;
}

.mp-price-slider-labels {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 48px;
	position: relative;
}

.mp-price-slider-label {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-orange);
	letter-spacing: -0.36px;
	position: relative;
	z-index: 2;
}

.mp-price-slider-label:first-child {
	text-align: left;
}

.mp-price-slider-label:not(:first-child):not(:last-child) {
	text-align: center;
	flex: 1;
}

.mp-price-slider-label:last-child {
	text-align: right;
}

.mp-price-slider-track-wrapper {
	position: relative;
	width: 100%;
	height: 40px;
	margin-top: -17px;
}

.mp-price-slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 6px;
	background-color: var(--mp-slider-black);
	opacity: 0.1;
	border-radius: 16px;
}

.mp-price-slider-handle {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	cursor: grab;
	z-index: 3;
	transition: left 0.3s ease;
}

.mp-price-slider-handle:active {
	cursor: grabbing;
}

.mp-price-slider-handle-icon {
	width: 100%;
	height: 100%;
	background-color: var(--mp-slider-orange);
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Handle positions for 4 ranges */
.mp-price-slider-handle[data-size="0-99"] {
	left: 0%;
}

.mp-price-slider-handle[data-size="100-199"] {
	left: 33.33%;
}

.mp-price-slider-handle[data-size="200-299"] {
	left: 66.66%;
}

.mp-price-slider-handle[data-size="+300"] {
	left: 100%;
}

/* Features List */
.mp-price-slider-features {
	display: flex;
	flex-direction: column;
	gap: 1px;
	border-top: 1px solid var(--mp-slider-grey-03);
	border-bottom: 1px solid var(--mp-slider-grey-03);
}

.mp-price-slider-feature-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-bottom: 1px solid var(--mp-slider-grey-03);
	background: var(--mp-slider-white);
}

.mp-price-slider-feature-item:last-child {
	border-bottom: none;
}

.mp-price-slider-feature-text {
	flex: 1 0 0;
	min-width: 0;
}

.mp-price-slider-feature-text p {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--mp-slider-grey-01);
	letter-spacing: -0.28px;
	margin: 0;
	white-space: pre-wrap;
}

.mp-price-slider-feature-check {
	width: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	flex-shrink: 0;
}

.mp-price-slider-check-icon {
	width: 20px;
	height: 20px;
	border: 1px solid var(--mp-slider-grey-01);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.mp-price-slider-check-icon::after {
	content: '';
	width: 8.648px;
	height: 6.673px;
	background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.5 6L8 1' stroke='%23363636' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Right Column - Price Card */
.mp-price-slider-right {
	flex: 1;
	min-width: 0;
}

.mp-price-slider-card {
	background: var(--mp-slider-grey-05);
	border-radius: 8px;
	padding: 40px;
	position: sticky;
	top: 0;
}

.mp-price-slider-card-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.mp-price-slider-card-header p {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-slider-black);
	letter-spacing: -1.28px;
	margin: 0;
}

/* Selected Size & Price Box */
.mp-price-slider-selected-box {
	background: var(--mp-slider-white);
	border: 1px solid var(--mp-slider-orange);
	border-radius: 4px;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.02);
}

.mp-price-slider-selected-size {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--mp-slider-black);
	letter-spacing: -0.36px;
	margin: 0;
	flex: 1 0 0;
}

.mp-price-slider-selected-price {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-black);
	letter-spacing: -0.36px;
	margin: 0;
	text-align: right;
}

/* Included Services */
.mp-price-slider-included {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mp-price-slider-included-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
}

.mp-price-slider-included-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-grey-01);
	letter-spacing: -0.24px;
	margin: 0;
	flex: 1;
}

.mp-price-slider-included-badge {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: fit-content;
}

.mp-price-slider-included-badge p {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-grey-01);
	letter-spacing: -0.24px;
	margin: 0;
}

.mp-price-slider-included-price {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-grey-01);
	letter-spacing: -0.24px;
	margin: 0;
	min-width: fit-content;
}

/* Add-ons Section */
.mp-price-slider-addons {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mp-price-slider-divider {
	height: 1px;
	width: 100%;
	background-color: var(--mp-slider-grey-03);
}

.mp-price-slider-addons-divider-bottom {
	margin-top: 24px;
}

.mp-price-slider-addons-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 13px;
}

.mp-price-slider-addons-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--mp-slider-grey-02);
	letter-spacing: -0.36px;
	margin: 0;
}

.mp-price-slider-addons-link {
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	color: var(--mp-slider-black);
	letter-spacing: -0.28px;
	text-decoration: none;
}

.mp-price-slider-addons-link:hover {
	text-decoration: underline;
}

/* Total Price */
.mp-price-slider-total {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.mp-price-slider-total-label p {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--mp-slider-grey-02);
	letter-spacing: -0.36px;
	margin: 0;
}

.mp-price-slider-total-price {
	display: flex;
	gap: 4px;
	align-items: flex-end;
}

.mp-price-slider-total-amount {
	flex: 1 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.mp-price-slider-total-text {
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--mp-slider-orange);
	letter-spacing: -0.64px;
	margin: 0;
	white-space: pre-wrap;
	text-align: right;
	width: 100%;
}

.mp-price-slider-total-vat {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--mp-slider-grey-02);
	margin: 0;
}

/* Action Buttons */
.mp-price-slider-actions {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.mp-price-slider-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	border-radius: 44px;
	font-size: 16px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: -0.32px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1.5px solid rgba(54, 54, 54, 0.5);
	background: transparent;
	color: var(--mp-slider-grey-01);
}

.mp-price-slider-btn-primary {
	background: var(--mp-slider-black);
	color: var(--mp-slider-white);
	border-color: var(--mp-slider-black);
}

.mp-price-slider-btn-primary:hover {
	background: var(--mp-slider-grey-01);
	border-color: var(--mp-slider-grey-01);
	color: var(--mp-slider-white);
}

.mp-price-slider-btn-secondary:hover {
	background: var(--mp-slider-grey-05);
	border-color: var(--mp-slider-grey-01);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.mp-price-slider-wrapper {
		flex-direction: column;
	}

	.mp-price-slider-card {
		position: static;
	}

	.mp-price-slider-content {
		padding: 0;
	}
}

@media (max-width: 767px) {
	.mp-price-slider-container {
		padding: 20px;
	}

	.mp-price-slider-content {
		gap: 24px;
	}

	.mp-price-slider-card {
		padding: 24px;
	}

	.mp-price-slider-card-content {
		gap: 24px;
	}

	.mp-price-slider-labels {
		margin-bottom: 32px;
	}

	.mp-price-slider-label {
		font-size: 14px;
	}

	.mp-price-slider-card-header p {
		font-size: 24px;
	}

	.mp-price-slider-total-text {
		font-size: 24px;
	}

	.mp-price-slider-actions {
		flex-direction: column;
	}

	.mp-price-slider-btn {
		width: 100%;
	}
}

