/* Base styles for Company Map 8b6b1968 */

.cm-8b6b1968-wrapper {
    box-sizing: border-box;
    width: 100%;
}

.cm-8b6b1968-mother-wrapper {
    display: flex;
    width: 100%;
}

/* Alignment utilities */
.cm-8b6b1968-align-left .cm-8b6b1968-mother-wrapper {
    justify-content: flex-start;
}
.cm-8b6b1968-align-left .cm-8b6b1968-mother-card {
    text-align: left;
}
.cm-8b6b1968-align-center .cm-8b6b1968-mother-wrapper {
    justify-content: center;
}
.cm-8b6b1968-align-center .cm-8b6b1968-mother-card {
    text-align: center;
}
.cm-8b6b1968-align-right .cm-8b6b1968-mother-wrapper {
    justify-content: flex-end;
}
.cm-8b6b1968-align-right .cm-8b6b1968-mother-card {
    text-align: right;
}

/* Full Width Mother Card Modifier */
.cm-8b6b1968-mother-full-yes .cm-8b6b1968-mother-wrapper {
    display: block;
    width: 100%;
}
.cm-8b6b1968-mother-full-yes .cm-8b6b1968-mother-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Mother Card Styling */
.cm-8b6b1968-mother-card {
    display: inline-block;
    padding: 24px 40px;
    background-color: var(--e-global-color-primary, #333333);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    min-width: 280px;
}
.cm-8b6b1968-mother-card.cm-8b6b1968-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cm-8b6b1968-mother-card.cm-8b6b1968-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cm-8b6b1968-mother-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cm-8b6b1968-mother-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    font-weight: 500;
}

/* Branches Grid Setup */
.cm-8b6b1968-branches-grid {
    display: grid;
    width: 100%;
}

.cm-8b6b1968-branch-container {
    display: flex;
    flex-direction: column;
}

/* Branch Header */
.cm-8b6b1968-branch-header {
    margin-bottom: 15px;
}
.cm-8b6b1968-align-left .cm-8b6b1968-branch-header {
    text-align: left;
}
.cm-8b6b1968-align-center .cm-8b6b1968-branch-header {
    text-align: center;
}
.cm-8b6b1968-align-right .cm-8b6b1968-branch-header {
    text-align: right;
}

.cm-8b6b1968-branch-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--e-global-color-secondary, #555555);
    margin: 0;
}

.cm-8b6b1968-branch-subtitle {
    font-size: 0.85rem;
    color: #888888;
    margin-top: 4px;
}

/* Branch Companies (Cards Stack) */
.cm-8b6b1968-branch-companies {
    display: flex;
    flex-direction: column;
}

/* Company Card Styling */
.cm-8b6b1968-company-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    background-color: var(--e-global-color-accent, #fcfcfc);
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    text-decoration: none;
    box-sizing: border-box;
}

.cm-8b6b1968-company-card.cm-8b6b1968-clickable {
    cursor: pointer;
}

.cm-8b6b1968-company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

.cm-8b6b1968-company-share {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666666;
    margin-top: 4px;
}

/* Rounded Corners Modifier classes */
.cm-8b6b1968-corners-no .cm-8b6b1968-wrapper,
.cm-8b6b1968-corners-no .cm-8b6b1968-mother-card,
.cm-8b6b1968-corners-no .cm-8b6b1968-branch-container,
.cm-8b6b1968-corners-no .cm-8b6b1968-company-card {
    border-radius: 0 !important;
}

/* Default border-radius when enabled */
.cm-8b6b1968-corners-yes .cm-8b6b1968-mother-card {
    border-radius: 6px;
}
.cm-8b6b1968-corners-yes .cm-8b6b1968-company-card {
    border-radius: 6px;
}

/* Accessibility Focus States */
.cm-8b6b1968-clickable:focus-visible {
    outline: 2px solid var(--e-global-color-primary, #333333);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cm-8b6b1968-company-card,
    .cm-8b6b1968-mother-card.cm-8b6b1968-clickable {
        transition: none !important;
        transform: none !important;
    }
}
