.product__info--cordage-button {
	align-items: baseline;
	background-color: rgba(26, 158, 218, 1);
	background-image: linear-gradient(
		88.86deg,
		#124377 21.41%,
		rgba(255, 255, 255, 0.03) 49.47%,
		#1a9eda 81.57%
	);
	position: relative;
	text-transform: none;
	margin-bottom: -1.25rem;

	&::after {
		content: none;
	}

	span {
		text-shadow: 0 0 2px rgba(255, 255, 255, 0.45);
		display: block;
		position: relative;
		z-index: 1;
		line-height: 1;
	}

	.product__info--cordage-button__text {
		font-size: 16px;
		letter-spacing: 1%;
		font-weight: 600;
	}

	.product__info--cordage-button__cost {
		font-size: 12px;
		font-weight: 500;
	}

	img {
		position: absolute;
		inset: 0;
		object-fit: cover;
		pointer-events: none;
		z-index: 0;
		opacity: 30%;
		mix-blend-mode: screen;
		height: 100%;
		width: 100%;
	}
}

.pose-container {
	color: #124377;

	&:has(p:empty) {
		display: none;
	}

	svg {
		height: auto;
		width: 13px;
	}

	:is(p, strong) {
		color: inherit;
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
	}
}

.cordage__product-infos {
	.title {
		font-size: 14px;
		font-weight: 700;
	}

	.money {
		row-gap: 0.25rem;
	}

	.price {
		font-size: 16px;
		font-weight: 700;
	}

	.compare {
		font-size: 12px;
		text-decoration: line-through;
	}

	.tag {
		font-size: 12px;
		padding: 6px 8px;
		line-height: 1;
		color: #ffffff;
		background: #ff0000;
		font-weight: 700;

		&.tag--variant {
			background: #124377;
			font-weight: 500;
			width: fit-content;
		}

		&.tag--cart {
			background: #1a9eda;
			font-weight: 800;
			width: fit-content;
			text-transform: uppercase;
			font-size: 10px;
			line-height: 125%;
			letter-spacing: 2%;
			margin-bottom: 6px;
		}
	}
}

.cordage {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: 0.25s ease all;
	z-index: 99;

	.button--colored {
		--color-button-background: var(--colored);
		--color-button-border: var(--colored);
		--color-shadow: var(--colored);
	}

	&.open {
		opacity: 1;
		visibility: visible;

    .cordage__close-confirmation {
      position: absolute;
      inset: 0;
      z-index: 19;
      background: inherit;
      opacity: 0;
      padding: 1rem;
      visibility: hidden;
      transition: all 0.25s ease;

      &.active {
        opacity: 1;
        visibility: visible;
      }

      .h2 {
        color: #124377;
        font-size: 32px;
      }

      p {
        color: #124377;
        font-size: 24px;
      }
    }
	}

	.cordage__error-toast {
		position: absolute;
		top: 1.5rem;
		left: 50%;
		transform: translate(-50%, -20px);
		z-index: 30;
		max-width: calc(100% - 2rem);
		width: max-content;
		background: #d0021b;
		color: #ffffff;
		font-size: 14px;
		font-weight: 500;
		line-height: 140%;
		padding: 0.75rem 1.25rem;
		border-radius: 8px;
		box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.3);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;

		&.active {
			opacity: 1;
			visibility: visible;
			transform: translate(-50%, 0);
		}
	}

	.cordage__overlay {
		position: absolute;
		display: block;
		inset: 0;
		width: 100%;
		height: 100%;
		background: rgba(18, 67, 119, 0.6);
	}

	.cordage__container {
		overflow: hidden;
		background: #ffffff;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
		grid-template-areas:
			"header"
			"body"
			"footer";

		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;
		height: 100%;
		width: 100%;

		@media (min-width: 768px) {
			box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
			border: 2px solid rgba(182, 198, 214, 0.8);
			border-radius: 16px;
			height: 700px;
			width: 1280px;
			max-width: 90%;
			max-height: 90%;
			grid-template-columns: calc(100% - 324px) 324px;
			grid-template-areas:
				"header recap"
				"body recap"
				"footer recap";
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
		}

		&:has(.cordage__body[data-current-screen="home"]) .cordage__footer,
		&:has(.cordage__body[data-current-screen="added"]) .hide-when-added {
			display: none !important;
		}

		&:has(.cordage__body[data-current-screen="home"]) .cordage__recap {
			@media (max-width: 767px) {
				display: none;
			}
		}

		&:not(:has(.cordage__body[data-current-screen="upsells"])) {
			.cordage__close-add {
				display: none;
			}
		}

		&:has(.cordage__body[data-current-screen="upsells"]) {
			.cordage__footer-next {
				display: none;
			}

			.cordage__close-add {
				display: block;
			}
		}
	}

	.cordage__close {
		cursor: pointer;
		height: 40px;
		width: 40px;
		border-radius: 50%;
		border: 2px solid transparent;
		background: #ededed;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 35px;
		color: #124377;
		z-index: 20;
		position: absolute;
		top: 1rem;
		left: auto;
		right: 1rem;
		transition: all 0.25s ease;

		@media (min-width: 768px) {
			left: 1rem;
			right: auto;
		}
	}

	&:has(.cordage__close-confirmation.active) .cordage__close {
		border: 2px solid var(--Blue_Grey, rgba(182, 198, 214, 1));
		background: #124377;
		color: #ffffff;
	}

	.button--gray {
		color: #000000;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #ededed;
		aspect-ratio: 1;
		font-size: 24px;
		flex-shrink: 0;
		transition: 0.25s ease background;

		&:is(:hover, :focus-visible) {
			background: #cecece;
		}

		&::after {
			content: none;
		}
	}
}

