/* ============================================
   drawer-hide.css — your own Drawer with hiding (drawer-hide.js), on the
   phone Drawer sheet and the computer Drawer pop-up, plus the detail's
   "Hide from my Drawer" row (sticker-detail-global.js).
   ============================================ */

.sbdh-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
}
.sbdh-bar-left {
  flex: 1;
  min-width: 0;
}
.sbdh-bar .psp-seg {
  margin-bottom: 0;
  max-width: 100%;
}
.sbdh-bar .psp-seg-btn {
  padding: 7px 12px;
  white-space: nowrap;
}
.sbdh-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #18181b;
}
.sbdh-pill {
  flex: none;
  border: 0;
  background: #F3F0FB;
  color: #18181b;
  font: 600 12px 'Poppins', system-ui, sans-serif;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}
.sbdh-eye {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #F3F0FB;
  color: #18181b;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sbdh-eye.on {
  background: #6D28D9;
  color: #fff;
}
.sbdh-pill:focus-visible,
.sbdh-eye:focus-visible,
.sbdh-selbar-btn:focus-visible,
.sbdh-menu button:focus-visible {
  outline: 2px solid #6D28D9;
  outline-offset: 2px;
}

/* Tiles: no iPhone image callout on press-and-hold */
.sbdh-own [data-item-key] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  transition: transform 0.12s ease-out;
}
.sbdh-own [data-item-key] img {
  -webkit-user-drag: none;
}
.sbdh-selecting [data-item-key].sbdh-picked {
  transform: scale(0.92);
}
.sbdh-check {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.sbdh-picked .sbdh-check {
  background: #6D28D9;
}
.sbdh-picked .sbdh-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sbdh-note {
  text-align: center;
  font-size: 12px;
  color: #8a8a99;
  padding: 4px 16px 12px;
}
.sbdh-none {
  text-align: center;
  font-size: 13px;
  color: #8a8a99;
  padding: 32px 16px;
}
.sbdh-own .profile-shop-bgs-grid {
  margin-top: 12px;
}

/* Select bar and toast sit inside the sheet / pop-up */
.sbdh-selbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: #18181b;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font: 600 13px 'Poppins', system-ui, sans-serif;
  z-index: 5;
}
.sbdh-selbar-btn {
  border: 0;
  background: #6D28D9;
  color: #fff;
  font: 600 13px 'Poppins', system-ui, sans-serif;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}
.sbdh-selbar-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.sbdh-toast {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  background: #18181b;
  color: #fff;
  font: 400 14px 'Poppins', system-ui, sans-serif;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 6;
}
.sbdh-toast span {
  padding-right: 10px;
}
.sbdh-toast button {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 600 12px 'Poppins', system-ui, sans-serif;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* Press-and-hold / right-click menu: above the sheet and the pop-up (1150),
   below the item detail (1200) */
.sbdh-scrim {
  position: fixed;
  inset: 0;
  z-index: 1180;
  background: rgba(20, 16, 40, 0.18);
}
.sbdh-menu {
  position: fixed;
  z-index: 1181;
  width: 210px;
  background: rgba(250, 250, 252, 0.98);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.sbdh-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  color: #18181b;
  font: 500 14px 'Poppins', system-ui, sans-serif;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.sbdh-menu button + button {
  border-top: 1px solid #ececf1;
}
.sbdh-menu button:hover {
  background: #F3F0FB;
}

/* Item detail, opened from your own Drawer */
.sb-item-hide-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: #6b6b78;
  font: 500 14px 'Poppins', system-ui, sans-serif;
  padding: 10px 16px;
  cursor: pointer;
}
.sb-item-hide-row:hover {
  color: #18181b;
}

@media (prefers-reduced-motion: reduce) {
  .sbdh-own [data-item-key] { transition: none; }
}
