.ww-pwa-install {
  position: fixed;
  left: 50%;
  top: max(10px, env(safe-area-inset-top));
  bottom: auto;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(520px, calc(100vw - 18px));
  padding: 9px 10px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: #100804 url(fjoueur/bg_actions.jpg) top repeat-x;
  color: #f7d991;
  border: 1px solid rgba(255, 202, 89, .35);
  box-shadow: inset 0 0 18px #000, 0 12px 32px rgba(0, 0, 0, .65);
  font-family: Verdana, Arial, sans-serif;
}

.ww-pwa-notify {
  top: max(10px, env(safe-area-inset-top));
  bottom: auto;
}

@supports (top: env(safe-area-inset-top)) {
  html.ww-pwa-standalone.ww-pwa-ios {
    --ww-ios-status-top: max(env(safe-area-inset-top), 54px);
    background: #000;
  }

  html.ww-pwa-standalone.ww-pwa-ios body {
    padding-top: var(--ww-ios-status-top) !important;
    background-color: #000 !important;
    box-sizing: border-box;
  }

  html.ww-pwa-standalone.ww-pwa-ios body:before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--ww-ios-status-top);
    z-index: 2147483646;
    background: #000;
    pointer-events: none;
  }

  html.ww-pwa-standalone.ww-pwa-ios #GB_overlay {
    top: var(--ww-ios-status-top) !important;
    height: calc(100vh - var(--ww-ios-status-top)) !important;
  }

  html.ww-pwa-standalone.ww-pwa-ios #GB_window,
  html.ww-pwa-standalone.ww-pwa-ios .parlementer_avec,
  html.ww-pwa-standalone.ww-pwa-ios .modal_payment {
    top: var(--ww-ios-status-top) !important;
    max-height: calc(100vh - var(--ww-ios-status-top)) !important;
  }

  html.ww-pwa-standalone.ww-pwa-ios body.ww-mobile-hud-open #homeflex #hudleft {
    inset: auto 0 0 0 !important;
    top: var(--ww-ios-status-top) !important;
    height: calc(100dvh - var(--ww-ios-status-top)) !important;
    max-height: calc(100dvh - var(--ww-ios-status-top)) !important;
  }

  html.ww-pwa-standalone.ww-pwa-ios #GB_window .content,
  html.ww-pwa-standalone.ww-pwa-ios #GB_window iframe,
  html.ww-pwa-standalone.ww-pwa-ios .parlementer_avec iframe {
    max-height: calc(100vh - var(--ww-ios-status-top)) !important;
  }

}

.ww-pwa-install:before,
.ww-pwa-install:after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #ffca59, transparent);
  opacity: .65;
}

.ww-pwa-install:before { left: 4px; }
.ww-pwa-install:after { right: 4px; }

.ww-pwa-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 202, 89, .3), inset 0 0 10px #000;
}

.ww-pwa-mark img {
  display: block;
  width: 38px;
  height: 38px;
}

.ww-pwa-text {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
  text-shadow: 1px 1px 2px #000;
}

.ww-pwa-text strong {
  display: block;
  color: #ffd76d;
  font: 14px "Trajan Pro Regular", "Trebuchet MS", Verdana, sans-serif;
}

.ww-pwa-text span {
  display: block;
  margin-top: 2px;
  color: #d8c58f;
  font-size: 11px;
}

.ww-pwa-action,
.ww-pwa-ignore,
.ww-pwa-close {
  border: 0;
  color: #ffe5a8;
  background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 10px #000;
  cursor: pointer;
  text-shadow: 1px 1px 2px #000;
}

.ww-pwa-action {
  flex: 0 0 auto;
  min-width: 86px;
  padding: 8px 10px;
  font-weight: bold;
}

.ww-pwa-ignore {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 9px;
  color: #d8c58f;
}

.ww-pwa-close {
  position: absolute;
  top: -13px;
  right: -10px;
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 28px;
  border: 2px solid rgba(255, 226, 162, .75);
  border-radius: 50%;
  background: #2a0905;
  color: #ffe6b0;
  font-size: 22px;
  font-weight: bold;
  box-shadow: inset 0 0 10px #000, 0 3px 10px rgba(0,0,0,.7);
}

.ww-pwa-action:hover,
.ww-pwa-ignore:hover,
.ww-pwa-close:hover {
  color: #fff4cf;
}

.ww-pwa-footer-notify {
  display: none;
  margin-left: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #8f7f58;
  font-size: 9px;
  line-height: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-shadow: 1px 1px 2px #000;
}

html.ww-pwa-standalone.ww-pwa-can-notify .ww-pwa-footer-notify {
  display: inline;
}

.ww-pwa-footer-notify:hover {
  color: #d9c58f;
}

@media (max-width: 700px) {
  .ww-pwa-install {
    top: max(8px, env(safe-area-inset-top));
    bottom: auto;
    gap: 7px;
    padding: 9px 42px 9px 9px;
  }

  .ww-pwa-text strong {
    font-size: 12px;
  }

  .ww-pwa-text span {
    font-size: 10px;
  }

  .ww-pwa-action,
  .ww-pwa-ignore {
    min-width: 74px;
    padding: 7px 8px;
    font-size: 11px;
  }
}
