/* ==========================================================
   SW Frontend Cart
   ========================================================== */

.swfc-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transition: opacity .25s ease;

    z-index: 99998;
}

.swfc-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================
   Drawer
   ========================================================== */

.swfc-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: 420px;
    max-width: 100vw;

    height: 100vh;
    height: 100dvh;

    background: #fff;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform .25s ease;

    z-index: 99999;

    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
}

.swfc-drawer.is-open {
    transform: translateX(0);
}


/* ==========================================================
   Header
   ========================================================== */

.swfc-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px;

    border-bottom: 1px solid #ececec;
}

.swfc-title {
    margin: 0;
}

.swfc-close {
    width: 36px;
    height: 36px;

    border: 0;
    background: transparent;

    cursor: pointer;

    font-size: 28px;
    line-height: 1;
}


/* ==========================================================
   Scrollable products
   ========================================================== */

.swfc-body {
    flex: 1 1 auto;

    overflow-y: auto;

    padding: 0 24px;

    min-height: 0;
}


/* ==========================================================
   Product
   ========================================================== */

.swfc-item {
    display: flex;

    align-items: stretch;

    gap: 14px;

    padding: 12px 0;

    border-bottom: 1px solid #ececec;
}

.swfc-item:last-child {
    border-bottom: none;
}


/* ==========================================================
   Product image
   ========================================================== */

.swfc-thumb {
    flex: 0 0 72px;
    border: 1px solid #dadada;
    box-shadow: 0 0 11px rgb(0 0 0 / 15%);
}

.swfc-thumb img {
    display: block;

    width: 72px;
    height: 72px;

    object-fit: contain;
}


/* ==========================================================
   Product details
   ========================================================== */

.swfc-details {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* ==========================================================
   Product name
   ========================================================== */

.swfc-name {
    display: block;

    text-decoration: none;

    color: inherit;

    font-size: 14px;
    line-height: 1.35;
}


/* ==========================================================
   Product meta
   Quantity + price + discount + remove
   ========================================================== */

.swfc-meta {
    margin-top: auto;

    display: flex;

    align-items: center;

    gap: 6px;

    min-height: 24px;

    font-size: 14px;
}


/* ==========================================================
   Quantity
   ========================================================== */

.swfc-qty {
    color: #777;

    white-space: nowrap;
}


/* ==========================================================
   Current price
   ========================================================== */

.swfc-price {
    font-weight: 600;

    white-space: nowrap;
}


/* ==========================================================
   Regular / old price
   ========================================================== */

.swfc-regular-price {
    color: #999;

    font-size: .9em;

    white-space: nowrap;
}


/* ==========================================================
   Remove product
   ========================================================== */

.swfc-remove {
    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    margin-left: auto;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #b8b8b8;
    border-radius: 50%;

    background: #fff;
    color: #777;

    cursor: pointer;

    line-height: 1;

    box-sizing: border-box;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.swfc-remove .material-icons {
    width: 14px;
    height: 14px;

    font-size: 14px;
    line-height: 14px;

    display: block;

    overflow: hidden;
}

.swfc-remove:hover {
    background: #f1f1f1;
    border-color: #999;
    color: #333;
}


/* ==========================================================
   Empty
   ========================================================== */

.swfc-empty {
    padding: 80px 20px;

    text-align: center;
}


/* ==========================================================
   Footer
   ========================================================== */

.swfc-footer {
    flex: 0 0 auto;

    padding: 24px;

    border-top: 1px solid #ececec;

    background: #fff;
}

.swfc-summary {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.swfc-count {
    color: #666;
}

.swfc-total-row {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.swfc-actions {
    display: flex;

    gap: 12px;

    margin-top: 24px;
}

.swfc-actions > * {
    flex: 1;
}

.swfc-continue,
.swfc-checkout {
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    cursor: pointer;
}

.swfc-continue {
    background: #fff;

    border: 1px solid #111;

    color: #111;
}

.swfc-checkout {
    background: #111;

    color: #fff;

    border: 1px solid #111;
}

.swfc-checkout.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 992px) {

    .swfc-drawer {
        width: 380px;
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .swfc-drawer {
        width: 100vw;
    }

    .swfc-header,
    .swfc-footer {
        padding: 20px;
    }

    .swfc-body {
        padding: 0 20px;
    }

    .swfc-thumb {
        flex-basis: 72px;
        border: 1px solid #dadada;
        box-shadow: 0 0 11px rgb(0 0 0 / 15%);
    }

    .swfc-thumb img {
        width: 72px;
        height: 72px;
    }

}

/* ==========================================================
   Small phones
   ========================================================== */

@media (max-width: 480px) {

    .swfc-item {
        gap: 12px;
    }

    .swfc-thumb {
        flex-basis: 64px;
    }

    .swfc-thumb img {
        width: 64px;
        height: 64px;
    }

}