.urrpp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 21, 32, 0.72);
}

.urrpp-modal.is-visible {
  display: flex;
}

.urrpp-modal-card {
  width: min(100%, 460px);
  border-radius: 20px;
  background: var(--body-bg, #fff);
  color: var(--body-color, #14233c);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.urrpp-modal-head {
  padding: 18px 22px 10px;
}

.urrpp-modal-body {
  padding: 0 22px 22px;
}

.urrpp-modal-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.urrpp-modal-kpis.x-hidden {
  display: none !important;
}

.urrpp-kpi {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 35, 60, 0.05);
}

.urrpp-kpi span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.urrpp-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.urrpp-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.urrpp-modal-actions .btn {
  min-width: 110px;
}

.urrpp-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  z-index: 99999;
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 35, 60, 0.94);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.urrpp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.publisher .publisher-footer-buttons {
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.urrpp-breakdown {
  order: 1;
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(96, 111, 228, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(96, 111, 228, 0.10), rgba(96, 111, 228, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.urrpp-breakdown.x-hidden {
  display: none !important;
}

.urrpp-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.urrpp-breakdown-title {
  font-size: 13px;
  font-weight: 700;
}

.urrpp-breakdown-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(96, 111, 228, 0.16);
  color: var(--body-color, #14233c);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.urrpp-breakdown-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
}

.urrpp-breakdown-meta strong {
  font-weight: 700;
}

.urrpp-breakdown-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.72;
}

.publisher .publisher-footer-buttons > .btn-group,
.publisher .publisher-footer-buttons > .d-grid {
  order: 2;
  flex: 0 0 auto;
}

body.night-mode .urrpp-breakdown {
  border-color: rgba(96, 111, 228, 0.22);
  background: linear-gradient(180deg, rgba(96, 111, 228, 0.16), rgba(96, 111, 228, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@media (max-width: 767px) {
  .publisher .publisher-footer-buttons {
    align-items: stretch;
  }
}
