/* Concept Notificări — popup. Culorile vin din setări (variabilele --bn-*), injectate inline. */
.cnotif-overlay {
  --bn-green: #00a04a; --bn-green-dark: #007a38; --bn-ink: #1d2b24; --bn-muted: #5b6b62; --bn-soft: #eef8f2;
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(12, 28, 20, .55); opacity: 0; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cnotif-overlay.is-open { opacity: 1; }
.cnotif {
  position: relative; box-sizing: border-box; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: var(--bn-ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  padding: 30px 28px 24px; text-align: center; font-size: 16px; line-height: 1.5;
  font-family: var(--bn-font, inherit);
  transform: translateY(12px) scale(.98); transition: transform .25s ease;
}
.cnotif--wide { max-width: 720px; }
.cnotif-overlay.is-open .cnotif { transform: none; }
.cnotif *, .cnotif *::before, .cnotif *::after { box-sizing: border-box; }
.cnotif::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--bn-green), var(--bn-bar2, var(--bn-green))); }

.cnotif__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bn-soft); color: var(--bn-green-dark); font: 400 26px/36px Arial, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cnotif__close:hover, .cnotif__close:focus-visible { background: var(--bn-green); color: #fff; outline: none; }
.cnotif__title { margin: 4px 36px 6px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bn-green-dark); }

.cnotif__body > * { margin: 0 0 12px; }
.cnotif__body > *:last-child { margin-bottom: 0; }
.cnotif__body p { color: var(--bn-ink); }
.cnotif__body h3, .cnotif__body h4 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; color: var(--bn-green-dark); text-transform: uppercase; letter-spacing: .04em; }
.cnotif__body img { max-width: 100%; height: auto; border-radius: 12px; }
.cnotif__body a:not(.wp-block-button__link) { color: var(--bn-green-dark); }
.cnotif__body .cnotif-lead { font-size: 18px; font-weight: 700; color: var(--bn-ink); margin-bottom: 4px; }
.cnotif__body .cnotif-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3ece6; font-size: 14px; color: var(--bn-muted); letter-spacing: .02em; }

/* Blocuri de bază din editor (homepage-ul nu încarcă stilurile Gutenberg). */
.cnotif__body .wp-block-columns { display: flex; gap: 16px; margin: 18px 0; align-items: stretch; }
.cnotif__body .wp-block-column { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--bn-soft); border: 1px solid #d6ecdf; border-radius: 14px; padding: 18px 16px; }
.cnotif__body .wp-block-column > * { margin: 0 0 8px; }
.cnotif__body .wp-block-column > .wp-block-buttons { margin-top: auto; padding-top: 8px; margin-bottom: 0; }
.cnotif__body .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cnotif__body .wp-block-button__link {
  /* !important: stilurile globale ale temei (has-white-background-color etc.) au !important și făceau butonul alb pe alb. */
  display: inline-block; padding: 11px 26px; border-radius: 999px; background: var(--bn-green) !important; color: #fff !important; border: 0 !important;
  font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; transition: background .15s;
}
.cnotif__body .wp-block-button__link:hover, .cnotif__body .wp-block-button__link:focus-visible { background: var(--bn-green-dark) !important; }
.cnotif__body p:empty { display: none; }
.cnotif__body .cnotif-more-link { margin-top: 10px; font-size: 14px; }
.cnotif__body .cnotif-more-link a { color: var(--bn-green-dark); font-weight: 600; }
.cnotif__body .wp-block-spacer { height: 8px !important; }
.cnotif__body .cnotif-price { font-size: 15px; color: var(--bn-muted); }
.cnotif__body .cnotif-price strong { font-size: 22px; color: var(--bn-ink); white-space: nowrap; }
.cnotif__body .cnotif-dates { font-weight: 600; }

@media (max-width: 600px) {
  .cnotif { padding: 26px 18px 18px; border-radius: 16px; }
  .cnotif__title { font-size: 21px; }
  .cnotif__body .wp-block-columns { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cnotif-overlay, .cnotif { transition: none; } }
