/* =========================================================
   BMTF Floating Shopping Cart
   ========================================================= */

#bmtf-floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
}

#bmtf-floating-cart .bmtf-float-cart-button {
    position: relative;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #4b2e24;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
}

#bmtf-floating-cart .bmtf-float-cart-button:hover {
    background: #6b4635;
    transform: translateY(-2px);
}

#bmtf-floating-cart .bmtf-float-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 20px;
    background: #c69b55;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

#bmtf-floating-cart .bmtf-float-cart-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: min(520px, calc(100vh - 120px));
    background: #fffdf9;
    border: 1px solid #e8ddcf;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
    overflow: hidden;
    color: #3d3029;
}

#bmtf-floating-cart.is-open .bmtf-float-cart-panel {
    display: flex;
    flex-direction: column;
}

#bmtf-floating-cart .bmtf-float-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid #eee3d8;
    font-size: 16px;
}

#bmtf-floating-cart .bmtf-float-cart-close {
    border: 0;
    background: transparent;
    color: #6b5144;
    font-size: 25px;
    cursor: pointer;
}

#bmtf-floating-cart .bmtf-float-cart-body {
    padding: 12px 18px;
    overflow-y: auto;
    flex: 1;
    min-height: 65px;
}

#bmtf-floating-cart .bmtf-float-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0e8df;
}

#bmtf-floating-cart .bmtf-float-cart-item-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#bmtf-floating-cart .bmtf-float-cart-item-name strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

#bmtf-floating-cart .bmtf-float-cart-item-name small {
    color: #88796f;
    font-size: 11px;
}

#bmtf-floating-cart .bmtf-float-cart-item-price {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
}

#bmtf-floating-cart .bmtf-float-cart-empty,
#bmtf-floating-cart .bmtf-float-cart-loading {
    padding: 24px 8px;
    text-align: center;
    color: #88796f;
    font-size: 13px;
}

#bmtf-floating-cart .bmtf-float-cart-footer {
    padding: 14px 18px;
    border-top: 1px solid #eee3d8;
    background: #faf5ee;
}

#bmtf-floating-cart .bmtf-float-cart-total {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

#bmtf-floating-cart .bmtf-float-cart-checkout {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 6px;
    background: #4b2e24;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 600;
}

#bmtf-floating-cart .bmtf-float-cart-checkout:hover {
    background: #6b4635;
}

@media (max-width: 480px) {
    #bmtf-floating-cart {
        right: 15px;
        bottom: 15px;
    }

    #bmtf-floating-cart .bmtf-float-cart-panel {
        position: fixed;
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        max-width: none;
        max-height: 70vh;
    }
}
