/* A supplementary invitation, never a modal or an interruption to a form. */
.shed-quote-prompt {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 110;
  width: 356px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  color: #101b2a;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgb(16 27 42 / 22%);
  text-align: left;
}

.shed-quote-prompt[hidden] { display: none !important; }
.shed-quote-prompt__copy { padding-right: 12px; }
.shed-quote-prompt__title-short { display: none; }
.shed-quote-prompt h2 {
  margin: 0 24px 8px 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none;
}
.shed-quote-prompt p {
  margin: 0 0 18px;
  color: #58636f;
  font-size: 14px;
  line-height: 1.5;
}
.shed-quote-prompt__close {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #58636f;
  background: transparent;
  cursor: pointer;
}
.shed-quote-prompt__close:hover { color: #101b2a; background: #f4f6f8; }
.shed-quote-prompt__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 3px;
  color: #fff;
  background: #b13a3a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.shed-quote-prompt__link:hover { color: #fff; background: #892929; }
.shed-quote-prompt :is(a, button):focus-visible {
  outline: 3px solid #101b2a;
  outline-offset: 3px;
}
.shed-quote-prompt ::selection { color: #101b2a; background: #e1bd67; }

@media (max-width: 700px) {
  .shed-quote-prompt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 8px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: none;
    padding: 12px;
  }
  .shed-quote-prompt__copy { grid-column: 1; grid-row: 1; padding: 0; }
  .shed-quote-prompt h2 { margin: 0; font-size: 16px; line-height: 1.3; }
  .shed-quote-prompt__title-full { display: none; }
  .shed-quote-prompt__title-short { display: inline; }
  .shed-quote-prompt p, .shed-quote-prompt__extra { display: none; }
  .shed-quote-prompt__link { grid-column: 2; grid-row: 1; gap: 6px; padding: 10px; font-size: 13px; }
  .shed-quote-prompt__close { grid-column: 3; grid-row: 1; position: static; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .shed-quote-prompt--enter { animation: shed-quote-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes shed-quote-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
