.contact-form-field .royalmac-phone-item {
    display: flex !important;
    grid-column: span 4 !important;
    gap: 0;
    min-width: 0;
    overflow: visible;
    width: 100%;
}

.contact-form-field .royalmac-phone-item input[type="tel"] {
    display: block;
    border-left: 0;
    max-width: none;
    min-width: 0;
    width: 100% !important;
}

.contact-form-field .royalmac-phone-control {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    width: auto;
}

.contact-form-field .royalmac-phone-control .wpcf7-form-control-wrap,
.contact-form-field .royalmac-phone-control-inner {
    display: block;
    min-width: 0;
    width: 100% !important;
}

.contact-form-field .royalmac-email-item {
    grid-column: span 4 !important;
}

.royalmac-country-selector {
    flex: 0 0 145px;
    min-width: 0;
    position: relative;
    width: 145px;
    z-index: 8;
}

.royalmac-country-selector.is-open {
    z-index: 40;
}

.royalmac-country-native {
    height: 1px !important;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 59px;
    width: 1px !important;
}

.contact-form-field .royalmac-country-button {
    align-items: center;
    background: transparent;
    border: 1px solid #b6b6b6;
    color: #777;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    height: 60px;
    justify-content: space-between;
    margin: 0;
    padding: 10px 14px;
    text-align: left;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%;
}

.contact-form-field .royalmac-country-button:hover,
.contact-form-field .royalmac-country-button:focus,
.royalmac-country-selector.is-open .royalmac-country-button {
    border-color: #41cc1d;
    box-shadow: inset 0 0 0 1px #41cc1d;
    outline: 0;
}

.royalmac-country-button-label {
    align-items: center;
    color: #777;
    display: flex;
    font-size: 14px;
    gap: 7px;
    min-width: 0;
    opacity: 1;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    visibility: visible;
    white-space: nowrap;
    z-index: 2;
}

.royalmac-country-chevron {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    flex: 0 0 auto;
    height: 8px;
    margin-left: 8px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
    width: 8px;
}

.royalmac-country-selector.is-open .royalmac-country-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.royalmac-country-dropdown {
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .14);
    left: 0;
    min-width: 285px;
    position: absolute;
    top: calc(100% + 6px);
    width: min(360px, 85vw);
}

.royalmac-country-search-wrap {
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    padding: 10px 12px;
    position: relative;
}

.royalmac-country-search-icon {
    border: 2px solid #555;
    border-radius: 50%;
    height: 14px;
    left: 18px;
    pointer-events: none;
    position: absolute;
    top: 20px;
    width: 14px;
}

.royalmac-country-search-icon::after {
    background: #555;
    content: '';
    height: 2px;
    left: 10px;
    position: absolute;
    top: 10px;
    transform: rotate(45deg);
    width: 7px;
}

.contact-form-field .royalmac-country-search {
    border: 0 !important;
    box-shadow: none !important;
    height: 38px !important;
    outline: 0;
    padding: 6px 8px 6px 34px !important;
}

.royalmac-country-list {
    list-style: none;
    margin: 0;
    max-height: 270px;
    overflow-y: auto;
    padding: 6px;
}

.royalmac-country-list li {
    margin: 0;
    padding: 0;
}

.royalmac-country-list button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #252525;
    cursor: pointer;
    display: grid;
    font-size: 14px;
    gap: 9px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.royalmac-country-list button:hover,
.royalmac-country-list button:focus {
    background: #f0f9ed;
    color: #215a12;
    outline: 0;
}

.royalmac-country-flag {
    font-size: 18px;
    line-height: 1;
}

.royalmac-country-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.royalmac-country-dial {
    color: #656565;
    font-variant-numeric: tabular-nums;
}

.royalmac-country-error {
    color: #dc3232;
    font-size: 12px;
    left: 0;
    line-height: 1.3;
    position: absolute;
    top: calc(100% + 3px);
    white-space: nowrap;
}

.royalmac-phone-error {
    color: #dc3232;
    font-size: 12px;
    left: 0;
    line-height: 1.3;
    position: absolute;
    top: calc(100% + 3px);
    white-space: nowrap;
}

.contact-form-field .royalmac-phone-control.is-invalid input[type="tel"] {
    border-color: #dc3232;
    box-shadow: inset 0 0 0 1px #dc3232;
}

.royalmac-country-selector.is-invalid .royalmac-country-button {
    border-color: #dc3232;
    box-shadow: inset 0 0 0 1px #dc3232;
}

@media only screen and (max-width: 425px) {
    .contact-form-field .royalmac-phone-item {
        grid-column: span 1 !important;
    }

    .contact-form-field .royalmac-email-item {
        grid-column: span 1 !important;
    }

    .royalmac-country-selector {
        flex-basis: 105px;
        width: 105px;
    }

    .contact-form-field .royalmac-country-button {
        font-size: 12px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .royalmac-country-dropdown {
        min-width: min(285px, calc(100vw - 60px));
    }
}