.cordage[data-current-screen="choices"] .cordage__footer {
	display: none;
}

.cordage__header {
	grid-area: header;
	padding-top: 82px;
	position: relative;

	@media (min-width: 768px) {
		padding: 41px 40px 29px 100px;
	}

	.cordage__step {
		color: #124377;

		@media (max-width: 767px) {
			display: none;
		}

		span,
		svg {
			opacity: 15%;
		}
	}

	.cordage__scrollbar {
		position: absolute;
		left: 0;
		bottom: 0;
		right: 0;
		overflow: hidden;
		height: 10px;
		background: #b6c6d6;
		width: 100%;

		.cordage__scrollbar--drag {
			position: absolute;
			left: 0;
			background: #124377;
			border: 1px solid #383838;
			height: 100%;
			top: 0;
			bottom: 0;
			transition: width 0.25s ease;
			display: block;
		}
	}

	&[data-step="1"] {
		.cordage__step:nth-child(1) {
			span {
				opacity: 1;
				font-weight: 700;
			}
		}

		.cordage__scrollbar--drag {
			width: 20%;
		}
	}

	&[data-step="2"] {
		.cordage__step:nth-child(1) {
			span,
			svg {
				opacity: 1;
				font-weight: 700;
			}
		}

		.cordage__step:nth-child(2) {
			span {
				opacity: 1;
				font-weight: 700;
			}
		}

		.cordage__scrollbar--drag {
			width: 58%;
		}
	}

	&[data-step="3"],
	&[data-step="4"],
	&[data-step="5"] {
		.cordage__step:nth-child(1),
		.cordage__step:nth-child(2),
		.cordage__step:nth-child(3) {
			span,
			svg {
				opacity: 1;
				font-weight: 700;
			}
		}

		.cordage__scrollbar--drag {
			width: 87%;
		}
	}

	.cordage__container:has(.cordage__upsell--added) &[data-step="3"] .cordage__scrollbar--drag,
	.cordage__container:has(.cordage__upsell--added) &[data-step="4"] .cordage__scrollbar--drag,
	.cordage__container:has(.cordage__upsell--added) &[data-step="5"] .cordage__scrollbar--drag {
		width: 100%;
	}
}

