.ss-native-app-update {
  position: fixed;
  right: max(12px, var(--ss-safe-area-right));
  left: max(12px, var(--ss-safe-area-left));
  bottom: calc(var(--ss-mobile-tabbar-occupied-height, 80px) + 12px);
  z-index: 10018;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
  direction: rtl;
}

body.ss-mini-visible .ss-native-app-update:not(.is-hard) {
  bottom: calc(var(--ss-mobile-tabbar-occupied-height, 80px) + var(--ss-mini-player-visual-height, 52px) + 12px);
}

body.ss-full-player-open .ss-native-app-update:not(.is-hard),
body.ss-player-sheet-open .ss-native-app-update:not(.is-hard),
body.ss-offline-visible .ss-native-app-update:not(.is-hard),
body.ss-pjax-loading .ss-native-app-update:not(.is-hard) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ss-native-app-update__card {
  width: min(430px, 100%);
  box-sizing: border-box;
  padding: 17px 17px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 21px;
  background: #232323;
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .44);
  pointer-events: auto;
  animation: ssNativeAppUpdateIn 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.ss-native-app-update__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
}

.ss-native-app-update__icon-wrap {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-left: 12px;
}

.ss-native-app-update__icon {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.ss-native-app-update__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #303030;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 0 2px #232323;
}

.ss-native-app-update__copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.ss-native-app-update__title,
.ss-native-app-update__meta {
  display: block;
}

.ss-native-app-update__title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.ss-native-app-update__meta {
  margin-top: 1px;
  color: #9c9c9c;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

.ss-native-app-update__note {
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #c6c6c6;
}

.ss-native-app-update__note-mark {
  display: inline-flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 7px;
  border: 1px solid #9f9f9f;
  border-radius: 50%;
  box-sizing: border-box;
  color: #9f9f9f;
  font-size: 6.5px;
  line-height: 1;
}

.ss-native-app-update__note-copy {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.ss-native-app-update__actions {
  display: flex;
  flex-direction: row;
  height: 45px;
  margin-top: 8px;
}

.ss-native-app-update__primary,
.ss-native-app-update__later {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ss-native-app-update__primary {
  flex: 1 1 auto;
  background: #f7f7f7;
  color: #181818;
}

.ss-native-app-update__later {
  flex: 0 0 92px;
  margin-right: 9px;
  background: transparent;
  color: #b9b9b9;
}

.ss-native-app-update__primary:focus-visible,
.ss-native-app-update__later:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .82);
  outline-offset: 2px;
}

.ss-native-app-update.is-hard {
  inset: 0;
  align-items: center;
  padding: max(18px, var(--ss-safe-area-top)) max(12px, var(--ss-safe-area-right)) max(18px, var(--ss-safe-area-bottom)) max(12px, var(--ss-safe-area-left));
  background: rgba(8, 8, 8, .82);
  pointer-events: auto;
}

body.ss-native-app-update-hard {
  overflow: hidden;
}

@keyframes ssNativeAppUpdateIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 760px) {
  .ss-native-app-update:not(.is-hard) {
    right: 24px;
    left: auto;
    bottom: 24px;
    width: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-native-app-update__card {
    animation: none;
  }
}
