/* =============================================================================
   59-pro-tier.css  (v14.266)
   Shelfd Pro — lock chips + upgrade bottom sheet. Editorial Dark: true blacks,
   single lavender accent, Söhne weights per the app defaults.
   ========================================================================== */

/* ---------- PRO lock chip on gated list options ---------- */
.shelfd-pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 7px 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 auto;
}
.shelfd-pro-chip svg {
  width: 9px;
  height: 9px;
  display: block;
}
.shelfd-search-preset-option.is-pro-locked {
  opacity: 0.82;
}

/* ---------- Upgrade bottom sheet ---------- */
#shelfd-pro-sheet {
  position: fixed;
  inset: 0;
  z-index: 6200;
  pointer-events: none;
}
#shelfd-pro-sheet[aria-hidden="true"] { visibility: hidden; }
#shelfd-pro-sheet.is-open { pointer-events: auto; visibility: visible; }

.shelfd-pro-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 270ms cubic-bezier(0.22, 1, 0.36, 1);
}
#shelfd-pro-sheet.is-open .shelfd-pro-sheet-backdrop { opacity: 1; }

.shelfd-pro-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #101014;
  border-top: 1px solid rgba(196, 181, 253, 0.14);
  transform: translate3d(0, 104%, 0);
  transition: transform 270ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  max-height: calc(100dvh - max(12px, var(--shelfd-safe-top, 0px)));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
#shelfd-pro-sheet.is-open .shelfd-pro-sheet-panel { transform: translate3d(0, 0, 0); }

.shelfd-pro-sheet-grab {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px auto 16px;
}

.shelfd-pro-sheet-kicker {
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(248, 244, 255, 0.55);
}
.shelfd-pro-sheet-kicker span { color: #c4b5fd; }

.shelfd-pro-sheet-title {
  margin: 8px 0 6px;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0em;
  color: #ffffff;
  line-height: 1.12;
}

.shelfd-pro-sheet-blurb {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(232, 227, 243, 0.72);
  line-height: 1.45;
}

.shelfd-pro-sheet-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.shelfd-pro-sheet-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15px;
  font-weight: 500;
  color: #e8e3f3;
}
.shelfd-pro-sheet-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #c4b5fd;
  border-bottom: 2px solid #c4b5fd;
  transform: rotate(-45deg);
}

.shelfd-pro-sheet-cta {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #c4b5fd;
  color: #0b0b10;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease;
}
.shelfd-pro-sheet-cta:active { transform: scale(0.985); }

.shelfd-pro-sheet-cta:disabled {
  opacity: 0.48;
  cursor: default;
}

.shelfd-pro-sheet-price {
  margin: -2px 0 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.00em;
  line-height: 1.2;
}

.shelfd-pro-sheet-status {
  min-height: 19px;
  margin-top: 8px;
  color: rgba(196, 181, 253, 0.88);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.00em;
  line-height: 1.35;
  text-align: center;
}

.shelfd-pro-sheet-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 36px;
}

.shelfd-pro-sheet-actions button,
.shelfd-pro-sheet-legal button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.00em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.shelfd-pro-sheet-actions button {
  min-height: 36px;
  padding: 0 2px;
}

.shelfd-pro-sheet-actions button:disabled {
  opacity: 0.45;
}

.shelfd-pro-sheet-renewal {
  margin: 4px auto 0;
  max-width: 420px;
  color: rgba(232, 227, 243, 0.48);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.00em;
  line-height: 1.4;
  text-align: center;
}

.shelfd-pro-sheet-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: rgba(232, 227, 243, 0.34);
}

.shelfd-pro-sheet-legal button {
  min-height: 30px;
  padding: 0 2px;
  color: rgba(232, 227, 243, 0.62);
  font-size: 11.5px;
}

#shelfd-pro-sheet.is-busy .shelfd-pro-sheet-dismiss,
#shelfd-pro-sheet.is-busy .shelfd-pro-sheet-backdrop {
  pointer-events: none;
}

.shelfd-pro-sheet-dismiss {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(232, 227, 243, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 390px), (max-height: 740px) {
  .shelfd-pro-sheet-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
  .shelfd-pro-sheet-grab { margin-bottom: 11px; }
  .shelfd-pro-sheet-title { font-size: 22px; }
  .shelfd-pro-sheet-blurb { margin-bottom: 9px; font-size: 14px; }
  .shelfd-pro-sheet-list { margin-bottom: 12px; }
  .shelfd-pro-sheet-list li { padding-top: 5px; padding-bottom: 5px; font-size: 14px; }
  .shelfd-pro-sheet-list li::before { top: 11px; }
  .shelfd-pro-sheet-renewal { font-size: 10.5px; }
  .shelfd-pro-sheet-dismiss { margin-top: 2px; }
}
