.extras-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  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);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.extras-section::-webkit-scrollbar {
  display: none;
}

.extras-rail {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 6px;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

.extra-chip {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;
}

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

.extra-flyout {
  position: fixed;
  top: var(--extra-flyout-top, 0px);
  left: var(--extra-flyout-left, 0px);
  transform: translate(-50%, -100%) 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: translate(-50%, -100%) 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 (max-width: 1366px), (max-height: 860px) {
  .extras-section {
    border-radius: 40px;
    padding: 8px 10px;
  }

  .extras-rail {
    gap: 10px;
  }

  .extra-chip {
    width: 56px;
    height: 56px;
  }

  .extra-flyout {
    max-width: min(200px, calc(100vw - 48px));
    white-space: normal;
  }
}

@media (orientation: portrait) {
  :root {
    --extras-buffer: clamp(18px, 4vw, 36px);
    --extra-chip-size: 110px;
    --extra-chip-gap: 14px;
    --extra-chip-vertical-margin: 10px;
  }

  .extras-section {
    margin: 30px 16px 0;
    padding: 12px 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;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    scrollbar-width: none;
    box-sizing: border-box;
    padding-inline: 0;
    scroll-padding-left: var(--extras-buffer);
    scroll-padding-right: var(--extras-buffer);
  }

  .extras-section::-webkit-scrollbar { display: none; }

  .extras-rail {
    display: inline-flex;
    gap: var(--extra-chip-gap);
    padding: 6px 0;
    width: max-content;
    align-items: center;
    box-sizing: border-box;
  }

  .extras-rail::before,
  .extras-rail::after {
    content: "";
    flex: 0 0 var(--extras-buffer);
    height: 1px;
  }

  .extra-chip {
    flex: 0 0 var(--extra-chip-size);
    width: var(--extra-chip-size);
    height: var(--extra-chip-size);
    border-radius: 14px;
    scroll-snap-align: start;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    position: relative;
    overflow: visible;
    margin: var(--extra-chip-vertical-margin) 0;
  }

  .extra-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.184);
    border: white 1px solid;
  }

  .extra-info {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    padding: 6px 8px;
    border-radius: 20px;
    background: rgba(208, 226, 255, 0.365);
    border: white 1px solid;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.184);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .extra-flyout {
    position: fixed;
    top: var(--extra-flyout-top, 0px);
    left: var(--extra-flyout-left, 0px);
    transform: translate(-50%, -100%) translateY(12px) scale(0.96);
    background: rgba(208, 226, 255, 0.365);
    border: white 1px solid;
    box-shadow: transparent;
    backdrop-filter: blur(6px);
    padding: 5px 7px;
    border-radius: 5px 5px 25px 25px;
    font-size: 0.65rem;
    white-space: normal;
    z-index: 999;
    min-width: none;
    max-width: 50%;
  }

  .extra-chip:active,
  .extra-chip:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  }
}
