/* Phone Input with Country Code Styles */
.wms-phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wms-phone-input-wrapper .country-code-select {
    flex: 0 0 180px;
    min-width: 180px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wms-phone-input-wrapper .phone-number-input {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wms-phone-input-wrapper .country-code-select:focus,
.wms-phone-input-wrapper .phone-number-input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .wms-phone-input-wrapper {
        flex-direction: column;
    }

    .wms-phone-input-wrapper .country-code-select {
        flex: 1;
        width: 100%;
    }
}

/* For wms-form-control compatibility */
.wms-form-group .wms-phone-input-wrapper .country-code-select,
.wms-form-group .wms-phone-input-wrapper .phone-number-input {
    height: auto;
}

/* Bootstrap form-control compatibility */
.form-group .wms-phone-input-wrapper .country-code-select,
.form-group .wms-phone-input-wrapper .phone-number-input {
    height: calc(1.5em + 0.75rem + 2px);
}

.mb-3 .wms-phone-input-wrapper .country-code-select,
.mb-3 .wms-phone-input-wrapper .phone-number-input {
    height: calc(1.5em + 0.75rem + 2px);
}
