.country-select {
    position: relative;
    display: inline-block
}

.country-select * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.country-select .hide {
    display: none
}

.country-select .v-hide {
    visibility: hidden
}

.country-select .selected-flag {
    z-index: 1;
    position: relative;
    width: 36px;
    height: 100%;
    padding: 0 0 0 8px
}

.country-select .selected-flag .flag {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto
}

.country-select .selected-flag .arrow {
    position: absolute;
    top: 50%;
    margin-top: -2px;
    right: -14px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #555
}

.country-select .selected-flag .arrow.up {
    border-top: none;
    border-bottom: 4px solid #555
}

.country-select .country-list {
    position: absolute;
    z-index: 2;
    list-style: none;
    text-align: left;
    right: -14px;
    top: 40px;
    padding: 0;
    width: 200px;
    max-height: 346px;
    margin: 0 0 0 -1px;
    -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    background-color: white;
    border: 1px solid #ccc;
    white-space: nowrap;
    overflow: hidden;
}

.country-select .country-list .flag {
    display: inline-block;
    width: 22px;
}

@media (max-width: 500px) {
    .country-select .country-list {
        white-space: normal
    }
}

.country-select .country-list .divider {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc
}

.country-select .country-list .country {
    padding: 8px 10px;
    border-bottom: 1px solid #dee2e6;
    
}

.country-select .country-list .country.highlight {
    background-color: rgba(0, 0, 0, 0.05)
}

.country-select .country-list .flag,
.country-select .country-list .country-name {
    vertical-align: middle
}

.country-select .country-list .flag {
    margin-right: 10px
}

.country-select.inside input,
.country-select.inside input[type=text] {
    display: none;
}

.country-select.inside .selected-flag {
    width: 35px
}

.country-select.inside .flag-dropdown:hover {
    cursor: pointer
}

.country-select.inside .flag-dropdown:hover .selected-flag {
    background-color: rgba(0, 0, 0, 0.05)
}

.country-select.inside input[disabled] + .flag-dropdown:hover,
.country-select.inside input[readonly] + .flag-dropdown:hover {
    cursor: default
}

.country-select.inside input[disabled] + .flag-dropdown:hover .selected-flag,
.country-select.inside input[readonly] + .flag-dropdown:hover .selected-flag {
    background-color: transparent
}

.country-select .flag {
    -webkit-box-shadow: 0px 0px 1px 0px #888;
    box-shadow: 0px 0px 1px 0px #888;
    background-image: url("../img/flags@2x.png");
    background-repeat: no-repeat;
    background-color: #dbdbdb;
    background-position: 0px 0
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
    .country-select .flag {
        background-image: url("../img/flags@2x.png")
    }
}

.country-select .flag {
    width: 22px;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
    .country-select .flag {
        background-size: 5630px 15px
    }
}

.country-select .flag.in {
    height: 22px;
     background-image: url(../img/in.svg)
}

.country-select .flag.ca {
    height:22px;
    background-image: url(../img/ca.svg);
}

.country-select .flag.us {
    height: 22px;
    background-image: url(../img/us.svg);

}

.country-select .flag.gb {
    height: 22px;
    background-image: url(../img/gb.svg);
}

.country-select .flag.fr {
    height: 22px;
    background-image: url(../img/fr.svg);
}

.country-select .flag.de {
    height: 22px;
    background-image: url(../img/de.svg);
}

.country-select .flag.it {
    height: 22px;
    background-image: url(../img/it.svg);
}

.country-select .flag.es {
   height: 22px;
    background-image: url(../img/es.svg);
}
