/* ALO Giá Rẻ - khối đánh giá gọn dùng chung xe_shop, taxi_shop và các mẫu shop */
.xe-review-compact{
    --shop-review-accent:var(--vpd-primary,var(--alo-ui-link-color,#3478b8));
    overflow:visible!important;
    padding:18px 20px!important;
}
.xe-review-compact__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}
.xe-review-compact__head>div{min-width:0;}
.xe-review-compact__eyebrow{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:4px;
    color:var(--shop-review-accent);
    font-size:10.5px;
    font-weight:950;
    letter-spacing:.055em;
    text-transform:uppercase;
}
.xe-review-compact__head h2{
    margin:0!important;
    color:#0f172a!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:950!important;
}
.xe-review-write-btn,
.xe-review-empty button,
.xe-review-submit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid var(--shop-review-accent)!important;
    border-radius:10px!important;
    background:var(--shop-review-accent)!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:900!important;
    cursor:pointer;
    text-decoration:none!important;
    transition:filter .18s ease,transform .18s ease;
}
.xe-review-write-btn{min-height:40px;flex:0 0 auto;padding:0 14px!important;}
.xe-review-write-btn:hover,
.xe-review-empty button:hover,
.xe-review-submit-btn:hover{filter:brightness(.96);transform:translateY(-1px);}
.xe-review-summary{
    display:grid;
    grid-template-columns:minmax(220px,.38fr) minmax(0,1fr);
    align-items:center;
    gap:14px;
    padding:13px 14px;
    border:1px solid #e2e8f0;
    border-radius:13px;
    background:#fbfdff;
}
.xe-review-score{display:flex;align-items:center;gap:13px;min-width:0;}
.xe-review-score>strong{min-width:54px;color:#0f172a;font-size:30px;line-height:1;font-weight:950;}
.xe-review-score>div{min-width:0;}
.xe-review-score__stars{display:block;color:#f5b301;font-size:17px;letter-spacing:1px;line-height:1;white-space:nowrap;}
.xe-review-score small{display:block;margin-top:5px;color:#64748b;font-size:10.5px;font-weight:750;}
.xe-review-summary>p{margin:0;color:#64748b;font-size:11.5px;line-height:1.55;}
.xe-review-latest-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 9px;}
.xe-review-latest-head h3{margin:0;color:#0f172a;font-size:14px;font-weight:950;}
.xe-review-more-btn{padding:0;border:0;background:transparent;color:var(--shop-review-accent);font-size:10.5px;font-weight:900;cursor:pointer;}
.xe-review-list-compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.xe-review-list-compact--more{margin-top:9px;}
.xe-review-list-compact--more[hidden]{display:none!important;}
.xe-review-card-compact{min-width:0;padding:11px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;}
.xe-review-card-compact__top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.xe-review-card-compact__top strong{min-width:0;overflow:hidden;color:#0f172a;font-size:11.5px;font-weight:950;text-overflow:ellipsis;white-space:nowrap;}
.xe-review-card-compact__top span{flex:0 0 auto;color:#f5b301;font-size:10px;letter-spacing:.3px;white-space:nowrap;}
.xe-review-card-compact h4{margin:7px 0 0;color:#0f172a;font-size:11.5px;line-height:1.35;font-weight:900;}
.xe-review-card-compact p{display:-webkit-box;margin:6px 0 8px;overflow:hidden;color:#64748b;font-size:10.5px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3;}
.xe-review-card-compact>small{display:block;color:#94a3b8;font-size:9.5px;}
.xe-review-card-compact__images{display:flex;gap:5px;margin:7px 0;}
.xe-review-card-compact__images img{width:38px;height:38px;border-radius:7px;object-fit:cover;}
.xe-review-empty{grid-column:1/-1;display:flex;align-items:center;gap:11px;min-height:64px;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:11px;background:#f8fafc;}
.xe-review-empty>i{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#fff;color:var(--shop-review-accent);font-size:17px;}
.xe-review-empty>div{min-width:0;flex:1;}
.xe-review-empty strong,.xe-review-empty span{display:block;}
.xe-review-empty strong{color:#0f172a;font-size:11.5px;font-weight:950;}
.xe-review-empty span{margin-top:2px;color:#64748b;font-size:10.5px;line-height:1.4;}
.xe-review-empty button{min-height:34px;padding:0 11px!important;white-space:nowrap;}

.xe-review-modal[hidden]{display:none!important;}
.xe-review-modal{
    --shop-review-accent:var(--vpd-primary,var(--alo-ui-link-color,#3478b8));
    position:fixed!important;
    inset:0!important;
    z-index:2147483600!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:20px!important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease,visibility .2s ease;
    box-sizing:border-box!important;
}
.xe-review-modal.is-open{opacity:1;visibility:visible;pointer-events:auto;}
.xe-review-modal__backdrop{position:absolute!important;inset:0!important;background:rgba(2,6,23,.72)!important;backdrop-filter:blur(3px);}
.xe-review-modal__dialog{
    position:relative!important;
    z-index:1!important;
    width:min(620px,calc(100vw - 32px))!important;
    max-width:620px!important;
    max-height:calc(100dvh - 40px)!important;
    overflow:auto!important;
    margin:0!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 28px 80px rgba(2,6,23,.34)!important;
    transform:translateY(14px) scale(.985);
    transition:transform .2s ease;
    box-sizing:border-box!important;
}
.xe-review-modal.is-open .xe-review-modal__dialog{transform:translateY(0) scale(1);}
.xe-review-modal__head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 18px 13px;border-bottom:1px solid #e2e8f0;background:rgba(255,255,255,.98);}
.xe-review-modal__head span{display:block;margin-bottom:3px;color:var(--shop-review-accent);font-size:9.5px;font-weight:950;letter-spacing:.055em;text-transform:uppercase;}
.xe-review-modal__head h3{margin:0!important;color:#0f172a!important;font-size:18px!important;line-height:1.3!important;font-weight:950!important;}
.xe-review-modal__head>button{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;padding:0!important;border:1px solid #e2e8f0!important;border-radius:50%!important;background:#fff!important;color:#0f172a!important;cursor:pointer;}
.xe-review-modal__form{display:grid!important;gap:12px!important;padding:16px 18px 18px!important;margin:0!important;background:#fff!important;}
.xe-review-modal__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.xe-review-modal__form label{display:block!important;min-width:0!important;margin:0!important;color:#334155!important;font-weight:900!important;}
.xe-review-modal__form label>span{display:block;margin-bottom:5px;color:#334155;font-size:11.5px;font-weight:900;}
.xe-review-modal__form label>span small{color:#94a3b8;font-weight:700;}
.xe-review-modal__form input,
.xe-review-modal__form select,
.xe-review-modal__form textarea{display:block!important;width:100%!important;max-width:100%!important;border:1px solid #dbe3ea!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;font-size:13px!important;outline:none!important;box-shadow:none!important;box-sizing:border-box!important;}
.xe-review-modal__form input,.xe-review-modal__form select{min-height:44px!important;padding:0 11px!important;}
.xe-review-modal__form input[type=file]{height:auto!important;padding:9px 10px!important;}
.xe-review-modal__form textarea{min-height:110px!important;padding:10px 11px!important;resize:vertical!important;}
.xe-review-modal__form input:focus,.xe-review-modal__form select:focus,.xe-review-modal__form textarea:focus{border-color:var(--shop-review-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--shop-review-accent) 12%,transparent 88%)!important;}
.xe-review-field-error{display:block;margin-top:4px;color:#dc2626;font-size:10px;font-weight:800;}
.xe-review-modal__note{display:flex;align-items:flex-start;gap:7px;margin:0;color:#64748b;font-size:10.5px;line-height:1.45;}
.xe-review-modal__note i{margin-top:1px;color:#16a34a;}
.xe-review-submit-btn{min-height:44px!important;width:100%!important;}
html.xe-review-modal-open,body.xe-review-modal-open{overflow:hidden!important;}

@media(max-width:767px){
    .xe-review-compact{padding:14px!important;}
    .xe-review-compact__head{align-items:flex-start;}
    .xe-review-compact__head h2{font-size:17px!important;}
    .xe-review-write-btn{min-height:36px;padding:0 10px!important;font-size:10.5px!important;}
    .xe-review-summary{grid-template-columns:1fr;padding:11px 12px;}
    .xe-review-score>strong{font-size:27px;}
    .xe-review-list-compact{grid-template-columns:1fr;}
    .xe-review-empty{align-items:flex-start;flex-wrap:wrap;}
    .xe-review-empty button{width:100%;}
    .xe-review-modal{align-items:flex-end!important;padding:0!important;}
    .xe-review-modal__dialog{width:100%!important;max-width:none!important;max-height:92dvh!important;border-radius:18px 18px 0 0!important;transform:translateY(28px);}
    .xe-review-modal__head{padding:15px 14px 12px;}
    .xe-review-modal__form{padding:14px!important;}
    .xe-review-modal__grid{grid-template-columns:1fr;}
}
@media(max-width:420px){
    .xe-review-compact__head{display:block;}
    .xe-review-write-btn{width:100%;margin-top:10px;}
}

/* ALOVN_036 - REVIEW POPUP MOBILE CENTER FIX V36
 * File này được tải sau taxi-shop.css, nên override phải đặt trực tiếp tại đây.
 */
@media (max-width: 767.98px){
    .xe-review-modal{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:100vw!important;
        height:100dvh!important;
        min-height:100dvh!important;
        padding-top:max(14px, env(safe-area-inset-top))!important;
        padding-right:14px!important;
        padding-bottom:max(14px, env(safe-area-inset-bottom))!important;
        padding-left:14px!important;
        box-sizing:border-box!important;
    }

    .xe-review-modal__dialog{
        position:relative!important;
        inset:auto!important;
        top:auto!important;
        right:auto!important;
        bottom:auto!important;
        left:auto!important;
        width:calc(100vw - 28px)!important;
        max-width:560px!important;
        max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
        margin:auto!important;
        border-radius:18px!important;
        overflow:auto!important;
        transform:translateY(10px) scale(.985)!important;
        overscroll-behavior:contain!important;
        -webkit-overflow-scrolling:touch!important;
        box-sizing:border-box!important;
    }

    .xe-review-modal.is-open .xe-review-modal__dialog{
        transform:translateY(0) scale(1)!important;
    }
}

@media (max-width: 380px){
    .xe-review-modal{
        padding-right:10px!important;
        padding-left:10px!important;
    }

    .xe-review-modal__dialog{
        width:calc(100vw - 20px)!important;
        max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
        border-radius:16px!important;
    }
}
