/* ============================================================
   Modal "Xác nhận địa chỉ giao hàng" cho chatbot web widget — COPY
   NGUYÊN VẸN CSS của #guestAddressConfirmModal (core_user/ecommerce/
   checkout.php) — KHÔNG tự thiết kế lại. Class .guest-* / .addrx-*
   giữ nguyên tên gốc (dùng chung được vì đây là style thuần, không
   có xung đột JS) để bám sát 100% giao diện thật đang chạy ở /checkout.
   ============================================================ */
.guest-addr-suggest-wrap {
    position: relative;
}
.addrx-suggest-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
    max-height: 220px;
    overflow-y: auto;
    font-size: .85rem;
    position: fixed;
    z-index: 10250;
}
.addrx-suggest-list--compact {
    /* Nằm trong .modal-dialog (transform:scale() khi modal mở) — dùng absolute
       neo theo wrapper position:relative sát cạnh input thay vì fixed, giống
       nguyên bản checkout.php (xem comment gốc ở đó). */
    position: absolute !important;
    max-height: 140px;
    z-index: 10260;
}
.addrx-suggest-item {
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #374151;
    line-height: 1.4;
}
.addrx-suggest-item-main {
    font-weight: 500;
    font-size: .875rem;
    color: #111827;
}
.addrx-suggest-item-sub {
    font-size: .78rem;
    color: #6b7280;
}
.addrx-suggest-item:hover {
    background: #f0fdf4;
}
.addrx-suggest-item:hover .addrx-suggest-item-main {
    color: var(--theme-primary, #0c4c29);
}

.guest-gps-map-wrap {
    position: relative;
}
.guest-gps-map {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #eef2f7;
}
.guest-gps-map-address {
    font-size: .85rem;
    color: #374151;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.guest-gps-map-address-spinner {
    display: none;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    border-top-color: var(--theme-primary, #0c4c29);
    border-radius: 50%;
    animation: pmbotAddrSpin .7s linear infinite;
}
.guest-gps-map-address.is-loading .guest-gps-map-address-spinner {
    display: inline-block;
}
.guest-confirm-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guest-confirm-form-col {
    min-width: 0;
    position: relative;
}
.guest-confirm-form-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .82);
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--theme-primary, #0c4c29);
    font-weight: 600;
    text-align: center;
    padding: 12px;
}
.guest-confirm-form-col.is-loading .guest-confirm-form-loading-overlay {
    display: flex;
}
.guest-confirm-step-indicator {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--theme-primary, #0c4c29);
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .guest-confirm-layout.has-map {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .guest-confirm-layout.has-map #pmbotAddrGpsMapBlock {
        flex: 0 0 46%;
        max-width: 46%;
    }
    .guest-confirm-layout.has-map .guest-confirm-form-col {
        flex: 1 1 auto;
        min-width: 0;
    }
    .guest-confirm-layout.has-map .guest-gps-map {
        height: 100%;
        min-height: 340px;
    }
}

@keyframes pmbotAddrSpin {
    to { transform: rotate(360deg); }
}

/* #pmbotAddressConfirmModal dùng đúng modal Bootstrap 5 (data-bs-*) — widget
   chatbot đã load sẵn Bootstrap JS toàn cục (main/header/head.php), không
   cần thêm gì khác. modal-lg được JS toggle động khi có bản đồ (has-map),
   giống hệt #guestAddressConfirmDialog gốc. */
#pmbotAddressConfirmDialog.modal-lg {
    max-width: 720px;
}
