.ws-elementor-widget-ws-prices {
	.ws-prices {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;

		.ws-prices__switch {
			position: relative;
			display: flex;
			align-items: flex-start;
			gap: 8px;
			width: 368px;
			max-width: 100%;
			padding: 6px;
			border-radius: 99px;
			border: 1px solid color-mix(in srgb, var(--siimply-text-color) 20%, transparent);
			background: #fff;

			.ws-prices__switch-btn {
				display: flex;
				justify-content: center;
				align-items: center;
				gap: 50px;
				padding: 8px 16px;
				flex: 1 0 0;
				border-radius: 99px;
				color: var(--siimply-text-color);
				text-align: center;
				font-family: "Inter", sans-serif;
				font-size: 16px;
				font-style: normal;
				font-weight: 400;
				line-height: normal;
				appearance: none;
				-webkit-appearance: none;
				-moz-appearance: none;
				background: none;
				outline: none;
				border: none;
				transition:
					color 0.2s ease-in-out,
					font-weight 0.2s ease-in-out;
				z-index: 1;
				cursor: pointer;

				&:hover:not(.is-active) {
					background-color: rgba(0, 0, 0, 0.05);
				}

				&.is-active {
					color: #fff;
					font-weight: 700;
				}
			}

			&::before {
				content: "";
				position: absolute;
				top: 6px;
				left: 6px;
				width: calc(50% - 6px);
				height: calc(100% - 12px);
				border-radius: 99px;
				background: var(--siimply-accent-color);
				box-shadow: 0 0 4px 0 rgba(29, 26, 63, 0.05);
				transition: transform 0.3s ease;
				z-index: 0;
			}

			&:has(.ws-prices__switch-btn:nth-child(2).is-active)::before {
				transform: translateX(calc(100%));
			}
		}

		.ws-prices__hds {
			display: flex;
			align-items: center;
			gap: 10px;

			.ws-prices__hds-checkbox {
				appearance: none;
				-webkit-appearance: none;
				-moz-appearance: none;
				flex-shrink: 0;
				width: 20px;
				height: 20px;
				margin: 0;
				border-radius: 6px;
				border: 1.5px solid color-mix(in srgb, var(--siimply-text-color) 30%, transparent);
				background: #fff no-repeat center / 12px 12px;
				outline: none;
				cursor: pointer;
				transition:
					background-color 0.2s ease-in-out,
					border-color 0.2s ease-in-out,
					box-shadow 0.2s ease-in-out;

				&:hover {
					border-color: var(--siimply-accent-color);
				}

				&:checked {
					border-color: var(--siimply-accent-color);
					background-color: var(--siimply-accent-color);
					background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.25L4.75 8.5L9.5 3.5' stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
				}

				&:focus-visible {
					box-shadow: 0 0 0 3px color-mix(in srgb, var(--siimply-accent-color) 30%, transparent);
				}
			}

			.ws-prices__hds-label {
				color: var(--siimply-text-color);
				font-family: "Inter", sans-serif;
				font-size: 16px;
				font-style: normal;
				font-weight: 400;
				line-height: normal;
				cursor: pointer;
				user-select: none;
			}

			&:has(.ws-prices__hds-checkbox:checked) .ws-prices__hds-label {
				color: var(--siimply-accent-color);
				font-weight: 700;
			}
		}

		.ws-prices__items {
			align-self: stretch;
			display: flex;
			align-items: stretch;
			justify-content: space-between;
			gap: 24px;

			.ws-prices__item {
				flex: 1 0 0;
				display: flex;
				flex-direction: column;
				align-items: stretch;
				gap: 32px;
				padding: 40px 40px 24px;
				border-radius: 16px;
				border: 1px solid color-mix(in srgb, var(--siimply-text-color) 20%, transparent);
				background: #fff;
				scroll-margin-top: 80px;

				.ws-prices__item-group {
					display: flex;
					flex-direction: column;
					gap: 8px;
				}

				.ws-prices__item-body,
				.ws-prices__item-body-inner {
					display: contents;
				}

				.ws-prices__item-head {
					display: flex;
					align-items: center;
					justify-content: space-between;
					gap: 16px;
				}

				.ws-prices__item-toggle {
					display: none;
					flex-shrink: 0;
					align-items: center;
					justify-content: center;
					appearance: none;
					-webkit-appearance: none;
					-moz-appearance: none;
					margin: 0;
					padding: 0;
					border: none;
					outline: none;
					background: var(--siimply-accent-color);
					color: #fff;
					cursor: pointer;
					transition: background-color 0.2s ease-in-out;

					&:hover {
						background: color-mix(in srgb, var(--siimply-accent-color) 85%, #000);
					}

					&:focus-visible {
						box-shadow: 0 0 0 3px color-mix(in srgb, var(--siimply-accent-color) 30%, transparent);
					}

					.ws-prices__item-toggle-open,
					.ws-prices__item-toggle-close {
						display: flex;
						align-items: center;
						justify-content: center;
					}

					.ws-prices__item-toggle-open {
						gap: 10px;
						padding: 12px 16px;
						font-family: "Inter";
						font-size: 16px;
						font-weight: 700;
						line-height: normal;
					}

					.ws-prices__item-toggle-close {
						display: none;
						width: 44px;
						height: 44px;
					}
				}

				.ws-prices__item-title {
					color: var(--siimply-secondary-color);
				}

				.ws-prices__item-subtitle {
					color: var(--siimply-accent-color);
				}

				.ws-prices__item-description-title {
					color: var(--siimply-secondary-color);
				}

				.ws-prices__item-slider {
					display: flex;
					flex-direction: column;

					.ws-prices__item-slider-value {
						color: var(--siimply-accent-color);
						text-align: center;
						font-family: "Nordique";
						font-size: 24px;
						font-style: normal;
						font-weight: 700;
						line-height: 120%;
						margin-bottom: 8px;
						text-align: left;
						align-self: flex-start;
					}

					.ws-prices__item-slider-input {
						--progress: 0%;
						--track-height: 12px;
						--thumb-width: 5px;
						--thumb-height: 22px;

						appearance: none;
						-webkit-appearance: none;
						-moz-appearance: none;
						width: 100%;
						height: var(--thumb-height);
						margin: 0;
						background: none;
						outline: none;
						cursor: pointer;

						&::-webkit-slider-runnable-track {
							height: var(--track-height);
							border-radius: 99px;
							background: linear-gradient(to right, var(--siimply-accent-color) calc(var(--progress) + (0.5 - var(--progress) / 100%) * var(--thumb-width)), #efefef 0);
						}

						&::-webkit-slider-thumb {
							-webkit-appearance: none;
							appearance: none;
							width: var(--thumb-width);
							height: var(--thumb-height);
							margin-top: calc((var(--track-height) - var(--thumb-height)) / 2);
							border: none;
							border-radius: 99px;
							background: var(--siimply-accent-color);
						}

						&::-moz-range-track {
							height: var(--track-height);
							border-radius: 99px;
							background: #efefef;
						}

						&::-moz-range-progress {
							height: var(--track-height);
							border-radius: 99px;
							background: var(--siimply-accent-color);
						}

						&::-moz-range-thumb {
							width: var(--thumb-width);
							height: var(--thumb-height);
							border: none;
							border-radius: 99px;
							background: var(--siimply-accent-color);
						}

						&:focus-visible::-webkit-slider-thumb {
							box-shadow: 0 0 0 3px color-mix(in srgb, var(--siimply-accent-color) 30%, transparent);
						}

						&:focus-visible::-moz-range-thumb {
							box-shadow: 0 0 0 3px color-mix(in srgb, var(--siimply-accent-color) 30%, transparent);
						}
					}

					.ws-prices__item-slider-labels {
						display: flex;
						justify-content: space-between;
					}
				}

				.ws-prices__item-price {
					color: var(--siimply-secondary-color);
					font-family: "Nordique";
					font-size: 24px;
					font-style: normal;
					font-weight: 700;
					line-height: 120%;
				}

				.ws-prices__item-number {
					display: flex;
					align-items: center;
					justify-content: space-between;
					gap: 5px;

					.ws-prices__item-number-value {
						display: flex;
						align-items: center;
						justify-content: center;

						.ws-prices__item-number-input {
							width: 54px;
							appearance: none;
							-webkit-appearance: none;
							-moz-appearance: textfield;
							background: none;
							outline: none;
							border: none;
							color: var(--siimply-accent-color);
							text-align: center;
							font-family: "Nordique";
							font-size: 24px;
							font-style: normal;
							font-weight: 700;
							line-height: 120%;

							&::-webkit-outer-spin-button,
							&::-webkit-inner-spin-button {
								-webkit-appearance: none;
								margin: 0;
							}
						}

						.ws-prices__item-number-decrease,
						.ws-prices__item-number-increase {
							appearance: none;
							-webkit-appearance: none;
							-moz-appearance: none;
							display: flex;
							align-items: center;
							justify-content: center;
							width: 20px;
							min-width: 20px;
							max-width: 20px;
							height: 20px;
							min-height: 20px;
							max-height: 20px;
							border-radius: 4px;
							background: #efefef;
							color: var(--siimply-text-color);
							text-align: center;
							font-family: "Inter";
							font-size: 14px;
							font-style: normal;
							font-weight: 400;
							line-height: 160%;
							padding: 0;
							outline: none;
							border: none;
							cursor: pointer;

							&:disabled {
								opacity: 0.4;
								cursor: not-allowed;
							}
						}
					}
				}

				.ws-prices__item-advantages {
					color: var(--siimply-text-color);
					font-family: "Inter";
					font-size: 14px;
					font-style: normal;
					font-weight: 400;
					line-height: 140%;

					b,
					strong {
						color: var(--siimply-accent-color);
						font-family: "Nordique";
						font-size: 14px;
						font-style: normal;
						font-weight: 700;
						line-height: 140%;
					}

					ul,
					ol {
						margin: 0;
						padding: 0;
						display: flex;
						flex-direction: column;
						gap: 8px;

						li {
							list-style: none;
							display: flex;
							align-items: flex-start;
							gap: 8px;

							&::before {
								content: "";
								flex-shrink: 0;
								width: 16px;
								height: 16px;
								margin-top: 0.15em;
								background-color: var(--siimply-accent-color);
								-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 7.99963H14L9.33333 12.6663M12 5.99967L9.33333 3.33301' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
								mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 7.99963H14L9.33333 12.6663M12 5.99967L9.33333 3.33301' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
							}
						}
					}
				}

				.siimply-button {
                    margin-top: auto;
					align-self: flex-start;

					&.is-disabled {
						opacity: 0.5;
						cursor: not-allowed;
						pointer-events: none;
					}
				}
			}

			@media (max-width: 768px) {
				flex-direction: column;

				.ws-prices__item {
					padding: 24px;
					gap: 0;

					.ws-prices__item-toggle {
						display: flex;
						border-radius: 99px;
					}

					.ws-prices__item-body {
						display: grid;
						grid-template-rows: 0fr;
						transition: grid-template-rows 0.4s ease;
					}

					.ws-prices__item-body-inner {
						display: flex;
						flex-direction: column;
						gap: 24px;
						min-height: 0;
						overflow: hidden;
						opacity: 0;
						visibility: hidden;
						transition:
							opacity 0.3s ease,
							visibility 0s linear 0.4s;

						> :first-child {
							margin-top: 24px;
						}
					}

					&.is-open {
						.ws-prices__item-body {
							grid-template-rows: 1fr;
						}

						.ws-prices__item-body-inner {
							opacity: 1;
							visibility: visible;
							transition:
								opacity 0.3s ease 0.1s,
								visibility 0s linear 0s;
						}
					}

					@media (prefers-reduced-motion: reduce) {
						.ws-prices__item-body,
						.ws-prices__item-body-inner {
							transition: none !important;
						}
					}

					&.is-open .ws-prices__item-toggle {
						.ws-prices__item-toggle-open {
							display: none;
						}

						.ws-prices__item-toggle-close {
							display: flex;
						}
					}
				}
			}
		}
	}
}
