/* CM Footer-0 Block - Centralized Styles */

/* Footer container styles - Four selector pattern for SSOT */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer,
.editor-styles-wrapper .cm-footer,
.wp-block-w4ya-cm-footer-0.cm-footer,
.cm-footer {
    width: 100%;
    background-color: var(--cm-footer-bg-color, #22311d);
    color: var(--cm-footer-text-color, #e7eee3);
    display: flex;
    flex-wrap: wrap;
    min-height: 200px;
}

/* Section base styles */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .cm-footer-section,
.editor-styles-wrapper .cm-footer .cm-footer-section,
.wp-block-w4ya-cm-footer-0 .cm-footer-section,
.cm-footer .cm-footer-section {
    box-sizing: border-box;
    padding: 2rem 1rem;
}

/* Dynamic section widths based on enabled count */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer--1-sections .cm-footer-section,
.editor-styles-wrapper .cm-footer.cm-footer--1-sections .cm-footer-section,
.wp-block-w4ya-cm-footer-0.cm-footer--1-sections .cm-footer-section,
.cm-footer.cm-footer--1-sections .cm-footer-section {
    width: 100%;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer--2-sections .cm-footer-section,
.editor-styles-wrapper .cm-footer.cm-footer--2-sections .cm-footer-section,
.wp-block-w4ya-cm-footer-0.cm-footer--2-sections .cm-footer-section,
.cm-footer.cm-footer--2-sections .cm-footer-section {
    width: 50%;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer--3-sections .cm-footer-section,
.editor-styles-wrapper .cm-footer.cm-footer--3-sections .cm-footer-section,
.wp-block-w4ya-cm-footer-0.cm-footer--3-sections .cm-footer-section,
.cm-footer.cm-footer--3-sections .cm-footer-section {
    width: 33.333333%;
}

/* Company section styles */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .company-section,
.wp-block-w4ya-cm-footer-0 .company-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .company-section.align-left,
.wp-block-w4ya-cm-footer-0 .company-section.align-left {
    align-items: flex-start;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .company-section.align-right,
.wp-block-w4ya-cm-footer-0 .company-section.align-right {
    align-items: flex-end;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .company-section p,
.wp-block-w4ya-cm-footer-0 .company-section p {
    margin: 0.25rem 0;
    color: inherit;
}

/* Links section styles */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .links-section,
.wp-block-w4ya-cm-footer-0 .links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .links-section.align-left,
.wp-block-w4ya-cm-footer-0 .links-section.align-left {
    align-items: flex-start;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .links-section.align-right,
.wp-block-w4ya-cm-footer-0 .links-section.align-right {
    align-items: flex-end;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .links-section a,
.wp-block-w4ya-cm-footer-0 .links-section a {
    color: inherit;
    text-decoration: none;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .links-section a:hover,
.wp-block-w4ya-cm-footer-0 .links-section a:hover {
    text-decoration: underline;
}

/* Social section styles */
.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-section,
.wp-block-w4ya-cm-footer-0 .social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-section.align-left,
.wp-block-w4ya-cm-footer-0 .social-section.align-left {
    align-items: flex-start;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-section.align-right,
.wp-block-w4ya-cm-footer-0 .social-section.align-right {
    align-items: flex-end;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-icons,
.wp-block-w4ya-cm-footer-0 .social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-icon,
.wp-block-w4ya-cm-footer-0 .social-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-icon a,
.wp-block-w4ya-cm-footer-0 .social-icon a {
    line-height: 0;
    display: block;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-icon img,
.wp-block-w4ya-cm-footer-0 .social-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-label,
.wp-block-w4ya-cm-footer-0 .social-label {
    font-size: 12px;
    color: inherit;
}

/* Responsive styles */
@media (max-width: 768px) {
    .editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer--2-sections .cm-footer-section,
    .wp-block-w4ya-cm-footer-0.cm-footer--2-sections .cm-footer-section,
    .editor-styles-wrapper .wp-block-w4ya-cm-footer-0.cm-footer--3-sections .cm-footer-section,
    .wp-block-w4ya-cm-footer-0.cm-footer--3-sections .cm-footer-section {
        width: 100%;
    }

    .editor-styles-wrapper .wp-block-w4ya-cm-footer-0 .social-icons,
    .wp-block-w4ya-cm-footer-0 .social-icons {
        flex-wrap: wrap;
    }
}