#rcp-banner,
#rcp-modal {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  padding: 18px;
}

#rcp-banner {
  inset: 0;
  align-items: flex-end;
  background: rgba(11, 13, 15, 0.16);
  animation: rcpFadeIn .22s ease-out;
}

#rcp-modal {
  inset: 0;
  align-items: center;
  background: rgba(11, 13, 15, 0.44);
  animation: rcpFadeIn .2s ease-out;
}

.rcp-hidden { display: none !important; }

.rcp-card {
  width: min(680px, calc(100vw - 32px));
  background: rgba(31, 35, 39, 0.96);
  color: #f2f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

#rcp-banner .rcp-card {
  padding: 14px 16px;
  transform: translateY(0);
  animation: rcpSlideUp .26s ease-out;
}

#rcp-banner h2,
#rcp-modal h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#rcp-banner p,
#rcp-modal p,
.rcp-embed-placeholder p {
  margin: 0;
  color: rgba(242, 244, 245, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.rcp-banner-meta {
  display: block;
}

.rcp-banner-copy {
  min-width: 0;
  max-width: none;
}

#rcp-banner .rcp-banner-copy p {
  max-width: none;
}

.rcp-link,
.rcp-footer-link,
.rcp-embed-placeholder a {
  color: #f2f4f5;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 244, 245, 0.24);
  transition: border-color .18s ease, opacity .18s ease;
}

.rcp-link:hover,
.rcp-footer-link:hover,
.rcp-embed-placeholder a:hover {
  border-color: rgba(242, 244, 245, 0.7);
  opacity: 1;
}

.rcp-subtle-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(242, 244, 245, 0.82);
}

.rcp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#rcp-banner .rcp-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

.rcp-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #f4f5f6;
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.rcp-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.rcp-btn:focus-visible,
.rcp-close:focus-visible,
.rcp-footer-link:focus-visible {
  outline: 2px solid rgba(255,255,255,.34);
  outline-offset: 2px;
}

.rcp-btn-primary {
  background: #f2f4f5;
  color: #171a1d;
  border-color: transparent;
}

.rcp-btn-primary:hover {
  background: #ffffff;
}

.rcp-btn-secondary {
  background: rgba(255,255,255,.08);
}

.rcp-btn-ghost {
  background: transparent;
  color: rgba(242,244,245,.88);
}

.rcp-btn-inline {
  margin-top: 12px;
}

.rcp-modal-card {
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: 18px;
  animation: rcpScaleIn .2s ease-out;
}

.rcp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rcp-close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #f2f4f5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}

.rcp-close:hover {
  background: rgba(255,255,255,.11);
  transform: rotate(90deg);
}

.rcp-category-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rcp-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  padding: 12px 14px;
}

.rcp-category-row strong {
  display: block;
  font-size: 14px;
  color: #fafbfb;
}

.rcp-category-row small {
  display: inline-block;
  margin-top: 2px;
  color: rgba(242,244,245,.58);
  font-size: 12px;
}

.rcp-category-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e9ecef;
}

.rcp-category-row-essential input[type="checkbox"] {
  opacity: .42;
  cursor: not-allowed;
}

.rcp-category-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rcp-embed-placeholder {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(31, 35, 39, 0.9);
  color: #f2f4f5;
  padding: 20px;
  border-radius: 14px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rcp-embed-inner {
  max-width: 520px;
}

.rcp-embed-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.rcp-restored-iframe {
  width: 100%;
  min-height: 315px;
  border: 0;
}

.rcp-footer-link-wrap {
  margin: 10px auto 0;
  padding: 0 18px 20px;
  text-align: center;
}

.rcp-footer-link {
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.rcp-menu-item {
  opacity: 1;
}

.rcp-menu-item a[data-rcp-action="open-settings"] {
  cursor: pointer;
}


@keyframes rcpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes rcpScaleIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  #rcp-banner,
  #rcp-modal {
    padding: 12px;
  }

  .rcp-card,
  #rcp-banner .rcp-card {
    width: min(100%, calc(100vw - 24px));
  }

  .rcp-banner-meta {
    flex-direction: column;
    align-items: stretch;
  }

  #rcp-banner .rcp-actions {
    width: 100%;
    justify-content: stretch;
  }

  .rcp-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .rcp-btn-ghost {
    flex-basis: 100%;
  }
}
