/* WhatsApp-style Privacy settings (WA palette) */

.privacy-page .profile-scroll {
  padding: 0 0 28px;
}

.privacy-shell {
  width: min(640px, 100%);
  margin: 0 auto;
}

.privacy-msg {
  margin: 12px 14px 0;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(134, 150, 160, 0.45);
  border-radius: 12px;
  margin: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 27, 33, 0.06);
}

.privacy-section-label {
  padding: 12px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #00a884;
  background: rgba(0, 168, 132, 0.04);
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0, 168, 132, 0.08);
  background: transparent;
  text-align: start;
  padding: 13px 16px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.privacy-section-label + .privacy-row {
  border-top: 0;
}

.privacy-row:hover {
  background: rgba(0, 168, 132, 0.05);
}

.privacy-row:active {
  background: rgba(0, 168, 132, 0.09);
}

.privacy-row-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #111b21;
}

.privacy-row-sub {
  font-size: 12px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.privacy-row-chevron {
  flex-shrink: 0;
  color: #8696a0;
  width: 18px;
  height: 18px;
}

.privacy-row-toggle {
  cursor: default;
}

.privacy-row-toggle:hover {
  background: transparent;
}

.privacy-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.privacy-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.privacy-switch-slider {
  position: absolute;
  inset: 0;
  background: #c5cdd3;
  border-radius: 999px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.privacy-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.privacy-switch input:checked + .privacy-switch-slider {
  background: #00a884;
}

.privacy-switch input:checked + .privacy-switch-slider::before {
  transform: translateX(18px);
}

.privacy-hint {
  margin: 0 14px 8px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #667781;
}

.privacy-panel {
  display: none;
  flex-direction: column;
  margin: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(134, 150, 160, 0.45);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 27, 33, 0.06);
}

.privacy-panel.is-open {
  display: flex;
}

.privacy-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 168, 132, 0.1);
  background: rgba(0, 168, 132, 0.04);
}

.privacy-panel-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #00a884;
}

.privacy-panel-back {
  color: #00a884;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.privacy-panel-back .yoyo-icon,
.privacy-panel-back svg {
  width: 20px;
  height: 20px;
}

.privacy-panel-body {
  padding: 8px 0 12px;
}

.privacy-panel-intro {
  margin: 4px 16px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #667781;
}

.privacy-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0, 168, 132, 0.08);
  background: transparent;
  text-align: start;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  color: #111b21;
}

.privacy-choice:hover {
  background: rgba(0, 168, 132, 0.05);
}

.privacy-choice.is-selected {
  background: rgba(0, 168, 132, 0.08);
  font-weight: 600;
}

.privacy-choice-check {
  margin-inline-start: auto;
  color: #00a884;
  width: 18px;
  height: 18px;
  opacity: 0;
}

.privacy-choice.is-selected .privacy-choice-check {
  opacity: 1;
}

.privacy-field {
  padding: 8px 16px 12px;
}

.privacy-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #00a884;
  margin-bottom: 6px;
}

.privacy-field select,
.privacy-field input[type='text'],
.privacy-field input[type='password'] {
  width: 100%;
  border: 1px solid rgba(134, 150, 160, 0.55);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #111b21;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 12px;
}

.privacy-blocked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-blocked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 168, 132, 0.08);
}

.privacy-blocked-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #25d366, #00a884);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.privacy-blocked-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-blocked-name {
  font-size: 14px;
  font-weight: 600;
  color: #111b21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.privacy-blocked-id {
  font-size: 12px;
  color: #667781;
}

.privacy-blocked-empty {
  padding: 18px 16px;
  text-align: center;
  color: #667781;
  font-size: 13px;
}

.privacy-main.hidden,
.privacy-panel.hidden {
  display: none !important;
}

html.ym-embedded .privacy-page .profile-header {
  /* Keep title bar; back arrow hidden via .profile-back rule */
}

@media (max-width: 520px) {
  .privacy-list,
  .privacy-panel,
  .privacy-hint {
    margin-inline: 10px;
  }
}
