.pwa-float {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  background: #5A2639;
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
  box-shadow: 0 12px 30px rgba(90, 38, 57, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.18);
  max-width: calc(100vw - 24px);
}

.pwa-float.is-visible {
  display: flex;
  animation: pwaSlideUp 0.45s ease-out;
}

.pwa-float-copy {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.pwa-float-install,
.pwa-login-install {
  background: #F7B65A;
  color: #5A2639;
  border: 0;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.pwa-float-dismiss {
  background: transparent;
  border: 0;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.pwa-login-install-wrap {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-website-link,
.pwa-site-link {
  color: #5A2639;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pwa-website-link:hover,
.pwa-site-link:hover {
  text-decoration: underline;
}

.pwa-site-link {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 9998;
  background: #fff;
  color: #5A2639;
  border: 2px solid #5A2639;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(90, 38, 57, 0.18);
}

.login-container ~ #pwa-site-link,
.register-container ~ #pwa-site-link,
.forgot-container ~ #pwa-site-link {
  display: none;
}

.pwa-login-install {
  width: 100%;
  justify-content: center;
}

.pwa-login-install-wrap .pwa-website-link {
  display: inline-block;
  padding: 4px 8px;
}

.pwa-login-install.is-hidden,
.pwa-float.is-hidden {
  display: none !important;
}

.pwa-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.pwa-ios-overlay.is-open {
  display: flex;
}

.pwa-ios-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.pwa-ios-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.pwa-ios-header {
  background: #5A2639;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwa-ios-header h3 {
  margin: 0;
  font-size: 18px;
}

.pwa-ios-header p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.pwa-ios-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.pwa-ios-body {
  padding: 20px;
  overflow: auto;
}

.pwa-ios-guide {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
}

.pwa-ios-guide img {
  display: block;
  width: 100%;
  height: auto;
}

.pwa-ios-step {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #f8f4ef;
}

.pwa-ios-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #5A2639;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.pwa-ios-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #eee;
}

.pwa-ios-footer label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.pwa-ios-gotit {
  width: 100%;
  background: #F7B65A;
  color: #5A2639;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 80px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767px) {
  .pwa-float {
    bottom: 16px;
  }
  .pwa-float-copy {
    display: none;
  }
}

@media (min-width: 640px) {
  .pwa-ios-overlay {
    align-items: center;
  }
  .pwa-ios-modal {
    border-radius: 20px;
  }
}
