/* Add-site widget (bookmark / add to home screen) */

.addSiteTrigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 31, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  padding: 0 12px;
}

.addSiteTrigger:hover {
  background: rgba(35, 178, 109, 0.12);
}

.addSiteTrigger--header {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.addSiteTrigger__sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
}

.sitehdr__drawer-addsite {
  width: 100%;
  border-radius: 12px;
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  padding: 8px 12px;
}

.footer__addSiteWrap {
  margin-top: 10px;
}

.footer__addSite {
  min-height: 42px;
}

/* hide promo triggers when app is installed / standalone */
body.add-site-widget--standalone .addSiteTrigger {
  display: none !important;
}

/* desktop only header trigger */
@media (max-width: 900px) {
  .addSiteTrigger--header {
    display: none !important;
  }
}

.addSiteModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.addSiteModal.is-open {
  display: block;
}

.addSiteModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 16, 0.62);
}

.addSiteModal__dialog {
  position: relative;
  margin: 6vh auto 0;
  width: min(720px, calc(100vw - 24px));
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 31, 0.14);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 18px 18px 14px;
}

.addSiteModal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.addSiteModal__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.addSiteModal__lead {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.addSiteModal__close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 31, 0.18);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.addSiteModal__sections {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.addSiteCard {
  border: 1px solid rgba(31, 42, 31, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.addSiteCard__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
}

.addSiteCard__text {
  margin: 0;
  color: #3d4641;
  line-height: 1.45;
}

.addSiteCard__action {
  margin-top: 10px;
}

.addSiteCard__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.addSiteCard[hidden] {
  display: none !important;
}

html[data-theme="dark"] .addSiteModal__dialog {
  background: #0b1621;
  border-color: rgba(244, 239, 230, 0.18);
}
html[data-theme="dark"] .addSiteModal__title {
  color: #f4efe6;
}
html[data-theme="dark"] .addSiteModal__lead {
  color: #c9bfb3;
}
html[data-theme="dark"] .addSiteModal__close {
  background: #08121c;
  border-color: rgba(244, 239, 230, 0.24);
  color: #f4efe6;
}
html[data-theme="dark"] .addSiteCard {
  background: #0f1d2b;
  border-color: rgba(244, 239, 230, 0.16);
}
html[data-theme="dark"] .addSiteCard__title {
  color: #f4efe6;
}
html[data-theme="dark"] .addSiteCard__text {
  color: #ddd2c5;
}
html[data-theme="dark"] .addSiteCard__hint {
  color: #bbaea0;
}
html[data-theme="dark"] .addSiteTrigger {
  background: rgba(8, 18, 28, 0.9);
  border-color: rgba(244, 239, 230, 0.2);
  color: #f4efe6;
}
html[data-theme="dark"] .addSiteTrigger:hover {
  background: rgba(35, 178, 109, 0.24);
}
