/* Mahrokh Thermometer - floating free-shipping widget. */
.mb-thermo {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 118px;
  z-index: 99990;
  text-align: center;
  font-family: Tahoma, Arial, sans-serif;
  transition: right 0.85s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  transform-origin: center center;
  will-change: right, bottom, transform;
  direction: rtl;
}
.mb-thermo-inner {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 6px 4px 8px;
  backdrop-filter: blur(4px);
}
.mb-thermo-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.mb-thermo-centered {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%) scale(1.85) rotateY(10deg) rotateZ(-2deg);
}
.mb-thermo-landing {
  animation: mb-squash 0.45s ease-out;
}
@keyframes mb-squash {
  0% { transform: scale(1.15, 0.85); }
  40% { transform: scale(0.9, 1.12); }
  70% { transform: scale(1.06, 0.94); }
  100% { transform: scale(1, 1); }
}
.mb-thermo-shaking {
  animation: mb-shake 0.12s linear infinite;
}
@keyframes mb-shake {
  0% { transform: translate(50%, 50%) scale(1.85) rotate(-1.5deg); }
  25% { transform: translate(50%, 49%) scale(1.85) rotate(1.5deg); }
  50% { transform: translate(50%, 51%) scale(1.85) rotate(-1deg); }
  75% { transform: translate(50%, 49%) scale(1.85) rotate(1deg); }
  100% { transform: translate(50%, 50%) scale(1.85) rotate(-1.5deg); }
}
.mb-thermo-label {
  font-size: 15px;
  font-weight: bold;
  color: #b71c1c;
  margin-top: 2px;
}
.mb-thermo-remain {
  font-size: 11px;
  line-height: 1.5;
  color: #444444;
  min-height: 32px;
}
.mb-thermo-hamadan .mb-thermo-label {
  color: #2e7d32;
}
.mb-thermo-hamadan .mb-flames,
.mb-thermo-hamadan #mbHeatGlow {
  display: none;
}
.mb-flame {
  transform-origin: 100px 330px;
  animation: mb-flicker 0.9s ease-in-out infinite alternate;
}
.mb-flame-2 { animation-duration: 0.7s; animation-delay: 0.12s; }
.mb-flame-3 { animation-duration: 0.55s; animation-delay: 0.2s; }
@keyframes mb-flicker {
  from { transform: scaleY(0.92) scaleX(0.98) rotate(-1deg); opacity: 0.9; }
  to { transform: scaleY(1.08) scaleX(1.03) rotate(1.5deg); opacity: 1; }
}
.mb-steam-dot {
  animation: mb-steam-rise 1.6s ease-out infinite;
}
.mb-steam-dot:nth-child(2) { animation-delay: 0.5s; }
.mb-steam-dot:nth-child(3) { animation-delay: 1s; }
@keyframes mb-steam-rise {
  from { transform: translateY(0); opacity: 0.7; }
  to { transform: translateY(-18px); opacity: 0; }
}
#mbCap {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  transform-origin: 100px 12px;
}
.mb-cap-pop {
  transform: translateY(-70px) rotate(55deg) !important;
  opacity: 0;
}
.mb-cracks {
  transition: opacity 0.25s ease;
}
.mb-thermo-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
}
.mb-thermo-banner[hidden] {
  display: none;
}
.mb-thermo-banner-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 26px;
  margin: 16px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: mb-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mb-pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.mb-thermo-banner-title {
  font-size: 20px;
  font-weight: bold;
  color: #b71c1c;
  line-height: 1.7;
}
.mb-thermo-banner-note {
  font-size: 13px;
  color: #555555;
  margin-top: 10px;
  line-height: 1.7;
}
.mb-thermo-close {
  margin-top: 16px;
  background: #b71c1c;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 15px;
  font-family: Tahoma, Arial, sans-serif;
  cursor: pointer;
}
.mb-thermo-confetti {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  overflow: hidden;
}
.mb-confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: mb-confetti-fall linear forwards;
}
@keyframes mb-confetti-fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}
.mb-shard {
  position: fixed;
  z-index: 99997;
  pointer-events: none;
  border-radius: 2px;
  background: #cfd8dc;
}
@media (max-width: 600px) {
  .mb-thermo { width: 96px; right: 10px; bottom: 10px; }
  .mb-thermo-centered { transform: translate(50%, 50%) scale(1.45) rotateY(8deg) rotateZ(-2deg); }
  .mb-thermo-remain { font-size: 10px; min-height: 30px; }
  @keyframes mb-shake {
    0% { transform: translate(50%, 50%) scale(1.45) rotate(-1.5deg); }
    25% { transform: translate(50%, 49%) scale(1.45) rotate(1.5deg); }
    50% { transform: translate(50%, 51%) scale(1.45) rotate(-1deg); }
    75% { transform: translate(50%, 49%) scale(1.45) rotate(1deg); }
    100% { transform: translate(50%, 50%) scale(1.45) rotate(-1.5deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mb-thermo, .mb-flame, .mb-steam-dot, .mb-thermo-banner-box {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
