/* Shared visual override for the empty element created by msOptionsPrice AJAX. */
body > .msoptionsprice-spinner {
  position: fixed;
  z-index: 1100;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1px);
  animation: bd-msop-overlay-in 0.18s ease-out both;
}

body > .msoptionsprice-spinner::before {
  content: "";
  width: 72px;
  height: 72px;
  border: 1px solid #d9e0e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(55, 93, 142, 0.14);
}

body > .msoptionsprice-spinner::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  background: #375d8e;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 9c-4-4-12-5-15 1-4 8 2 13 4 22 1 5 2 8 5 8 3 0 3-10 6-10s3 10 6 10c3 0 4-3 5-8 2-9 8-14 4-22-3-6-11-5-15-1Z' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 9c-4-4-12-5-15 1-4 8 2 13 4 22 1 5 2 8 5 8 3 0 3-10 6-10s3 10 6 10c3 0 4-3 5-8 2-9 8-14 4-22-3-6-11-5-15-1Z' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body > .msoptionsprice-spinner.bd-msop-loader--enhanced::after {
  content: none;
}

.bd-msop-loader__tooth {
  position: absolute;
  width: 42px;
  height: 42px;
  overflow: visible;
}

.bd-msop-loader__path {
  fill: none;
  stroke: #375d8e;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bd-msop-tooth-stroke 1.35s ease-in-out infinite;
}

@keyframes bd-msop-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bd-msop-tooth-stroke {
  0% { stroke-dashoffset: 1; opacity: 0.35; }
  62%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body > .msoptionsprice-spinner { animation: none; }

  .bd-msop-loader__path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
