/* Mahindra eCatalog global loader.
   Overlay only — do not reset html/body (the sample page did, and that would restyle the site). */
#globalLoader.ec-loader,
.ec-loader {
  position: fixed;
  z-index: 20000;
  inset: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(247 246 243 / 82%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ec-ink, #17282e);
  opacity: 1;
  transition: opacity .2s ease;
}

.ec-loader[hidden] {
  display: none !important;
}

.ec-loader.is-leaving {
  opacity: 0;
}

.ec-loader__card {
  position: relative;
  width: min(100%, 390px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 30px 23px;
  overflow: hidden;
  border: 1px solid #e8e5e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(23 40 46 / 17%), 0 4px 14px rgb(23 40 46 / 7%);
  animation: ec-card-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

.ec-loader__card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ec-red, #d71920), #ed4b41 52%, var(--ec-teal, #111111));
}

.ec-loader__brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0efed;
}

.ec-loader__brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ec-red, #d71920);
  background: #fff0ef;
}

.ec-loader__brand-mark svg { width: 29px; height: 29px; }

.ec-loader__brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.ec-loader__brand span {
  display: block;
  margin-top: 3px;
  color: var(--ec-muted, #718087);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.ec-loader__visual {
  position: relative;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  margin: 24px 0 11px;
}

.ec-loader__gear {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 7px 8px rgb(23 40 46 / 18%));
}

.ec-loader__gear-spin {
  transform-origin: 50px 50px;
  animation: ec-spin 8s linear infinite;
}

.ec-loader__orbit { position: absolute; inset: 4px; border-radius: 50%; }

.ec-loader__orbit--outer {
  border: 2px dashed rgb(215 25 32 / 40%);
  animation: ec-reverse 12s linear infinite;
}

.ec-loader__orbit--outer i {
  position: absolute;
  top: 10px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ec-red, #d71920);
  box-shadow: 0 0 0 5px rgb(215 25 32 / 10%), 0 0 13px rgb(215 25 32 / 50%);
}

.ec-loader__orbit--inner {
  inset: 15px;
  border: 2px solid #e8eeee;
  border-top-color: var(--ec-teal, #111111);
  border-right-color: rgb(17 17 17 / 28%);
  animation: ec-spin 2.4s cubic-bezier(.5, .1, .5, .9) infinite;
}

.ec-loader__orbit--inner i {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec-teal, #111111);
}

.ec-loader__orbit-dot {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ec-teal, #111111);
  box-shadow: 0 0 0 4px rgb(17 17 17 / 12%);
  transform: translateX(-50%);
  animation: ec-orbit 2.4s linear infinite;
}

.ec-loader__title {
  margin: 8px 0 5px;
  color: var(--ec-ink, #17282e);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-align: center;
}

.ec-loader__ellipsis {
  display: inline-block;
  width: 17px;
  color: var(--ec-red, #d71920);
  animation: ec-dots 1.2s steps(4, end) infinite;
}

.ec-loader__subtitle {
  margin: 0;
  color: var(--ec-muted, #718087);
  font-size: 12px;
  text-align: center;
}

.ec-loader__progress {
  width: 100%;
  height: 5px;
  margin: 20px 0 13px;
  overflow: hidden;
  border-radius: 9px;
  background: #f0efed;
}

.ec-loader__progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ec-red, #d71920), #f15a4f 65%, var(--ec-teal, #111111));
  animation: ec-progress 1.65s ease-in-out infinite;
}

.ec-loader__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #68777d;
  font-size: 10px;
}

.ec-loader__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec-teal, #111111);
  box-shadow: 0 0 0 3px rgb(17 17 17 / 12%);
  animation: ec-pulse 1.6s ease-out infinite;
}

@keyframes ec-spin { to { transform: rotate(360deg); } }
@keyframes ec-reverse { to { transform: rotate(-360deg); } }
@keyframes ec-orbit { to { transform: translateX(-50%) rotate(360deg) translateY(0); } }
@keyframes ec-progress {
  0% { transform: translateX(-115%); }
  60% { transform: translateX(130%); }
  100% { transform: translateX(245%); }
}
@keyframes ec-pulse {
  0%, 100% { opacity: .55; box-shadow: 0 0 0 3px rgb(17 17 17 / 10%); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgb(17 17 17 / 16%); }
}
@keyframes ec-dots {
  0% { opacity: .25; }
  50% { opacity: 1; }
  100% { opacity: .25; }
}
@keyframes ec-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 420px) {
  .ec-loader__card { padding: 24px 20px 20px; }
  .ec-loader__title { font-size: 17px; }
}

#globalLoader .ec-loader__gear {
  width: 90px;
  height: 90px;
  max-width: none;
  overflow: visible;
}

#globalLoader .ec-loader__gear-spin {
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: ec-spin 8s linear infinite;
}

#globalLoader .ec-loader__orbit--outer {
  animation: ec-reverse 12s linear infinite;
}

#globalLoader .ec-loader__orbit--inner {
  animation: ec-spin 2.4s linear infinite;
}

#globalLoader .ec-loader__orbit-dot {
  animation: ec-orbit 2.4s linear infinite;
}

#globalLoader .ec-loader__progress span {
  animation: ec-progress 1.65s ease-in-out infinite;
}

#globalLoader .ec-loader__live-dot {
  animation: ec-pulse 1.6s ease-out infinite;
}

#globalLoader .ec-loader__ellipsis {
  animation: ec-dots 1.2s steps(4, end) infinite;
}
