/*
 * Krytyczne czyszczenie pozostałości wysuwanego koszyka Astra/Earth.
 * Plik jest ładowany na całej stronie, również poza widokami WooCommerce.
 */
.astra-cart-drawer,
.astra-cart-drawer-overlay,
.astra-cart-drawer-wrapper,
.astra-cart-drawer-content,
.ast-cart-drawer,
.ast-cart-drawer-overlay,
.ast-cart-drawer-wrapper,
.ast-cart-drawer-content,
.ast-cart-side-menu,
.ast-cart-side-menu-container,
#astra-mobile-cart-drawer,
[class*="astra-cart-drawer"],
[class*="ast-cart-drawer"],
[class*="cart-side-menu"],
[class*="cart-drawer-overlay"],
[class*="drawer-overlay"],
[class*="cart-overlay"],
[class*="side-cart-overlay"],
.xoo-wsc-basket,
.xt_woofc-trigger,
.vi-wcaio-sidebar-cart-icon-wrap,
.cartpops-cart__container,
.fkcart-mini-toggler,
.wfc-cart-button,
.woofc-cart-button,
.floating-cart-button,
[class*="floating-cart"],
[class*="float-cart"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(110%) !important;
}

html.astra-cart-drawer-open,
html.ast-cart-drawer-open,
body.astra-cart-drawer-open,
body.ast-cart-drawer-open,
body.ast-mobile-cart-active,
body.woocommerce-cart-open {
    overflow: auto !important;
}

html,
body {
    overflow-x: hidden;
}

body:not(.wp-admin) {
    pointer-events: auto !important;
}

body.m24-basket-open {
    overflow: hidden !important;
}

.m24-basket-shade {
    position: fixed;
    inset: 0;
    z-index: 999997;
    background: rgba(38, 43, 36, .28);
    backdrop-filter: blur(2px);
}

.m24-basket-shade[hidden] {
    display: none !important;
}

.m24-basket-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999998;
    width: min(720px, 100vw);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fffdf8;
    color: #2e322c;
    font-family: Manrope, "Avenir Next", Arial, sans-serif;
    box-shadow: -18px 0 60px rgba(41, 45, 38, .18);
    transform: translateX(105%);
    transition: transform .3s ease;
}

.m24-basket-panel.is-open {
    transform: translateX(0);
}

.m24-basket-panel > header {
    min-height: 122px;
    padding: 18px 36px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8d9cf;
}

.m24-basket-panel > header p {
    margin: 0 0 11px;
    color: #6f7f69;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.m24-basket-panel > header h2 {
    margin: 0;
    color: #2e322c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
}

.m24-basket-panel > header h2 small {
    font-family: Manrope, "Avenir Next", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.m24-basket-close {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #2e322c !important;
    font-size: 42px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}

.m24-basket-notice {
    padding: 15px 36px;
    background: #dfe8d9;
    color: #53604e;
    font-size: 14px;
}

.m24-basket-items {
    padding: 0 36px;
    overflow-y: auto;
}

.m24-basket-item {
    position: relative;
    min-height: 215px;
    padding: 28px 0;
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr) auto;
    gap: 18px;
    border-bottom: 1px solid #d8d9cf;
}

.m24-basket-thumb img {
    width: 114px;
    height: 138px;
    display: block;
    border-radius: 7px;
    object-fit: cover;
}

.m24-basket-copy > small {
    display: block;
    margin-bottom: 8px;
    color: #788070;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.m24-basket-copy h3 {
    margin: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.m24-basket-copy h3 a {
    color: #2e322c !important;
    text-decoration: none;
}

.m24-basket-meta,
.m24-basket-meta dl,
.m24-basket-meta p {
    margin: 0;
    color: #72756d;
    font-size: 12px;
    line-height: 1.45;
}

.m24-basket-meta dt,
.m24-basket-meta dd {
    display: inline;
    margin: 0 4px 0 0;
}

.m24-basket-quantity {
    width: 104px;
    height: 42px;
    margin-top: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border: 1px solid #ccd0c3;
}

.m24-basket-quantity a,
.m24-basket-quantity strong {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e322c !important;
    font-size: 17px;
    text-decoration: none;
}

.m24-basket-quantity strong {
    font-size: 14px;
}

.m24-basket-price {
    padding-top: 21px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    white-space: nowrap;
}

.m24-basket-remove {
    position: absolute;
    right: 112px;
    bottom: 34px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #576052 !important;
}

.m24-basket-remove svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.m24-basket-summary {
    padding: 20px 36px 26px;
    border-top: 1px solid #d8d9cf;
    background: #fffdf8;
}

.m24-basket-summary p {
    margin: 0;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    color: #6e746a;
    font-size: 13px;
}

.m24-basket-summary p strong {
    color: #2e322c;
}

.m24-basket-summary > div {
    margin-top: 14px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #d8d9cf;
    font-size: 22px;
}

.m24-basket-summary > div strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
}

.m24-basket-checkout,
.m24-basket-empty a {
    min-height: 70px;
    margin-top: 26px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    background: #879a82;
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.m24-basket-checkout:hover,
.m24-basket-empty a:hover {
    background: #667960;
}

.m24-basket-empty {
    padding: 80px 42px;
    text-align: center;
}

.m24-basket-empty h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
}

.m24-basket-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999990;
    width: 70px;
    height: 70px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #879a82 !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(43, 50, 40, .28);
    cursor: pointer;
}

.m24-allegro-fab {
    position: fixed;
    top: 112px;
    right: 20px;
    z-index: 999989;
    min-width: 118px;
    height: 46px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 24px;
    background: #ff5a00;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(75, 48, 31, .25);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.m24-allegro-fab:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(75, 48, 31, .32);
}

.m24-allegro-fab span {
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.m24-allegro-fab em {
    position: static;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    opacity: 1;
}

.m24-basket-fab svg {
    display: block !important;
    visibility: visible !important;
    fill: none !important;
    stroke: #fff !important;
    opacity: 1 !important;
}

.m24-cart-glyph svg {
    display: block !important;
    visibility: visible !important;
    fill: none !important;
    stroke: #2e322c !important;
    opacity: 1 !important;
}

body.m24-system-page [class*="available-coupon"],
body.m24-system-page [class*="available_coupon"],
body.m24-system-page .woocommerce-form-coupon-toggle,
body.m24-system-page form.checkout_coupon {
    display: none !important;
}

.m24-basket-fab svg,
.m24-cart-glyph svg {
    width: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.m24-basket-fab span {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #2e322c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.m24-header-cart em {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #879a82;
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.m24-cart-glyph {
    display: inline-grid;
    place-items: center;
}

.m24-cart-glyph svg {
    width: 29px;
    height: 29px;
}

@media (max-width: 640px) {
    .m24-basket-panel > header,
    .m24-basket-items,
    .m24-basket-summary {
        padding-left: 20px;
        padding-right: 20px;
    }

    .m24-basket-panel > header h2 {
        font-size: 42px;
    }

    .m24-basket-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .m24-basket-thumb img {
        width: 88px;
        height: 108px;
    }

    .m24-basket-price {
        grid-column: 2;
        padding-top: 0;
    }

    .m24-basket-remove {
        right: 0;
        bottom: 28px;
    }

    .m24-basket-fab {
        right: 18px;
        bottom: 18px;
        width: 60px;
        height: 60px;
    }

    .m24-allegro-fab {
        top: 82px;
        right: 12px;
        min-width: 102px;
        height: 40px;
        padding: 0 13px;
    }
}
