/* Небольшое предложение автоматизации на одной пробной посадке. */
.automation-prompt {
  position: fixed;
  z-index: 950;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
}

.automation-prompt__panel {
  box-sizing: border-box;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 96px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid rgba(106, 17, 203, .14);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff 60%, #f3f1ff);
  color: var(--dark);
  box-shadow: 0 20px 64px rgba(28, 30, 82, .18), 0 4px 16px rgba(28, 30, 82, .06);
  animation: automation-prompt-in .25s ease-out;
}

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

.automation-prompt__launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 20px 8px 8px;
  border: 1px solid rgba(106, 17, 203, .15);
  border-radius: 18px;
  background: #fff;
  color: var(--dark);
  box-shadow: 0 8px 28px rgba(28, 30, 82, .14);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.automation-prompt__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 30, 82, .18);
}

.automation-prompt__launcher-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 24px;
}

.automation-prompt__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 26px 18px 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.automation-prompt__label span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(106, 17, 203, .1), rgba(37, 117, 252, .1));
  font-size: 18px;
}

.automation-prompt h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.automation-prompt p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.automation-prompt__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f1f0f8;
  color: var(--muted);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.automation-prompt__close:hover {
  color: var(--primary);
  background: #e9e3fa;
}

.automation-prompt__primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  font-family: inherit;
  cursor: pointer;
}

.automation-prompt__primary span {
  font-size: 20px;
}

.automation-prompt__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
}

.automation-prompt__links a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.automation-prompt__links a:hover {
  text-decoration: underline;
}

.automation-prompt :is(a, button):focus-visible {
  outline: 3px solid rgba(106, 17, 203, .3);
  outline-offset: 3px;
}

@keyframes automation-prompt-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .automation-prompt {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .automation-prompt__panel {
    padding: 22px;
    border-radius: 20px;
  }

  .automation-prompt h2 {
    font-size: 22px;
  }

  .automation-prompt p {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-prompt__panel { animation: none; }
  .automation-prompt__launcher { transition: none; }
}