.cordage__body {
	background-color: #ededed;
	background-image: linear-gradient(
		180deg,
		rgba(26, 158, 218, 0) 30%,
		rgba(26, 158, 218, 0.6) 85%
	);
	grid-area: body;
	position: relative;
	overflow: hidden;

	&[data-current-screen="home"] {
		[data-screen="home"] {
			display: flex;

      @media (min-height: 792px) {
        justify-content: center;
      }
		}
	}

	&[data-current-screen="options"] {
		[data-screen="options"] {
			display: flex;
		}
	}

	&[data-current-screen="upsells"] {
		[data-screen="upsells"] {
			display: flex;
		}
	}

	&[data-current-screen="added"] {
		grid-column: span 2;

		[data-screen="added"] {
			display: flex;
		}
	}

	&[data-current-screen="qcm"] {
		[data-screen="qcm"] {
			display: flex;
		}
	}

	&[data-current-screen="qcm-results"] {
		[data-screen="qcm-results"] {
			display: flex;
		}
	}

	&[data-current-screen="collection"] {
		[data-screen="collection"] {
			display: flex;
		}

		.shopify-section {
			width: 100%;
		}
	}

	[data-screen="added"] {
		background: #ffffff;
		justify-content: start;
		padding: 0 !important;

		.screen__header {
			background: #124377;
			padding: 2rem;
			width: 100%;

			p {
				color: #b6c6d6;
			}

			.screen__header--title {
				color: #ffffff;
			}
		}

		.screen__content {
			border-top: 1px solid #b6c6d6;
			margin-top: auto;
			padding: 1rem 1.5rem;
			max-width: 100% !important;
		}

		.screen__scroll {
			flex: 1;
			overflow: auto;
			min-height: 0;
			padding-inline: 1.5rem;
			scrollbar-width: none;
			text-align: left;
			max-width: 500px;
			margin-inline: auto;
		}

		.cordage__added--item {
			img {
				background: #ededed;
				height: auto;
				object-fit: contain;
				border-radius: 8px;
				flex-shrink: 0;
				width: 64px;
			}
		}

		.cordage__added--badge {
			background: #1a9eda;
			color: #ffffff;
			font-size: 10px;
			font-weight: 800;
			line-height: 125%;
			letter-spacing: 2%;
			text-transform: uppercase;
			padding: 2px 4px;
			width: fit-content;
		}

		.cordage__added--title {
			font-size: 14px;
			font-weight: 700;
			color: #000000;
		}

		.cordage__added--options {
			font-size: 14px;
			color: #000000;

			p {
				display: flex;
				align-items: center;
				gap: 12px;
			}
		}

		.cordage__added--pill {
			background: #124377;
			color: #ffffff;
			font-size: 10px;
			line-height: 12px;
			padding: 4px 8px;
		}

		.cordage__added--pose {
			font-size: 14px;
			font-weight: 500;
			color: #124377;

			svg {
				width: 12px;
				height: 12px;
			}
		}
	}

	[data-screen="upsells"],
  [data-screen="options"] {
		padding-bottom: 0 !important;

		&::after {
			content: "";
			display: block;
			flex-shrink: 0;
			height: 12rem;
		}

		@media (min-width: 768px) {
			&::after {
				height: 5rem;
			}
		}
	}

	[data-screen="qcm-results"] {
		.screen__header--title {
			span {
				font-weight: bolder;
				text-transform: lowercase;
			}
		}

		.qcm-results__grid {
			display: grid;
			grid-template-columns: 1fr;

			@media (max-width: 767px) {
				.cordage__collection--card {
					align-items: start;
					text-align: left;
					flex-direction: row;
					position: relative;

					img {
						height: 69px;
						object-fit: contain;
						width: 69px;
					}

					.title {
						padding-top: 1.8rem;
					}

					.tag {
						left: 95px;
						top: 16px;
						position: absolute;
						white-space: nowrap;
					}
				}
			}
			@media (min-width: 768px) {
				grid-template-columns: repeat(3, 1fr);
			}
		}
	}

	.cordage__body--layer {
		position: sticky;
		top: 0;
		object-fit: cover;
		opacity: 35%;
		mix-blend-mode: screen;
		height: 100%;
		width: 100%;
		pointer-events: none;
	}

	.cordage__body--screen {
		display: none;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		min-height: 0;
		overflow: hidden auto;
		z-index: 1;
		padding: 3rem 1.5rem 12rem;

		@media (max-width: 767px) {
			align-items: center;
		}
		@media (min-width: 768px) {
			padding-bottom: 5rem;
		}

		&[data-screen="collection"] {
			padding: 0;
		}

		.screen__header {
			color: #124377;

			.screen__header--title {
				font-size: 24px;
				text-wrap: balance;
			}

			.screen__header--text {
				margin-top: 16px;
			}
		}

		.screen__disclaimer {
			color: #09213b;
			text-wrap: balance;
		}

		.screen__content {
			margin-inline: auto;
			max-width: 652px;
			width: 100%;
		}

		.screen__section {
			background: #ffffff;
			box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
			border-radius: 8px;
			padding: 1rem;

			.screen__section--header {
				font-size: 20px;
				font-weight: 800;
				color: #124377;
				width: 100%;
				line-height: 1;
				border-bottom: 2px solid var(--Blue_Grey, rgba(182, 198, 214, 1));
				padding-bottom: 1rem;
				margin-bottom: 1rem;
			}

			.screen__inputs-group {
				fieldset {
					border: 0;
					padding: 0;
					margin: 0;
				}

				.screen__input--radio {
					input {
						position: absolute;
						width: 0;
						height: 0;
						overflow: hidden;
						appearance: none;
						opacity: 0;
						pointer-events: none;

						&:checked + label {
							background: #124377;
							color: #ffffff;
						}
					}

					label {
						height: 35px;
						width: 35px;
						cursor: pointer;
						display: flex;
						align-items: center;
						justify-content: center;
						background: #ededed;
						color: #124377;
						transition: all 0.25s ease;
					}
				}

				.screen__input--range {
					width: 100%;

					.screen__input--range-header {
						:is(label, p) {
							gap: 8px;

							strong {
								font-size: 16px;
								font-weight: 700;
							}
						}

						.screen__input--range-value {
							background: #ededed;
							padding: 0.25rem 0.75rem;
							min-width: 52px;
							text-align: center;
						}
					}

					input[type="range"] {
						appearance: none;
						-webkit-appearance: none;
						width: 100%;
						height: 6px;
						border-radius: 3px;
						background: linear-gradient(
							to right,
							#d9d9d9 var(--range-progress, 0%),
							#d9d9d9 var(--range-progress, 0%)
						);
						outline: none;
						cursor: pointer;
						margin-top: 1rem;

						&::-webkit-slider-thumb {
							appearance: none;
							-webkit-appearance: none;
							width: 24px;
							height: 24px;
							border-radius: 50%;
							background: #124377;
							border: none;
							cursor: pointer;
						}

						&::-moz-range-thumb {
							width: 24px;
							height: 24px;
							border-radius: 50%;
							background: #124377;
							border: none;
							cursor: pointer;
						}

						&::-moz-range-track {
							height: 6px;
							border-radius: 3px;
							background: #d9d9d9;
						}

						&::-moz-range-progress {
							height: 6px;
							border-radius: 3px;
							background: #124377;
						}
					}
				}
			}
		}

		.cordage__question {
			background: #ffffff;
			box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
			border-radius: 8px;
			padding: 1rem;
			text-align: left;

			p {
				border-bottom: 1px solid #b6c6d6;
				color: #124377;
				font-size: 1rem;
				font-weight: 800;
				line-height: 1;
				margin-bottom: 1rem;
				padding-bottom: 1rem;
			}

			.field {
				input {
					position: absolute;
					width: 1px;
					height: 1px;
					overflow: hidden;
					opacity: 0;
					visibility: hidden;

					&[checked] + label,
          &:checked + label {
						background: #124377;
						color: #ffffff;
					}
				}

				label {
					border: 2px solid currentColor;
					border-radius: 8px;
					color: #124377;
					font-size: 14px;
					font-weight: 700;
					padding: 14px 20px;
					transition: all 0.25s ease;
				}
			}
		}

		[data-show-input-checked] {
			display: none;
		}

		&:has(#expert-yes:checked) [data-show-input-checked="expert-yes"] {
			display: block;
		}

		&:has(#expert-no:checked) [data-show-input-checked="expert-no"] {
			display: block;
		}
	}

	.cordage__body--modal {
		position: absolute;
		inset: 0;
		background: rgba(18, 67, 119, 0.8);
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;

		&.active {
			opacity: 1;
			visibility: visible;
		}

		.modal__container {
			background: #ffffff;
			border-radius: 8px;
			padding: 3rem 1rem 1rem;
			position: relative;
			max-width: 310px;
			width: 100%;

			.modal__title {
				position: absolute;
				top: -30px;
				border-radius: 100px;
				color: #ffffff;
				background-color: rgb(var(--colored));
				font-size: 20px;
				font-weight: 800;
				padding: 1rem 1.5rem;
				left: 50%;
				transform: translateX(-50%);
				white-space: nowrap;
			}

			.modal__product {
				img {
					width: auto;
					height: 140px;
					object-fit: contain;
				}

				strong {
					font-weight: 800;
				}

				.modal__product--title {
					font-size: 18px;
				}

				.modal__product--price {
					font-size: 16px;
				}

				.modal__product--tag {
					font-size: 12px;
					font-weight: 800;
					line-height: 1;
					padding: 6px;
					background: #ff0000;
					color: #ffffff;
				}

				.cordage__variants {
					label {
						padding: 0.25rem 0.5rem;

						@media (min-width: 768px) {
							padding: 0.5rem 1rem;
						}
					}
				}
			}
		}
	}

	.cordage__body--modal-upsell {
		@media (max-width: 767px) {
			align-items: start;
			padding-top: 2rem;
		}

		.modal__container--upsell {
			max-width: 360px;
			padding: 1.5rem;

			.modal__upsell--header {
				font-size: 18px;
				font-weight: 800;
				color: #124377;
				margin-bottom: 1rem;
			}

			.modal__upsell--swatches {
				display: grid;
				grid-template-columns: repeat(5, 1fr);
				gap: 0.5rem;
				margin-bottom: 1rem;
			}

			.modal__upsell--swatch {
				border: 2px solid transparent;
				border-radius: 4px;
				padding: 2px;
				cursor: pointer;
				background: #ffffff;
				transition: border-color 0.25s ease;

				&.active {
					border-color: #124377;
				}

				img {
					width: 100%;
					height: auto;
					aspect-ratio: 1;
					object-fit: contain;
				}
			}

			.modal__upsell--color {
				margin-bottom: 1.5rem;

				strong {
					font-weight: 800;
				}
			}

			.modal__upsell--pose {
				border: 0;
				padding: 0;
				margin: 0 0 0.5rem;
			}

			.modal__upsell--error {
				color: #ff0000;
				text-align: center;
				font-size: 14px;
				margin-bottom: 0.5rem;
			}

			.modal__upsell--actions {
				margin-top: 1rem;

				.button {
					flex: 1;
				}
			}
		}
	}

	.screen__input--radio-pill {
		width: 100%;

		input {
			position: absolute;
			width: 0;
			height: 0;
			overflow: hidden;
			appearance: none;
			opacity: 0;
			pointer-events: none;
		}

		label {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 48px;
			border-radius: 4px;
			background: #ededed;
			color: #124377;
			font-weight: 700;
			cursor: pointer;
			transition: all 0.25s ease;
		}

		input:checked + label {
			background: #124377;
			color: #ffffff;
		}
	}

	&:has(input[name="pain"][value="Oui"]:checked) .qcm-results__no-pain,
	&:has(input[name="pain"][value="Non"]:checked) .qcm-results__pain {
		display: none;
	}
}

