/* ==========================================================================
   TCS — Arreglo de la "x" de limpiar de select2
   --------------------------------------------------------------------------
   Problema: la x (.select2-selection__clear) salia de 8px de ancho pegada a la
   flecha (x=1038 vs flecha en x=1046, sin separacion), porque el contenedor del
   texto solo reservaba 20px a la derecha y ahi ya esta la flecha. Ademas 8px es
   un objetivo imposible de tocar en un movil.

   Solucion: se reserva sitio a la derecha, la x se posiciona absoluta a la
   izquierda de la flecha y se le da tamano, color y area de toque.
   ========================================================================== */

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 48px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    float: none;
    margin: 0;
    width: 20px;
    height: 20px;
    line-height: 19px;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: #94A3B8;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #B91C1C;
    background-color: #FEE2E2;
}

/* En un campo bloqueado (pais fijo) la x no se puede pulsar: se oculta para no
   ensuciar. El JS le pone la clase al bloquear. */
.tcs-select-fijo .select2-selection__clear {
    display: none !important;
}

/* En movil, un poco mas de area de toque. */
@media (max-width: 575.98px) {
    .select2-container--default .select2-selection--single .select2-selection__clear {
        width: 24px;
        height: 24px;
        line-height: 23px;
        font-size: 16px;
        right: 28px;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-right: 54px;
    }
}
