.bubble {
  width: 13.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.375rem;
  padding-bottom: 0.8125rem;
  padding-inline: 0.25rem;
  position: relative;
}

.bubbleIsUnique {
  padding-inline: 0.5rem;
  padding-top: 0.625rem;
  padding-bottom: 1.0625rem;

  :global(.bubble-service-button) {
    --message-highlighting-hover-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.sticker {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
}

.from {
  font-size: var(--font-size-15);
  line-height: var(--line-height-16);
  font-weight: 600;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  word-wrap: break-word;
  justify-content: center;
  column-gap: 0.5rem;
  margin-top: 0.5625rem;
  z-index: 1;

  :global(.avatar) { 
    cursor: pointer; 
    display: inline-block; 
    vertical-align: text-bottom;
    margin-inline-end: 0.25rem;
  }
}

.fromUser {
  align-items: center;
  word-wrap: break-word;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.message {
  font-size: var(--font-size-13);
  line-height: var(--line-height-14);
  text-align: center;
  --custom-emoji-size: var(--font-size-13);
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  z-index: 1;
}

.badge {
  background: var(--message-highlighting-color);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  display: block;
}

.upgradeButton {
  display: flex;
  align-items: center;

  :global(.button-icon) {
    margin-left: .25rem;
  }
}

.backdrop {
  position: absolute;
  inset: 0.25rem;
  border-radius: 16px;
  --stargift-backdrop-offset-y: -150px;
}

.uniqueGiftInfo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uniqueGiftTitle {
  font-size: var(--font-size-12);
  opacity: 0.8;
}

.uniqueGiftProps {
  width: 100%;
  font-size: var(--font-size-11);
  display: grid;
  grid-template-columns: 3fr 4fr;
  column-gap: 0.25rem;
}

.uniqueGiftPropName {
  opacity: 0.6;
  text-align: right;
  flex: 1 0 auto;
}

.uniqueGiftPropValue {
  text-align: left;
  font-weight: 600;
  flex: 1 0 auto;
}

.webPageBox {
  width: 100%;
  height: 100%;
  position: relative;
}

.webPageBackdrop {
  position: absolute;
  inset: 0;
}

.webPageBackdropCanvas {
  margin-top: 2rem;
}

.webPageSticker {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}