/* Sticker picker screen: title, card preview, and sticker grid. */
.br-title-them-sticker {
  top: 107px;
  width: 824px;
  height: 89px;
  background: url("../../images/title-them-sticker.png") center / contain no-repeat;
}

.br-preview-card {
  position: absolute;
  left: 191px;
  top: 211px;
  width: 390px;
  height: 520px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.br-preview-card.br-is-editable {
  cursor: pointer;
}

.br-sticker-rail-wrap {
  position: static;
}
.br-sticker-arrow {
  display: none;
}

.br-sticker-grid {
  position: absolute;
  left: 660px;
  top: 243px;
  width: 550px;
  height: 380px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}
.br-sticker-cell {
  background: #f0f3f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid transparent;
}
.br-sticker-cell:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,49,197,0.15);
}
.br-sticker-cell.br-is-selected {
  border-color: #0070ff;
  background: #dbeafe;
}
.br-sticker-cell.br-is-locked {
  opacity: .35;
  cursor: not-allowed;
}
.br-sticker-cell.br-is-locked:hover {
  transform: none;
  box-shadow: none;
}
#screen-stickers[data-color="pink"]   .br-sticker-cell.br-is-selected { border-color: #FF86D9; background: #ffe3f4; }
#screen-stickers[data-color="orange"] .br-sticker-cell.br-is-selected { border-color: #FFBA79; background: #fff1e0; }
#screen-stickers[data-color="green"]  .br-sticker-cell.br-is-selected { border-color: #67C684; background: #e5f6e9; }
#screen-stickers[data-color="purple"] .br-sticker-cell.br-is-selected { border-color: #4D56E2; background: #e6e7fb; }
#screen-stickers[data-color="blue"]   .br-sticker-cell.br-is-selected { border-color: #30AEFF; background: #e2f4ff; }
.br-sticker-cell img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  pointer-events: none;
}
.br-sticker-cell {
  position: relative;
}
.br-sticker-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0070ff;
  color: #fff;
  font-family: "Maison Neue Extended", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,49,197,0.35);
  pointer-events: none;
}
.br-sticker-badge:empty {
  display: none;
}
#screen-stickers[data-color="pink"]   .br-sticker-badge { background: #FF86D9; }
#screen-stickers[data-color="orange"] .br-sticker-badge { background: #FFBA79; }
#screen-stickers[data-color="green"]  .br-sticker-badge { background: #67C684; }
#screen-stickers[data-color="purple"] .br-sticker-badge { background: #4D56E2; }
#screen-stickers[data-color="blue"]   .br-sticker-badge { background: #30AEFF; }

@media (max-width: 720px) {
  .br-title-them-sticker-mobile {
    width: 255px;
    max-width: 71%;
    aspect-ratio: 227 / 81;
    margin: 8px auto 16px;
    background-image: url("../../images/title-them-sticker-mobile.png");
  }
  .br-preview-card {
    position: relative;
    left: auto; top: auto;
    margin: 0 auto 14px;
    width: 222px;
    height: 296px;
  }
  .br-sticker-rail-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .br-sticker-grid {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 42px) / 4);
    gap: 14px;
    padding: 4px 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .br-sticker-grid::-webkit-scrollbar { display: none; }
  .br-sticker-cell {
    aspect-ratio: 1;
    scroll-snap-align: start;
  }
  .br-sticker-cell img { max-width: 72%; max-height: 72%; }
  .br-sticker-arrow {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    background-color: #0070ff;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 14px 23px;
    mask-size: 14px 23px;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
  }
  .br-sticker-arrow.br-prev {
    left: 2px;
    -webkit-mask-image: url("../../images/arrow-left.svg");
    mask-image: url("../../images/arrow-left.svg");
  }
  .br-sticker-arrow.br-next {
    right: 2px;
    -webkit-mask-image: url("../../images/arrow-right.svg");
    mask-image: url("../../images/arrow-right.svg");
  }
}
