


/* Modal wrapper */


/* When modal is visible */
#view-cart-popup-v2.show .modal-dialog {
    transform: translateX(0);
}

/* Full height content */
#view-cart-popup-v2 .modal-content {
    background-color: #fff !important;
    border-radius: 20px;
}

/* Scroll body if content grows */
#view-cart-popup-v2 .modal-body {
    overflow-y: auto;
    height: calc(100% - 70px); /* header height approx */
    padding:5px;
}

/* Remove Bootstrap center animation */
#view-cart-popup-v2 .modal.fade .modal-dialog {
    transition: none !important;
}

/* Dark backdrop */
#view-cart-popup-v2 .modal-backdrop.show {
    opacity: 0.6;
}

#view-cart-popup-v2 .fixed-checkout-btnton {
    position: sticky;
    bottom: 0;
    /* background: #ffffff; */
    padding: 10px;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}


/* Apply the animation to the modal */
#view-cart-popup-v2.modal.custom-fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

#view-cart-popup-v2.modal.show .modal-dialog {
    animation: slideInRight 1s ease-out forwards;
}

#view-cart-popup-v2.modal:not(.show) .modal-dialog {
    animation: slideOutRight 0.3s ease-in forwards;
}

#view-cart-popup-v2.modal.hide .modal-dialog {
    /* animation: slideOutDown 0.8s ease-out forwards; */
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.processing {
    pointer-events: none; /* disables clicking */
    cursor: not-allowed;
    animation: blink 1s infinite;
    opacity: 0.7;
}

#view-cart-popup-v2 {
    padding: 0 !important;
}

/* Dialog = right drawer */
#view-cart-popup-v2 .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
}

#view-cart-popup-v2 {
    background: #00000082;
    z-index: 9999999;
}

#view-cart-popup-v2 .modal-dialog {
    display: flex;
    align-content: flex-end;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: auto;
}

#view-cart-popup-v2 .modal-content {
    width: 100vw;
    margin: auto;
    border: 0;
    box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.5);
    /* border-radius: 15px !important; */
    height: 100%;
    border-radius: 10px 0 0 10px;
    border: none;
}


#view-cart-popup-v2 .modal-header {
   padding: .6rem;
}

#view-cart-popup-v2 .your-cart {
    width: 100%;
    font-size: 18px;
    font-family: 'Avenir-Black';
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #705025;
    text-align: left;
    padding: 7px 10px;
}


#view-cart-popup-v2 .checkout-popup-title {
    font-size: .85rem;
    font-family: 'Avenir-Black';
    display: flex;
    gap: 3px;
    justify-content: flex-start;
    color: #000;
    align-items: center;
}

#view-cart-popup-v2 .checkout-popup-title>.bk-shop-bag-black-icon {
    margin-top: -3px;
}


#view-cart-popup-v2 .package-card {
    display: flex;
}

#view-cart-popup-v2 .package-card>div.left-img {
    /* flex: 0 0 22%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 10px; */
}

#view-cart-popup-v2 .package-card>div.right-details {
    flex: 0 0 78%;
    padding: 0 10px;
}

#view-cart-popup-v2 .divider {
    /* border-left: 1px solid #ebebeb; */
}

#view-cart-popup-v2 .left-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#view-cart-popup-v2 .right-details img {
    width: auto;
    height: 100%;
    object-fit: contain;
    max-height: 23px;
}

#view-cart-popup-v2 .package-card .package-title {
    margin-bottom: 4px;
    font-size: 1.1rem;
    text-align: left;
    font-family: 'Avenir-Black';
}

#view-cart-popup-v2 .package-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

#view-cart-popup-v2 .package-item {
    text-align: center;
}

#view-cart-popup-v2 .package-item p {
    margin: 0;
    font-size: 10px;
    line-height: normal;
    margin-top: 3px;
    color: #000;
    font-family: 'Avenir-Medium';
}

#view-cart-popup-v2 .simple .package-details {
    display: none;
}

#view-cart-popup-v2 .package-card.simple h5 {
    display: grid;
    place-items: center;
    height: 57px;
    font-size: 1rem;
    font-weight: normal;
    font-family: 'Avenir-Black';
    margin-bottom: 0;
    line-height: normal;
}


#view-cart-popup-v2 .shop-bag-black {
    stroke: #fff !important;
}


#view-cart-popup-v2 .btn-checkout span {
    margin-top: 2px;
}

