#branch-selector-popup {
    width: 380px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100%;
    display: none;
    z-index: 1000;
}

#branch-selector {
    max-width: 300px;           /* o el ancho que quieras */
}

/* Icono y flecha no deben crecer */
#branch-selector img,
#branch-selector-arrow {
    flex: 0 0 auto;
}

/* El texto ocupa el espacio restante y puede encogerse */
#branch-selector-title {
    flex: 1 1 auto;
    min-width: 0;               /* CLAVE en flex para permitir el elipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirm-box {
    background: #eee !important;
    border: 1px solid #888;
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pickup-map {
    height: 400px;
    width: 100%;
    min-width: 380px !important;
}

.map-view-container {
    display: flex;
    gap: 20px;
}

body.dir_ltr .pickup-row,
body.dir_rtl .pickup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

body.dir_ltr .pickup-row {
    direction: ltr;
}

body.dir_rtl .pickup-row {
    direction: rtl;
    flex-direction: row-reverse;
}

.my-custom-cluster-wrapper {
    background: transparent;
    border: none;
}

.my-custom-cluster {
    background-color: #1e87f0;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 3px #333;
}
/* Mobile */
@media (max-width: 960px) {
    #branch-selector-popup-mobile {
        width: min(90%, 380px) !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

    .pickup-map {
        height: 300px;
        min-width: 380px !important;
    }
}

/* Smaller */
@media (max-width: 640px) {
    #branch-selector-popup-mobile {
        width: min(90%, 380px) !important;
        min-width: min(90%, 380px) !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

    .pickup-map {
        height: 300px;
        min-width: 380px !important;
    }
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    z-index: 2;
    color: #999;
}
.dir_ltr .search-clear {
    right: 10px;
}
.dir_rtl .search-clear {
    right: 10px;
}

.view-toggle {
    gap: 8px;
}

.view-toggle-display .uk-button-small {
    padding: 4px 8px;
    border-radius: 6px !important;
}

.stores-container {
    max-height: 305px;
    overflow-y: auto;
}

.store-card {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.store-card:hover {
    border-color: #1e87f0;
    box-shadow: 0 2px 8px rgba(30, 135, 240, 0.1);
}

.store-card.store-card-selected {
    background-color: aliceblue;
}

.search-container {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.ukc-size-16 {
    width: 16px;
    height: 16px;
}

.ukc-border-danger {
    border: 1px solid #ff0000 !important;
}
.ukc-backround-partial {
    background-color: #FF9600;
}
.ukc-background-success {
    background-color: #008000;
}
