/* CM Bullets Horz - Centralized CSS */
/* Single source of truth for both frontend and FSE styling */

/* CSS Custom Properties for dynamic values */
:root {
    --separator-color: #d25757;
    --separator-size: 6px;
    --separator-spacing: 15px;
}

/* Frontend and FSE Selectors - Single Source of Truth */
.cm-bullets-horz-wrapper,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper {
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    min-height: 50px; /* Minimum height for vertical centering */
}

/* Vertical alignment classes */
.cm-bullets-horz-wrapper.vertical-align-top,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper.vertical-align-top {
    align-items: flex-start;
}

.cm-bullets-horz-wrapper.vertical-align-center,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper.vertical-align-center {
    align-items: center;
}

.cm-bullets-horz-wrapper.vertical-align-bottom,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper.vertical-align-bottom {
    align-items: flex-end;
}

/* Paragraph content - matches original structure */
.cm-bullets-horz-wrapper p,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper p {
    margin: 0;
    padding: 0;
    flex: 1; /* Take full width in flex container */
}
 
/* Circle separators (bullets) - inherit variables from any parent */
.cm-circle-separator,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-circle-separator,
.wp-block-cm-bullets-horz .cm-circle-separator {
    display: inline-block !important;
    width: var(--separator-size, 6px) !important;
    height: var(--separator-size, 6px) !important;
    background-color: var(--separator-color, #d25757) !important;
    border-radius: 50% !important;
    margin: 0 var(--separator-spacing, 15px) !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    min-width: var(--separator-size, 6px) !important;
    max-width: var(--separator-size, 6px) !important;
    min-height: var(--separator-size, 6px) !important;
    max-height: var(--separator-size, 6px) !important;
}

/* Text alignment classes - frontend and FSE */
.text-align-left,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .text-align-left {
    text-align: left;
}

.text-align-center,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .text-align-center {
    text-align: center;
}

.text-align-right,
.block-editor-block-list__layout .wp-block-cm-bullets-horz .text-align-right {
    text-align: right;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .cm-circle-separator,
    .block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-circle-separator {
        display: none;
    }
    
    /* Mobile layout adjustments */
    .cm-bullets-horz-wrapper.mobile-layout p,
    .block-editor-block-list__layout .wp-block-cm-bullets-horz .cm-bullets-horz-wrapper.mobile-layout p {
        line-height: 1.6;
    }
}