.cordage__upsell {
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
	overflow: hidden;

	.cordage__button--action {
		background: transparent;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px;
		font-size: 16px;
		font-weight: 700;
		color: #124377;
		width: 100%;

		span {
			padding-left: 12px;
		}
	}

	&:has(.cordage__upsell--added) .cordage__button--action,
	.cordage__button--action[hidden] {
		display: none;
	}

	.cordage__upsell--added {
		padding: 12px;
		width: 100%;
		text-align: left;

		.cordage__recap--upsell {
			img {
				aspect-ratio: 1;
				object-fit: contain;
				width: 64px;
				flex-shrink: 0;
			}

			.color {
				font-size: 12px;
				color: #757575;

				&:empty {
					display: none;
				}
			}

			.compare:empty,
			.tag:empty {
				display: none;
			}
		}

		[data-upsell-remove] {
			width: 60px;
		}
	}
}

.cordage__recap {
	grid-area: recap;
	padding: 1.5rem;

	@media (max-width: 767px) {
		background: #ffffff;
		bottom: 0;
		position: absolute;
		max-height: 500px;
		opacity: 0;
		translate: 0 500px;
		transition: all 0.5s ease-in-out;
		border-top-left-radius: 24px;
		border-top-right-radius: 24px;
		box-shadow: 0px -8px 17px 0px rgba(18, 67, 119, 0.2);
		overflow: visible;
		scrollbar-width: none;
		padding: 2.5rem 1.5rem 1.5rem;
		z-index: 10;

		&.active {
			opacity: 1;
			translate: 0 0;
		}

		.cordage__recap--close {
			align-items: center;
			background: #ededed;
			border: 5px solid #ffffff;
			border-radius: 8px;
			gap: 8px;
			display: flex;
			font-size: 18px;
			font-weight: 600;
			line-height: 1;
			padding: 12px 24px;
			position: absolute;
			top: -1.5rem;
			left: 50%;
			translate: -50% 0;
			width: fit-content;
		}
	}

	.cordage__recap--container {
		overflow: hidden auto;

		@media (min-width: 768px) {
			display: contents;
			overflow: auto;
		}
	}

  .product-bulk__item {
    font-size: 8px;

    &>span {
      padding: 2px 4px;
      white-space: nowrap;
    }
  }

	.cordage__recap--base {
		font-size: 14px;
		font-weight: 700;
		background: #ededed;
		color: #124377;
		border-radius: 4px;

		span:not([data-amount-to-update]) {
			padding: 6px 12px;
		}

		.price {
			background-color: #1a9eda;
			color: #ffffff;
			font-size: inherit;
		}
	}

	.cordage__recap--step {
		.cordage__recap--title {
			font-size: 14px;
			font-weight: 700;
			padding: 9px 12px;
			background-color: #1a9eda;
			color: #ffffff;
			opacity: 0.2;
			border-radius: 4px;
			transition: opacity 0.25s ease;

			.cordage__recap--edit {
				cursor: pointer;
				display: none;
				font-weight: 400;
				font-size: 12px;
			}
		}

		&.active {
			.cordage__recap--title {
				opacity: 1;

				.cordage__recap--edit {
					display: flex;
				}
			}
		}

		img {
			aspect-ratio: 1;
			object-fit: contain;
			width: 64px;
		}

		.cordage__recap--cordage {
			button {
				width: 60px;
			}
		}
	}

	.cordage__recap--product {
    display: grid;
    grid-template-columns: auto 1fr;

		img {
      aspect-ratio: 0.88;
			object-fit: contain;
      width: auto;
			border-radius: 8px;
			background: #ededed;
		}

		.cordage__recap--qty {
			margin-top: 12px;

			button {
				border-radius: 0;
				height: 40px;
				width: 40px;
			}

			input {
				width: 40px;
				height: 40px;
				aspect-ratio: 1;
				border: 1px solid #ededed;
				text-align: center;
				appearance: none;
				flex: 1;

				&::-webkit-outer-spin-button,
				&::-webkit-inner-spin-button {
					-webkit-appearance: none;
					margin: 0;
				}

				& {
					-moz-appearance: textfield;
				}
			}
		}
	}

	.cordage__recap--expert {
		font-size: 16px;
		font-weight: 800;
		padding-block-start: 12px;
	}

	.cordage__recap--upsell {
		img {
			aspect-ratio: 1;
			object-fit: contain;
			width: 64px;
			flex-shrink: 0;
		}

		.title {
			font-size: 14px;
			font-weight: 700;
		}

		.color,
		.pose {
			font-size: 12px;
		}

		.price {
			font-size: 14px;
			font-weight: 700;
		}
	}

	.cordage__recap--options {
		padding-block-start: 12px;

		p {
			font-size: 1rem;
			line-height: 1.5rem;
			display: flex;
			align-items: center;
			gap: 12px;
		}
	}

	.cordage__recap--scroll {
		@media (min-width: 768px) {
			flex: 1;
			overflow: hidden auto;
			scrollbar-width: none;
		}
	}

	.cordage__upsell {
		box-shadow: none;
		overflow: unset;

		&:not(:has(.cordage__upsell--added)) {
			display: none;
		}

		.cordage__upsell--added {
			padding: 0;
		}
	}

	.cordage__recap--total {
		display: none;

		@media (min-width: 768px) {
			font-weight: 800;
			color: #ffffff;
			background: #124377;
			display: flex;
			font-size: 24px;
			margin: auto -1.5rem -1.5rem;
			padding: 2rem 1.5rem;
			box-shadow: 0px 0px 17px 0px rgba(18, 67, 119, 0.25);
		}
	}
}

