/* Modal Delivery Address — City selector + Address autocomplete */

/* Section labels */
.mda-section {
    margin-bottom: 16px;
}

.mda-label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1523;
    margin-bottom: 8px;
}

.mda-label-hint {
    font-weight: 400;
    color: #A09BA6;
}

/* Input wrapper */
.mda-input-wrap {
    position: relative;
    margin-bottom: 4px;
}

.mda-input-wrap--address {
    margin-bottom: 0;
}

/* Full-width input */
.mda-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #E0DDE4;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mda-input:focus {
    border-color: #1A1523;
}

.mda-input::placeholder {
    color: #A09BA6;
}

/* Clear button inside input */
.mda-input-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #A09BA6;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.mda-input-clear:hover {
    color: #1A1523;
}

/* City list — visible by default, hidden only when filter yields no results */
.mda-city-list {
    display: block;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.mda-city-list.is-hidden {
    display: none;
}

.mda-city-list .select__item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #F5F3F7;
    transition: background-color 0.15s;
}

.mda-city-list .select__item:hover {
    background: #F5F3F7;
}

.mda-city-list .select__item[data-selected="true"] {
    color: #FF6666;
    font-weight: 500;
}

/* Address section (separator from city) */
.mda-address-section {
    padding-top: 16px;
    border-top: 1px solid #F5F3F7;
}

/* Address autocomplete results */
.mda-address-results {
    max-height: 200px;
    overflow-y: auto;
}

.mda-address-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #F5F3F7;
    transition: background-color 0.15s;
}

.mda-address-item:hover {
    background: #F5F3F7;
}

.mda-address-item:last-child {
    border-bottom: none;
}

/* Error message */
.mda-error {
    display: none;
    padding: 12px 16px;
    background: #FFF0F0;
    border-radius: 12px;
    color: #CC3333;
    font-size: 14px;
    margin-bottom: 16px;
}

.mda-error.is-visible {
    display: block;
}

/* Footer with full-width submit button */
.cv-modal__footer {
    margin-bottom: 16px;
}

.cv-modal__footer .cv-button--full {
    width: 100%;
}

/* Hint text */
.cv-modal__hint {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #FFF8F0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #6B6773;
}

.cv-modal__hint-icon {
    flex-shrink: 0;
    font-size: 18px;
}

/* ── Header pill address truncation ── */
.searchPill__cityName {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .searchPill__cityName {
        max-width: 150px;
    }
}

/* Desktop city+address label truncation */
.sCityStatus__city {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
