/* share-entry-guide-20260711: anonymous normal-share entry prompt, independent from gift-card claiming. */
body:has(.detail-main.book-reference-detail-shell) .share-entry-guide {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 180;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(205, 171, 92, 0.34);
  border-radius: 8px;
  background: rgba(18, 29, 22, 0.94);
  color: #fff7df;
  box-shadow: 0 16px 34px rgba(15, 25, 18, 0.24);
  backdrop-filter: blur(14px);
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-copy strong {
  color: #fff4cf;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-copy p {
  margin: 0;
  color: rgba(255, 247, 223, 0.76);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions button {
  min-width: 58px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 244, 207, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 247, 223, 0.9);
  font-size: 13px;
  font-weight: 800;
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions button:first-child {
  border-color: rgba(223, 201, 130, 0.62);
  background: #dfc982;
  color: #142018;
  box-shadow: 0 8px 18px rgba(223, 201, 130, 0.22);
}

body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions button:active {
  transform: translateY(1px);
}

@media (max-width: 390px) {
  body:has(.detail-main.book-reference-detail-shell) .share-entry-guide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.detail-main.book-reference-detail-shell) .share-entry-guide-actions button {
    width: 100%;
  }
}
