/* Global font family and size */
body {
  font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15x;
  line-height: 1.5;
}

/* Reset font size for html to ensure rem units work correctly */
html {
  font-size: 16px; /* Base size for rem calculations */
}

/* Add add */
.aio-add-ad-overlay {
  display: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 17;
}

.aio-open-add-ad {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.aio-add-ad-popup {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  z-index: 17;
  display: none;
}

.add-ad-popup {
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  /* max-width: 1200px; */
  margin: 0.5rem auto;
  padding: 1rem 0.5rem;
  font-size: 14px;
  font-weight: 400;
  -webkit-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
  -webkit-transition-timing-function: ease-in-out;
  transition-timing-function: ease-in-out;
  background-color: #fff;
  -webkit-box-shadow: none;
  box-shadow: none;
  overflow: auto;
  border-radius: 1rem;
  z-index: 18;
  position: relative;
}

.add-ad-popup::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  padding: 5px;
}

.add-ad-popup::-webkit-scrollbar-track {
  width: 8px;
  background-color: #eee;
  -webkit-box-shadow: inset 0 0 0px #000;
}

.add-ad-popup::-webkit-scrollbar-thumb {
  background-color: #3d4750;
  border-radius: 20px;
}

.add-ad-popup:hover button.aio-add-ad-close {
  height: 25px;
}

.add-ad-popup .sub-title {
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.add-ad-popup .sub-title h4 {
  font-size: 20px;
  font-weight: 700;
  color: #3d4750;
  text-transform: capitalize;
}

.add-ad-popup button.aio-add-ad-close {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 16px;
  height: 20px;
  position: absolute;
  top: -5px;
  right: 27px;
  border: 0;
  background-color: rgba(224, 78, 78, 0.7);
  border-radius: 10px;
  cursor: pointer;
}

.add-ad-popup button.aio-add-ad-close:hover {
  background-color: rgb(224, 78, 78);
}

.add-ad-popup button.aio-add-ad-close:after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  bottom: 3px;
  left: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.add-ad-popup .aio-add-ad-tags {
  margin-bottom: 24px;
}

.add-ad-popup .aio-add-ad-cart {
  padding: 0.5rem;
  overflow: hidden;
  background-color: #f8f8fb;
  border: 1px solid #eee;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.add-ad-popup .aio-add-ad-cart .pro-img {
  margin-right: 12px;
}

.add-ad-popup .aio-add-ad-cart .pro-img img {
  width: 80px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.add-ad-popup .aio-add-ad-cart .side-contact {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.add-ad-popup .aio-add-ad-cart .side-contact h4 {
  font-size: 0.5rem;
}

.add-ad-popup .aio-add-ad-cart .side-contact h4 a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 0.5rem;
  font-weight: 500;
  color: #3d4750;
}

.add-ad-popup .aio-add-ad-cart .side-contact .inner-price {
  margin: 0 -3px;
}

.add-ad-popup .aio-add-ad-cart .side-contact .inner-price .new-price {
  padding: 0 3px;
  font-size: 0.5rem;
  color: #686e7d;
  font-weight: 600;
}

.add-ad-popup .aio-add-ad-cart .side-contact .inner-price .old-price {
  padding: 0 3px;
  font-size: 14px;
  color: #686e7d;
  text-decoration: line-through;
}

/* CSS */
/* CSS */
.image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.image-preview img.preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* se umple tot containerul */
  height: 100%;
  object-fit: cover;
  /* păstrează raportul și umple containerul */
  opacity: 0.5;
  transition: opacity 1s ease;
  z-index: 1;
}

.image-preview .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  /* deasupra imaginii */
}

.image-preview .loader img {
  width: 32px;
  height: auto;
  opacity: 0.8;
}

.progress-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
  /* deasupra loader-ului */
}

.progress-wrapper .progress {
  height: 4px;
  margin: 0;
}


.image-preview .delete-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  font-size: 20px;
  color: #e74c3c;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.image-preview:hover .delete-icon {
  background: rgba(255, 255, 255, 1);
}