/**
 * App Download Mobile Ads — standalone styles.
 */

.admoad-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999999;
  display: none;
  pointer-events: none;
}

/* Mobile + optional desktop preview */
@media (max-width: 767.98px) {
  .admoad-root.admoad-root--open {
    display: block;
    pointer-events: auto;
  }
}

.admoad-root[data-admoad-desktop-preview='1'].admoad-root--open {
  display: block !important;
  pointer-events: auto !important;
}

body.admoad-cta-shown {
  padding-bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.admoad-cta-shown {
    padding-bottom: 0;
  }
}

.admoad-panel {
  pointer-events: auto;
  overflow: visible;
  transition: transform 0.5s ease-out;
  will-change: transform;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
}

.admoad-panel.admoad-panel--hidden {
  transform: translateY(calc(100% + 4.5rem));
}

.admoad-panel.admoad-panel--shown {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .admoad-panel {
    transition-duration: 0.15s;
  }
}

.admoad-inner {
  overflow: visible;
  border-radius: 1rem 1rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 0;
  background: linear-gradient(to right, #0369a1, #0284c7, #075985);
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom)) 1rem;
  color: #fff;
}

@media (min-width: 640px) {
  .admoad-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

html.dark .admoad-inner {
  background: linear-gradient(to right, #0c4a6e, #075985, #0f172a);
}

.admoad-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admoad-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
}

.admoad-phone-link,
.admoad-phone-wrap {
  position: relative;
  margin-top: -4rem;
  display: block;
  width: 6.75rem;
  flex-shrink: 0;
  align-self: flex-end;
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .admoad-phone-link,
  .admoad-phone-wrap {
    margin-top: -4.25rem;
    width: 7.25rem;
  }
}

.admoad-phone-link:active,
.admoad-content--full-click .admoad-section-link:active .admoad-phone-wrap {
  transform: scale(0.98);
}

.admoad-section-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.admoad-section-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.admoad-content--full-click .admoad-install--visual {
  width: 100%;
  flex: none;
}

.admoad-content--full-click
  .admoad-section-link:active
  .admoad-install--visual {
  transform: scale(0.98);
}

.admoad-actions--skip-only {
  position: relative;
  z-index: 2;
}

.admoad-actions--skip-only .admoad-skip {
  width: 100%;
}

.admoad-phone-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 6px solid #020617;
  background: #020617;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  outline: 1px solid rgba(255, 255, 255, 0.15);
}

.admoad-phone-notch {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  height: 1rem;
  width: 36%;
  transform: translateX(-50%);
  border-radius: 0 0 0.75rem 0.75rem;
  background: #020617;
}

.admoad-phone-screen {
  position: relative;
  aspect-ratio: 9 / 18.5;
  width: 100%;
  background: #020617;
}

.admoad-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.admoad-phone-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #075985, #0f172a);
}

.admoad-phone-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.admoad-text {
  min-width: 0;
  flex: 1;
  padding-bottom: 1rem;
  text-align: left;
}

.admoad-text > * + * {
  margin-top: 0.75rem;
}

.admoad-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.admoad-subtitle {
  font-size: 0.875rem;
  line-height: 1.375;
  color: rgba(240, 249, 255, 0.95);
  margin: 0;
  margin-top: 0.25rem;
}

.admoad-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.admoad-install {
  display: inline-flex;
  min-height: 48px;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0c4a6e;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.admoad-install:active {
  transform: scale(0.98);
}

.admoad-install svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #0284c7;
}

.admoad-install span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admoad-skip {
  display: inline-flex;
  min-height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  text-align: center;
}

.admoad-skip:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.admoad-notice {
  font-size: 0.75rem;
  text-align: center;
  font-weight: 400;
  color: rgba(240, 249, 255, 0.95);
  margin: 0;
}
