/* Target scrollbar only inside the popup */
#product-grid {
    overflow: hidden; /* Prevents outer scrolling */
}

/* Apply scrollbar styles to the scrollable area inside the popup */
#product-grid {
    overflow-y: auto;
    max-height: 500px; /* Adjust as needed */
}

/* Custom Scrollbar for Webkit (Chrome, Safari) */
#product-grid::-webkit-scrollbar {
    width: 2px; /* Adjust width as needed */
}

/* Track (background of scrollbar) */
#product-grid::-webkit-scrollbar-track {
    background: #101010 !important; /* 70% black */
    border-radius: 10px;
}

/* Handle (thumb of scrollbar) */
#product-grid::-webkit-scrollbar-thumb {
    background: #707070 !important; /* Yellow */
    border-radius: 0;
}

/* Handle on hover */
#product-grid::-webkit-scrollbar-thumb:hover {
    background: #707070 !important; /* Darker yellow on hover */
}

/* Custom Scrollbar for Firefox */
#product-grid {
	scrollbar-color: #707070 !important;
}

/* Action Button */
.action-button {
    padding: 8px 12px !important;
    background-color: #fff !important;
    color: rgba(0, 0, 0, 0.40) !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

/* Close Icon */
#close-popup {
    position: absolute;
    top: 12px;
    right: 11px;
    font-size: 36px;
    font-weight: 100;
    cursor: pointer;
    color: #707070;
    transition: color 0.3sease;
    font-family: 'Gill Sans Light';
}

#close-popup:hover {
    color: #ffffff !important;
}

/* Popup */
#product-selection-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(32, 32, 32);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block;
    z-index: 1000;
    width: 70vw; /* 70% of the viewport width */
    max-width: 1000px; /* Maximum width to avoid excessive stretch */
    height: 600px;
	font-family: 'Gill Sans Light' !important;
}


/* Hide Popup */
#product-selection-popup.hidden {
    display: none;
}

.popup-content h3{
    color: #ffffff !important;
    font-weight: 100 !important;
	font-family: 'Gill Sans Light';
}
.popup_title {
	font-family: 'Gill Sans Light';
	margin:0 auto !important;
	font-weight: 100;
	color: #fff;
	letter-spacing: 1.5px !important;
	transform: translateX(40px);
}
.loading-text {
    margin: 0 auto !important;
    color: #f2d952 !important;
    text-transform: uppercase !important;
}

/* Product Grid */
#product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Centers items and ensures even spacing */
    overflow-y: auto;
    max-height: 500px;
    padding: 10px;
    padding-bottom: 40px;
	padding-right: 20px;
}

.product-wrapper {
    background: linear-gradient(0.25turn, #333333, #171717) !important;
    padding: 0 !important;
}

/* Product Item */
.product-item {
    flex: 1 1 calc(20% - 15px); /* Adjusts width dynamically, accounting for gap */
    max-width: 220px; /* Prevents items from becoming too wide */
    text-align: center;
    background: linear-gradient(0.25turn, #333333, #171717);
    padding: 10px;
    border-radius: 8px;
	position: relative !important;
}

.product-element-bottom {
	display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.style_icon {
    width: 10px !important;
}
/* Responsive Adjustments */
@media (max-width: 1200px) {
    .product-item {
        flex: 1 1 calc(25% - 15px); /* 4 items per row */
    }
}

@media (max-width: 992px) {
    .product-item {
        flex: 1 1 calc(33.33% - 15px); /* 3 items per row */
    }
}

@media (max-width: 768px) {
	#product-selection-popup {
		width: 90vw;
	}
    .product-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row */
    }
}

@media (max-width: 480px) {
	#product-selection-popup {
		width: 90vw;
	}
    .product-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row at the lowest resolution */
    }
	.popup_title {
		justify-self: left;
        transform: none;
	}
}


.wd-product-header a{
    color: #f2d952 !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}   

/* Bottom Button Bar */
#popup-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgb(32, 32, 32);
    padding: 15px !important;
    text-align: center !important;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1) !important;
    display: flex;
    justify-content: center;
}

