.radio_button_title {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}


/* ------- SOLD OUT --------  */

.is-sold-out .component_option_radio_button_select:before {
	opacity: 0.8;
}

.sold-out-badge {
	color: #be0505 !important;
	font-weight: bold;
	font-size: inherit;
}

.composite_availability .out-of-stock {
	margin: 0;
	font-weight: bold;
	color: #be0505 !important;
}
/* ------- END -- SOLD OUT --------  */

/* Button inside slide hosting */
button.btn-slide-hosting,
a.btn-slide-hosting {
	padding: 5px 10px;
	border-radius: 15px;
	font-size: 14px;
	background: #f0f2f2;
	border: none;
	color: #000;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 99;
	line-height: 1;
	font-weight: 400;

	&:hover,
	&:active,
	&:focus {
		box-shadow: none;
		color: #000;
	}

	&:after {
		content: "";
		background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="none"><path fill="%23061929" d="M1.344 1.365c0-.404.327-.73.731-.73L8.656.632c.404 0 .73.328.731.731l-.001 6.581a.731.731 0 0 1-1.462 0V3.129L1.862 9.193A.731.731 0 0 1 .827 8.16l6.064-6.064-4.816.001a.732.732 0 0 1-.73-.73Z"/></svg>');
		width: 10px;
		height: 10px;
		display: inline-block;
	}
}

a.btn-slide-hosting {
	top: 10px;
	position: absolute;
}

