/* DiraMarket 2.19.3 — seller inbox and subscription-card polish. */

.dm-plan-card-head {
  min-height: 76px;
  padding-right: 68px;
}

.dm-plan-card-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-plan-icon {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 1;
}

.dm-plan-icon .dm-material {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  font-size: 28px;
  line-height: 28px;
  text-align: center;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 28;
}

.dm-plan-card.is-popular .dm-plan-card-head {
  padding-top: 42px;
}

.dm-plan-card.is-popular .dm-plan-icon {
  top: 42px;
}

.dm-popular-label {
  z-index: 4;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dm-plan-price strong[data-dm-plan-counter] {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  transform-origin: left center;
  will-change: transform, opacity;
}

.dm-plan-price strong[data-dm-plan-counter].is-counting {
  animation: dmPlanNumberPulse .58s cubic-bezier(.2,.8,.2,1);
}

@keyframes dmPlanNumberPulse {
  0% { opacity: .45; transform: translateY(6px) scale(.96); }
  60% { opacity: 1; transform: translateY(0) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 380px) {
  .dm-plan-card { padding: 20px; }
  .dm-plan-card-head { padding-right: 60px; }
  .dm-plan-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 15px; }
  .dm-plan-icon .dm-material { width: 26px; height: 26px; font-size: 26px; line-height: 26px; }
  .dm-plan-card.is-popular .dm-plan-card-head { padding-top: 40px; }
  .dm-plan-card.is-popular .dm-plan-icon { top: 40px; }
  .dm-popular-label { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-plan-price strong[data-dm-plan-counter].is-counting { animation: none; }
}
