/* ===== Callout Box plugin =====
   All selectors scoped under [data-cb-type="callout-box"] so nothing leaks
   (previously the .edit affordance rules were global — they restyled every
   editable region on any page that loaded this plugin). */

/* Base */
[data-cb-type="callout-box"] {
    padding: 24px;
    border-left: 4px solid;
    margin: 20px 0;
}

/* Editable-region affordance (editor-side hover/focus highlight) */
[data-cb-type="callout-box"] .edit {
    transition: background-color 0.2s;
    border-radius: 3px;
}

body.data-editor [data-cb-type="callout-box"] .edit:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

[data-cb-type="callout-box"] .edit:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 3px;
    /* background-color: rgba(0, 123, 255, 0.1); */
}

/* Style Variants */
[data-cb-type="callout-box"].callout-info {
    background: #eef8ff;
    border-color: #8cccff;
}

[data-cb-type="callout-box"].callout-success {
    background: #f1faf2;
    border-color: #a0dda2;
}

[data-cb-type="callout-box"].callout-warning {
    background: #fff9ee;
    border-color: #ffcb7f;
}

[data-cb-type="callout-box"].callout-error {
    background: #fff4f5;
    border-color: #ffa39c;
}

/* Typography */
[data-cb-type="callout-box"] h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a1a1a;
}

[data-cb-type="callout-box"] p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
}

/* ── Dark mode (opt-in — commented out) ───────────────────────────────────
   Dark mode for a rendered block is the SITE's responsibility, not the plugin's.
   Uncomment and point the selector at whatever trigger your site uses — a class,
   [data-theme="dark"], @media (prefers-color-scheme: dark), etc.
   NOTE: `.dark` is also the ContentBuilder editor's own UI theme, so on a page
   that runs the editor, prefer a different class here.

.dark [data-cb-type="callout-box"].callout-info    { background: #0f2a3d; border-color: #2b6a8f; }
.dark [data-cb-type="callout-box"].callout-success { background: #12261a; border-color: #2f7a44; }
.dark [data-cb-type="callout-box"].callout-warning { background: #2b2410; border-color: #8a6a2a; }
.dark [data-cb-type="callout-box"].callout-error   { background: #2b1416; border-color: #8f3a37; }
.dark [data-cb-type="callout-box"] h3 { color: #f3f4f6; }
.dark [data-cb-type="callout-box"] p  { color: #cbd5e1; }
*/
