.float-tools {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1005;
  width: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.float-item {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: visible;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--soft-yellow, #faeec1);
  color: var(--brown, #6e3d2f);
  box-shadow: 0 12px 28px rgba(110, 61, 47, 0.12);
  pointer-events: auto;
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.float-item.is-gold {
  background: var(--honey-bright, #fcc92c);
}

.float-item:hover,
.float-item:focus-visible {
  width: 168px;
  transform: translateX(-2px);
  box-shadow: 0 16px 34px rgba(110, 61, 47, 0.18);
  outline: none;
}

.float-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.float-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brown, #6e3d2f);
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s ease, max-width 0.25s ease;
}

.float-item:hover .float-text,
.float-item:focus-visible .float-text {
  opacity: 1;
  max-width: 108px;
}

.float-panel {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  width: 220px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(110, 61, 47, 0.1);
  box-shadow: 0 18px 48px rgba(110, 61, 47, 0.16);
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-item:hover .float-panel,
.float-item:focus-within .float-panel {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.float-panel img {
  width: 136px;
  height: 136px;
  margin: 0 auto 12px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(110, 61, 47, 0.08);
}

.float-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brown, #6e3d2f);
  font-size: 15px;
}

.float-panel span,
.float-panel p {
  display: block;
  color: var(--text-2, rgba(74, 51, 41, 0.76));
  font-size: 12px;
  line-height: 1.7;
}

.float-mobile {
  display: none;
}

.float-mobile-overlay[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  body.site-floatbar-mobile-ready {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body.site-floatbar-lock {
    overflow: hidden;
  }

  .float-tools {
    display: none;
  }

  .float-mobile {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1005;
    display: block;
  }

  .float-mobile-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(250, 238, 193, 0.94);
    border: 1px solid rgba(110, 61, 47, 0.12);
    box-shadow: 0 18px 42px rgba(110, 61, 47, 0.18);
    backdrop-filter: blur(16px);
  }

  .float-mobile-item {
    min-height: 62px;
    border: 0;
    border-radius: 16px;
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--brown, #6e3d2f);
    text-align: center;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: inset 0 0 0 1px rgba(110, 61, 47, 0.05);
  }

  .float-mobile-item.is-gold {
    background: var(--honey-bright, #fcc92c);
  }

  .float-mobile-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
  }

  .float-mobile-item:focus-visible,
  .float-mobile-close:focus-visible,
  .float-mobile-action:focus-visible {
    outline: 2px solid rgba(110, 61, 47, 0.28);
    outline-offset: 2px;
  }

  .float-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1006;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 12px calc(102px + env(safe-area-inset-bottom));
    background: rgba(56, 39, 31, 0.28);
  }

  .float-mobile-sheet {
    width: min(100%, 420px);
    border-radius: 26px;
    border: 1px solid rgba(110, 61, 47, 0.1);
    background: rgba(255, 252, 245, 0.98);
    color: var(--brown, #6e3d2f);
    box-shadow: 0 24px 54px rgba(56, 39, 31, 0.22);
    overflow: hidden;
  }

  .float-mobile-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 0;
  }

  .float-mobile-sheet-head strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    color: var(--brown, #6e3d2f);
  }

  .float-mobile-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: rgba(110, 61, 47, 0.08);
    color: var(--brown, #6e3d2f);
    font-size: 18px;
  }

  .float-mobile-sheet-body {
    padding: 12px 20px 22px;
  }

  .float-mobile-sheet-body img {
    width: 156px;
    height: 156px;
    display: block;
    margin: 6px auto 16px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(110, 61, 47, 0.08);
  }

  .float-mobile-sheet-body span {
    display: block;
    color: var(--text-2, rgba(74, 51, 41, 0.76));
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
  }

  .float-mobile-action {
    margin-top: 16px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    background: var(--honey-bright, #fcc92c);
    color: var(--brown, #6e3d2f);
    font-size: 14px;
    font-weight: 700;
  }
}
