/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* generic button */
body
	.form-custom-theme_wrapper
	.gform_wrapper
	.gform_footer
	input[type="submit"] {
	background: #3bb54a;
	width: 100%;
	padding: 18px 0;
	margin-bottom: 16px;
	border-radius: 6px;
	line-height: 16px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	transition: 0.2s;
}

/* short description */
.woocommerce-product-details__short-description {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 0;
}

.woocommerce-product-details__short-description strong {
	font-weight: 700;
	color: rgba(17, 17, 17, 0.85);
}

/* custom add to cart + info button */
.product
	form.cart
	.quantity:has(input[type="hidden"])
	+ button.single_add_to_cart_button,
.button.custom-phone-button {
	background-color: #ffffff;
	color: #252f3f;
	border: 2px solid #252f3f;
	border-radius: 6px;
	height: auto;
	font-size: 15px;
	line-height: 16px;
	text-align: center;
}

.product
	form.cart
	.quantity:has(input[type="hidden"])
	+ button.single_add_to_cart_button {
	padding: 16px 0;
}

.product
	form.cart
	.quantity:has(input[type="hidden"])
	+ button.single_add_to_cart_button:hover,
.button.custom-phone-button:hover {
	background-color: #252f3f;
	color: #ffffff;
	border-color: #252f3f;
}

.product .single-product-buttons {
	display: flex;
	flex-direction: column;
}

.tax-product_cat .listing-product-buttons,
.home .listing-product-buttons {
	display: flex;
	flex-direction: column;
	margin: 4px 0;
	position: absolute;
	bottom: 0;
	width: 100%;
}

.tax-product_cat .products.columns-3,
.home .products.columns-3 {
	padding-top: 15px;
	padding-bottom: 15px;
}

.tax-product_cat .products.columns-3 > li,
.home .products.columns-3 > li {
	display: flex;
	flex-direction: column;
}

.tax-product_cat .listing-product-buttons button,
.home .listing-product-buttons button {
	width: 100% !important;
}

ul.products li.product .added_to_cart,
ul.products li.product .listing-product-buttons {
	opacity: 1 !important;
	position: absolute;
	width: 100% !important;
	bottom: 0;
}

.columns-4 ul.products li.product,
.cross-sells .columns-4 li.product,
.related .columns-4 li.product,
.upsells .columns-4 li.product,
.columns-3 ul.products li.product,
.cross-sells .columns-3 li.product,
.related .columns-3 li.product,
.upsells .columns-3 li.product {
	display: flex;
	flex-direction: column;
	position: relative;
	padding-bottom: 16px !important;
}

div.product .summary form.cart {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

ul.products li.product .added_to_cart,
ul.products li.product button {
	opacity: 1 !important;
	visibility: visible !important;
	display: inline-block !important;
	z-index: 2;
	width: 100% !important;
	position: absolute;
}

ul.products {
	row-gap: 35px;
}

.home ul.products {
	width: 100% !important;
}

.woocommerce-card__header {
	position: relative;
	padding-bottom: 40px;
	flex-grow: 1;
}

ul.products li.product:hover .button {
	opacity: 1 !important;
	visibility: visible !important;
}
.ajax_add_to_cart.add_to_cart_button,
.product .button.contact-modal-button {
	width: 100%;
	padding: 18px 0;
	border-radius: 6px;
	line-height: 16px;
	position: relative;
}

.single-product .ajax_add_to_cart.add_to_cart_button,
.single-product .product .button.contact-modal-button {
	margin-bottom: 16px;
}

ul.products li.product {
	align-self: stretch !important;
}

ul.products li.product:not(.product-category) {
	padding-bottom: 0 !important;
}
.contact-modal-button .btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	border-top-color: #fff;
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	animation: spincustom 1s linear infinite;
}

@keyframes spincustom {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* modal on contact button */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-y: auto;
	padding: 20px 32px 32px;
}

.modal-content {
	background-color: #fff;
	box-shadow: 0 4px 6.3px 0 rgba(0, 0, 0, 0.05);
	border-radius: 12px;
	width: 640px;
	max-width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}

#contact-modal .close {
	justify-items: end;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: end;
}

#contact-modal .close:hover,
#contact-modal .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

#contact-modal .gform_heading h2.gform_title {
	color: #000;
	font-size: 30px;
	font-style: normal;
	font-weight: 700;
	line-height: 37.5px;
	margin-bottom: 49px;
}

#contact-modal .gform-theme.gform_wrapper .gform-footer .gform_button,
.gform-theme.gform-theme--framework.gform_wrapper .contact-modal .button {
	background-color: #3bb54a !important;
	color: #ffffff !important;
	padding: 18px 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease !important;
	width: 100% !important;
}

#contact-modal
	.gform-theme.gform-theme--framework.gform_wrapper
	.gform-footer
	.gform_button:hover {
	background-color: #009245;
	color: #ffffff;
}

#contact-modal
	.gform-theme.gform-theme--framework.gform_wrapper
	.gform-footer
	.gform_button:focus {
	outline: none;
}

/* single product buttons */
.commercekit-pdp-simple-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

.commercekit-pdp-simple-form .button,
.commercekit-sticky-atc-intersector {
	margin-top: 0 !important;
	width: 100%;
}

