/* SMS Messaging Preferences UI — Communication Hub */

/* ── Pref bar (badge + dropdown row) ── */
.sms-pref-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--Neutral-200-Border, #E5E5E5);
  background: #fff;
}

/* ── Status badges ── */
.sms-pref-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sms-pref-badge--opted-out {
  background: #FEE2E2;
  color: #991B1B;
}

.sms-pref-badge--snoozed {
  background: #FEF3C7;
  color: #92400E;
}

/* ── Dropdown trigger ── */
.sms-pref-dropdown {
  position: relative;
  margin-left: auto;
}

.sms-pref-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--Neutral-200-Border, #E5E5E5);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}

.sms-pref-dropdown__trigger:hover {
  background: #F9FAFB;
}

/* ── Dropdown menu ── */
.sms-pref-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid var(--Neutral-200-Border, #E5E5E5);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sms-pref-dropdown__menu.is-open {
  display: block;
}

.sms-pref-dropdown__item {
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}

.sms-pref-dropdown__item:hover {
  background: #F3F4F6;
}

.sms-pref-dropdown__item--active {
  font-weight: 600;
  color: #111827;
}

.sms-pref-dropdown__item--active::before {
  content: '✓ ';
}

/* ── Blocked compose area ── */
.replybar__sms-blocked-warning {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 13px;
  line-height: 1.4;
}

.replybar__input-row--blocked {
  display: none;
}
