/* RG COMPANY tariff purchase-button stub 2026-08-05. */
.subscription-buy {
  cursor: pointer !important;
  opacity: 1 !important;
  color: var(--text) !important;
  background: color-mix(in srgb, var(--panel) 90%, var(--text) 10%) !important;
  border-color: var(--line-strong) !important;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}

.subscription-buy:hover,
.subscription-buy:focus-visible {
  color: var(--text) !important;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 18%) !important;
  border-color: color-mix(in srgb, var(--line-strong) 68%, var(--text) 32%) !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: translateY(-1px) !important;
}

.subscription-buy:active {
  transform: translateY(0) !important;
}

:root[data-theme='light'] .subscription-buy {
  background: #20242c !important;
  border-color: #20242c !important;
  color: #ffffff !important;
}

:root[data-theme='light'] .subscription-buy:hover,
:root[data-theme='light'] .subscription-buy:focus-visible {
  background: #11151b !important;
  border-color: #11151b !important;
  color: #ffffff !important;
}

.payment-stub-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50000;
  width: min(calc(100vw - 28px), 440px);
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong, var(--panel)) 96%, transparent);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.payment-stub-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .subscription-buy,
  .payment-stub-toast { transition: none !important; }
}
