body:has(#main .detail) .site-head {
  position: sticky;
  top: 0;
  z-index: 3;
}

body:has(#main .detail) :where(a, button, input) {
  scroll-margin-top: 82px;
}

.cart-flight {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 11px;
  box-shadow: 0 2px 9px #382b2445;
  background: var(--berry);
  color: white;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cart-flight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 740px) {
  body:has(#main .detail) :where(a, button, input) { scroll-margin-top: 70px; }
}

@media (max-width: 365px) {
  body:has(#main .detail) .head-actions { gap: 7px; }
  body:has(#main .detail) .bag-link { gap: 4px; }
  body:has(#main .detail) .bag-link svg {
    display: block;
    width: 17px;
    height: 19px;
    flex: none;
  }
}
