/* Review comment mode: enabled only with ?review=1 by review-comments.js */
.review-hint-static {
  position: relative;
  z-index: 10000;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  background: #fff7d6;
  color: #6f3a17;
  border-bottom: 1px solid #f0cf83;
  padding: 10px 16px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-mark {
  background: #ffe082;
  border-radius: 4px;
  padding: 0 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.review-mark:hover {
  background: #ffd54f;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  background: #c85f70;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  vertical-align: middle;
  user-select: none;
}

.review-popup {
  position: fixed;
  z-index: 10002;
  width: min(360px, calc(100vw - 28px));
  min-width: 280px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4c5ca;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(49, 34, 38, 0.18);
  color: #312226;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.review-popup-target {
  max-height: 88px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 7px 9px;
  background: #fff7f8;
  border-left: 3px solid #c85f70;
  border-radius: 6px;
  color: #765f65;
  font-size: 12px;
  line-height: 1.55;
}

.review-popup textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 86px;
  padding: 8px;
  color: #312226;
  background: #fff;
  border: 1px solid #e4c5ca;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.review-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 9px;
}

.review-popup button {
  padding: 6px 12px;
  border: 1px solid #e4c5ca;
  border-radius: 7px;
  background: #fff;
  color: #312226;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.review-popup button.primary {
  background: #c85f70;
  border-color: #c85f70;
  color: #fff;
}

.review-popup button.danger {
  color: #b91c1c;
  border-color: #f3b7b7;
}

.review-popup button:hover {
  opacity: 0.86;
}

.review-share-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: #c85f70;
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 95, 112, 0.34);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.review-share-btn:hover {
  background: #8f3345;
}

.review-share-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #fff;
  color: #c85f70;
  border-radius: 999px;
  font-size: 12px;
}

.review-share-btn .share-label-short {
  display: none;
}

.review-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  z-index: 10003;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: #312226;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.review-toast.show {
  opacity: 1;
}

@media (max-width: 640px) {
  .review-hint-static {
    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }

  .review-share-btn {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
    padding: 11px 14px;
    font-size: 12px;
  }

  .review-share-btn .share-label-full {
    display: none;
  }

  .review-share-btn .share-label-short {
    display: inline;
  }
}
