#ag-bundles[data-bundle-cart] .ab-layout {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 24%);
}

#ag-bundles[data-bundle-cart] .ab-hero {
    background: linear-gradient(112deg, #dc0040, #c50038 72%);
}

#ag-bundles[data-bundle-cart] .ab-feature {
    background: linear-gradient(105deg, #f4fbcd, #fcfcf2);
}

#ag-bundles .ag-dh-product-card {
    position: relative;
    container-type: inline-size;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
}

#ag-bundles .ag-dh-product-media {
    aspect-ratio: 1;
    height: auto;
}

#ag-bundles .ag-dh-product-card:has(.ag-bundle-plus) .ag-dh-product-footer {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-start: calc(100cqi - 53px);
    z-index: 2;
    margin: 0;
}

#ag-bundles .ag-dh-cart-btn:has(.ag-bundle-plus) {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    min-inline-size: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e3e7;
    border-radius: 50%;
    color: #21182c;
    box-shadow: 0 2px 9px #17152c25;
}

#ag-bundles .ag-bundle-plus {
    font-size: 31px;
    font-weight: 500;
    line-height: 1;
}

#ag-bundles[data-bundle-cart] .ag-bundle-cart-top {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a191b;
}

#ag-bundles .ag-bundle-cart-mark {
    position: relative;
    display: inline-flex;
    color: #ffe455;
    font-size: 27px;
}

#ag-bundles .ag-bundle-cart-mark span {
    position: absolute;
    inset-inline-end: -5px;
    inset-block-start: -4px;
    min-inline-size: 17px;
    padding: 1px 3px;
    border-radius: 99px;
    background: #c9003b;
    color: white;
    font-size: 10px;
    text-align: center;
}

#ag-bundles .ag-bundle-checkout {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 7px;
    padding: 10px;
    border-radius: 99px;
    text-align: center;
    background: #c9003b;
    color: #fff;
    font-weight: 800;
}

#ag-bundles .ag-bundle-checkout[aria-disabled=true] {
    background: #575558;
    color: #efedef;
    cursor: default;
}

#ag-bundles .ag-bundle-checkout strong { white-space: nowrap; }
#ag-bundles .ag-bundle-cart-count { margin: 4px 0 12px; }

#ag-bundles .ag-bundle-offer {
    padding: 23px 16px 14px;
    background: linear-gradient(#fff8cb, #fff);
    text-align: center;
    border-block-end: 1px solid #eae8ef;
}

#ag-bundles .ag-bundle-offer-title {
    color: #21182c;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
}

#ag-bundles .ag-bundle-offer-title strong { color: #c9003b; }
#ag-bundles .ag-bundle-offer-scope,
#ag-bundles .ag-bundle-offer-status { color: #62596b; font-size: 12px; margin: 0; }

#ag-bundles .ag-bundle-offer progress {
    display: block;
    width: 100%;
    height: 6px;
    margin: 12px 0 7px;
    border: 0;
    border-radius: 99px;
    overflow: hidden;
    background: #fbd2dc;
    accent-color: #c9003b;
}

#ag-bundles .ag-bundle-offer progress::-webkit-progress-bar { background: #fbd2dc; }
#ag-bundles .ag-bundle-offer progress::-webkit-progress-value { background: #c9003b; }
#ag-bundles .ag-bundle-offer progress::-moz-progress-bar { background: #c9003b; }
/* Keep the eligible badge inside the product card chrome (no grid-row overlap). */
#ag-bundles .ag-bundle-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

#ag-bundles .ag-bundle-product .ag-dh-product-card {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

#ag-bundles .ag-bundle-product-eligible {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 10px 10px;
    color: #155a3d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

#ag-bundles .ag-bundle-cart-empty {
    display: grid;
    justify-items: center;
    gap: 17px;
    margin: 15px 0 20px;
}

#ag-bundles .ag-bundle-cart-empty i {
    display: grid;
    place-items: center;
    inline-size: 106px;
    block-size: 106px;
    border-radius: 50%;
    background: #f3f1ef;
    color: #746e75;
    font-size: 46px;
}

#ag-bundles .ag-bundle-cart-lines {
    list-style: none;
    max-block-size: 265px;
    overflow: auto;
    margin: 0;
    padding: 0;
    text-align: start;
}

#ag-bundles .ag-bundle-cart-lines li {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    padding: 10px 0;
    border-block-start: 1px solid #eae8ef;
    font-size: 13px;
    overflow-wrap: anywhere;
}

#ag-bundles .ag-bundle-cart-lines strong { flex-shrink: 0; }
#ag-bundles .ag-bundle-cart-shipping { color: #62596b; }
#ag-bundles [hidden] { display: none !important; }

@media (max-width: 740px) {
    #ag-bundles[data-bundle-cart] .ab-layout { grid-template-columns: minmax(0, 1fr); }
    #ag-bundles .ag-bundle-cart-empty i { inline-size: 70px; block-size: 70px; font-size: 32px; }
}