.cordage__collection {
	.cordage__collection--header {
		position: sticky;
		top: 0;
		background: rgba(237, 237, 237);
		z-index: 2;

		@media (min-width: 768px) {
			padding: 13px 1rem;
		}

		& > div:first-child {
			@media (max-width: 767px) {
				background-color: #b6c6d6;
				border-bottom-left-radius: 8px;
				border-bottom-right-radius: 8px;
				padding: 1rem;
				width: 100%;
			}
			@media (min-width: 768px) {
				display: contents;
			}
		}
	}

	.cordage__collection--filters-wrapper {
		.button {
			font-size: 14px;
			height: 100%;
			padding: 8px 12px;
			text-transform: none;
		}

		.cordage__collection--filters-count {
			background: #124377;
			color: #ffffff;
			min-width: 18px;
			height: 18px;
			padding: 0 5px;

			&[hidden] {
				display: none;
			}
		}

		.cordage__collection--filters-panel {
			position: absolute;
			top: 69px;
			left: 0;
			width: 100%;
			background: #ffffff;
			box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
			z-index: 3;

			@media (min-width: 1240px) {
				max-height: 41px;
				top: 100%;
			}

			&[hidden] {
				display: none;
			}
		}

		.cordage__collection--filters-list {
			@media (max-width: 1239px) {
				flex-direction: column;
			}
		}

		.cordage__collection--filters-actions:not(:has([hidden])) {
			padding-top: 1rem;
		}

		.cordage__collection--filter-row {
			font-size: 14px;
		}

		.details {
			position: relative;
			width: 100%;

			@media (min-width: 1240px) {
				width: auto;
			}
		}

		.details__summary {
			color: #124377;
			font-size: 14px;
			font-weight: 700;
			line-height: 150%;
			padding: 10px;
			transition: all 0.25s ease;

			&:is(:hover, :active, :focus-within) {
				background: #b6c6d6;
				color: #ffffff;
			}
		}

		.details__content {
			padding: 1rem;

			@media (min-width: 1240px) {
				position: absolute;
				background: #ffffff;

				&.details__content--price-range {
					display: flex;
					flex-direction: column;
					gap: 8px;
					min-width: 400px;
				}
			}

			&::after {
				content: none;
			}

			.list {
				text-align: left;
				display: grid;
				grid-template-rows: repeat(7, auto);
				grid-auto-flow: column;
				gap: 0 1.5rem;

				input {
					opacity: 0;
					position: absolute;
					visibility: hidden;
				}

				label {
					font-size: 14px;
					line-height: 155%;
					white-space: nowrap;
				}
			}
		}
	}

	.active-facets {
		padding: 0 1rem 0;
		margin: 0;

		.removable-facet {
			background: rgb(var(--color-background));
		}
	}

  @media (min-width: 1200px) {
    &.cordage__collection--upsells {
      .cordage__collection--products {
        grid-template-columns: repeat(5, 1fr);
      }
    }
  }

	.cordage__collection--products {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 0.5rem 1.5rem 10rem;
		gap: 1rem;
		align-items: start;

		@media (min-width: 768px) {
			grid-template-columns: repeat(3, 1fr);
			padding: 2rem 2.25rem;
		}

		@media (min-width: 1200px) {
			grid-template-columns: repeat(4, 1fr);
		}
	}

	.cordage__collection--empty,
	.cordage__collection--search-empty {
		grid-column: 1 / -1;
		padding: 2rem;
	}

	.cordage__collection--card-hidden {
		display: none !important;
	}

	.cordage__search {
		align-items: stretch;
		border-radius: 4px;
		display: flex;
		flex: 1;
		justify-content: space-between;
		overflow: hidden;

		input {
			padding: 0.5rem 1rem;
			width: 100%;
		}

		.cordage__search--button {
			border-top-left-radius: 0;
			border-bottom-left-radius: 0;
			padding: 0.625rem;

			.icon {
				height: 17px;
				width: 17px;
			}
		}
	}

	.cordage__sort {
		color: #124377;
		position: relative;

		@media (max-width: 767px) {
			padding: 0.75rem 1.5rem;
			width: 100%;
		}

		p {
			font-size: 16px;
			white-space: nowrap;
		}

		.select {
			background: #ffffff;
			border-radius: 4px;
			color: #124377;
			cursor: pointer;
			font-size: 14px;
			font-weight: 700;
			height: auto;
			padding: 8px 42px 8px 12px;
			width: 100%;
		}

		.icon {
			height: auto;
			position: absolute;
			right: 36px;
			top: 50%;
			transform: translateY(-50%);
			width: 8px;
			z-index: 1;

			@media (min-width: 768px) {
				right: 12px;
			}
		}
	}
}

