/* Hide original select inputs */
.variations select.hidden {
	display: none !important;
}

/* Style the buttons */
.button-variation-options {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 1em;
}

.variation-button {
	padding: 10px 15px;
	border: 1px solid #ccc;
	transition: all 0.5s;
}

.variation-button.selected {
	
}

/* 
*
* Style the pop-up 
*
*/

.km-popup-links a::before {
	content: "+ ";
	position: relative;
}

/* Modal Overlay */
.km-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5); /* fallback for browsers without backdrop-filter */
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

/* Show Modal (add this class via JS) */
.km-modal.active {
	opacity: 1;
	visibility: visible;
}

/* Modal Box */
.km-modal-content {
	background: #fff;
	padding: 30px 30px 50px;
	max-width: 600px;
	width: 90%;
	border-radius: 10px;
	position: relative;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
	overflow-y: auto;
	max-height: 80vh;
}

/* Close Button */
.km-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
	transition: color 0.2s;
}

.km-modal-close:hover {
	color: #000;
}

/* Prevent background scroll */
body.km-modal-open {
	overflow: hidden;
}


/* Style the quantity input field */
.km-product-cart-form .quantity .qty {
    width: 80px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.km-product-cart-form .quantity .qty:focus {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

.km-product-cart-form .quantity .qty:hover {
    border-color: #999;
}

.km-product-cart-form .quantity .qty::-webkit-outer-spin-button,
.km-product-cart-form .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.reset_variations {
	displa: none !important;
	visibility: hidden !important;
}

.variation-button.selected {
  background-color: transparent;
  background-image: linear-gradient(180deg, var( --e-global-color-primary ) 0%, var( --e-global-color-primary ) 100%);
}