/**
 * Theme Name: Rey Child
 * Theme URI: http://reytheme.com/
 * Description: This is a child theme of Rey.
 * Author: Marius H.
 * Author URI:  https://twitter.com/mariushoria
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */

.cky-revisit-bottom-left:hover::after {
	border-right-color: #484f56 !important;
}

.cky-revisit-bottom-left:hover::before {
	background: #484f56 !important;
}

.hmsl-shop-menu ul li ul li>a {
	color: #000 !important;
}

 
/* 
   Rey Gallery Custom Grid Styles
*/

.rey-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* 3 columns on desktop */
	gap: 24px;
	padding: 0;
	list-style: none;
	margin: 0;
}

/* Each gallery item */
.rey-gallery-grid li.product {
	list-style: none;
	text-align: center;
}

.rey-gallery-grid img {
	width: 100%;
	height: 350px;
	/* fixed height */
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.rey-gallery-grid img:hover {
	transform: scale(1.05);
}

/* Pagination Styling */

.rey-gallery-pagination {
	text-align: center;
	margin-top: 30px;
}

.rey-gallery-pagination ul {
	display: inline-flex;
	list-style: none;
	gap: 10px;
	padding: 0;
}

.rey-gallery-pagination a,
.rey-gallery-pagination span {
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
}

.rey-gallery-pagination .current {
	background: #000;
	color: #fff;
	border-color: #000;
}


.show-password-input {
	display: none !important;
}
.hmsl-footer-nolink a{
	cursor: default !important;
}
.hmsl-footer-nolink a:after{
	display:none !important;
}
.hmsl-footer-locations ul li a:hover {
	--btn-line-tr: scale(1) !important;
	color: #fff !important;
}

.rey-siteWrapper {
	display: flex;
	flex-direction: column;
}

.rey-siteContent {
	flex-grow: 1;
}

.reyEl-menu--horizontal .reyEl-menu-nav>.menu-item-has-children>.sub-menu {
	min-width: 245px !important;
}

.elementor-459 .elementor-element.elementor-element-8d0881c.rey-sectionScroll {
	--clip-offset: none !important;
}

.hmsl-privacy-text p,
.hmsl-privacy-text ol li,
.hmsl-privacy-text ul li {
	text-align: left;
}

/* Style and position coupon error like WooCommerce */
.coupon {
	position: relative;
	margin-bottom: 10px;
}

.coupon .coupon-error-notice {
	position: absolute;
	bottom: -45px;
	margin-bottom: 0px;
	padding: 5px 10px;
	background: #f9fafb;
}

.elementor-counter {
	border: 1px solid #000 !important; 
	padding: 20px !important;
	background: #f9f9f9 !important; 
	text-align: center !important;

}

.elementor-counter p {
	margin-top: 10px !important;
}
.hmsl-form-btn a{
	cursor:pointer;
}
#contactPopup{
	display: none; /* Hidden initially */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow: auto;
}
.popup-content h2{
	margin-bottom: 35px;
    margin-top: 15px;
}
.popup-content {
	background: #fff;
	padding: 20px 30px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	text-align: center;
	position: relative;
	width: 800px;
    max-width: 90vw;
/*     height: 476px; */
	height:max-height;
    max-height: 90vh;
    overflow-y: auto;
}
.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
}
#contactPopup .row{
	display:flex;
	gap: 20px;
}
#contactPopup .row label{
	display:block;
}
#contactPopup .row label,
#contactPopup .wpcf7-not-valid-tip{
	text-align:left;
}
#contactPopup .wpcf7-form-control .wpcf7-list-item:first-child{
	margin-left:0;	
}
#contactPopup form input[type="submit"]{
	background-color: #212529;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    fill: #fff;
    text-align: center;
    transition: all .3s;
    font-weight: normal;
}
#contactPopup form input[type="submit"]:hover{
	 background-color: #000;
}
#contactPopup .wpcf7-spinner{
	position:absolute;
}
#contactPopup form > p{
	display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hmsl-interior-counter .elementor-counter{
	height: 100%;
}
.hmsl-shipping-link {
    text-decoration: underline;
	color: #000 !important;
}
.hmsl-shipping-link:hover{
	color: #353b41 !important;
}
.woocommerce-product-details__short-description p{
	font-size: 24px;
    line-height: 30px;
}
/* Make Elementor Lightbox navigation arrows always visible */
.elementor-lightbox .elementor-swiper-button-next,
.elementor-lightbox .elementor-swiper-button-prev {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
	position:fixed;
	z-index:5;
	bottom:24px;
}

.elementor-lightbox .elementor-swiper-button-next {
    right: 10px !important;
}

