.castv-browser-handoff {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 24px 0 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #3a3527;
  border-top: 5px solid #cc0011;
  background: #191919;
  color: #c5b685;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.castv-browser-handoff *, .castv-browser-handoff *::before, .castv-browser-handoff *::after { box-sizing: border-box; }
aside.castv-browser-handoff h3 { margin: 0 0 12px; color: #c5b685; font: 900 clamp(20px, 4vw, 26px)/1.15 Arial, Helvetica, sans-serif; text-transform: uppercase; text-align: center; }
aside.castv-browser-handoff p { margin: 12px 0; color: #c5b685; font-size: 16px; line-height: 1.5; }
.castv-browser-handoff .castv-browser-handoff__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.castv-browser-handoff .castv-browser-handoff__button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 1 1 180px; max-width: 300px; min-width: 0; width: auto; min-height: 48px;
  padding: 12px 20px; margin: 0; border: 2px solid #cc0011; border-radius: 40px;
  background: #cc0011; color: #c5b685; box-shadow: none;
  font: 800 15px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .02em;
  text-transform: uppercase; text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
}
.castv-browser-handoff .castv-browser-handoff__button--secondary { background: #191919; border-color: #c5b685; }
.castv-browser-handoff .castv-browser-handoff__button:hover { background: #a8000e; color: #c5b685; text-decoration: none; }
.castv-browser-handoff .castv-browser-handoff__button--secondary:hover { background: #29271f; }
.castv-browser-handoff .castv-browser-handoff__button:focus-visible,
.castv-browser-handoff input:focus-visible { outline: 3px solid #c5b685; outline-offset: 4px; }
.castv-browser-handoff .castv-browser-handoff__help { font-size: 14px; }
.castv-browser-handoff .castv-browser-handoff__status { font-weight: 700; }
.castv-browser-handoff .castv-browser-handoff__status:empty { display: none; }
.castv-browser-handoff .castv-browser-handoff__manual[hidden] { display: none; }
.castv-browser-handoff .castv-browser-handoff__manual label { display: block; color: #c5b685; font-size: 14px; font-weight: 700; text-align: left; }
.castv-browser-handoff input { display: block; width: 100%; height: auto; margin: 8px 0 0; padding: 12px; border: 1px solid #c5b685; border-radius: 4px; background: #0f0f0f; color: #c5b685; font: 16px/1.5 Arial, Helvetica, sans-serif; }
@media (max-width: 540px) {
  .castv-browser-handoff .castv-browser-handoff__actions { flex-direction: column; }
  .castv-browser-handoff .castv-browser-handoff__button { flex: none; width: 100%; max-width: none; }
}

#castv-public-push-test > [hidden] { display: none !important; }
.castv-browser-handoff .castv-browser-handoff__fallback { margin-top: 16px; color: #c5b685; }
.castv-browser-handoff .castv-browser-handoff__fallback summary { color: #c5b685; cursor: pointer; font: 700 14px/1.5 Arial, Helvetica, sans-serif; text-align: center; }
.castv-browser-handoff .castv-browser-handoff__fallback summary:focus-visible { outline: 2px solid #c5b685; outline-offset: 4px; }
.castv-browser-handoff .castv-browser-handoff__fallback > button { margin: 12px auto; }

/* The private phone page already supplies the full-width branded card. */
#castv-public-push-test > .castv-browser-handoff {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
