/* ALSHOP_PRODUCT_BADGE_TRANSPORT_SHIPPING_FINAL_V1_2_0 */

/* =========================================================
   PRODUCT ORIGINAL BADGE
   ========================================================= */
.alshop-original-badge-host{
    position:relative!important;
    overflow:hidden!important;
}

.alshop-original-badge-v1{
    position:absolute!important;
    top:7px!important;
    right:7px!important;
    left:auto!important;
    z-index:20!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    width:auto!important;
    max-width:calc(100% - 50px)!important;
    min-width:0!important;
    padding:5px 8px!important;
    border-radius:999px!important;
    background:rgba(15,23,42,.95)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:0 6px 16px rgba(15,23,42,.23)!important;
    font-size:9px!important;
    font-weight:850!important;
    line-height:1!important;
    letter-spacing:-.01em!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    pointer-events:none!important;
    backdrop-filter:blur(5px)!important;
    -webkit-backdrop-filter:blur(5px)!important;
}

.alshop-original-badge-v1::before{
    content:"✓";
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:#16a34a!important;
    color:#fff!important;
    font-size:8px!important;
    font-weight:900!important;
}

/* Cards narrower than normal desktop cards. */
.alshop-original-badge-host.alshop-badge-small .alshop-original-badge-v1{
    top:6px!important;
    right:5px!important;
    max-width:calc(100% - 43px)!important;
    padding:4px 6px!important;
    gap:3px!important;
    font-size:7.5px!important;
}

.alshop-original-badge-host.alshop-badge-small .alshop-original-badge-v1::before{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    font-size:7px!important;
}

/* Very narrow mobile/recommendation cards. Keep the FULL wording. */
.alshop-original-badge-host.alshop-badge-mini .alshop-original-badge-v1{
    top:5px!important;
    right:4px!important;
    max-width:calc(100% - 38px)!important;
    padding:3px 5px!important;
    gap:2px!important;
    font-size:6.6px!important;
    letter-spacing:-.025em!important;
}

.alshop-original-badge-host.alshop-badge-mini .alshop-original-badge-v1::before{
    width:10px!important;
    height:10px!important;
    min-width:10px!important;
    font-size:6px!important;
}

/* =========================================================
   SINGLE PRODUCT: ONE TRANSPORT BLOCK ONLY
   ========================================================= */
.agm-product-transport{
    margin-top:8px!important;
}

/*
 * Hide every historical transport child. The V1.2 block below is the only
 * allowed visible child, so old title/grid/free-shipping/dropdown cannot
 * reappear through nested theme CSS.
 */
.agm-product-transport > *:not(.alshop-shipping-linear-v3){
    display:none!important;
}

.agm-product-transport > .alshop-shipping-linear-v3{
    display:flex!important;
}

.alshop-shipping-linear-v3{
    width:100%!important;
    min-height:44px!important;
    align-items:center!important;
    gap:0!important;
    border:1px solid #e3e8ef!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 5px 15px rgba(15,23,42,.045)!important;
    overflow:hidden!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-title{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-height:44px!important;
    padding:0 10px!important;
    color:#111827!important;
    font-size:10px!important;
    font-weight:850!important;
    background:#f8fafc!important;
    border-right:1px solid #e8edf3!important;
    white-space:nowrap!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-title i{
    width:24px!important;
    height:24px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:#fff0e8!important;
    color:#f4511e!important;
    font-size:13px!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-destination{
    flex:1 1 0!important;
    min-width:0!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:6px 9px!important;
    color:#5b6472!important;
    font-size:9.5px!important;
    line-height:1.25!important;
    text-align:center!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-destination + .alshop-shipping-destination{
    border-left:1px solid #e8edf3!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-destination b{
    color:#111827!important;
    font-weight:850!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-price{
    color:#111827!important;
    font-weight:850!important;
    white-space:nowrap!important;
}

.alshop-shipping-linear-v3 .alshop-shipping-free{
    color:#0f8a4b!important;
    font-weight:800!important;
    white-space:nowrap!important;
}

/* =========================================================
   CHECKOUT: SAME VISUAL LANGUAGE, NO BULLET LIST
   ========================================================= */
.alshop-shipping-rules-inline-v1,
[data-alshop-shipping-inline="1"]{
    display:none!important;
}

.alshop-checkout-shipping-v3{
    margin:10px 0 0!important;
    border:1px solid #e3e8ef!important;
    border-radius:10px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 5px 15px rgba(15,23,42,.04)!important;
}

.alshop-checkout-shipping-v3 .alshop-checkout-shipping-title{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:7px 9px!important;
    border-bottom:1px solid #edf1f5!important;
    background:#f8fafc!important;
    color:#111827!important;
    font-size:10px!important;
    font-weight:850!important;
}

.alshop-checkout-shipping-v3 .alshop-checkout-shipping-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
}

.alshop-checkout-shipping-v3 .alshop-checkout-shipping-item{
    min-width:0!important;
    padding:8px 9px!important;
    color:#5b6472!important;
    font-size:9.5px!important;
    line-height:1.35!important;
}

.alshop-checkout-shipping-v3 .alshop-checkout-shipping-item + .alshop-checkout-shipping-item{
    border-left:1px solid #edf1f5!important;
}

.alshop-checkout-shipping-v3 b{
    color:#111827!important;
    font-weight:850!important;
}

.alshop-checkout-shipping-v3 .free{
    display:block!important;
    margin-top:2px!important;
    color:#0f8a4b!important;
    font-weight:800!important;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:767.98px){
    .alshop-original-badge-v1{
        top:5px!important;
        right:4px!important;
        max-width:calc(100% - 42px)!important;
        padding:4px 6px!important;
        font-size:7px!important;
    }

    .alshop-original-badge-v1::before{
        width:11px!important;
        height:11px!important;
        min-width:11px!important;
        font-size:6.5px!important;
    }

    .alshop-shipping-linear-v3{
        display:grid!important;
        grid-template-columns:auto 1fr!important;
        border-radius:9px!important;
    }

    .alshop-shipping-linear-v3 .alshop-shipping-title{
        grid-column:1 / -1!important;
        min-height:34px!important;
        justify-content:flex-start!important;
        padding:5px 8px!important;
        border-right:0!important;
        border-bottom:1px solid #e8edf3!important;
        font-size:9.5px!important;
    }

    .alshop-shipping-linear-v3 .alshop-shipping-destination{
        min-height:38px!important;
        padding:5px 6px!important;
        gap:3px!important;
        flex-wrap:wrap!important;
        font-size:8.2px!important;
    }

    .alshop-shipping-linear-v3 .alshop-shipping-destination + .alshop-shipping-destination{
        border-left:1px solid #e8edf3!important;
    }

    .alshop-checkout-shipping-v3 .alshop-checkout-shipping-row{
        grid-template-columns:1fr!important;
    }

    .alshop-checkout-shipping-v3 .alshop-checkout-shipping-item + .alshop-checkout-shipping-item{
        border-left:0!important;
        border-top:1px solid #edf1f5!important;
    }
}
