#oemInstallPopup {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  font-family: Inter, Arial, sans-serif;
}

#oemInstallPopup.is-visible {
  display: block;
}

#oemInstallPopup[dir="rtl"] {
  font-family: Cairo, Arial, sans-serif;
}

#oemInstallPopup .oem-install-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

#oemInstallPopup .oem-install-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px 24px 24px;
  border: 1px solid #ffc800;
  border-radius: 22px;
  background: linear-gradient(145deg, #202427, #0b0d0f);
  color: #fff;
  text-align: center;
  box-shadow: 0 15px 55px rgba(0, 0, 0, 0.5);
  animation: oemInstallIn 0.3s ease;
}

@keyframes oemInstallIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

#oemInstallPopup .oem-install-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#oemInstallPopup .oem-install-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  direction: ltr;
}

#oemInstallPopup .oem-install-brand img {
  width: 92px;
  height: 36px;
  object-fit: contain;
}

#oemInstallPopup .oem-install-brand span {
  color: #ffc800;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

#oemInstallPopup .oem-install-car {
  display: block;
  width: 100%;
  height: 145px;
  margin: 18px auto 8px;
  object-fit: contain;
}

#oemInstallPopup h2 {
  margin: 10px 0;
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
}

#oemInstallPopup p {
  margin: 0;
  color: #b7c0c4;
  font-size: 15px;
  line-height: 1.8;
}

#oemInstallPopup .oem-install-steps {
  margin-top: 14px;
  padding: 15px;
  border-radius: 12px;
  background: #151b1e;
  color: #d5dde1;
  white-space: pre-line;
  text-align: start;
}

#oemInstallPopup .oem-install-primary {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: #ffc800;
  color: #101010;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

#oemInstallPopup .oem-install-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

#oemInstallPopup .oem-install-later {
  margin-top: 12px;
  padding: 10px 20px;
  border: 0;
  background: transparent;
  color: #b7c0c4;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 380px) {
  #oemInstallPopup .oem-install-card {
    padding: 26px 18px 18px;
  }

  #oemInstallPopup h2 {
    font-size: 20px;
  }
}