/* ------- New hosting --------  */
.new-hosting-item {
	background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-new-hosting@2x-min.jpg");
	background-position: center;
	padding: 13px !important;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.new-hosting-item__title {
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	margin: 0;
}

button.new-hosting-item__btn {
}
/* ------- END -- New hosting --------  */

/* Revenu brut  */

.smp-roi-amount {
	display: inline-flex;
	white-space: nowrap;
}

.smp-roi-value {
	flex-wrap: wrap;
}
/* end  - Revenu brut */


.composite_form {
	--bg-active-option: rgba(0, 183, 115, 0.08);
	--color-active-option: #00b773;
	display: grid;
	column-gap: 10px;
	row-gap: 20px;
	grid-template-columns: 100%;
	grid-template-areas: "slider" "option1" "option2" "option3" "total";

	@media (min-width: 1300px) {
		row-gap: unset;
		grid-template-columns: 50% 50%;
		grid-template-areas: "slider option1" "slider option2" "slider option3" "total total";
	}

	&:after,
	&:before {
		display: none !important;
	}

	.wrapper-title-section-option {
		display: flex;
		align-items: center;
		gap: 20px;
		margin-bottom: 20px;
		justify-content: space-between;
	}

	.title-section-option {
		font-size: 24px;
		color: #fff;
		font-weight: 900;
	}

	.composite_component {
		&:after {
			display: none;
		}
	}

	.component_section_title {
		display: none;
	}

	.composite_price {
		padding: 12px;

		font-weight: 800;
		line-height: 1;
		background-color: var(--e-global-color-secondary);
		padding-top: 12px;
		border-radius: 6px;
		display: flex;
		gap: 12px;
		align-items: center;
		margin-bottom: 2rem !important;
		color: #fff;
		justify-content: space-between;
		font-size: 28px;

		&:before {
			content: "Total final";
			font-size: 20px;
			font-weight: 600;
		}

		&:after {
			display: none;
		}
	}

	/* option disponible : label */
	.component_option_radio_buttons_fieldset .select_label {
		display: none;
	}

	/* btn add to cart */
	.composite_button {
		margin-top: 40px;
		display: flex;
		.single_add_to_cart_button {
			width: 100%;
		}
		.quantity input {
			outline: none;
			display: flex;
			flex-direction: row;
			align-items: center;
			padding: 4px;
			gap: 12px;
			width: 81px !important;
			height: 54px !important;
			background: rgba(240, 242, 242, 0.12);
			backdrop-filter: blur(3px);
			border-radius: 12px;
			color: #fff;
			font-weight: bold;
			border: none;
		}
	}

	/* description composant */
	.component_description {
		font-size: 0.9rem;
	}

	.component_inner {
		padding-bottom: 0 !important;
	}

	.component_content {
		display: none;
	}

	.component.options-style-radios .component_options {
		overflow: visible;
	}

	.radio_button_description {
		margin: 0;
		display: flex;
		align-items: center;
		gap: 15px;
		width: 100%;
		justify-content: space-between;

		@media (max-width: 767px) {
			flex-direction: column;
			align-items: self-start;
			gap: 6px;
		}
	}

	.component_option_radio_buttons_container {
		/* radio */

		&:before,
		&:after {
			display: none !important;
		}

		.component_option_radio_button_container {
			width: 100%;
		}

		.component_option_radio_button {
			padding: 12px 10px;
			gap: 10px;
			background: rgba(255, 255, 255, 0.03);
			border-radius: 6px;
			line-height: 1;
			display: flex;
			align-items: center;
			justify-content: space-between;

			&.selected {
				background: var(--bg-active-option);

				.radio_button_title {
					color: #ffffff;
				}
			}

			.radio_button_input {
				padding: 0;
				order: 2;
				.component_option_radio_button_select {
					z-index: 1;
				}
				.radio_button {
					width: 18px;
					height: 18px;
					border-radius: 5px;
					background: rgb(255 255 255 / 4%);

					border: 1px solid rgb(255 255 255 / 47%);
					appearance: none;

					&:checked {
						background: var(--color-active-option);
						border-color: var(--color-active-option) !important;
					}
				}
			}

			.radio_button_price {
				color: #fff;
				font-weight: 900;
			}

			.title {
				color: rgb(255 255 255 / 47%);
				font-weight: 400;
				display: flex;
				margin: 0 !important;
				gap: 10px;
				align-items: center;

				@media (max-width: 767px) {
					align-items: self-start;
				}
			}

			.price {
				font-size: inherit;
				display: block;
				margin: 0 !important;
			}
		}
	}

	/*----------------maintenance ----------------*/
	.composite_component:nth-child(2) {
		grid-area: option1;

		.component_option_radio_buttons_container {
			gap: 10px;
			display: flex;
			flex-wrap: wrap;
		}

		.step_title_wrapper {
			display: none;
		}

		.radio_button_price:after {
			content: "/miner/mois";
			font-weight: normal;
		}
	}

	/*  ---------------- reparation lourde ---------------- */
	.composite_component:nth-child(3) {
		grid-area: option2;

		.component_option_radio_buttons_container {
			gap: 10px;
			display: flex;
			flex-wrap: wrap;
		}
		.component_title_wrapper {
			display: none;
		}

		.radio_button_price:after {
			content: "/miner/mois";
			font-weight: normal;
		}
	}

	/* ---------------- backoffice ----------------*/
	.composite_component:nth-child(4) {
		grid-area: option3;
		padding: 10px;
		border-radius: 8px;
		background: var(--bg-active-option);
		display: inline-flex;
		gap: 33px;
		align-items: center;
		justify-content: space-between;

		.component_option_radio_buttons_container {
			gap: 10px;
			display: flex;
			flex-wrap: wrap;
		}

		&:after {
			display: none;
		}

		.component_description {
			margin: 0;

			* {
				color: #fff;
				font-weight: bold;
			}
		}

		.step_title_wrapper {
			margin: 0;
			font-size: 16px;

			.step_title_text {
				color: #fff;
				gap: 10px;
				display: flex;
				align-items: center;
			}
		}
	}

	.composite_data {
		grid-area: total;
	}

	/* ---------------- hébergement */
	.composite_component:first-of-type {
		grid-area: slider;
		position: relative;

		.component_title_wrapper {
			display: none;
		}

		.component .component_options_inner {
			display: block;
		}

		.component_option_radio_buttons_container {
			&:after {
				display: none;
			}

			.component_option_radio_button_container {
				width: 170px;
				height: 260px;
			}

			.component_option_radio_button {
				padding: 6px 10px;
				border-radius: 8px;
				overflow: hidden;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: flex-end;
				line-height: 1;
				border: 2px solid transparent;
				height: 100%;
				background: transparent;
				transition: all 500ms ease;
				box-shadow: 0px 0px 9px transparent inset;

				&.selected {
					border: 2px solid var(--color-active-option) !important;

					/* shadow */
					&:before {
						content: "";
						width: 100%;
						position: absolute;
						height: 100%;
						display: block;
						top: 0;
						z-index: 99;
						box-shadow: 0px 0px 9px var(--color-active-option) inset;
					}
				}

				.radio_button_input {
					position: absolute;
					width: 100%;
					height: 100%;
					top: 0;
					padding: 0;
					z-index: 2;

					label.component_option_radio_button_select {
						width: 100%;
						border-radius: 8px;
						overflow: hidden;

						&:before {
							content: "";
							width: 100%;
							position: absolute;
							height: 100%;
							display: block;
							top: 0;
							transition: all 500ms ease;
							opacity: 1;
							background: linear-gradient(
									180deg,
									rgba(0, 0, 0, 0) 60.43%,
									rgba(0, 0, 0, 0.3) 100%
								),
								linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
						}

						&:hover:before {
							opacity: 0.5;
						}

						/* image  */
						&:after {
							content: "";
							content: "";
							width: 100%;
							position: absolute;
							height: 100%;
							display: block;
							top: 0;
							background-size: COVER;
							background-position: top;
							z-index: -1;
						}

						&[aria-label*="USA"]:after {
							background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-usa@2x-min.jpg");
						}

						&[aria-label*="Finland"]:after {
							background-image: url("");
							background-position: top;
						}

						&[aria-label*="Islande"]:after {
							background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-islande@2x-min.jpg");
							background-position: center;
						}

						&[aria-label*="Paraguay"]:after {
							background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-paraguay@2x-min.jpg");
							background-position: center;
						}

						&[aria-label*="Mexique"]:after {
							background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-mexique@2x-min.jpg");
							background-position: center;
						}

						&[aria-label*="Canada"]:after {
							background-image: url("https://startmining.io/wp-content/uploads/2025/10/option-hosting-canada@2x-min.jpg");
							background-position: center;
						}
					}
				}

				.radio_button_description {
					text-align: center;
					line-height: 1.1;
					display: flex;
					gap: 7px;
					align-items: center;
					justify-content: center;
					font-weight: bold;
					z-index: 2;
					position: relative;
					pointer-events: none;
					font-size: 1rem;
					flex-wrap: wrap;
					line-height: 1;
					flex-direction: column;

					.title {
						margin: 0;
						font-size: 14px;
						color: #fff;
						font-weight: 400;
						display: block;
						text-transform: uppercase;
					}

					.price {
						margin-bottom: 0 !important;
						font-size: 16px !important;
						font-weight: bold;
						display: block;
					}
				}
			}
		}
	}

	/* SLIDER HOSTING */

	.swiper {
		border-radius: 8px;
		overflow: hidden;

		.swiper-button-prev,
		.swiper-button-next {
			height: 100%;
			top: 0;
			transform: none;
			transition: all 500ms ease;
			padding: 16px;
			display: flex;
			width: auto;
			bottom: 0;
			margin: 0;

			&:after {
				display: none;
			}

			&:before {
				font-size: 21px;
				color: var(--color-active-option);
			}

			&.swiper-button-disabled {
				opacity: 0;
			}
		}

		.swiper-button-prev {
			position: absolute;
			left: 0;
			right: unset;
			background: linear-gradient(270deg, rgba(6, 25, 41, 0) 0%, #061929 100%);
		}

		.swiper-button-next {
			position: absolute;
			right: 0;
			left: unset;
			background: linear-gradient(270deg, #061929 0%, rgba(6, 25, 41, 0) 100%);
		}
	}

	/* ------- PRICE TABLE SUMMARY--------  */

	.pricing-table {
		display: grid;
		line-height: 1.1;
		grid-template-columns: auto auto auto auto auto auto;
		color: #ffffffcc;
		font-size: 14px;
		gap: 20px;
		margin-bottom: 40px;
	}

	.table-header {
		display: contents;
		font-weight: 600;
	}

	.table-row {
		display: contents;
	}

	.table-row > div {
		display: flex;
		gap: 10px;
		flex-direction: column;
	}

	.data-label {
		color: #ffffff99;
	}

	.data-col {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}
	.data-row {
		display: flex;
		justify-content: space-between;
		gap: 5px;
	}

	.data-value {
		font-weight: bold;
		flex-shrink: 0;

		&.--small {
			font-size: 10px;
			opacity: 0.6;
			font-weight: normal;
		}
	}

	.data-quantity .data-value {
		text-align: center;
	}

	.header-data-fees {
		color: #20b486;
		font-weight: 700;
	}

	.data-fees .data-price {
		color: #20b486;
		font-weight: bold;
	}

	.unit {
		font-weight: 400;
		font-size: 12px;
	}

	/* --- RESPONSIVE --- */
	@media (max-width: 1300px) {
		.pricing-table {
			display: block;
		}

		.table-header {
			display: none;
		}

		.table-row {
			display: block;
			margin-bottom: 20px;
			border-bottom: 1px solid #2c3e50;
			padding-bottom: 15px;

			.data-value {
				text-align: right;
				max-width: 50%;
			}

			.data-col {
				max-width: 50%;
				.data-value {
					max-width: 100%;
				}
			}

			> div {
				display: flex;
				justify-content: space-between;
				padding: 8px 0;
				border-bottom: 1px dotted #324a5f;

				&:last-child {
					border-bottom: none;
				}

				&:before {
					content: attr(data-label);
					font-weight: 600;
					color: #aab8c2;
				}
			}

			.data-name,
			.data-pu,
			.data-quantity,
			.data-offer {
				flex-direction: row;
				gap: 15px;
			}
		}
	}
}

/* Hide the WooCommerce dark blue total button */
.composite_price {
	display: none !important;
}
/* Style for custom total buttons */
#custom-totals {
	display: flex;
	gap: 15px;
	margin: 15px 0;
}
.custom-final,
.custom-mensuel {
	display: flex;
	flex-grow: 1;
	justify-content: space-between;
	padding: 15px;
	border-radius: 5px;
	font-weight: bold;
	color: white;
	text-align: center;
	font-size: 1.2em;
	align-items: center;
	line-height: 1;
}
.custom-final {
	background-color: #061929; /* Dark blue to match WooCommerce */
}
.custom-mensuel {
	background-color: #00b773; /* Green as per screenshot */
}

@media (min-width: 769px) {
	.custom-mensuel {
		max-width: 300px;
	}
}

@media (min-width: 1300px) {
	#custom-mensuel-price,
	#custom-final-price {
		font-size: 28px;
		line-height: 1;
	}
}

@media (max-width: 768px) {
	#custom-totals {
		flex-direction: column;
	}
}
