/* Nút bật/tắt nhắc việc trên thiết bị + bảng hướng dẫn cài.
   Dùng chung biến giao diện với css/internal-notifications.css để đứng cạnh chuông thông báo. */

.web-push-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  margin-left: 8px;
  border: 1px solid var(--ui-line-strong, #cbd8ea);
  border-radius: 10px;
  background: var(--ui-panel, #fff);
  color: var(--ui-blue, #3159ad);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(25, 57, 104, .06);
}

.web-push-toggle:hover,
.web-push-toggle:focus-visible {
  border-color: var(--ui-blue, #3159ad);
  background: var(--ui-soft-blue, #eef4ff);
  outline: none;
}

.web-push-toggle:disabled {
  opacity: .6;
  cursor: progress;
}

/* Trong menu "Tài khoản": thừa kế kiểu mục menu của portal-shell.css, chỉ cần canh cho khớp. */
.web-push-menu-item {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.web-push-menu-item:disabled {
  opacity: .6;
  cursor: progress;
}

.web-push-panel {
  position: fixed;
  z-index: 4000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px 22px;
  border: 1px solid var(--ui-line-strong, #cbd8ea);
  border-radius: 14px;
  background: var(--ui-panel, #fff);
  color: var(--ui-text, #20314f);
  box-shadow: 0 18px 44px rgba(25, 57, 104, .22);
}

.web-push-panel[hidden] { display: none !important; }

.web-push-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.web-push-panel h4 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ui-blue, #3159ad);
}

.web-push-panel p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.6;
}

.web-push-panel ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.web-push-panel li { margin-bottom: 5px; }

.web-push-blocked {
  padding: 9px 11px;
  border-radius: 9px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}

.web-push-blocked[hidden] { display: none !important; }

.web-push-close {
  margin-top: 16px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--ui-blue, #3159ad);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .web-push-toggle {
    margin-left: 0;
    margin-top: 6px;
  }
}
