.cs-widget {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.cs-float {
  position: fixed;
  top: 45%;
  right: max(16px, calc((100vw - 720px) / 2 + 16px));
  z-index: 141;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.cs-float img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.cs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cs-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100vw;
  max-width: 720px;
  max-height: min(430px, calc(100svh - 58px));
  min-height: 390px;
  overflow-y: auto;
  padding: 12px 20px calc(42px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  color: #222834;
  background: #f8f8f9;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transform: translate(-50%, 105%);
  transition: transform 0.24s ease;
}

.cs-widget.open {
  pointer-events: auto;
}

.cs-widget.open .cs-backdrop {
  opacity: 1;
}

.cs-widget.open .cs-sheet {
  transform: translateY(0);
  transform: translate(-50%, 0);
}

.cs-sheet h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.cs-sheet p {
  max-width: 320px;
  margin: 0 auto 20px;
  color: #828c9b;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.cs-options {
  display: grid;
  gap: 13px;
}

.cs-option {
  display: grid;
  grid-template-columns: 58px 1fr 18px;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #202530;
  background: #f1f3f5;
  text-decoration: none;
}

.cs-option img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 11px;
  object-fit: contain;
  box-shadow: 0 2px 5px rgba(7, 19, 74, 0.18);
}

.cs-option span {
  min-width: 0;
  font-size: 15px;
  line-height: 23px;
}

.cs-option b {
  color: #7c8795;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.detail-page .cs-float {
  top: auto;
  right: max(16px, calc((100vw - 720px) / 2 + 16px));
  bottom: 32px;
}

@media (max-width: 380px) {
  .cs-sheet {
    min-height: 374px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cs-option span {
    font-size: 15px;
  }
}
