/**
 * World Map Distribution Widget Styles
 */

/* ========== WRAPPER ========== */
.wmd-wrapper {
    width: 100%;
}

/* ========== MAP CONTAINER ========== */
.wmd-map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* ========== MAP IMAGE ========== */
.wmd-map-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========== COUNTRIES BAR ========== */
.wmd-countries-bar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* ========== COUNTRIES LIST ========== */
.wmd-countries-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.wmd-countries-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* ========== COUNTRY ITEM ========== */
.wmd-country-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 4px;

}

/* ========== COUNTRY ICON ========== */
.wmd-country-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #e74c3c;
    line-height: 1;
}

.wmd-country-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.wmd-country-icon i {
    line-height: inherit;
}

/* ========== COUNTRY NAME ========== */
.wmd-country-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1024px) {
    .wmd-countries-bar {
        max-width: calc(100% - 30px);
        padding: 10px 16px;
    }

    .wmd-countries-list {
        gap: 16px;
    }

    .wmd-has-separator .wmd-country-item:not(:last-child)::after {
        right: -8px;
    }

    .wmd-country-name {
        font-size: 13px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 767px) {
    .wmd-countries-bar {
        padding: 10px 14px;
        border-radius: 6px;
    }

    .wmd-countries-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .wmd-country-item {
        gap: 4px;
        padding: 5px 10px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 480px) {
    .wmd-countries-bar {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 8px 12px;
    }

    .wmd-countries-list {
        gap: 12px;
    }

    .wmd-country-item {
        gap: 4px;
        padding: 4px 8px;
    }
}

/* ========== ELEMENTOR EDITOR FIXES ========== */
.elementor-editor-active .wmd-countries-list {
    overflow-x: visible;
}

/* ========== ANIMATION ========== */
.wmd-country-item {
    transition: opacity 0.2s ease;
}

.wmd-country-item:hover {
    opacity: 0.8;
}