.cordage__collection--card {
	box-shadow: 0px 8px 20px 0px rgba(18, 67, 119, 0.2);
	background: #ffffff;
	border-radius: 6px;
	padding: 1rem 0.75rem;
	height: 100%;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.25s ease;

	&.active {
		border-color: #124377;
	}

	& > * {
		pointer-events: none;
	}

	img {
		height: 132px;
		width: 132px;
		object-fit: contain;
	}

	.cordage__collection--card--title {
		font-size: 18px;
		font-weight: 800;
		text-transform: none;
	}

	.cordage__collection--card--money {
		margin-top: auto;
	}

	.cordage__variants {
		padding: 1rem 1rem 2.5rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 127px;
		z-index: 10;
		background: #ffffff;
		border-top-left-radius: 1rem;
		border-top-right-radius: 1rem;
		transition: 0.25s ease all;
		pointer-events: auto;
		opacity: 0;
		visibility: hidden;

		@media (min-width: 768px) {
			bottom: 90px;
			max-width: 70%;
			padding: 1rem 1rem 1.5rem;
		}

		p {
			color: #757575;
			font-weight: 300;
		}

		input {
			opacity: 0;
			visibility: hidden;
			position: absolute;

			&:checked + label {
				background: #124377;
				color: #ffffff;
			}

			&:not(:checked) + label:is(:hover, :active, :focus) {
				background: #d9d9d9;
			}
		}

		label {
			background: #ededed;
			color: #124377;
			padding: 0.5rem 1rem;
			transition: all 0.25s ease;

			@media (min-width: 768px) {
				padding: 1rem 2rem;
			}
		}
	}

	&.active {
		.cordage__variants {
			opacity: 1;
			visibility: visible;
		}
	}

  &.cordage__collection--card--upsell {
    .money:has(.compare) .price {
      width: 100%;
    }
  }
}