.commercekit-pdp-sticky-inner {
	padding-bottom: 16px;
}

/* custom phone button */
.ajax_add_to_cart.add_to_cart_button,
.product .button.custom-phone-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 0;
	stroke: #252f3f;
}

.ajax_add_to_cart.add_to_cart_button,
.product .button.custom-phone-button:hover {
	stroke: #ffffff;
}

.custom-phone-icon {
	width: 24px;
	height: 24px;
}

.contact-modal-button {
	margin-top: 24px;
}

.custom-phone-button {
	margin-bottom: 16px;
}

.main-header .wpml-ls-legacy-dropdown {
	display: none;
}

.top-bar-right {
	display: flex;
}

ul.products li.product .woocommerce-LoopProduct-link {
	margin-bottom: 5px;
}

ul.products li.product .price {
	display: block;
	margin-bottom: 0 !important;
}

.cgkit-as-variation-price {
	height: 36px;
	border-bottom: 1px solid #eee;
	padding-bottom: 12px;
}

.product-categories-icons {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 21px;
	width: max-content;
	max-width: 100%;
  padding-bottom: 8px;

	justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) #dc9814;
}

 .product-categories-icons::-webkit-scrollbar {
	display: block;
  width: 8px;
  height: 8px;
  background-color: #dc9814;
} 
.product-categories-icons::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
}
.product-categories-icons::-webkit-scrollbar {
    height: .5em;
}
.product-categories-icons::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}
.product-categories-icons::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}
.product-categories-icons a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex-shrink: 0;
	min-width: fit-content;
	padding: 0 5px;
}

.product-categories-icons a span {
	color: #000;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}

.category-icon img.category-icon-image {
	height: 26px;
	width: auto;
	object-fit: contain;
}

.category-icon span {
	font-size: 14px;
	color: #333;
	white-space: nowrap;
}

.header-widget-region .product-categories-icons a {
	text-decoration: none;
}

ul.products li.product:not(.product-category) {
	position: relative;
	padding: 15px 12px !important;
	background-color: #fff;
	border-radius: 4px;
	border: 1px solid #eee !important;
}

.columns-4 ul.products li.product {
	width: 24% !important;
	position: relative;
}

.columns-3 ul.products li.product {
	width: 32.2% !important;
	position: relative;
}

.woocommerce .products {
	gap: 12px !important;
}

ul.products li.product:not(.product-category):before {
	height: 100% !important;
}

.modal-content {
	margin: 0 20px;
	padding: 16px 20px 24px;
}

@media screen and (max-width: 992px) {
	#contact-modal .gform_heading h2.gform_title {
		font-size: 22px;
		line-height: normal;
		margin-bottom: 24px;
	}

	.product-categories-icons {
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.product-categories-icons::-webkit-scrollbar {
		display: none;
	}

	.columns-4 ul.products li.product {
		width: 100% !important;
	}

	.columns-3 ul.products li.product {
		width: 100% !important;
	}

	.woocommerce .products .product {
		position: relative;
		padding: 15px 12px;
		background-color: #fff;
		border-radius: 4px;
		border: 1px solid #eee !important;
	}

	#rank-math-analytics-stats-wrapper.hide-stats
		a.rank-math-analytics-close-stats {
		top: 64px !important;
		right: 100px !important;
	}

	.modal-content {
		width: 100%;
		margin: 0 20px;
		padding: 16px 20px 24px;
	}

	.commercekit-pdp-sticky-inner {
		padding-bottom: 10px;
	}

	.button.custom-phone-button {
		margin-bottom: 10px;
	}

	.single-product .ajax_add_to_cart.add_to_cart_button,
	.single-product .product .button.contact-modal-button {
		margin-bottom: 10px;
	}

	div.product .summary form.cart {
		margin-top: 0 !important;
		margin-bottom: 10px !important;
	}

	.top-bar-right-mobile {
		display: block;
	}

	.top-bar-right {
		display: none !important;
	}
	button.mobile-search-toggle {
		right: 90px !important;
	}

	.main-header .wpml-ls-legacy-dropdown {
		display: block;
		position: absolute;
		right: 1em;
		top: 50%;
		transform: translateY(-50%);
		z-index: 999;
		width: fit-content !important;
	}

	.main-header .wpml-ls-legacy-dropdown .wpml-ls-current-language > a {
		border-radius: 4px !important;
		border: 1px solid #d9d9d9 !important;
		padding-top: 9px !important;
		padding-bottom: 9px !important;
	}

	.main-header .wpml-ls-legacy-dropdown .wpml-ls-current-language > a:hover {
		border-bottom: 0 !important;
	}

	.main-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
		padding-top: 9px !important;
		padding-bottom: 9px !important;
		border: none !important;
	}

	.main-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
		border: none !important;
	}

	.main-header .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
		border: 1px solid #d9d9d9 !important;
		border-top: 0 !important;
		border-radius: 4px;
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
	}

	.product-categories-icons a span {
		font-size: 11px;
	}

	.category-icon img.category-icon-image {
		height: 28px;
		width: auto;
	}

	.product-categories-icons {
		justify-content: flex-start;
	}
}
