/* Device push opt-in sheet (account on, device not yet subscribed) */

.push-device-prompt {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.push-device-prompt[hidden] {
  display: none !important;
}

.push-device-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.push-device-prompt.is-open .push-device-prompt-backdrop {
  opacity: 1;
}

.push-device-prompt-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 0 auto;
  max-height: min(70vh, 520px);
  padding: 0 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px 18px 0 0;
  background: var(--color-primary, #152033);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  color: var(--textfield-textcolor, #fff);
  font-family: Lato, sans-serif;
  transform: translateY(110%);
  transition: transform 0.24s ease;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.push-device-prompt.is-open .push-device-prompt-panel {
  transform: translateY(0);
}

.push-device-prompt-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0.55rem auto 0.35rem;
}

.push-device-prompt-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.push-device-prompt-text {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.45;
}

.push-device-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.push-device-prompt-btn {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.push-device-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.push-device-prompt-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-active, #4fc3f7) 35%, transparent);
}

.push-device-prompt-btn-primary {
  background: color-mix(in srgb, var(--color-active, #4fc3f7) 28%, transparent);
  border-color: color-mix(in srgb, var(--color-active, #4fc3f7) 55%, transparent);
  font-weight: 600;
}

.push-device-prompt-btn-danger {
  border-color: color-mix(in srgb, var(--danger, #fb7185) 40%, transparent);
  color: var(--danger, #fb7185);
}

.push-device-prompt-btn-ghost {
  border-color: transparent;
  background: transparent;
  opacity: 0.85;
}

.push-device-prompt-status {
  margin: 4px 0 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.push-device-prompt.is-busy .push-device-prompt-btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (min-width: 640px) {
  .push-device-prompt {
    justify-content: center;
    padding: 24px;
  }

  .push-device-prompt-panel {
    border-radius: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .push-device-prompt.is-open .push-device-prompt-panel {
    transform: none;
    opacity: 1;
  }

  .push-device-prompt-handle {
    display: none;
  }
}
