/* One label component for the public image, lightbox and project editor. */
.project-floorplan-label-layer,
.stroymaks-floorplan-labels {
  container-type: inline-size;
}

.project-floorplan-label {
  --floorplan-label-scale: 1;
  position: absolute;
  top: var(--room-y);
  left: var(--room-x);
  display: grid;
  box-sizing: border-box;
  min-width: 54px;
  max-width: min(128px, 28%);
  gap: 1px;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid var(--floorplan-label-border, rgba(255, 255, 255, 0.82));
  border-radius: var(--floorplan-label-radius, 9px);
  background: var(--floorplan-label-bg, rgba(255, 255, 255, 0.76));
  color: var(--floorplan-label-color, #172033);
  box-shadow: var(--floorplan-label-shadow, 0 5px 18px rgba(15, 23, 42, 0.16));
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(9px, 1.4cqw, 12px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.12;
  text-align: center;
  transform: translate(-50%, -50%) scale(var(--floorplan-label-scale));
  transform-origin: center;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(var(--floorplan-label-blur, 8px));
  backdrop-filter: blur(var(--floorplan-label-blur, 8px));
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.project-floorplan-label strong,
.project-floorplan-label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-floorplan-label strong {
  font: inherit;
  font-weight: 850;
}

.project-floorplan-label small {
  font-size: 0.9em;
  font-weight: 750;
}