/* Footer Buttons */
#popup-footer .footer-button {
    padding: 8px 12px !important;
    margin: 0 5px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    width: 100px;
    text-align: center;
    line-height: 16px;
    height: 35px;
	background: rgba(0,0,0,0.7) !important;
    color: #fff !important;
    border: 1px solid rgba(0,0,0,0.7) !important;
    text-transform: uppercase;
    font-weight: 100 !important;
}

/* Make file upload container full width */
.wpforms-uploader {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* Center and style the upload area */
.wpforms-uploader .dz-default {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Adjust image preview width */
div.wpforms-container div.wpforms-uploader .dz-preview .dz-image {
    margin-inline-end: 0 !important;
    width: -webkit-fill-available !important;
    height: auto !important;
}

/* Ensure previews appear below the upload box */
.wpforms-uploader .dz-preview {
    width: 100%;
    max-width: 100%;
}

/* Adjust image inside preview */
div.wpforms-container div.wpforms-uploader .dz-preview .dz-image img {
    max-width: -webkit-fill-available !important;
}

/* Move previews below upload area */
.wpforms-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid layout for uploaded files */
.wpforms-uploader .dz-preview-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 840px; /* Adjust based on layout */
    margin-top: 15px;
}

/* Style individual previews */
.wpforms-uploader .dz-preview {
    position: relative;
    width: 200px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Image preview */
.wpforms-uploader .dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.wpforms-uploader .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Remove button styling */
.wpforms-uploader .dz-preview .dz-remove {
    position: absolute;
    top: 5px;
    background: none;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    line-height: 22px;
    inset-inline-end: 3px !important;
    right: 0;
}

/* Hide unnecessary text */
.wpforms-uploader .dz-preview .dz-details,
.wpforms-uploader .dz-preview .dz-progress,{
    display: none;
}

/* Hide the default checkbox */
.select-checkbox input[type="checkbox"] {
    visibility: hidden; /* Ensures the checkbox is not visible */
    position: absolute; /* Ensures it doesn't take up space in layout */
    opacity: 0; /* Another way to hide it */
}

/* Style the custom checkmark */
.select-checkbox .checkmark {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    right: 15px;
}

/* Style the checkmark when it's checked */
.select-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: none; /* Checkmark background color */
    border-color: none;
}

/* Create the custom checkmark inside the box */
.select-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid yellow;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Optional: Hover effect for the checkbox */
.select-checkbox .checkmark:hover {
    border-color: #888;
}
.chip-container {
	color: rgba(0, 0, 0, 0.4) !important;
    font-size: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    padding: 0 14px !important;
    min-height: 43px !important;
	height: max-content !important;
    line-height: 42px !important;
    border-radius: 3px !important;
}
.chip {
    display: inline-flex;
    background-color: #f7f7f7 !important;
    color: #707070;
    padding: 5px 10px !important;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    border: 1px solid #707070 !important;
    border-radius: 36px !important;
    width: max-content !important;
    /* padding-left: 10px !important; */
    /* padding-right: 10px !important; */
    margin-left: 10px !important;!i;!;
    align-items: center;
    justify-content: center;
    height: 30px !important;!i;!;
}

.remove-chip {
    margin-left: 10px !important;
    cursor: pointer;
    color: #707070;
    font-size: 14px !important;
    
    !i;!;
}

.remove-chip:hover {
    color: #000;
}
.error-message {
    color: #d63637;
    margin-top: 12px !important;
    font-size: 14px;
    font-weight: 400;
}
.error-message:before {
    -webkit-mask-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2217%22%20height%3D%2215%22%20viewBox%3D%220%200%2017%2015%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.0264%2012.3086L9.46387%200.90625C8.97168%200.0585938%207.68652%200.03125%207.19434%200.90625L0.631836%2012.3086C0.139648%2013.1562%200.768555%2014.25%201.78027%2014.25H14.8779C15.8896%2014.25%2016.5186%2013.1836%2016.0264%2012.3086ZM8.34277%209.92969C9.02637%209.92969%209.60059%2010.5039%209.60059%2011.1875C9.60059%2011.8984%209.02637%2012.4453%208.34277%2012.4453C7.63184%2012.4453%207.08496%2011.8984%207.08496%2011.1875C7.08496%2010.5039%207.63184%209.92969%208.34277%209.92969ZM7.13965%205.41797C7.1123%205.22656%207.27637%205.0625%207.46777%205.0625H9.19043C9.38184%205.0625%209.5459%205.22656%209.51855%205.41797L9.32715%209.13672C9.2998%209.32812%209.16309%209.4375%208.99902%209.4375H7.65918C7.49512%209.4375%207.3584%209.32812%207.33105%209.13672L7.13965%205.41797Z%22%20fill%3D%22currentColor%22%2F%3E%0A%3C%2Fsvg%3E%0A);
    mask-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2217%22%20height%3D%2215%22%20viewBox%3D%220%200%2017%2015%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.0264%2012.3086L9.46387%200.90625C8.97168%200.0585938%207.68652%200.03125%207.19434%200.90625L0.631836%2012.3086C0.139648%2013.1562%200.768555%2014.25%201.78027%2014.25H14.8779C15.8896%2014.25%2016.5186%2013.1836%2016.0264%2012.3086ZM8.34277%209.92969C9.02637%209.92969%209.60059%2010.5039%209.60059%2011.1875C9.60059%2011.8984%209.02637%2012.4453%208.34277%2012.4453C7.63184%2012.4453%207.08496%2011.8984%207.08496%2011.1875C7.08496%2010.5039%207.63184%209.92969%208.34277%209.92969ZM7.13965%205.41797C7.1123%205.22656%207.27637%205.0625%207.46777%205.0625H9.19043C9.38184%205.0625%209.5459%205.22656%209.51855%205.41797L9.32715%209.13672C9.2998%209.32812%209.16309%209.4375%208.99902%209.4375H7.65918C7.49512%209.4375%207.3584%209.32812%207.33105%209.13672L7.13965%205.41797Z%22%20fill%3D%22currentColor%22%2F%3E%0A%3C%2Fsvg%3E%0A);
    content: '';
    position: relative;
    display: inline-block;
    right: 5px;
    top: 1.5px;
    width: 16px;
    height: 14px;
    background-color: var(--wpforms-label-error-color);
	margin-right: 3px;

}
.error-message-outline {
	border-color: var(--wpforms-label-error-color) !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-rating-item.selected svg, div.wpforms-container-full .wpforms-form .wpforms-field-rating-item.hover svg {
	fill: #f2d952 !important;
}
/* Change border color on input focus */
.wpforms-form input:focus, 
.wpforms-form textarea:focus, 
.wpforms-form select:focus,
div.wpforms-container-full .wpforms-field-file-upload .wpforms-uploader.wpforms-focus, div.wpforms-container-full .wpforms-field-file-upload .wpforms-uploader:focus-within
{
    border-color: #707070 !important; /* Change to your preferred color */
	box-shadow: 0 0 0 1px #707070, 0px 1px 2px rgba(0, 0, 0, 0.15) !important;
}

div.wpforms-container-full input[type=checkbox]:focus:before, div.wpforms-container-full input[type=radio]:focus:before,
div.wpforms-container-full input[type=checkbox]:checked:before, div.wpforms-container-full input[type=radio]:checked:before
{
    border-color: #707070 !important; /* Change to your preferred color */
	box-shadow: 0 0 0 1px #707070, 0px 1px 2px rgba(0, 0, 0, 0.15) !important;
}
div.wpforms-container-full input[type=checkbox]:checked:after {
	border-left: 4px solid #707070 !important;
    border-bottom: 4px solid #707070 !important;
}
.star_ratings {
	text-align: center;
}
.wpforms-submit-container .wpforms-submit {
    width: 100% !important;
    background-color: #101010 !important;
    color: #fff !important;
    font-weight: 100 !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-family: 'Gill sans Bold' !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}