.cordage__variants {
	width: 100%;

	p {
		color: #757575;
		font-weight: 300;
	}

	input {
		opacity: 0;
		visibility: hidden;
		position: absolute;

		&:checked + label,
		&.alone + label {
			background: #124377;
			color: #ffffff;
		}

		&:not(:checked) + label:is(:hover, :active, :focus) {
			background: #d9d9d9;
		}
	}

	label {
		background: #ededed;
		color: #124377;
		padding: 0.5rem 1rem;
		transition: all 0.25s ease;

		@media (min-width: 768px) {
			padding: 1rem 2rem;
		}
	}
}

.cordage__footer {
	grid-area: footer;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0px -1px 16px 0px rgba(18, 67, 119, 0.25);
	z-index: 9;

	@media (max-width: 767px) {
		position: absolute;
		top: auto;
		bottom: 0;
		left: 0;
		z-index: 9;
		right: 0;
		background: #ffffff;
		border-top-left-radius: 1rem;
		border-top-right-radius: 1rem;

		.cordage__footer--recap {
			display: flex;
			align-items: center;
			border-top: 1px solid #b6c6d6;
			background: #ededed;

			button {
				border-radius: 0;
			}

			.cordage__recap--total {
				font-size: 20px;
				font-weight: 800;
				color: #124377;
				padding-inline: 2rem;
			}
		}
	}

	@media (min-width: 768px) {
		flex-direction: row;
		padding: 1rem;
	}

	.cordage__footer--container {
		@media (max-width: 767px) {
			align-items: center;
			display: flex;
			justify-content: space-between;
			padding: 0.75rem 1.5rem;
		}
		@media (min-width: 768px) {
			display: contents;
		}
	}

	.button[disabled] {
		opacity: 0.1;
		filter: grayscale(1);
	}
}
