$color__rating_star: #F2B827;
$transition-base: all .3s ease-in-out !default;

/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;

	.cart-contents {
		text-decoration: none;
	}

	.widget_shopping_cart {
		display: none;
	}

	.product_list_widget {
		margin: 0;
		padding: 0;
	}
}

.btn.single_add_to_cart_button {
	border: none;
}

.select2-results__option {
	color: #222;
}

.add_to_cart_button {
	text-decoration: none !important;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;

	&::before {
		content: "\53\53\53\53\53";
		opacity: 0.25;
		float: left;
		top: 0;
		left: 0;
		position: absolute;
	}

	span {
		overflow: hidden;
		float: left;
		top: 0;
		left: 0;
		position: absolute;
		padding-top: 1.5em;
	}

	span::before {
		content: "\53\53\53\53\53";
		top: 0;
		position: absolute;
		left: 0;
		color: $color__rating_star;
	}
}

.card {
	&.text-center {
		.star-rating {
			margin-left: auto;
			margin-right: auto;
		}
	}

	&.card-style1 {
		.card-footer {
			position: absolute;
			width: 100%;
			bottom: -100px;
			z-index: -99;
			padding: 0;
			background-color: rgba(var(--#{$variable-prefix}light-rgb), .95);
			transition: $transition-base;

			a {
				color: var(--#{$variable-prefix}dark);

				&:hover,
				&:focus {
					color: var(--#{$variable-prefix}primary);
				}

				.pe-7s-cart {
					font-weight: bold;
					font-size: 22px;
				}
			}

			.loop-add-to-cart {
				margin-right: auto;
				padding: 1rem;
			}

			.yith-wcwl-add-to-wishlist {
				padding: 1rem;
			}

			.yith-wcwl-add-to-wishlist {
				margin: 0;
				border-left: 1px solid rgba(var(--#{$variable-prefix}black-rgb), .125);
				padding-left: 1rem;
				align-self: stretch;

				.yith-wcwl-icon {
					margin-right: 0;
				}

				.feedback .yith-wcwl-icon {
					color: var(--#{$variable-prefix}primary);
				}
			}

			.compare,
			.yith-wcqv-button {
				font-size: 0;
				border-left: 1px solid rgba(var(--#{$variable-prefix}black-rgb), .125);
				padding: 1rem;
				align-self: stretch;
			}

			.compare:before,
			.yith-wcqv-button:before {
				content: "\e60b";
				font-family: 'Pe-icon-7-stroke';
				font-style: normal;
				font-weight: bold;
				font-size: 22px;
				font-variant: normal;
				text-transform: none;
				line-height: 1;
				text-indent: initial;
			}

			.compare:before {
				content: "\e651";
			}

		}

		&:hover .card-footer,
		&:focus .card-footer {
			bottom: 0;
			z-index: 9;
		}
	}
}

.checkout_coupon {
	.form-row {
		max-width: 400px;
	}
}

.cart-icon {
	.cart-contents {
		position: relative;

		i {
			font-size: 22px;
			margin-right: 0;
		}

		.cart-contents-count {
			width: 22px;
			height: 22px;
			color: white;
			background-color: var(--#{$variable-prefix}primary);
			display: block;
			border-radius: 50%;
			text-align: center;
			position: absolute;
			top: -10px;
			right: -14px;
			font-size: .825rem;
			line-height: 22px;
		}
	}

}

p.stars {

	a {
		position: relative;
		height: 1em;
		width: 1em;
		text-indent: -999em;
		display: inline-block;
		text-decoration: none;
		margin-right: 1px;
		font-weight: 400;

		&::before {

			display: block;
			position: absolute;
			top: 0;
			left: 0;
			width: 1em;
			height: 1em;
			line-height: 1;
			font-family: star;
			content: "\53";
			color: $color__rating_star;
			text-indent: 0;
			opacity: 0.25;
		}

		&:hover {

			~a::before {
				content: "\53";
				color: $color__rating_star;
				opacity: 0.25;
			}
		}
	}

	&:hover {

		a {

			&::before {
				content: "\53";
				color: $color__rating_star;
				opacity: 1;
			}
		}
	}

	&.selected {

		a.active {

			&::before {
				content: "\53";
				color: $color__rating_star;
				opacity: 1;
			}

			~a::before {
				content: "\53";
				color: $color__rating_star;
				opacity: 0.25;
			}
		}

		a:not(.active) {

			&::before {
				content: "\53";
				color: $color__rating_star;
				opacity: 1;
			}
		}
	}
}

.cart_item {
	.product-thumbnail {
		img {
			width: 100px !important;
		}
	}
}

.wc-tabs-wrapper {
	.nav-tabs {
		.nav-link {
			padding: 1rem 2rem;
			border-top-width: 4px;
			color: $color_4;

			&:focus,
			&:focus-visible,
			&.active {
				border-color: $color_9;
				background-color: $background-color_2;
				border-bottom: none;
				box-shadow: none;
			}
		}
	}

}

.woocommerce-form-login__rememberme,
.woocommerce-account-fields {
	.form-check-input {
		&::after {
			content: none;
		}
	}
}

#tab-additional_information,
#tab-description {
	h2 {
		margin-bottom: 20px;
	}
}

.wc_payment_methods {
	.wc_payment_method {
		label {
			margin-bottom: 0 !important;
		}

		.input-radio {
			&::after {
				background: var(--bs-primary);
			}

			&:focus {
				outline: none;
			}
		}
	}
}

.woocommerce-password-strength {
	text-align: right;

	&.strong {
		color: $woocommerce__color-success;
	}

	&.short {
		color: $woocommerce__color-error;
	}

	&.bad {
		color: $woocommerce__color-error;
	}

	&.good {
		color: $woocommerce__color-info;
	}
}

.select2-container .select2-selection--single {
	height: auto;

	.select2-selection__arrow {
		top: 10px;
		right: 10px;
	}
}

.p-last-mb-0>p:last-child {
	margin-bottom: 0;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
	a {
		color: var(--#{$variable-prefix}danger) !important;
	}
}

.table {
	.product-name {
		min-width: 200px;
	}

	.product-subtotal,
	.product-total {
		text-align: right;
	}

	tfoot,
	.order-total,
	.cart-subtotal {
		td:last-child {
			text-align: right;
		}
	}

	tbody {
		.product-name {
			a {
				color: white;
			}
		}
	}
}

.quantity {
	input[type="text"] {
		max-width: 80px;
		margin: 0;
		text-align: center;
		border-color: #e9ecef;
	}

	.count-control {
		i {
			font-size: 15px;
		}
	}
}

.onsale {
	width: 60px;
	height: 60px;
	background-color: var(--bs-primary) !important;
	color: var(--bs-white) !important;
	position: absolute;
	top: 10px;
	right: 10px;
}

/**
 * Forms
 */
.form-row {

	&.woocommerce-validated {

		input.input-text {
			box-shadow: inset 2px 0 0 $woocommerce__color-success;
		}
	}

	&.woocommerce-invalid {

		input.input-text {
			box-shadow: inset 2px 0 0 $woocommerce__color-error;
		}
	}
}

.required {
	color: #f00;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: $woocommerce__color-info;
	z-index: 9999;
}

.woocommerce,
.product {
	.blog-post-txt {
		span.price {
			font-size: 20px;
			font-weight: 700;
			color: gray;

			span {
				font-size: inherit;
			}
		}
	}


	.entry-header {
		border-bottom: 3px solid var(--global--color-border);
		padding-bottom: calc(2 * var(--global--spacing-vertical));
		margin-bottom: calc(3 * var(--global--spacing-vertical));
	}

	.entry-title {
		border-bottom: 0;
		padding-bottom: 0;
		margin-bottom: 10px;
	}

	.related,
	.upsells,
	.cross-sells,
	.cart_totals,
	.woocommerce-billing-fields,
	.woocommerce-Reviews,
	.woocommerce-order-details,
	.woocommerce-customer-details,
	.woocommerce-additional-fields {

		h2,
		h3 {
			margin-bottom: 20px;
		}
	}

	.woocommerce-Reviews {
		.avatar {
			width: 70px;
			height: 70px;
		}

		.comment-text {
			.meta {
				margin-bottom: 0;
			}
		}
	}

	.woocommerce-cart-form__cart-item,
	.shop_table {
		.product-name {
			.variation-size {
				display: inline-block;
				padding-left: 5px;
			}
		}
	}

	.select2-selection--single {
		border: none;
	}

	.select2-selection__rendered {
		border: var(--form--border-width) solid var(--form--border-color);
		background-color: #f3f3f3;
		color: var(--form--color-text);
		line-height: var(--global--line-height-body);
		padding: var(--form--spacing-unit);
		margin: 0 2px;
		max-width: 100%;
		height: var(--#{$variable-prefix}input-height, 43px);
		border-radius: 0.375rem;
	}
}

.woocommerce {

	.woocommerce-order-overview,
	.wc_payment_methods {
		list-style: none;
	}
}

.woocommerce-pagination {
	ul {
		list-style: none;
		display: flex;
		gap: 15px;
		padding-left: 0;
	}
}

@media screen and (min-width: 48em) {

	/**
	 * Header cart
	 */
	.site-header-cart {

		.widget_shopping_cart {
			position: absolute;
			top: 100%;
			width: 100%;
			z-index: 999999;
			left: -999em;
			display: block;
			box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
		}

		&:hover,
		&.focus {

			.widget_shopping_cart {
				left: 0;
				display: block;
			}
		}
	}
}

.search-results {

	.woocommerce,
	.product {
		.entry-header {
			border-bottom: 0;
			padding-bottom: 0;
			margin-bottom: 0;
		}
	}
}

/* max width 767 px*/
@media screen and (max-width:767px) {

	.woocommerce,
	.product {
		.entry-title {
			padding-bottom: 10px !important;
			margin-bottom: 0 !important;
		}
	}
}

table {
	width: 100%;

	th,
	td {
		padding: 8px 10px;
		text-align: left;
		font-size: 18px;
	}
}

.woocommerce-Address {
	line-height: 1;
}

.woocommerce-checkout-payment {
	.form-check-input {
		width: 1.375rem;
		height: 1.375rem;
	}
}

.select2-container--default .select2-selection--single {
	border-radius: 8px;
	margin: 0 0 0px;
}

.woocommerce {
	.select2-selection__rendered {
		background-color: transparent;
		height: 50px;
		border: 1px solid $color_32;
		margin: 0;
		padding: 15px !important;
		font-size: 1rem;
		line-height: 18px !important;
	}
}

// .select2-dropdown {
// 	background-color: $background-color_2;

// 	.select2-results__option {
// 		color: $background-color_2;
// 	}
// }

.select2-container--default .select2-search--dropdown .select2-search__field {
	background-color: transparent;
}

.select2-container--default .select2-results__option[data-selected="true"] {
	background-color: $color_10;
}

.coupon {
	input {
		padding: 12px;
		border-color: $color_32;
		border-radius: 5px 0 0 5px !important;
	}
}

.form-control:focus {
	box-shadow: none;
}

.woocommerce-customer-details,
.woocommerce-order-details {
	h2 {
		font-size: 32px;
		line-height: 1.34;
	}
}

.woocommerce-order-details {
	.shop_table {

		th,
		td {
			text-align: left;
		}
	}

	address {
		line-height: 1.5;
	}
}

.address-shipping,
.edit-account,
.woocommerce-ResetPassword,
.woocommerce-form-register,
.woocommerce-form-login {
	label {
		margin-bottom: 5px;
		font-size: 1rem;
	}

	.form-control {
		padding: 15px;
		background-color: white;
		border-color: $color_32;
	}

	.form-check-input {
		width: 1.375rem;
		height: 1.375rem;
	}
}

.woocommerce-cart-form {
	table {
		table-layout: fixed;
	}

	.product-remove {
		width: 50px;

		.remove {
			display: block;
			text-align: center !important;
		}
	}
}


@media (max-width: 991.98px) {
	.quantity {
		input[type="text"] {
			width: 50px;
			padding: 2px 16px;
			border-radius: 5px !important;
		}

		.input-group-text {
			padding: 2px 16px;
			display: block;
			border-radius: 5px !important;
			margin: 3px 0;
		}

		.input-group {
			display: block;
		}
	}

}