.av-support-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: #e53935;
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.av-support-launcher:hover,
.av-support-launcher:focus {
  background: #c62828;
  outline: 3px solid rgba(229, 57, 53, 0.22);
  outline-offset: 3px;
}

.av-support-launcher__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #e53935;
  font-size: 18px;
}

.av-support-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  background: rgba(15, 15, 15, 0.66);
  font-family: Roboto, Arial, sans-serif;
}

.av-support-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.av-support-modal.is-guiding {
  align-items: flex-end;
  justify-content: flex-end;
  background: transparent;
  pointer-events: none;
}

.av-support-dialog {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.av-support-modal.is-guiding .av-support-dialog {
  width: min(420px, calc(100vw - 44px));
  max-height: 380px;
  pointer-events: auto;
}

.av-support-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid #ececec;
  background: #111111;
  color: #ffffff;
}

.av-support-dialog__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.av-support-dialog__subtitle {
  margin: 4px 0 0;
  color: #d8d8d8;
  font-size: 13px;
}

.av-support-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.av-support-close:hover,
.av-support-close:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.av-support-dialog__body {
  position: relative;
  min-height: 560px;
  background: #f6f6f6;
}

.av-support-modal.is-guiding .av-support-dialog__body {
  min-height: 260px;
}

.av-support-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #222222;
  font-size: 16px;
  text-align: center;
}

.av-support-state.is-hidden {
  display: none;
}

.av-support-frame {
  display: none;
  width: 100%;
  height: min(640px, calc(100vh - 150px));
  min-height: 560px;
  border: 0;
  background: #000000;
}

.av-support-frame.is-ready {
  display: block;
}

.av-support-modal.is-guiding .av-support-frame {
  height: 300px;
  min-height: 260px;
}


.av-support-fallback {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.av-support-fallback:hover,
.av-support-fallback:focus {
  color: #ffffff;
  text-decoration: none;
  outline: 2px solid rgba(229, 57, 53, 0.45);
  outline-offset: 2px;
}

.av-support-fallback.is-ready {
  display: inline-flex;
}

body.av-support-modal-open {
  overflow: hidden;
}

body.av-support-guiding {
  overflow: auto;
}

.av-page-focus-target {
  position: relative;
  outline: 4px solid #fdd835 !important;
  outline-offset: 6px !important;
  border-radius: 8px;
  box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.24) !important;
}

.av-page-focus-ring {
  position: fixed;
  z-index: 2147483000;
  display: grid;
  place-items: start center;
  border: 5px solid #fdd835;
  border-radius: 999px;
  box-shadow: 0 0 0 10px rgba(229, 57, 53, 0.28), 0 0 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  animation: av-page-focus-pulse 1.25s ease-in-out infinite;
}

.av-page-focus-ring__label {
  position: absolute;
  top: -42px;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@keyframes av-page-focus-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 640px) {
  .av-support-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 8px 12px 8px 9px;
    font-size: 14px;
  }

  .av-support-launcher__label {
    max-width: 112px;
    white-space: normal;
    line-height: 1.15;
  }

  .av-support-modal.is-open {
    align-items: stretch;
    padding: 10px;
  }

  .av-support-dialog {
    max-height: calc(100vh - 20px);
  }

  .av-support-dialog__body,
  .av-support-frame {
    min-height: calc(100vh - 104px);
    height: calc(100vh - 104px);
  }

  .av-support-modal.is-guiding {
    padding: 8px;
  }

  .av-support-modal.is-guiding .av-support-dialog__body,
  .av-support-modal.is-guiding .av-support-frame {
    min-height: 220px;
    height: 240px;
  }

  .av-page-focus-ring__label {
    top: auto;
    bottom: -42px;
    max-width: 180px;
    white-space: normal;
  }
}
