#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--elementrue-preload-bg, #ffffff);
  /* Ganti jika ingin warna lain */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 5rem;
  aspect-ratio: 1 / 1;
}


/* Untuk SVG (mask) */
.loader.is-svg {
  background-color: var(--elementrue-preload-color, #73f6fc);
  mask-mode: alpha;
  -webkit-mask-mode: alpha;
  mask-image: var(--svg-url);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;

  -webkit-mask-image: var(--svg-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

/* Untuk PNG/JPG/WEBP */
.loader.is-image {
  background-image: var(--img-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tirai Overlay */
.rtmc__ad_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  display: flex;
  flex-direction: row;
}

.rtmc__loading_bar {
  flex: 1;
  background-color: var(--elementrue-preload-bg, #ffffff);
  /* warna tirai putih */
  transition: height 0.2s ease-in-out;
  height: 100%;
  /* awal: tertutup */
}