.rb-floating-launcher {
  position: fixed !important;
  right: 18px;
  bottom: 18px;
  z-index: 2147483647 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #134f7f;
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.osr-custom-rewards__btn[data-rb-open] {
  position: relative;
  z-index: 2147483647;
}
.osr-custom-rewards__btn--primary,
.osr-custom-rewards__btn--primary:link,
.osr-custom-rewards__btn--primary:visited,
.osr-custom-rewards__btn--primary:hover,
.osr-custom-rewards__btn--primary:focus,
.osr-custom-rewards__btn--primary:active {
  color: #fff !important;
  text-decoration: none !important;
}
.osr-btn-primary,
.osr-btn-primary:link,
.osr-btn-primary:visited,
.osr-btn-primary:hover,
.osr-btn-primary:focus,
.osr-btn-primary:active,
.osr-signin-btn,
.osr-signin-btn:link,
.osr-signin-btn:visited,
.osr-signin-btn:hover,
.osr-signin-btn:focus,
.osr-signin-btn:active {
  color: #fff !important;
  text-decoration: none !important;
}

.rb-modal[hidden] { display: none !important; }
.rb-modal {
  position: fixed !important;
  inset: 0;
  z-index: 2147483646 !important;
  font-family: Arial, sans-serif;
  color: #1f2a33;
}
.rb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 36, .48);
}
.rb-panel {
  position: absolute;
  right: 18px;
  bottom: 76px;
  width: min(420px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 96px));
  overflow: auto;
  background: #fff;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
.rb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #edf1f4;
}
.rb-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.rb-subtitle {
  margin: 4px 0 0;
  color: #5f6f7a;
  font-size: 13px;
}
.rb-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #cfd9df;
  border-radius: 6px;
  background: #fff;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
}
.rb-login, .rb-account {
  padding: 16px 18px 18px;
}
.rb-label {
  display: block;
  margin: 10px 0 6px;
  color: #33434f;
  font-size: 13px;
  font-weight: 700;
}
.rb-row {
  display: flex;
  gap: 8px;
}
.rb-input {
  min-width: 0;
  flex: 1;
  height: 40px;
  border: 1px solid #c7d2da;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 15px;
}
.rb-primary, .rb-secondary, .rb-redeem {
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  height: 40px;
  font-weight: 700;
  cursor: pointer;
}
.rb-primary { background: #134f7f; color: #fff; }
.rb-secondary { background: #e9f0f5; color: #17364c; }
.rb-alert {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef6fb;
  color: #16384f;
  font-size: 14px;
}
.rb-alert.rb-error {
  background: #fff1f0;
  color: #8a1f11;
}
.rb-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: #f5f8fa;
  border: 1px solid #dde6ec;
  border-radius: 8px;
}
.rb-balance span, .rb-stats span {
  color: #5b6b76;
  font-size: 13px;
}
.rb-balance strong {
  font-size: 28px;
}
.rb-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}
.rb-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f5;
}
.rb-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.rb-redeem {
  background: #f0f5e9;
  color: #264a17;
  border: 1px solid #cfdec2;
}
.rb-redeem:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.rb-section-title {
  margin: 18px 0 8px;
  font-size: 15px;
}
.rb-ledger {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rb-ledger li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #eef2f5;
  font-size: 13px;
}

@media (max-width: 520px) {
  .rb-panel {
    top: max(16px, env(safe-area-inset-top));
    right: 8px;
    bottom: 68px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 92px - env(safe-area-inset-top));
  }
  .rb-row, .rb-actions {
    grid-template-columns: 1fr;
  }
  .rb-row {
    display: grid;
  }
}
