.oc-bu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

html.oc-bu-locked,
body.oc-bu-locked {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

.oc-bu-overlay.oc-bu-visible {
  opacity: 1;
  visibility: visible;
}

.oc-bu-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 28px 22px;
  border-radius: 14px;
  background: #fff;
  color: #202124;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.oc-bu-overlay.oc-bu-visible .oc-bu-modal {
  transform: translateY(0) scale(1);
}

.oc-bu-forced {
  pointer-events: auto;
}

.oc-bu-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--bu-accent, #4285f4);
  background: color-mix(in srgb, var(--bu-accent, #4285f4) 12%, white);
}

.oc-bu-icon svg {
  width: 32px;
  height: 32px;
}

.oc-bu-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.oc-bu-text {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3c4043;
}

.oc-bu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-bu-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.oc-bu-btn-primary {
  background: var(--bu-accent, #4285f4);
  color: #fff;
}

.oc-bu-btn-primary:hover {
  filter: brightness(0.95);
}

.oc-bu-btn-primary:disabled,
.oc-bu-btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.oc-bu-overlay.oc-bu-mobile {
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
}

.oc-bu-overlay.oc-bu-mobile .oc-bu-modal {
  pointer-events: auto;
}

.oc-bu-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #80868b;
}

.oc-bu-modal[data-browser="firefox"] .oc-bu-btn-primary {
  background: #ff7139;
}

.oc-bu-modal[data-browser="edge"] .oc-bu-btn-primary {
  background: #0078d4;
}

.oc-bu-modal[data-browser="safari"] .oc-bu-btn-primary {
  background: #006cff;
}

@media (prefers-color-scheme: dark) {
  .oc-bu-modal {
    background: #292a2d;
    color: #e8eaed;
  }

  .oc-bu-text {
    color: #bdc1c6;
  }

  .oc-bu-foot {
    color: #9aa0a6;
  }
}
