.mpwa-root {
  --mpwa-primary: #0f766e;
  color: #17202a;
  font-family: inherit;
  margin: 0 !important;
  max-width: none !important;
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
}

.mpwa-root *,
.mpwa-root *::before,
.mpwa-root *::after {
  box-sizing: border-box;
}

.mpwa-banner {
  align-items: center;
  background: var(--mpwa-primary);
  background: linear-gradient(135deg, var(--mpwa-primary), color-mix(in srgb, var(--mpwa-primary) 78%, #000));
  box-shadow: 0 4px 18px rgba(15, 23, 42, .18);
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 58px;
  padding: 9px 42px 9px 14px;
  position: relative;
  z-index: 1;
}

.mpwa-banner__message {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.mpwa-banner__open {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--mpwa-primary);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 11px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.mpwa-banner__open:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.mpwa-banner__open:hover,
.mpwa-banner__open:visited {
  color: var(--mpwa-primary);
  text-decoration: none;
}

.mpwa-banner__open:focus-visible,
.mpwa-banner__dismiss:focus-visible,
.mpwa-panel__close:focus-visible,
.mpwa-native-install:focus-visible,
.mpwa-download:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.mpwa-banner__dismiss {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}

.mpwa-overlay {
  background: rgba(2, 6, 23, .6);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity .28s ease;
  z-index: 2;
}

.mpwa-overlay.is-visible {
  opacity: 1;
}

.mpwa-panel {
  background: #f8fafc;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, .35);
  inset: 0 0 auto;
  max-height: 92dvh;
  overflow: hidden;
  position: fixed;
  transform: translateY(-105%);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
  z-index: 3;
}

.mpwa-panel.is-open {
  transform: translateY(0);
}

.mpwa-panel__header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 20px 16px;
}

.mpwa-eyebrow {
  color: var(--mpwa-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mpwa-panel h2,
.mpwa-panel h3,
.mpwa-panel p {
  margin-top: 0;
}

.mpwa-panel h2 {
  color: #0f172a;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.2;
  margin-bottom: 0;
}

.mpwa-panel__close {
  align-items: center;
  background: #eef2f6;
  border: 0;
  border-radius: 50%;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex: 0 0 40px;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
}

.mpwa-panel__body {
  max-height: calc(92dvh - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.mpwa-panel__intro {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.mpwa-native-install {
  align-items: center;
  background: var(--mpwa-primary);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--mpwa-primary) 28%, transparent);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  margin: 0 0 16px;
  padding: 13px 16px;
  width: 100%;
}

.mpwa-native-install[hidden] {
  display: none;
}

.mpwa-guides {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.mpwa-guide {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  padding: 15px;
}

.mpwa-guide.is-current-platform {
  border-color: color-mix(in srgb, var(--mpwa-primary) 45%, #e2e8f0);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--mpwa-primary) 12%, transparent);
}

.mpwa-guide__title {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
}

.mpwa-guide__title h3 {
  color: #0f172a;
  font-size: 17px;
  margin-bottom: 0;
}

.mpwa-platform-icon {
  align-items: center;
  background: #dff8f3;
  border-radius: 9px;
  color: var(--mpwa-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.mpwa-platform-icon--apple {
  background: #e2e8f0;
  color: #0f172a;
  font-family: Georgia, serif;
  font-style: italic;
}

.mpwa-guide ol {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding-left: 22px;
}

.mpwa-guide li + li {
  margin-top: 6px;
}

.mpwa-guide strong {
  color: #1e293b;
}

.mpwa-downloads {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.mpwa-download {
  align-items: flex-start;
  background: #111827;
  border-radius: 13px;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
  padding: 11px 12px;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease;
}

a.mpwa-download:active {
  transform: scale(.98);
}

.mpwa-download--apk {
  background: var(--mpwa-primary);
}

.mpwa-download--play {
  background: #111827;
}

.mpwa-download--disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .45;
}

.mpwa-download__small {
  font-size: 10px;
  line-height: 1.2;
  opacity: .75;
}

.mpwa-download strong {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.mpwa-panel__note {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  margin: 13px 2px 0;
  text-align: center;
}

body.mpwa-panel-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .mpwa-guides {
    grid-template-columns: 1fr 1fr;
  }

  .mpwa-panel__body,
  .mpwa-panel__header {
    padding-left: max(24px, calc((100% - 760px) / 2));
    padding-right: max(24px, calc((100% - 760px) / 2));
  }
}

@media (max-width: 390px) {
  .mpwa-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .mpwa-banner__open {
    align-self: flex-start;
  }

  .mpwa-downloads {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpwa-panel,
  .mpwa-overlay,
  .mpwa-download {
    transition: none;
  }
}
