.mc-location-field {
    position: relative;
}

.mc-location-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    z-index: 9999;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 8px;

    margin-top: 4px;

    max-height: 240px;

    overflow-y: auto;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}

.mc-location-result {
    display: block;

    width: 100%;

    border: 0;

    background: #fff;

    text-align: left;

    padding: 10px 14px;

    cursor: pointer;

    font-size: 15px;
}

.mc-location-result:hover {
    background: #f5f5f5;
}

/* =========================================================
   LOCATION FIELD
   ========================================================= */

.mc-location-field {
    position: relative;
}

.mc-location-control {
    position: relative;
    width: 100%;
}


/* =========================================================
   INPUT
   ========================================================= */

.mc-location-control .mc-dfc-location-input {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   RESULTS DROPDOWN
   ========================================================= */

.mc-location-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    width: 100%;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);

    overflow-y: auto;
    max-height: 280px;

    z-index: 9999;

    display: none;
}


/* =========================================================
   RESULT ITEM
   ========================================================= */

.mc-location-results .mc-location-option {
    display: flex;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 16px;

    text-decoration: none;

    color: #37353A;

    background: #fff;

    border-bottom: 1px solid #eee;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    cursor: pointer;

    line-height: 1.5;
}


/* รายการสุดท้ายไม่ต้องมีเส้น */

.mc-location-results .mc-location-option:last-child {
    border-bottom: none;
}


/* Hover */

.mc-location-results .mc-location-option:hover {
    background: #f5f7ea;
}


/* =========================================================
   NAME
   ========================================================= */

.mc-location-results .mc-location-name {
    display: block;

    flex: 1;

    min-width: 0;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.5;

    white-space: normal;

    word-break: break-word;
}


/* =========================================================
   ENGLISH NAME
   ========================================================= */

.mc-location-results .mc-location-name-en {
    display: block;

    flex-shrink: 0;

    font-size: 13px;

    color: #777;

    line-height: 1.4;
}


/* =========================================================
   ZIPCODE
   ========================================================= */

.mc-location-results .mc-location-zipcode {
    display: block;

    flex-shrink: 0;

    min-width: 55px;

    text-align: right;

    font-size: 13px;

    color: #777;

    line-height: 1.4;
}


/* =========================================================
   LOADING / EMPTY / ERROR
   ========================================================= */

.mc-location-results .mc-location-loading,
.mc-location-results .mc-location-empty,
.mc-location-results .mc-location-error {
    display: block;

    padding: 14px 16px;

    font-size: 14px;

    line-height: 1.5;

    color: #777;

    background: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .mc-location-results {
        max-height: 240px;
    }


    .mc-location-results .mc-location-option {
        padding: 11px 14px;

        gap: 8px;
    }


    .mc-location-results .mc-location-name {
        font-size: 14px;
    }


    .mc-location-results .mc-location-name-en,
    .mc-location-results .mc-location-zipcode {
        font-size: 12px;
    }

}