/* VoicePa Microblog Like Stamps */
.bookmark.bookmark-icon[data-vp-mbr-like-stamps="1"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bookmark.bookmark-icon[data-vp-mbr-like-stamps="1"]:focus-visible {
  outline: 2px solid #cc0000;
  outline-offset: 3px;
}
.bookmark.bookmark-icon[data-vp-mbr-like-stamps="1"].bookmarked img {
  filter: drop-shadow(0 0 4px rgba(204, 0, 0, .32));
}

/* rc.1の独立ボタンは廃止。キャッシュ残存時も表示しません。 */
.vp-mbr-trigger {
  display: none !important;
}

.vp-mbr-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 5px 0 0;
  min-width: 0;
}
.vp-mbr-chips[hidden] {
  display: none !important;
}
.vp-mbr-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  max-width: 126px;
  padding: 3px 8px 3px 5px;
  border: 1px solid rgba(204, 0, 0, .18);
  border-radius: 999px;
  background: rgba(255, 251, 238, .96);
  color: #5f3140;
  box-shadow: 0 1px 4px rgba(52, 19, 29, .06);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.vp-mbr-chip:hover,
.vp-mbr-chip.is-reacted {
  border-color: rgba(204, 0, 0, .42);
  background: #fff1f5;
}
.vp-mbr-chip:focus-visible {
  outline: 2px solid #cc0000;
  outline-offset: 2px;
}
.vp-mbr-chip img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  border-radius: 4px;
}

.vp-mbr-portal[hidden] {
  display: none !important;
}
.vp-mbr-portal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
.vp-mbr-portal.is-open {
  pointer-events: auto;
}
.vp-mbr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 15, .58);
  opacity: 0;
  transition: opacity 180ms ease;
}
.vp-mbr-portal.is-open .vp-mbr-backdrop {
  opacity: 1;
}
.vp-mbr-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px);
  max-height: min(74dvh, 720px);
  margin: 0 auto;
  padding: 7px 14px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  background: #fffbee;
  color: #332a2d;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .28);
  transform: translate3d(0, 105%, 0);
  transition: transform 220ms cubic-bezier(.2, .82, .24, 1);
  outline: none;
}
.vp-mbr-portal.is-open .vp-mbr-sheet {
  transform: translate3d(0, 0, 0);
}
.vp-mbr-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(67, 48, 55, .2);
}
.vp-mbr-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -7px;
  z-index: 3;
  margin: 0 -14px;
  padding: 10px 14px 9px;
  background: rgba(255, 251, 238, .96);
  backdrop-filter: blur(10px);
}
.vp-mbr-sheet h2 {
  margin: 0;
  color: #302429;
  font-size: 18px;
  line-height: 1.35;
}
.vp-mbr-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 42, 49, .08);
  color: #4b3940;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.vp-mbr-close:focus-visible {
  outline: 2px solid #cc0000;
  outline-offset: 2px;
}
.vp-mbr-sheet__notice {
  margin: 3px 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(204, 0, 0, .1);
  border-radius: 12px;
  background: rgba(255, 237, 242, .68);
  color: #69404e;
  font-size: 12px;
  line-height: 1.65;
}
.vp-mbr-stamps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
}
.vp-mbr-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 124px;
  padding: 9px 7px;
  border: 1px solid rgba(77, 56, 64, .12);
  border-radius: 15px;
  background: #fff;
  color: #3e3035;
  box-shadow: 0 5px 18px rgba(55, 35, 42, .045);
  cursor: pointer;
}
.vp-mbr-stamp:hover,
.vp-mbr-stamp.is-selected {
  border-color: rgba(204, 0, 0, .42);
  background: #fff4f7;
  box-shadow: 0 7px 22px rgba(166, 37, 77, .1);
}
.vp-mbr-stamp--normal {
  border-color: rgba(204, 0, 0, .22);
  background: linear-gradient(180deg, #fff, #fff7f8);
}
.vp-mbr-stamp--normal.is-liked {
  border-color: rgba(204, 0, 0, .5);
  background: #fff0f3;
}
.vp-mbr-stamp:focus-visible {
  outline: 2px solid #cc0000;
  outline-offset: 2px;
}
.vp-mbr-stamp:disabled {
  opacity: .62;
  cursor: wait;
}
.vp-mbr-stamp__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
}
.vp-mbr-stamp__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.vp-mbr-stamp__label {
  display: block;
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #403137;
  font-size: 12px;
  white-space: nowrap;
}
.vp-mbr-stamp__price {
  margin-top: 3px;
  color: #b11746;
  font-size: 12px;
}
.vp-mbr-stamp__price--free {
  color: #80626c;
}
.vp-mbr-confirm[hidden] {
  display: none !important;
}
.vp-mbr-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  bottom: -16px;
  z-index: 4;
  margin: 14px -14px -16px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(67, 48, 55, .1);
  background: rgba(255, 251, 238, .97);
  backdrop-filter: blur(12px);
}
.vp-mbr-confirm__selection {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.vp-mbr-confirm__selection img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.vp-mbr-confirm__selection span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vp-mbr-confirm__selection strong,
.vp-mbr-confirm__selection small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vp-mbr-confirm__selection small {
  color: #7c626b;
}
.vp-mbr-send {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d61d55, #ad1742);
  color: #fff;
  box-shadow: 0 7px 20px rgba(173, 23, 66, .2);
  font-weight: 800;
  cursor: pointer;
}
.vp-mbr-send:disabled {
  opacity: .58;
  cursor: wait;
}
.vp-mbr-send:focus-visible {
  outline: 2px solid #541022;
  outline-offset: 2px;
}
.vp-mbr-status {
  min-height: 20px;
  margin-top: 9px;
  color: #744657;
  font-size: 12px;
  line-height: 1.5;
}
.vp-mbr-loading,
.vp-mbr-empty,
.vp-mbr-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 10px;
  text-align: center;
}
.vp-mbr-error {
  color: #a40027;
}

@media (max-width: 480px) {
  .vp-mbr-sheet {
    width: 100%;
    max-height: min(78dvh, 680px);
    border-radius: 18px 18px 0 0;
  }
  .vp-mbr-stamps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .vp-mbr-stamp {
    min-height: 112px;
  }
  .vp-mbr-stamp__image {
    width: 54px;
    height: 54px;
  }
  .vp-mbr-confirm {
    align-items: stretch;
    flex-direction: column;
  }
  .vp-mbr-send {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vp-mbr-backdrop,
  .vp-mbr-sheet {
    transition-duration: 1ms !important;
  }
}

@media (max-width: 340px) {
  .vp-mbr-stamps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