#view-cart-popup-v2 .btn.btn-checkout {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
    font-size: clamp(15px, 5vw, 18px);
    line-height: normal;
    height: 50px;
    font-family: 'Avenir-Black';
    letter-spacing: 1px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#view-cart-popup-v2 .btn.btn-checkout:hover {
    background-color: #705025;
    border: 1px solid #705025;
}

#view-cart-popup-v2 .btn.btn-checkout.disabled {
    pointer-events: none;   /* disables click */
    opacity: 0.5;           /* visual feedback */
    cursor: not-allowed;
}

#view-cart-popup-v2 .btn.btn-shopping {
    background-color: #808080;
    border: 1px solid #808080;
    color: #fff;
    font-size: clamp(16px, 5vw, 20px);
    line-height: normal;
    height: 54px;
    font-family: 'Avenir-Medium';
    text-transform: none;
}



/* =========================
   MINI CART ROOT
========================= */
#mini-cart-root {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    
}

/* =========================
   CART ITEM ROW
========================= */
#mini-cart-root .mc-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
    border-top: 1px solid #e5e5e5;
}

/* =========================
   PRODUCT IMAGE
========================= */
#mini-cart-root .mc-item-image {
    width: 70px;
    flex-shrink: 0;
}

#mini-cart-root .mc-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   DETAILS CONTAINER
========================= */
#mini-cart-root .mc-item-details {
    flex: 1;
    min-width: 0;
}

/* =========================
   TITLE + PRICE
========================= */
#mini-cart-root .mc-item-title, #mini-cart-root .mc-item-price, #mini-cart-root .mc-item-actions {
    font-family: 'Avenir-Black';
}

#mini-cart-root .mc-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

#mini-cart-root .mc-item-title {
    font-size: 15px;
    color: #000;
    text-align: left;
}
.middle-content {
    text-align: left;
    line-height: normal;
}

#mini-cart-root .mc-item-price {
    font-size: 15px;
    color: #000;
    white-space: nowrap;
    line-height: normal;
}

/* =========================
   DESCRIPTION
========================= */
#mini-cart-root .mc-item-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
    text-align: left;
}

/* =========================
   ACTIONS (CHANGE / REMOVE)
========================= */
#mini-cart-root .mc-item-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

#mini-cart-root .mc-action-link {
    color: #705025;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#mini-cart-root .mc-action-link:hover {
    color: #8e6d3b;
    text-decoration: underline;
}

#mini-cart-root .mc-remove {
    color: #705025;
}

/* Separator | */
#mini-cart-root .mc-action-separator {
    color: #888;
    user-select: none;
}

/* =========================
   SUBTOTAL SECTION
========================= */
#mini-cart-root .mc-subtotal-wrap {
    padding-top: 20px;
}

#mini-cart-root .mc-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

#mini-cart-root .mc-subtotal-note {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

#view-cart-popup-v2 .bundle-child-product {
    padding: 0 9px;
}

.mc-item-desc {
    font-size: clamp(11px, 4vw, 14px);
    font-family: 'Avenir-Medium';
}

.mc-item-desc .variation > dt {
    display: none;
}

.mc-item-desc .variation, .mc-item-desc .variation > dd, .mc-item-desc .variation > dd p {
    margin: 0;
}

#view-cart-popup-v2 .bk-left-arrow {
    width: 30px;
    height: 30px;
    background-image: url("https://bespokeroomus.com/wp-content/uploads/2025/02/arrow-left.svg");
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-color 0.3s;
    border-radius: 50%;
}

#view-cart-popup-v2 .bk-left-arrow:hover,
#view-cart-popup-v2 .bk-left-arrow:active,
#view-cart-popup-v2 .bk-left-arrow:focus,
#view-cart-popup-v2 .bk-left-arrow:target {
    background-color: unset;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 480px) {

    #mini-cart-root .mc-cart-item {
        gap: 5px;
        padding: 14px 5px;
    }

    #mini-cart-root .mc-item-image {
        width: 42px;
    }
    #mini-cart-root .mc-item-header {
        gap: 5px;
    }

    #mini-cart-root .mc-item-title {
        font-size: 14px;
    }
    #mini-cart-root .mc-item-desc {
        font-size: 12px;
    }

    #mini-cart-root .mc-item-price {
        font-size: 14px;
    }

    #mini-cart-root .mc-item-actions {
        font-size: 12px;
    }
}

/* desktop view  */
@media (min-width: 1000px) {


}

/* Mobile L & Tab devices (phones, Tab) */
@media only screen and (max-width: 999px) {


}

/* Mobile: full-width drawer */
@media (max-width: 768px) {
    #view-cart-popup-v2 .modal-dialog {
        width: 85%;
    }
    
}