/* Basic overlay backdrop */
.stor-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999999; 
  display: flex;
  align-items: center;
  justify-content: center;
    overflow: hidden;
}

/* Popup container */
.stor-popup-content {
  background: #fff;
  max-width: 1000px;
  width: 90%;
  padding: 20px;
  position: relative;
  flex-direction: column;
   gap: 10px;
   
  max-height: 90vh;   /* 90% of the viewport’s height */
  overflow-y: auto;   /* enable vertical scrollbar if needed */
}

.stor-popup-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 10px; right: 10px;
  cursor: pointer;
  color: black;
  box-shadow: none;

}

/* Product row */
.stor-popup-product {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.stor-popup-product-image{
 width:150px;
}
.stor-popup-product-image img {
    aspect-ratio: 1 / 1;
    max-width: 100% !important; 
    height: auto;
    object-fit: contain;
}
.stor-popup-product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap:10px;
}
.stor-popup-buttons {
  display: flex;
 flex-direction: row;
  align-content: center;
  justify-content: center;
  gap: 20px;
  margin-top:40px;
}

/* Slick slider items */
.stor-popup-upsell-slider .stor-popup-slider-item {
  text-align: center;
  position: relative;
  margin: 10px;
  padding: 10px;
  border: 2px solid #eee;
  transition: 0.3s ease;
}
.stor-popup-upsell-slider .stor-popup-slider-item img {
  max-width: 100%;
}
.stor-popup-slider-item-title {
  font-size: 0.9rem;
  margin: 5px 0;
  max-height: 50px;
  min-height: 50px;
  overflow: hidden;
}

.stor-popup-slider-add-to-cart {
    display: block; /* was none */
    margin-top: 8px;
}

.stor-popup-price-wrapper
{ 
	display: flex;
 flex-direction: row;
  align-content: center;
  gap: 10px;
	
}

a.stor-popup-continue.button {
    color: black;
    background-color: white;
    border: none;
}

.stor-popup-slider-item-image{
 width:100px;
 align-self: center;
}
.stor-popup-slider-item-image img {
    aspect-ratio: 1 / 1;
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}

a.stor-popup-slider-item-link {
    display: flex;
    flex-direction: column;
}
@media (max-width: 728px)
{
.stor-popup-buttons {
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
	text-align:center;
	gap:10px;
}
.stor-popup-title-wrapper {
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
}
a.stor-popup-slider-add-to-cart.button.add_to_cart_button {
    margin-bottom: 10px;
}

.stor-popup-upsell-slider h2
{
	font-size: 20px;
}
}

.storemap-free-shipping-minimal-value-notice
{
  color:#B69552; margin:0; padding-left:16px; font-weight:bold;text-align:center;margin-top:20px;margin-bottom:20px;
}

.stor-popup-upsell-slider .slick-dots
{
  margin-left: 0;
}

/* Ensure dots render as circles (not numbered buttons) */
.stor-popup-upsell-slider .slick-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;         /* <- removes numbers */
}
.stor-popup-upsell-slider .slick-dots li { display: inline-block; }
.stor-popup-upsell-slider .slick-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    text-indent: -9999px;     /* hide numbers */
    background: #ccc;
    padding: 0;
}
.stor-popup-upsell-slider .slick-dots li.slick-active button {
    background: #B69552;      /* match your accent */
}

.stor-popup-loading-spinner {
    display: inline-block;
    padding: 12px 16px;
    font-size: 14px;
    position: relative;
}
.stor-popup-loading-spinner::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .5em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: stor-spin .8s linear infinite;
    vertical-align: -2px;
}
@keyframes stor-spin { to { transform: rotate(360deg); } }

.stor-popup-upsell-slider .slick-dots button:before
{
    display:none!important;
}