/* R&C PWA install prompt */
.rc-pwa-banner {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1600;
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.85rem;
  background: #0B0B0D;
  color: #F7F5EF;
  border: 1px solid rgba(201, 150, 46, 0.55);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  max-height: min(70vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.rc-pwa-banner.is-visible {
  display: flex;
  animation: rcPwaIn 0.22s ease-out;
}

@keyframes rcPwaIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.rc-pwa-banner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #17171A;
}
@media (min-width: 480px) {
  .rc-pwa-banner img {
    width: 48px;
    height: 48px;
  }
}

.rc-pwa-banner .copy {
  flex: 1;
  min-width: 0;
}

.rc-pwa-banner .title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rc-pwa-banner .text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(247, 245, 239, 0.78);
}

.rc-pwa-banner .ios-steps {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: rgba(247, 245, 239, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.rc-pwa-banner .ios-steps li { margin: 0.15rem 0; }
.rc-pwa-banner .ios-steps strong { color: #E2B84F; }

.rc-pwa-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
@media (min-width: 420px) {
  .rc-pwa-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

.rc-pwa-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 420px) {
  .rc-pwa-btn { width: auto; }
}

.rc-pwa-btn-primary {
  background: #C9962E;
  color: #0B0B0D;
}

.rc-pwa-btn-primary:hover { background: #E2B84F; }

.rc-pwa-btn-ghost {
  background: transparent;
  color: rgba(247, 245, 239, 0.85);
  border: 1px solid rgba(247, 245, 239, 0.25);
}

.rc-pwa-btn-ghost:hover {
  border-color: #C9962E;
  color: #fff;
}

.rc-pwa-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(247, 245, 239, 0.65);
  font-size: 1.35rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.rc-pwa-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Lift above mobile bottom nav when present */
body.has-bottom-nav .rc-pwa-banner,
body.cp-body .rc-pwa-banner {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .rc-pwa-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100vw - 40px));
  }
  body.has-bottom-nav .rc-pwa-banner,
  body.cp-body .rc-pwa-banner {
    bottom: 20px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .rc-pwa-banner { display: none !important; }
}

/* Push enable confirmation modal */
.rc-push-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(11, 11, 13, .62);
  backdrop-filter: blur(3px);
}
.rc-push-modal[hidden] { display: none !important; }
.rc-push-modal-card {
  width: min(100%, 420px);
  background: #141416;
  color: #f7f5ef;
  border: 1px solid rgba(226, 184, 79, .4);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.rc-push-modal-card h3 {
  margin: 0 0 .55rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #e2b84f;
}
.rc-push-modal-card p {
  margin: 0 0 .65rem;
  color: rgba(247, 245, 239, .82);
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 600;
}
.rc-push-modal-note {
  color: rgba(247, 245, 239, .58) !important;
  font-size: .84rem !important;
}
.rc-push-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}