.elementor-lightbox .elementor-swiper-button-prev {
    left: 10px !important;
}
.elementor-lightbox .elementor-swiper-button-prev .screen-reader-text,
.elementor-lightbox .elementor-swiper-button-next .screen-reader-text{
	display:none;
}
.elementor-lightbox .elementor-swiper-button svg{
	height: 1em;
    width: 1em;
	cursor:pointer;
}
.hmsl-home-reviews .wp-gr .grw-review .wp-google-stars {
    margin: 15px 0 !important;
}
.hmsl-home-reviews .wp-gr .grw-review{
	padding: 0 !important;
}
.hmsl-home-reviews .wp-gr{
	padding-bottom:0 !important;
}
.hmsl-home-reviews .--sticky-col.--css-first .elementor-element-populated{
	height:100%;
}
.hmsl-home-reviews .wp-gr .grw-reviews{
	gap:16px !important;
	padding-top:25px !important;
	padding-bottom:25px !important;
}

/* iOS-specific CSS */
@supports (-webkit-touch-callout: none) {
	.rey-siteLogo img {
		width: auto !important;
	}
}
.rey-mainNavigation.rey-mainNavigation--mobile{
	height:100dvh;
}

	.--mobileNav--active .qlwapp__container.qlwapp__container--bottom-right {
		bottom: 95px !important;
	}

	.--mobileNav--active .cky-revisit-bottom-left {
		bottom: 125px !important;
	}
/*   Responsive Layout */
.rey-mainNavigation.rey-mainNavigation--mobile .--submenu-indicator{
	font-size:6px;
}
@media (min-width: 1300px) {
	.elementor-counter {
		min-width: 270px !important;
	}
	.hmsl-interior-counter .elementor-counter {
		min-width: auto !important;
	}
}
@media (min-width: 1200px) {
.rey-mainMenu>.menu-item-has-children>a>.--submenu-indicator-circle{
	z-index:9999 !important;
	right:-10px !important;
}
.rey-mainMenu>.menu-item-has-children .sub-menu .menu-item-has-children>a .--submenu-indicator-circle{
		right:calc(var(--indicator-distance) * 2 - .5em) !important;
	}
.submenu-hidden{
	opacity:0 !important;
	visibility:hidden !important;
}

.rey-overlay.rey-overlay--header,.rey-overlay.rey-overlay--header-top{
	display:none !important;
}
.ltr .rey-mainNavigation--desktop .rey-mainMenu .menu-item-has-children>a{
	padding-right:0 !important;
}
.rey-mainNavigation--desktop.--style-default .menu-item.depth--0>a:after{
	width:100% !important;
}
}
@media (max-width: 1500px) {
	.elementor-counter {
		min-height: 150px !important;
	}
}

@media (max-width: 1090px) {
	.hmsl-contact-mail a {
		word-break: break-all !important;
	}
}

@media (max-width: 1090px) {
	.hmsl-home-brand .elementor-widget-wrap {
		padding: 25px !important;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.rey-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hmsl-footer-shipping .elementor-widget-wrap.elementor-element-populated {
		justify-content: start !important;
		margin: 0;
	}

	.hmsl-footer-social {
		align-items: self-end !important;
		margin-bottom: 10px !important;

	}
	.hmsl-home-reviews .--sticky-col.--css-first .elementor-element-populated{
		height:auto !important;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.elementor-counter {
		padding: 15px !important;
	}

	.rey-gallery-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.hmsl-sub-banner .elementor-container {
		min-height: 150px !important;
	}

	.rey-header-dropPanel[data-location=outside] .rey-header-dropPanel-content {
		top: 0 !important;
		height: 360px !important;
		overflow-y: scroll !important;
		background: #fff !important;
		display:block !important;
        z-index: 9999;
	}

	.rey-header-dropPanel .rey-header-dropPanel-content:before {
		content: none !important;
	}

	.reyEl-menu--horizontal .reyEl-menu-nav>.menu-item-has-children>.sub-menu {
		right: 0 !important;
	}
	.hmsl-banner-mobile .rey-toggleBox-text-active{
		margin-bottom: 15px;
	}
	.hmsl-banner-mobile .rey-toggleBox --active{
		padding: 24px !important;
	}
	.rey-form-row.rey-form-row--reset-mobile {
        width: 100%;
    }

}
@media (max-width: 600px) {
	.popup-content {
		width: 95vw;
		height: auto;              /* allow height to adjust naturally */
		max-height: 90vh;
	}
	#contactPopup .row {
    	flex-wrap: wrap;
		gap:0;
	}
	.hmsl-col{
		width:100%;
	}	
}