/* Name and badges stay on one line. The name ellipsizes; the badges do not wrap or shrink. */
.gm-badge-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.gm-name-truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
}

.gm-badge-pair {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 4px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  font: inherit;
  color: inherit;
}

.gm-badge-pair::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
}

/* Fills are the locked SVG paints: Plus pear #D7E6D4, Premium basket #1C1917, ID seal #1F7A4D, Founding ticket on cream #F7F1E6. */
.gm-badge-pill {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  line-height: 0;
}

.gm-badge-pill-plus { background: var(--aisle-sage, #D7E6D4); }
.gm-badge-pill-premium { background: var(--aisle-ink, #1C1917); }
.gm-badge-pill-id { background: var(--aisle-produce, #1F7A4D); }
.gm-badge-pill-founding { background: var(--aisle-cream, #F7F1E6); }

.gm-badge {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: var(--gm-badge-size, 20px);
  height: var(--gm-badge-size, 20px);
  display: block;
  pointer-events: none;
  background: none;
  box-shadow: none;
}

.gm-badge-pair:focus-visible,
.gm-badge-sheet-close:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: 2px;
}

.gm-badge-line-card { --gm-badge-size: 20px; width: 100%; }
.gm-badge-line-profile { --gm-badge-size: 22px; width: 100%; }
.gm-badge-line-matches { --gm-badge-size: 18px; flex: 1 1 auto; width: 100%; max-width: 100%; overflow: visible; }
.gm-badge-line-matches .gm-name-truncate {
  flex: 1 1 auto;
  width: 96px;
  min-width: 96px;
  max-width: 100%;
}
.gm-badge-line-likes { --gm-badge-size: 18px; width: 100%; }
.gm-badge-line-map { --gm-badge-size: 18px; flex: 1 1 auto; width: auto; }

.discover-profile-hero .aisle-card-overlay .gm-badge-pair,
.discover-profile-hero .aisle-card-overlay .gm-badge-line {
  pointer-events: auto;
}

.match.name > .gm-badge-line {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.aisle-match-top .match.name > .gm-badge-line {
  min-width: min-content;
  width: auto;
  max-width: 100%;
  overflow: visible;
}

.liked-you-name .gm-badge-line {
  width: 100%;
  min-width: 0;
}

.map-screen .gm-member-row .gm-badge-line {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.gm-badge-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.46);
  z-index: 500;
}

.gm-badge-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  box-sizing: border-box;
  background: #F7F1E6;
  color: #1C1917;
  border-radius: 22px 22px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 501;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.gm-badge-sheet-line {
  margin: 0 0 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #1C1917;
}

.gm-badge-sheet-line:last-child {
  margin-bottom: 16px;
}

.gm-badge-sheet-close {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1C1917;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
