.Default__cart__button {
	margin-top: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;

	button,
	a {
		&.btn-success {
			background-color: var(--color-green);

			&:hover {
				background-color: color-mix(in oklab, var(--color-green) 80%, #fff);
			}
		}

		i svg {
			height: 1em;
		}
	}

	.input_wrap {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		background: var(--color-white);
		padding: 0.75rem 1rem;
		border-radius: 3rem;
		user-select: none;

		i {
			cursor: pointer;
			transition: all 0.2s linear;
			height: 1em;
			display: flex;
			align-items: center;

			&:hover {
				color: var(--blue);
			}

			svg {
				height: 1em;
				width: 0.75em;
			}
		}

		input {
			background: none;
			border: none;
			outline: none;
			field-sizing: content;
			max-width: 4ch;
			min-width: 2ch;
			font-weight: 550;
			line-height: 1;
			padding: 0;
			height: 1em;
			text-align: center;
		}

		@media (max-width: 560px) {
			&:not(.added) {
				display: none;
			}
		}
	}
	.btn-in-cart {
		.ico {
			display: none !important;
			aspect-ratio: 1 / 1;
			svg {
				height: 1em;
				width: 1em;
			}
		}
		@media (max-width: 560px) {
			.ico {
				display: block !important;
			}
			span {
				display: none;
			}
		}
	}
	.cart_button__popover {
		width: 100%;
		height: 100%;
		&:popover-open {
			display: flex;
			justify-content: center;
			align-items: center;
			background-color: color-mix(
				in oklab,
				var(--color-black) 30%,
				transparent
			);
		}

		.body {
			position: absolute;
			z-index: 1;
			background: var(--color-white);
			border-radius: 1rem;
			padding: 1.625rem;
			display: flex;
			flex-direction: column;
			gap: 3.75rem;
			width: min(810px, 94%);

			.title {
				display: flex;
				justify-content: space-between;
				align-items: center;
				color: var(--color-black);
				font-size: 1.125rem;
				font-weight: 500;

				button {
					background-color: unset;
					color: var(--color-black);
					padding: 0;

					&:hover {
						color: var(--blue);
					}
				}
			}

			.variants {
				display: grid;
				grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
				gap: 1rem;

				button {
					background: var(--color-white);
					color: var(--color-black);
					box-shadow: 0 0 0 2px var(--color-gray);
					border-radius: 2em;
					padding: 0.75rem 1rem;
					display: flex;
					justify-content: center;
					gap: 1ch;
					align-items: center;

					&.active,
					&:hover {
						box-shadow: 0 0 0 2px var(--blue);
					}
				}
			}

			.cart_button {
				width: fit-content;
				display: flex;
				gap: 1rem;
			}
		}
		.backdrop {
			position: absolute;
			left: 0;
			top: 0;
			right: 0;
			bottom: 0;
			border-radius: 0;
			background: color-mix(in oklab, var(--color-black) 30%, transparent);
		}
	}
}
