.AB-history-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.AB-history-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.AB-history-image-container:hover .AB-history-item-actions {
  opacity: 1;
}

.AB-history-image-container:hover .AB-delete-history-btn {
    opacity: 1;
}



.AB-delete-history-btn svg {
    width: 24px;
    height: 24px;
    min-width: 19px;
    min-height: 24px;
}

.delete-all-tryons-button {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 6px;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-top: auto;
}

.delete-all-tryons-button:hover {
    background-color: #c82333;
}

.delete-all-tryons-button svg {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
}

.delete-all-tryons-button span {
    display: inline-block;
    vertical-align: middle;
    line-height: 20px;
}

.tryon-button-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(128, 128, 128, 0.7) !important; /* Grey with transparency */
    color: white;
    opacity: 0.8;
    cursor: default !important; /* Change cursor to default instead of pointer */
    /* Override the colorful gradient with a simple grey gradient */
    background: linear-gradient(to bottom, #888888, #555555) !important;
}

/* Override hover effect for badge */
.tryon-button-badge:hover {
    transform: none !important; /* Prevent scale effect on hover */
    background: linear-gradient(to bottom, #888888, #555555) !important; /* Keep the same grey gradient */
    cursor: default !important;
}

/* Override the inner white circle for badge */
.tryon-button-badge::after {
    background: #dddddd !important; /* Light grey background instead of white */
}

/* Make the image inside the badge slightly transparent */
.tryon-button-badge img {
    opacity: 0.7 !important;
}

.tryon-button-circular {
    position: absolute;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    max-width: 40px !important;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.3s ease;
    background: conic-gradient(
        #000000 0deg 90deg,
        #ef4f3d 90deg 180deg,
        #3cb449 180deg 270deg,
        #365cba 270deg 360deg
    );
}

.tryon-button-circular::after {
    content: '';
    position: absolute;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    background: white;
    border-radius: 50% !important;
    z-index: -1;
}



.tryon-button-circular-text {
  position: relative;
  top: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em;
  transition: all 0.3s ease;
  z-index: 1000;
  background: conic-gradient(
      #000000 0deg 90deg,
      #ef4f3d 90deg 180deg,
      #3cb449 180deg 270deg,
      #365cba 270deg 360deg
  );
}

.tryon-button-circular-text::after {
  content: '';
  position: absolute;
  top: 2px !important;
  left: 2px !important;
  right: 2px !important;
  bottom: 2px !important;
  background: white;
  border-radius: 50% !important;
  z-index: -1;
}

.AB-text-overlay {
  position: absolute;
  bottom: 40%;
  background: none;
  font-size: small;
  font-weight: 700;
  background: white;
  width: 90%;
  justify-self: anchor-center;
  padding: 5px;
  border-radius: 10px;
}

.AB-confirmModal-header{
  display: flex;
  justify-content: space-between;
}

/* 
.tryon-button-circular-text {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    background: conic-gradient(
        #000000 0deg 90deg,
        #ef4f3d 90deg 180deg,
        #3cb449 180deg 270deg,
        #365cba 270deg 360deg
    );
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    padding: 0.3em;
} */

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.AB-rotating-border{
  animation: rotateBorder 2s linear infinite;
}

.tryon-button-circular:hover {
    /* background: white; */
    transform: scale(1.1);
  }

  .tryon-button-circular svg {
    width: 20px;
    height: 20px;
  }

  /* mobile styles */

  @media screen and (max-width: 768px) {
    .tryon-button-circular {
      transform: scale(0.8);
    }
  }



  .AB-modal {
    display: none;
    position: fixed;
    bottom: 0px !important;
    right: 0px !important;
    height: unset !important;
    width: min(20vw, 390px);
    max-height: 100vh;
    background-color: transparent;
    z-index: 1001;
    overflow: hidden;
  }

  .AB-modal-content {
    height: calc(70vh - 70px) !important;
    background: #ffffff !important;
    overflow: auto !important;
    
  }

  #bodyTypeImage {
    max-width: 100% !important;
    max-height: 30vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .AB-uploaded-image-container img {
    max-width: 100% !important;
    max-height: 40vh !important;
    object-fit: contain !important;
  }



  

  /* Add mobile styles */
  @media screen and (max-width: 768px) {
    .AB-modal {
      width: 80% !important;
      right: 0 !important;
      bottom: 0 !important;
      transform: none !important;
      /* margin: 20px; */
    }

    .floating-tryon-button {
      /* bottom: 10px !important; */
      /* left: 10px !important; */
      padding: 10px 20px;
    }
    
    

    .AB-toast-container{
      width: 90% !important;
    }
  }

  .floating-tryon-button {
    all: unset;
    position: fixed;
    /* bottom: 20px; */
    /* left: 20px; */
    /* background: #000 !important; */
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer !important;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    animation: pulsateBackground 5s infinite;
  }

  .floating-tryon-button:hover {
    transform: scale(1.05);
    background: #000 !important;
  }

  .floating-tryon-button svg {
    width: 20px !important;
    height: 20px !important;
  }

  .floating-tryon-button span {
    font-weight: 500 !important;
  }

  @keyframes pulsateBackground {
    0% {
      background: #000000;
    }
    25% {
      background: #ef4f3d;
    }
    50% {
      background: #3cb449;
    }
    75% {
      background: #365cba;
    }
    100% {
      background: #000000;
    }
  }

  .AB-notification-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background-color: red !important;
    color: white !important;
    border-radius: 50% !important;
    padding: 2px 6px !important;
    font-size: 16px !important;;
    display: none; /* Initially hidden */
  }

  .AB-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #000;
    padding: 5px !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    min-height: unset !important;
  }

  .AB-tabs-container {
    display: flex !important;
    gap: 5px !important;
    flex: 0.9 !important;
    align-items: center !important;
  }

  .AB-tab-button {
    background-color: #000 ;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    flex: 1 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    min-height: unset !important;
  }

  .AB-tab-button.active {
    background-color: #333 ;
  }

  .AB-tab-buttonn {
    background-color: transparent !important;
    color: #333 !important;
    border: none !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e5e5 !important;
    margin: 0 4px !important;
    width: max-content !important;
  }

  .AB-tab-buttonn.active {
    background-color: #000 !important;
    color: white !important;
    border-color: #000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }

  .AB-tab-buttonn:hover:not(.active) {
    background-color: #f5f5f5 !important;
    border-color: #ccc !important;
  }

  .AB-tab-content {
    display: none;
    padding: 20px !important;
    background-color: white !important;
  }

  .AB-tab-content.active {
    display: block !important;
  }

  .AB-modal {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }

  .AB-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px !important;
    cursor: pointer;
    padding: 0 4px !important;
    margin: 0 !important;
    min-height: unset !important;
    line-height: 1 !important;
  }

  .AB-close-button:hover {
    opacity: 0.8;
  }

  .AB-upload-section {
    text-align: center !important;
    padding: 0px 10px !important;
    max-width: 400px !important;
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    height: -webkit-fill-available !important;
  }

  
  .AB-uploaded-image-container {
    text-align: center !important;
    position: relative !important;
  }


  #uploadedImage {
    max-height: 300px !important;
    border-radius: 8px !important;
    transition: opacity 0.3s ease !important;
  }

  #uploadedImage:hover {
    opacity: 0.8 !important;
  }

  .AB-delete-uploaded-image-label {
    position: absolute !important;
    right: -2px !important;
    top: 0px !important;
    padding: 0px 5px !important;
    border-radius: 4px !important;
    color: #333 !important;
    cursor: pointer !important;
  }

  .AB-bottom-button {
    width: 100%;
    color: white !important;
    padding: 12px 24px !important;
    margin-top: 0.5em !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease !important;
  }

  .AB-bottom-button:hover {
    background-color: #333;
  }

  .AB-bottom-button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
  }

  #uploadPreviewContainer {
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  #uploadedImage {
    max-width: 100% !important;
    max-height: 30vh !important;
    object-fit: contain !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
  }


  /* .upload-guidelines {
    margin-top: 20px;
  } */

  .AB-upload-guidelines p {
    margin-bottom: 8px !important;
    font-size: smaller !important;
  }

  .content-section {
    padding: 20px !important;
    height: 100vh !important;
    overflow-y: auto !important;
  }

  #uploadSection {
    height: 80% !important;
    align-content: center !important;
    padding-top: 20px !important;
  }

  .image-label {
    position: absolute; /* Position label absolutely */
    bottom: 0.5em; /* Position from the bottom */
    left: 0px !important; /* Position from the left */
    background-color: rgba(255, 255, 255, 0.7) !important; /* Semi-transparent background for readability */
    padding: 11px 5px !important; /* Padding around the label */
    border-radius: 4px !important; /* Rounded corners */
    font-size: 14px !important; /* Font size */
    color: #333 !important; /* Text color */
  }

  .toast {
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    padding: 10px !important;
    margin: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .show-toast {
    opacity: 1;
  }


  .AB-confirmModal {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right:unset !important; 
    bottom:unset !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
  }

  .AB-confirmModal-dialog {
      margin: 15% auto !important;
      width: 80% !important;
      max-width: 500px !important;
  }

  .AB-confirmModal-content {
      background-color: #fff !important;
      border-radius: 5px !important;
      padding: 20px !important;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .AB-confirm-modal-header {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      border-bottom: 1px solid #e5e5e5 !important;
  }

  .AB-confirmModal-title {
      margin: 0 !important;
      font-size: 18px !important;
  }

  .AB-close {
      background: none !important;
      border: none !important;
      font-size: 24px !important;
      cursor: pointer !important;
  }

  .AB-confirmModal-body {
      padding: 10px 0 !important;
  }

  .AB-confirmModal-footer {
      display: flex !important;
      justify-content: flex-end !important;
      border-top: 1px solid #e5e5e5 !important;
      padding-top: 10px !important;
  }

  .btn {
      padding: 8px 16px !important;
      border: none !important;
      border-radius: 4px !important;
      cursor: pointer !important;
      margin-left: 10px !important;
  }

  .btn-secondary {
      background-color: #6c757d ;
      color: white ;
  }

  .btn-dark {
      background-color: #343a40 ;
      color: white ;
  }


  .AB-share_button:hover {
    transform: scale(1.1);
  }

  .AB-share_button {
    flex: 1;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px !important;
    margin: 0px !important;
    border-radius: 8px;
    font-size: 14px;
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    background: transparent;
    transition: transform 0.2s ease;
  }

  .AB-share_button svg {
    margin-bottom: 2px;
  }

  .AB-share_button span {
    font-size: 12px;
    font-weight: 500;
  }

  /* Mobile styles */
  @media screen and (max-width: 768px) {

    .AB-share_button svg {
        width: 24px;
        height: 24px;
    }

    .AB-share_button span {
        font-size: 12px;
    }
  }

  /* Make the Add to cart button slightly wider */
  #addToCartButton {
    flex: 1.2;
  }

  #viewProductButton {
    flex: 0.8;
  }

  .AB-bottom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }

  .AB-bottom-button svg {
    flex-shrink: 0;
  }

  /* Default state - hide text */
  .AB-button-text {
    display: block;
  }

  

  .AB-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-left: 0.25em;
  }

  .AB-button-content svg {
    flex-shrink: 0;
    fill: white;
    
  }

  .AB-button-content span {
    flex-shrink: 0;
    width: fit-content;
  }

  .AB-bottom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }

  @media screen and (max-width: 768px) {
    .AB-button-content {
      justify-content: center;
      text-align: center;
      margin-left: 1em;
    }
    
    .AB-button-content svg {
      margin-right: 4px;
    }
  }

  .AB-running-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px!important;;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: countBounce 0.5s ease-out;
    transform-origin: center;
  }

  @keyframes countBounce {
    0% {
      transform: scale(0) rotate(-180deg);
    }
    60% {
      transform: scale(1.2) rotate(10deg);
    }
    100% {
      transform: scale(1) rotate(0);
    }
  }

  .AB-running-count-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .AB-running-count-icon svg {
    width: 12px;
    height: 12px;
    animation: rotateHanger 2s infinite linear;
  }

  @keyframes rotateHanger {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes rotateHanger {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Style the content areas */
  #my-avatar-tab, 
  #sample-avatars-tab {
    background-color: #fff;
    border-radius: 12px;
    padding-bottom: 16px;
    transition: all 0.3s ease;
  }

  /* Style the sample avatars grid */
  #sample-avatars-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    place-self: center;
  }

  #sample-avatars-content img {
    width: 100%;
    max-width: 100px;
    pointer-events: unset !important;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
  }

  #sample-avatars-content img:hover {
    transform: scale(1.05);
    border-color: #000;
    pointer-events: unset !important;
  }

  /* Update upload placeholder */
  .AB-upload-placeholder {
    border: 2px dashed #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    transition: all 0.3s ease;
  }

  .AB-upload-placeholder:hover {
    border-color: #000 !important;
    background-color: #f9f9f9;
  }

  /* Style the upload icon */
  .AB-upload-icon {
    margin-bottom: 16px;
  }

  .AB-upload-icon svg {
    width: 48px;
    height: 48px;
    fill: #666;
    transition: fill 0.3s ease;
  }

  .AB-upload-placeholder:hover .AB-upload-icon svg {
    fill: #000;
  }

  /* Style the guidelines text */
  .AB-upload-placeholder ul {
    margin: 16px 0 0;
    padding: 0 16px;
  }

  .AB-upload-placeholder li {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
  }

  .AB-upload-placeholder li span {
    color: #00a67e;
    margin-right: 8px;
    font-weight: bold;
  }

  /* Responsive adjustments */
  @media screen and (max-width: 768px) {
    .AB-tab-buttonn {
      padding: 10px 16px;
      font-size: 10px;
    }
    
    #sample-avatars {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      padding: 12px;
    }
    
    .AB-upload-placeholder {
      padding: 16px !important;
    }
  }

  /* Update guidelines modal header and close button styles */
  

  /* Video Modal Styles */
  .AB-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }

  .AB-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px; /* Reduced from 800px for vertical video */
    height: 90vh; /* Set a maximum height */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
  }

  .video-AB-modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2001;
  }

  .AB-video-container {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio for vertical video */
    height: 0;
    overflow: hidden;
  }

  .AB-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Style the video link */
  .AB-video-link {
    display: inline-flex !important;
    color: #ff0000 !important;
    text-decoration: none;
    padding: 2px 6px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 !important;
    font-weight: 900;
    font-size: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: unset !important;
    line-height: 1 !important;
  }

  .AB-video-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  /* .AB-video-link:before {
    content: '▶';
    margin-right: 5px;
    color: #ff0000;
  } */

  /* Responsive adjustments */
  @media screen and (max-width: 768px) {
    .AB-video-modal-content {
      width: 95%;
      max-width: 350px; /* Even narrower on mobile */
      margin: 10px;
      height: auto;
    }
    
    .AB-video-container {
      padding-bottom: 177.78%; /* Maintain 9:16 ratio */
    }
  }

  /* Update these styles for product items */
  #available-products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* padding: 10px; */
    /* margin-top: 10px; */
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  

  
  

  

  /* Update responsive styles to maintain 2 columns */
  @media screen and (max-width: 768px) {
    #available-products-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      padding: 8px;
      max-width: 280px;
    }
    
    
  }

  .AB-history-item-controls {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    z-index: 2;
  }

  .AB-like-btn,
  .AB-dislike-btn,
  .AB-expand-history-btn,
  .AB-delete-history-btn {
    /* background: rgba(255, 255, 255, 0.915); */
    /* background: transparent; */
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px !important;
    min-height: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 2;
  }

  .AB-like-btn:hover,
  .AB-dislike-btn:hover,
  .AB-expand-history-btn:hover,
  .AB-delete-history-btn:hover {
    /* background: rgba(255, 255, 255, 0.2); */
    transform: scale(1.1);
  }

  .AB-like-btn img,
  .AB-dislike-btn img,
  .AB-expand-history-btn img,
  .AB-delete-history-btn img {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    filter: brightness(2);
    place-self: center !important;
  }


  .AB-like-btn.active {
    background: rgba(76, 175, 80, 0.8);
    transform: scale(1.1);
  }

  .AB-dislike-btn.active {
    background: rgba(244, 67, 54, 0.8);
    transform: scale(1.1);
  }

  .AB-like-btn.active:hover {
    background: rgba(76, 175, 80, 1);
  }

  .AB-dislike-btn.active:hover {
    background: rgba(244, 67, 54, 1);
  }

  .AB-like-btn img.filled,
  .AB-dislike-btn img.filled {
    filter: brightness(2) saturate(1.5);
    transform: scale(1.1);
  }

  .AB-history-item-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 0px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 10000;
  }

  .AB-history-item-actions-top {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    z-index: 2;
  }

  .AB-expanded-image-content {
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
  }

  .AB-expanded-image-container {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 10000 !important;
  }

  #expandedImage {
    
    object-fit: contain !important;
    margin: auto !important;
    z-index: 10000 !important;
    width: auto !important;
    height: 100vh !important;
    object-fit: contain !important;
  }

  #expandedImageModal .AB-history-item-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10000 !important;
  }

  #expandedImageModal .AB-delete-history-btn {
    position: absolute;
    top: 20px;
    right: 50px;
  }

  #expandedImageModal .AB-history-item-actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    /* background: rgba(0, 0, 0, 0.8) !important; */
  }

  /* Mobile styles */
  @media screen and (max-width: 768px) {
    .AB-expanded-image-content {
      padding: 0 !important;
    }

    .AB-expanded-image-container {
      padding: 0 !important;
    }

    

    #expandedImageModal .AB-history-item-controls {
      top: 10px;
      left: 10px;
    }

    #expandedImageModal .AB-history-item-actions-top {
      top: 10px;
      right: 10px;
    }

    #expandedImageModal .AB-history-item-actions {
      bottom: 50px;
      padding: 10px !important;
    }

   
  }

  /* Circular Loading Bar */
  .circular-progress {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#000 0deg, #fff 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .circular-progress::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
  }

  .circular-progress .progress-text {
    position: relative;
    font-size: 12px;
    font-weight: bold;
    color: #000;
  }

  @keyframes progress {
    0% {
      background: conic-gradient(#000 0deg, #fff 0deg);
    }
    100% {
      background: conic-gradient(#000 360deg, #fff 360deg);
    }
  }

  .disclaimer-container {
    width: 100%;
    background: rgba(0,0,0,0.6);
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    margin: 0;
    height: 15px; /* slightly taller for visibility */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
  }

  .disclaimer-scroll {
    display: inline-block;
    min-width: 200%; /* Make it much wider than the container */
    white-space: nowrap;
    color: white;
    font-size: 9px !important;
    animation: scrollText 15s linear infinite; /* Increase duration for longer text */
    will-change: transform;
  }

  .disclaimer-scroll-expanded {
    display: inline-block;
    min-width: 100%; /* Make it much wider than the container */
    white-space: nowrap;
    color: white;
    font-size: 9px !important;
    will-change: transform;
  }

  @keyframes scrollText {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-150%); }
  }

  /* max-width */
  @media screen and (max-width: 768px) {
    @keyframes scrollText {
      0% { transform: translateX(50%); }
      100% { transform: translateX(-100%); }
    }
    .disclaimer-scroll-expanded {
      min-width: 200%; /* Make it much wider than the container */
      animation: scrollText 15s linear infinite; /* Increase duration for longer text */
    }
  }
  