/* ALBERO_DELIVERY_UX_V305_63_3
 * Scoped fixes only:
 * - all action buttons use full card width
 * - address suggestions stay attached to the input
 * - outside-zone notice remains compact
 * - right card height never stretches the map card
 */

.am-delivery-page .am-delivery-page__grid {
    align-items: start !important;
}

.am-delivery-page .am-delivery-page__map-card,
.am-delivery-page .am-delivery-page__check-card {
    align-self: start;
    width: 100%;
    min-width: 0;
}

.am-delivery-page .am-delivery-check__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.am-delivery-page .am-delivery-check__field {
    position: relative;
    min-width: 0;
}

.am-delivery-page .am-delivery-check input,
.am-delivery-page [data-am-delivery-submit],
.am-delivery-page .am-delivery-page__actions > a,
.am-delivery-page [data-am-delivery-external] {
    width: 100% !important;
    box-sizing: border-box;
}

.am-delivery-page [data-am-delivery-submit],
.am-delivery-page .am-delivery-page__actions > a,
.am-delivery-page [data-am-delivery-external] {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.am-delivery-page .am-delivery-page__menu-link {
    margin-top: 0 !important;
    padding: 0 20px;
}

.am-delivery-page .am-delivery-page__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.am-delivery-page .am-delivery-check__status {
    display: block !important;
    min-height: 0;
    margin-top: 8px;
    padding: 7px 10px !important;
    border-radius: 9px;
    font-size: 12px !important;
    line-height: 1.35 !important;
    background: rgba(18,18,18,.035);
}

.am-delivery-page .am-delivery-check__status.text-success {
    background: rgba(26,128,72,.08);
}

.am-delivery-page .am-delivery-check__status.text-danger {
    background: rgba(139,0,0,.065);
}

.am-delivery-page .am-delivery-page__outside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(154,110,0,.18);
    border-radius: 12px;
    background: rgba(255,239,187,.58);
    font-size: 12px;
    line-height: 1.35;
    box-sizing: border-box;
}

.am-delivery-page .am-delivery-page__outside.d-none {
    display: none !important;
}

.am-delivery-page .am-delivery-page__outside [data-am-delivery-external] {
    min-height: 46px;
    margin: 0 !important;
}

.am-delivery-page .am-delivery-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(18,18,18,.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18,18,18,.14);
    box-sizing: border-box;
}

.am-delivery-page .am-delivery-suggestions[hidden] {
    display: none !important;
}

.am-delivery-page .am-delivery-suggestions__item {
    display: block;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.am-delivery-page .am-delivery-suggestions__item:hover,
.am-delivery-page .am-delivery-suggestions__item.is-active,
.am-delivery-page .am-delivery-suggestions__item:focus-visible {
    outline: none;
    background: rgba(139,0,0,.07);
}

@media (max-width: 575.98px) {
    .am-delivery-page .am-delivery-suggestions {
        max-height: 210px;
    }
}