/* Telefono numerio laukas su salies kodo pasirinkimu */

.jphone {
    position: relative;
    display: block;
    width: 100%;
}

/* salies pasirinkimas + numeris visada vienoje eiluteje, net jei tema
   laukui nurodo width: 100% - flex leidzia jam susitraukti */
.jphone-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}


/* originalus laukas: lieka formoje (name/id/type nekeiciami), tik nematomas */
.jphone .jphone-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* salies pasirinkimas: veliavele + natyvus <select> viename remelyje */
.jphone-country {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    float: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: 7px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.jphone-flag {
    display: inline-block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 20px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    vertical-align: middle;
    pointer-events: none;
}

.jphone-flag img {
    display: block;
    width: 20px;
    height: 14px;
    max-width: none;
    border: 0;
    border-radius: 2px;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    -o-object-fit: cover;
    object-fit: cover;
}

/* jei veliavos paveiksliuko nera - rodomas salies kodas tekstu */
.jphone-flag-text {
    width: auto;
    min-width: 20px;
    padding: 0 3px;
    font-size: 10px;
    font-weight: bold;
    color: #777;
    background: #eee;
    border-radius: 2px;
}

/* Plotis perskaiciuojamas JS pagal tikra srifta (zr. measureSelect), cia -
   atsargine reiksme. align-self: stretch reikalingas, kad tekstas butu
   vertikaliai centre, nepaisant temos nurodyto select padding. */
.jphone .jphone-select {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    -ms-flex-item-align: stretch;
    align-self: stretch;
    width: 88px;
    min-width: 0;
    height: auto;
    min-height: 28px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 17px 0 6px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
    color: #444;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
}

.jphone-select::-ms-expand {
    display: none;
}

.jphone-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    margin-top: -2px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

/* matomas laukelis - nacionalinis numeris */
.jphone .jphone-number {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    float: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* validacijos zinute ir temos klaidu tekstas (.text-danger) - eilute zemiau */
.jphone .text-danger,
.jphone-hint {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
}

.jphone-hint {
    color: #c7254e;
}

.jphone-invalid .jphone-number,
.jphone-invalid .jphone-country {
    border-color: #e4a0a0;
}

/* plotis apskaiciuojamas JS pagal si mazesni srifta */
@media only screen and (max-width: 480px) {
    .jphone .jphone-select {
        font-size: 12px;
    }
}
