.seed-group {
  position: fixed;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 192px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: #12232c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.seed-group[hidden] {
  display: none;
}

.seed-group-expand {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #12232c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.seed-group-expand svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.seed-group-expand:hover {
  background: #f3f6f5;
}

.seed-group-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #607079;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.seed-group-close:hover {
  background: #eef3f2;
  color: #12232c;
}

.seed-group-close:focus-visible,
.seed-group-expand:focus-visible {
  outline: 2px solid #137c68;
  outline-offset: 1px;
}

.seed-group-title {
  display: block;
  padding: 0 20px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.seed-group-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  -webkit-touch-callout: default;
}

.seed-group-caption {
  margin: 8px 0 0;
  color: #5f6e75;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 760px) {
  .seed-group {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 148px;
    padding: 10px;
    border-radius: 12px;
  }

  .seed-group-title {
    padding-bottom: 8px;
    font-size: 13px;
  }

  .seed-group-caption {
    margin-top: 6px;
    font-size: 10px;
  }
}

@media (max-width: 760px) and (max-height: 680px),
  (max-height: 500px) and (orientation: landscape) {
  .seed-group:not([data-seed-group-expanded]) {
    width: auto;
    padding: 0;
    border-radius: 999px;
  }

  .seed-group:not([data-seed-group-expanded]) .seed-group-close,
  .seed-group:not([data-seed-group-expanded]) .seed-group-title,
  .seed-group:not([data-seed-group-expanded]) .seed-group-image,
  .seed-group:not([data-seed-group-expanded]) .seed-group-caption {
    display: none;
  }

  .seed-group:not([data-seed-group-expanded]) .seed-group-expand {
    display: flex;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .seed-group[data-seed-group-expanded] {
    width: 168px;
    padding: 10px;
  }

  .seed-group[data-seed-group-expanded] .seed-group-title {
    padding-bottom: 8px;
    font-size: 13px;
  }

  .seed-group[data-seed-group-expanded] .seed-group-caption {
    display: none;
  }
}
