.extras-section {
  padding: 10px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(45deg, #ecf6ff, #e3f3ff);
  box-shadow: inset 0 0 3px #00000010;
  border: 1px solid rgba(225,242,255,0.18);
}

/* ряд маленьких кружков выровнен по центру */
.extras-rail {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 6px;
}

/* круги чуть компактнее */
.extra-chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: visible; /* тултип не обрезается */
  position: relative;
  cursor: pointer;
}

.extra-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* тултип — оставляем красивую анимацию (немного подрезанное время) */
.extra-flyout {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.96);
  background: rgba(255,255,255,0.96);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 999;
  min-width: 110px;
  transition: opacity 0.18s ease, transform 0.42s cubic-bezier(.16,1.15,.3,1), box-shadow .3s ease;
}

.extra-chip:hover .extra-flyout,
.extra-chip.extra-open .extra-flyout {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 0 10px rgba(173,216,255,0.6);
}

/* тултип: имя + цена */
.extra-flyout-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.extra-flyout-price { font-size: .85rem; color: #32758f; font-weight: 500; }

@media (orientation: portrait) {
  .extras-section {
    padding: 16px 0;
    border-radius: 50px;
    background: linear-gradient(45deg, #ecf6ff, #e3f3ff);
    box-shadow: inset 0 0 3px #00000010;
    border: 1px solid rgba(225,242,255,0.18);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
  }
  .extras-section::-webkit-scrollbar {
    display: none;
  }

  .extras-rail {
    display: inline-flex;
    gap: 16px;
    padding: 0 12px;
  }

  .extra-chip {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    border-radius: 40px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .extra-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
  }

  /* стеклянная пилюля внутри карточки */
  .extra-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    padding: 6px 10px;
    border-radius: 30px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.25s ease;
    z-index: 2;
  }

  .extra-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    text-align: center;
  }

  .extra-price {
    font-size: 0.85rem;
    color: #32758f;
    font-weight: 500;
    margin-top: 2px;
  }

  /* тултипы внутри карточки */
  .extra-flyout {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.96);
    background: rgba(208, 248, 255, 0.716);
    -webkit-backdrop-filter: blur(5px) saturate(1.2);
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    color: var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    opacity: 1;
    min-width: 100px;
  }
  .extra-chip:hover .extra-flyout,
  .extra-chip.extra-open .extra-flyout {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
}
