.ff-ios-install-prompt {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid rgba(54, 42, 28, 0.16);
  border-radius: 8px;
  background: #fffaf2;
  color: #241b14;
  box-shadow: 0 18px 42px rgba(36, 28, 20, 0.18);
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}

.ff-ios-install-prompt strong,
.ff-ios-install-prompt span {
  grid-column: 1;
}

.ff-ios-install-prompt span {
  color: #6f6256;
  font-size: 13px;
}

.ff-ios-install-prompt button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(143, 83, 42, 0.1);
  color: #6f3c1d;
  font: inherit;
  font-size: 20px;
}

.ff-notification-center {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9998;
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}

.ff-notification-bell {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(54, 42, 28, 0.16);
  border-radius: 8px;
  background: #fffaf2;
  color: #6f3c1d;
  box-shadow: 0 14px 32px rgba(36, 28, 20, 0.16);
  cursor: pointer;
  font-size: 22px;
}

.ff-notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #8b2f2f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ff-notification-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 92px));
  overflow: auto;
  border: 1px solid rgba(54, 42, 28, 0.16);
  border-radius: 8px;
  background: #fffaf2;
  color: #241b14;
  box-shadow: 0 18px 42px rgba(36, 28, 20, 0.2);
}

.ff-notification-panel[hidden] {
  display: none;
}

.ff-notification-head,
.ff-notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(88, 60, 32, 0.14);
}

.ff-notification-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ff-notification-head strong,
.ff-notification-item strong {
  display: block;
}

.ff-notification-head button {
  border: 1px solid rgba(143, 83, 42, 0.18);
  border-radius: 8px;
  background: rgba(143, 83, 42, 0.1);
  color: #6f3c1d;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.ff-notification-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ff-notification-item p {
  margin: 4px 0;
  color: #6f6256;
  font-size: 13px;
}

.ff-notification-item small {
  color: #8f532a;
  font-size: 12px;
}

.ff-push-prompt {
  position: fixed;
  left: 50%;
  top: max(92px, calc(env(safe-area-inset-top) + 74px));
  z-index: 9997;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "mark copy"
    "actions actions";
  gap: 12px 14px;
  align-items: center;
  width: min(520px, calc(100vw - 28px));
  padding: 15px;
  border: 1px solid rgba(36, 106, 97, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 106, 97, 0.12), rgba(143, 83, 42, 0.08)),
    #fffaf2;
  color: #241b14;
  box-shadow: 0 22px 54px rgba(36, 28, 20, 0.26);
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  transform: translateX(-50%);
}

.ff-push-prompt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #246a61, #b47a32, #8b2f2f);
}

.ff-push-prompt__mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(143, 83, 42, 0.26);
  border-radius: 8px;
  background: #f7ead7;
  color: #6f3c1d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.ff-push-prompt__copy {
  grid-area: copy;
  min-width: 0;
}

.ff-push-prompt strong,
.ff-push-prompt span {
  display: block;
}

.ff-push-prompt strong {
  font-size: 17px;
  line-height: 1.18;
}

.ff-push-prompt span {
  margin-top: 5px;
  color: #6f6256;
  font-size: 14px;
  line-height: 1.4;
}

.ff-push-prompt__actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.ff-push-prompt button {
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.ff-push-prompt__primary {
  border: 1px solid rgba(36, 106, 97, 0.3);
  background: #246a61;
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
}

.ff-push-prompt__primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ff-push-prompt__dismiss {
  width: 40px;
  border: 0;
  background: rgba(143, 83, 42, 0.1);
  color: #6f3c1d;
  font-size: 20px;
}

@media (max-width: 520px) {
  .ff-push-prompt {
    top: max(84px, calc(env(safe-area-inset-top) + 64px));
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .ff-push-prompt__mark {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .ff-push-prompt__actions {
    justify-content: stretch;
  }

  .ff-push-prompt__primary {
    flex: 1;
  }
}
