/* Instant Bidyear realtime toasts — light theme (matches Bidyear UI) */
.notyf__toast.bidyear-rt-toast {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  padding: 0 !important;
  max-width: min(380px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.notyf__toast.bidyear-rt-toast--message {
  border-color: #bae6fd;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.14), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.notyf__toast.bidyear-rt-toast--bid {
  border-color: #ddd6fe;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.notyf__toast.bidyear-rt-toast--alert {
  border-color: #fed7aa;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.notyf__toast.bidyear-rt-toast .notyf__wrapper {
  padding: 0 !important;
}

.notyf__toast.bidyear-rt-toast .notyf__message {
  padding: 0 !important;
  color: #0f172a;
}

.bidyear-rt-toast-inner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 2.35rem 0.95rem 1rem;
}

.bidyear-rt-toast-icon-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.bidyear-rt-toast-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.15rem;
}

.bidyear-rt-toast--message .bidyear-rt-toast-icon {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.bidyear-rt-toast--bid .bidyear-rt-toast-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.bidyear-rt-toast--alert .bidyear-rt-toast-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.bidyear-rt-toast-timer {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.bidyear-rt-toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.bidyear-rt-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--by-text, #0f172a);
}

.bidyear-rt-toast-msg.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bidyear-rt-toast-msg.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

button.bidyear-rt-toast-more {
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

a.bidyear-rt-toast-cta,
.bidyear-rt-toast-cta {
  margin-top: 0.35rem;
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2563eb !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

a.bidyear-rt-toast-cta:hover,
.bidyear-rt-toast-cta:hover {
  color: #1d4ed8 !important;
}

.notyf__toast.bidyear-rt-toast .notyf__dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  height: 1.5rem;
  width: 1.5rem;
  margin: 0;
  z-index: 3;
}

.notyf__toast.bidyear-rt-toast .notyf__dismiss-btn {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  background: transparent !important;
}

.notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
.notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after {
  background: #64748b !important;
}

/* Shared notification title (inbox, bell, admin list) — theme-aware */
.bidyear-notification-title {
  color: var(--by-text, var(--bs-heading-color, #0f172a));
}

html[data-bidyear-theme="dark"] .bidyear-notification-title,
[data-bidyear-theme="dark"] .bidyear-notification-title,
html[data-bs-theme="dark"] .bidyear-notification-title,
[data-bs-theme="dark"] .bidyear-notification-title,
body.bidyear-dark .bidyear-notification-title {
  color: var(--by-text, var(--bs-heading-color, #f8fafc)) !important;
}

/* Explicit light title on white toast (avoids inheriting dark page --by-text onto light toast) */
.notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title {
  color: #0f172a !important;
}

.notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg {
  color: #475569 !important;
}

.notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer {
  color: #64748b !important;
}

/* Dark theme — readable text (Bidyear theme + admin Bootstrap dark) */
html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast,
body.bidyear-dark .notyf__toast.bidyear-rt-toast {
  --by-text: #f8fafc;
  --by-text-muted: #e2e8f0;
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__message,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__message,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__message,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__message,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .notyf__message {
  color: #e2e8f0 !important;
}

html[data-bidyear-theme="dark"] .bidyear-rt-toast-title,
[data-bidyear-theme="dark"] .bidyear-rt-toast-title,
html[data-bs-theme="dark"] .bidyear-rt-toast-title,
[data-bs-theme="dark"] .bidyear-rt-toast-title,
body.bidyear-dark .bidyear-rt-toast-title,
html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-title {
  color: #f8fafc !important;
}

html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-msg,
.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .bidyear-rt-toast-msg {
  color: #e2e8f0 !important;
}

html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .bidyear-rt-toast-timer,
.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .bidyear-rt-toast-timer {
  color: #94a3b8 !important;
}

.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark {
  --by-text: #f8fafc;
  --by-text-muted: #e2e8f0;
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .bidyear-rt-toast-title {
  color: #f8fafc !important;
}

.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark a.bidyear-rt-toast-cta,
.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .bidyear-rt-toast-cta {
  color: #93c5fd !important;
}

.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .notyf__dismiss-btn::before,
.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark .notyf__dismiss-btn::after {
  background: #e2e8f0 !important;
}

html[data-bidyear-theme="dark"] button.bidyear-rt-toast-more,
[data-bidyear-theme="dark"] button.bidyear-rt-toast-more,
html[data-bs-theme="dark"] button.bidyear-rt-toast-more,
[data-bs-theme="dark"] button.bidyear-rt-toast-more,
body.bidyear-dark button.bidyear-rt-toast-more,
.notyf__toast.bidyear-rt-toast.bidyear-rt-toast--theme-dark button.bidyear-rt-toast-more {
  color: #4ade80;
}
html[data-bidyear-theme="dark"] a.bidyear-rt-toast-cta,
html[data-bidyear-theme="dark"] .bidyear-rt-toast-cta,
[data-bidyear-theme="dark"] a.bidyear-rt-toast-cta,
[data-bidyear-theme="dark"] .bidyear-rt-toast-cta,
html[data-bs-theme="dark"] a.bidyear-rt-toast-cta,
html[data-bs-theme="dark"] .bidyear-rt-toast-cta,
[data-bs-theme="dark"] a.bidyear-rt-toast-cta,
[data-bs-theme="dark"] .bidyear-rt-toast-cta,
body.bidyear-dark a.bidyear-rt-toast-cta,
body.bidyear-dark .bidyear-rt-toast-cta {
  color: #93c5fd !important;
}

html[data-bidyear-theme="dark"] a.bidyear-rt-toast-cta:hover,
html[data-bidyear-theme="dark"] .bidyear-rt-toast-cta:hover,
[data-bidyear-theme="dark"] a.bidyear-rt-toast-cta:hover,
[data-bidyear-theme="dark"] .bidyear-rt-toast-cta:hover,
html[data-bs-theme="dark"] a.bidyear-rt-toast-cta:hover,
html[data-bs-theme="dark"] .bidyear-rt-toast-cta:hover,
[data-bs-theme="dark"] a.bidyear-rt-toast-cta:hover,
[data-bs-theme="dark"] .bidyear-rt-toast-cta:hover,
body.bidyear-dark a.bidyear-rt-toast-cta:hover,
body.bidyear-dark .bidyear-rt-toast-cta:hover {
  color: #bfdbfe !important;
}

html[data-bidyear-theme="dark"] .bidyear-rt-toast-icon,
[data-bidyear-theme="dark"] .bidyear-rt-toast-icon,
html[data-bs-theme="dark"] .bidyear-rt-toast-icon,
[data-bs-theme="dark"] .bidyear-rt-toast-icon,
body.bidyear-dark .bidyear-rt-toast-icon {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
html[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
[data-bidyear-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
html[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
[data-bs-theme="dark"] .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::before,
body.bidyear-dark .notyf__toast.bidyear-rt-toast .notyf__dismiss-btn::after {
  background: #cbd5e1 !important;
}
