/* Плашка статистики корпуса у пина */

.korpus-tip {
  position: fixed;
  z-index: 120;
  box-sizing: border-box;
  width: calc(var(--korpus-tip-width-base, 340px) * var(--ui-scale, 0.7));
  min-width: calc(var(--korpus-tip-min-width-base, 260px) * var(--ui-scale, 0.7));
  max-width: calc(100vw - 16px);
  padding: calc(var(--korpus-tip-pad-y-base, 16px) * var(--ui-scale, 0.7))
    calc(var(--korpus-tip-pad-x-base, 18px) * var(--ui-scale, 0.7));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: calc(var(--korpus-tip-radius-base, 16px) * var(--ui-scale, 0.7));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-family: Manrope, sans-serif;
  color: #1a1a1a;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.korpus-tip.is-visible {
  opacity: 1;
  visibility: visible;
}

.korpus-tip__stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(10px * var(--ui-scale, 0.7));
  padding-bottom: calc(12px * var(--ui-scale, 0.7));
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: calc(10px * var(--ui-scale, 0.7));
}

.korpus-tip__stat {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}

.korpus-tip__stat-value {
  font-size: calc(var(--korpus-tip-stat-value-base, 22px) * var(--ui-scale, 0.7));
  font-weight: 700;
  line-height: 1.15;
  color: #8b4a3c;
  letter-spacing: -0.02em;
}

.korpus-tip__stat-label {
  margin-top: calc(4px * var(--ui-scale, 0.7));
  font-size: calc(var(--korpus-tip-stat-label-base, 12px) * var(--ui-scale, 0.7));
  line-height: 1.25;
  color: #8a8a8a;
}

.korpus-tip__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.korpus-tip__row {
  display: flex;
  align-items: baseline;
  gap: calc(8px * var(--ui-scale, 0.7));
  padding: calc(4px * var(--ui-scale, 0.7)) 0;
  font-size: calc(var(--korpus-tip-row-base, 13px) * var(--ui-scale, 0.7));
  line-height: 1.35;
  color: #666;
}

.korpus-tip__label {
  flex: 0 1 auto;
  white-space: nowrap;
}

.korpus-tip__dots {
  flex: 1 1 auto;
  min-width: 12px;
  height: 1em;
  border-bottom: 1px dotted #bdbdbd;
  transform: translateY(-4px);
}

.korpus-tip__price {
  flex: 0 0 auto;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.korpus-tip__empty {
  margin: 0;
  font-size: calc(var(--korpus-tip-row-base, 13px) * var(--ui-scale, 0.7));
  color: #777;
}

.korpus-tip__go {
  display: block;
  width: 100%;
  margin-top: calc(14px * var(--ui-scale, 0.7));
  padding: calc(10px * var(--ui-scale, 0.7)) calc(12px * var(--ui-scale, 0.7));
  border: 2px solid #8a4f4a;
  border-radius: calc(10px * var(--ui-scale, 0.7));
  background: transparent;
  color: #8a4f4a;
  font-family: Manrope, sans-serif;
  font-size: calc(var(--korpus-tip-btn-base, 14px) * var(--ui-scale, 0.7));
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.korpus-tip__go:hover {
  background: rgba(138, 79, 74, 0.08);
}
