#ph_custom_field_result {
    width: 350px;
    display: flex;
    flex-wrap: wrap; /* This ensures thumbnails wrap to the next line when necessary */
}

.thumbnail-item {
    width: 24%; /* This will ensure 3 thumbnails per row */
    padding: 3px; /* Optional padding around each item */
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
}

.thumbnail-item img {
    width: 100%; /* Ensures images fit within the thumbnail container */
    height: auto; /* Maintain image aspect ratio */
    margin: 0 !important;
}

.thumbnail-item.selected {
    border: 2px solid #0073aa; /* WooCommerce blue */
    border-radius: 5px;
}

.thumbnail-item .quantity-overlay {
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  width: auto;
}


.thumbnail-item .overlay {
  transform: translate(0%, -200%); /* Correct centering by adjusting with translate */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  color: white;
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
    margin-bottom: -35px;
}

.thumbnail-item img {
  transition: filter 0.5s ease; /* Smooth transition for brightness change */
}










#ph_custom_field_search{
    margin: 5px;
    background-color: var(--wp--preset--color--contrast);
border-radius: .33rem;
border-color: var(--wp--preset--color--contrast);
border-width: 0;
color: var(--wp--preset--color--base);
font-family: inherit;
font-size: var(--wp--preset--font-size--small);
font-style: normal;
font-weight: 500;
line-height: inherit;
padding-top: 0.6rem;
padding-right: 1rem;
padding-bottom: 0.6rem;
padding-left: 1rem;
text-decoration: none;
}



.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}


/* WP Doctor SMM URL input */
.wpdoctor-smm-url-field{margin:18px 0 16px;display:block;}
.wpdoctor-smm-input-note{margin:0 0 10px;line-height:1.45;}
.wpdoctor-smm-input-note p{margin:0 0 8px;}
.wpdoctor-smm-input-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;width:100%;}
.wpdoctor-smm-url-field label{font-weight:800;margin:0;color:inherit;line-height:1.3;white-space:nowrap;}
.wpdoctor-smm-url-field label span{color:#ff8a00;}
.wpdoctor-smm-url-field input[type="url"],
.wpdoctor-smm-url-field input[type="text"]{width:100%;max-width:520px;min-height:46px;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff;color:#111827;box-sizing:border-box;}
.wpdoctor-smm-url-field button{margin-top:8px;margin-left:0;border:0;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer;}
@media(max-width:700px){.wpdoctor-smm-input-row{display:block}.wpdoctor-smm-url-field label{display:block;margin:0 0 6px}.wpdoctor-smm-url-field input[type="url"],.wpdoctor-smm-url-field input[type="text"]{max-width:100%;}}
