#sentor-install-card,
#sentor-install-modal {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

#sentor-install-card {
  position: fixed;
  left: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  width: min(470px, calc(100vw - 24px));
  padding: 10px 11px 8px;
  border: 1px solid rgba(8, 122, 56, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 13px 34px rgba(19, 50, 31, .22);
  color: #1f2d24;
  animation: sentorInstallIn .22s ease-out;
}

.sentor-install-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sentor-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.sentor-install-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.sentor-install-copy strong {
  font-size: 13.2px;
  font-weight: 800;
  color: #1f2d24;
}

.sentor-install-copy span {
  margin-top: 3px;
  font-size: 10.8px;
  color: #60736a;
  line-height: 1.25;
}

#sentor-install-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #087A38;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sentor-install-secondary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 7px;
  padding-left: 52px;
}

.sentor-install-secondary-actions button {
  border: 0;
  background: transparent;
  padding: 6px 7px;
  color: #52665b;
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 9px;
}

.sentor-install-secondary-actions button:hover {
  background: #f1f6f3;
}

#sentor-install-never {
  color: #7a675e;
}

#sentor-install-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .48);
}

.sentor-install-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 26px 22px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
  color: #1e2923;
}

.sentor-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
  margin: 0 auto 12px;
}

.sentor-install-dialog h3 {
  margin: 0 28px 8px;
  text-align: center;
  font-size: 20px;
}

.sentor-dialog-body > p {
  margin: 0 0 18px;
  text-align: center;
  color: #5e6f65;
  font-size: 13.5px;
  line-height: 1.4;
}

.sentor-step {
  margin: 9px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f8f5;
  font-size: 13px;
  line-height: 1.38;
}

.sentor-dialog-ok {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  background: #087A38;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sentor-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: #687970;
  cursor: pointer;
}

@keyframes sentorInstallIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  #sentor-install-card {
    left: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 16px);
  }

  .sentor-install-icon {
    width: 40px;
    height: 40px;
  }

  .sentor-install-copy strong {
    font-size: 12.4px;
  }

  .sentor-install-copy span {
    font-size: 10.3px;
  }

  #sentor-install-action {
    padding: 8px 12px;
  }

  .sentor-install-secondary-actions {
    padding-left: 45px;
  }
}

@media (max-width: 385px) {
  .sentor-install-copy span {
    display: none;
  }

  .sentor-install-secondary-actions {
    padding-left: 0;
    justify-content: center;
  }
}

/* SENTOR_PWA_AUTO_UPDATE_V1 */
.sentor-pwa-update-banner {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 36px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-family: Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sentor-pwa-update-banner--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sentor-pwa-update-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.17);
  color: #fbbf24;
  font-size: 21px;
  font-weight: 800;
}

.sentor-pwa-update-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sentor-pwa-update-copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.sentor-pwa-update-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.sentor-pwa-update-action {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: #f59e0b;
  color: #111827;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sentor-pwa-update-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sentor-pwa-update-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 22px;
}

.sentor-pwa-update-action:focus-visible,
.sentor-pwa-update-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .sentor-pwa-update-banner {
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .sentor-pwa-update-close {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .sentor-pwa-update-action {
    grid-column: 2 / 4;
    width: 100%;
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sentor-pwa-update-banner {
    transition: none;
  }
}
