/* CJ Boxes – Gutenberg Block Styles */

.is-style-cj-box-orange { --cj-accent: #ff6a00; --cj-bg: rgba(255, 106, 0, 0.08); }
.is-style-cj-box-green  { --cj-accent: #09ae4e; --cj-bg: rgba(9, 174, 78, 0.08); }
.is-style-cj-box-red    { --cj-accent: #E13011; --cj-bg: rgba(225, 48, 17, 0.08); }
.is-style-cj-box-gray   { --cj-accent: #A8B8BF; --cj-bg: rgba(168, 184, 191, 0.08); }

:is(
  .is-style-cj-box-orange,
  .is-style-cj-box-green,
  .is-style-cj-box-red,
  .is-style-cj-box-gray
){
  --cj-text:  #0f172a;
  --cj-muted: #475569;

  background: var(--cj-bg);
  border-left: 5px solid var(--cj-accent);
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 18px 0;

  color: var(--cj-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* highlight pentru bold */
:is(
  .is-style-cj-box-orange,
  .is-style-cj-box-green,
  .is-style-cj-box-red,
  .is-style-cj-box-gray
) strong {
  color: var(--cj-text);
}

/* scoate margin-bottom pe ultimul element din box (arata mai “tight”) */
:is(
  .is-style-cj-box-orange,
  .is-style-cj-box-green,
  .is-style-cj-box-red,
  .is-style-cj-box-gray
) > :last-child {
  margin-bottom: 0;
}

/* fix specific când stilul e pe Group block (conținutul e în inner container) */
.wp-block-group:is(
  .is-style-cj-box-orange,
  .is-style-cj-box-green,
  .is-style-cj-box-red,
  .is-style-cj-box-gray
) > .wp-block-group__inner-container > :last-child {
  margin-bottom: 0;
}