.wca_attribute {
  height: auto !important ;
}

.wca_cart_form {
  margin-bottom: 20px;
}

.wca_cart_form > label {
  display: block;
  font-size: 16px;
  margin: 10px 0;
}

.wca_sub_attribute {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.wca-child-item > input {
  display: none;
}

.wca-child-item > label {
  display: block;
  padding: 3px;  
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 2px transparent;
  position: relative;
}

.wca-child-item > label > span {
  display: block;
  min-width: 30px;
  min-height: 30px;
  border: 2px solid transparent;
  transition: border 0.2s ease-in-out;
  cursor: pointer;
  opacity: 0.8;
}

.image-tooltip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, calc(-100% - 6px));
  z-index: 1000;
  width: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0px;
  background: #343434;
  color: #fff;
}

.image-tooltip > img{
  max-width: 100%;
  width: 100%;
  box-shadow: 0 0 0 0 !important;
}

.image-tooltip > span {
  font-size: 13px;
  font-weight: 500;
  padding: 5px;
  display: block;
  line-height: 1.5;
}

.image-tooltip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  z-index: 1000;
  width: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0px;
  background: #343434;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0, 0.1);
  display: none;
}

.image-tooltip:before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 0px 12px;
  border-color: #343434 transparent transparent transparent;
  position: absolute ;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -50%);
}

.wca-child-item input:checked + label {
  border: 2px solid #000;
  opacity: 1;
}

.wca_image_popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.73);
  width: 450px;
  height: auto;
  z-index: 10000;
  max-height: 80vh;
  padding: 5px;
  padding-top: 5px;
  border-radius: 0;
  display: none;
  max-width: 95%;
}

.wca_image_popup::-webkit-scrollbar {
  width: 2px;
}

/* Track */
.wca_image_popup::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5); 
}
 
/* Handle */
.wca_image_popup::-webkit-scrollbar-thumb {
  background: #343434; 
}

/* Handle on hover */
.wca_image_popup::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

img.wca_attr_image {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.wca_image_popup > span {
  display: block ;
  color: #fff;
  padding: 5px; 
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin-top: 10px;
}

.wca_close_imagePop {
  color: #fff;
  position: absolute;
  right: 15px;
  top: 5px;
  z-index: 1;
  cursor: pointer;
}

@media(max-width: 768px){
  .image-tooltip{
    display: none !important;
  }
}