.stock-popup-modal {
    display: flex;
    flex-direction: column;
    height: calc(-64px + 100vh);
    max-height: calc(-64px + 100vh);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px 5px;
    position: fixed;
    visibility: hidden;
    width: 568px;
    top: 0px;
    right: 0px;
    transform: translate3d(0px, 100%, 0px);
    z-index: 99999999;
    scrollbar-width: none;
    scroll-behavior: smooth;
    margin: 32px;
    overflow: hidden auto;
    border-radius: 16px;
    background: rgb(255, 255, 255);
    transition: 300ms;
}

.stock-popup-modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateZ(0px);
}


.close-stock-popup {
	align-items: center;
    background: #000000e6;
    border: none;
    display: flex;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='35' height='35' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18.3403 5.52734L6.34033 17.5273' stroke='%23FFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3cpath d='M6.34033 5.52734L18.3403 17.5273' stroke='%23FFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");
	background-size: 20px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 8px;
    z-index: 1;
    opacity: 0.5;
}



.stock-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.popup-stock-info-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}


.popup-stock-info-trigger.loading .stock-trigger-text {
    visibility: hidden;
}


@keyframes stock-spin {
    to {
        transform: rotate(360deg);
    }
}

.stock-popup {
    padding: 20px;
}

.stock-popup-info {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    gap: 12px;
    border-bottom: 1px solid #cdcdcd;
}

.stock-popup-image {
    width: 70px;
    height: 90px;
    overflow: hidden;
    border-radius: 12px;
}

.stock-popup-image img {
    width: 100%;
    height: 100%;
    margin-right: 15px;
}

.stock-popup-name {
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stock__box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-info {
    font-size: 14px;
    line-height: 17px;
}

.product__gallery {
    position: relative;
}

.popup-stock-info-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 13;
    bottom: 12px;
    right: 12px;
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -.3px;
    font-weight: 500;
    opacity: 0.9;
    justify-content: center;
    width: 182px;
}


.product-wrapper .loading::after {
	content: "";
    border: 2px solid rgb(200 200 200);
    border-top-color: #000000;
}

.stock-name-popup {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -.3px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product__gallery-single {
    position: relative;
}


@media screen and (max-width: 767px) {
	.stock-popup-modal {
		top: 32px;
		min-width: auto;
		max-width: 100%;
		height: calc(100% - 32px);
		max-height: calc(100% - 32px);
		margin: 0;
		border-radius: 0;
		border-top-left-radius: 12px;
		border-top-right-radius: 12px;
		transform: translate3d(0px, 100%, 0px);
	}
	
	.stock-popup {
		padding: 12px;
	}
}