html body.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart),
html body.woocommerce-page .woocommerce-notices-wrapper:has(.kta-min-cart),
html body.woocommerce-cart .woocommerce-NoticeGroup:has(.kta-min-cart),
html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart),
html body.woocommerce-page .woocommerce-error:has(.kta-min-cart),
html body.woocommerce-cart .woocommerce-info:has(.kta-min-cart),
html body.woocommerce-cart .woocommerce-message:has(.kta-min-cart),
html body.woocommerce-cart [role="alert"]:has(.kta-min-cart) {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 none !important;
    border-color: transparent !important;
    outline: 0 none !important;
    box-shadow: none !important;
    background: none !important;
    background-image: none !important;
    color: inherit !important;
    text-align: inherit !important;
}

html body.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart)::before,
html body.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart)::after,
html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart)::before,
html body.woocommerce-page .woocommerce-error:has(.kta-min-cart)::before,
html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart)::after,
html body.woocommerce-cart [role="alert"]:has(.kta-min-cart)::before,
html body.woocommerce-cart [role="alert"]:has(.kta-min-cart)::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart) li,
html body.woocommerce-page .woocommerce-error:has(.kta-min-cart) li,
html body.woocommerce-cart [role="alert"]:has(.kta-min-cart) li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 none !important;
    outline: 0 none !important;
    box-shadow: none !important;
    background: none !important;
    text-align: inherit !important;
}

.kta-min-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--kta-bg, #16120c);
    color: var(--kta-text, #d8c6a0);
    border: 1px solid var(--kta-border, #e8b86d) !important;
    outline: 0 none;
    box-shadow: none;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    width: 100%;
}

.kta-min-cart__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    background-color: var(--kta-icon, #e8b86d);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.25'/%3E%3Ccircle cx='18' cy='20' r='1.25'/%3E%3Cpath d='M3 4h2l2.1 11.3A2 2 0 0 0 9.1 17h8.5a2 2 0 0 0 2-1.5L22 8H6.4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.25'/%3E%3Ccircle cx='18' cy='20' r='1.25'/%3E%3Cpath d='M3 4h2l2.1 11.3A2 2 0 0 0 9.1 17h8.5a2 2 0 0 0 2-1.5L22 8H6.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kta-min-cart__body {
    min-width: 0;
    flex: 1;
}

.kta-min-cart strong {
    display: block;
    margin: 0 0 6px;
    color: var(--kta-title, #fff8ea);
    font-size: var(--kta-title-size, 15px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.5;
}

.kta-min-cart__text {
    display: block;
    color: var(--kta-text, #d8c6a0);
    font-size: var(--kta-text-size, 13px);
    line-height: 1.85;
    white-space: pre-wrap;
}

.kta-min-cart__price {
    color: var(--kta-price, #e8b86d);
    font-weight: 700;
}

body.woocommerce-cart:has(.kta-min-cart) .wc-proceed-to-checkout,
body.woocommerce-cart:has(.kta-min-cart) a.checkout-button,
body.woocommerce-cart:has(.kta-min-cart) .checkout-button,
body.woocommerce-cart:has(.kta-min-cart) .cart-collaterals a[href*="checkout"] {
    pointer-events: none;
    opacity: 0.38;
    filter: grayscale(0.35);
    cursor: not-allowed;
}

@media (min-width: 768px) {
    html body.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart),
    html body.woocommerce-page.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart) {
        margin-top: 12px !important;
        margin-bottom: 0 !important;
    }

    html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart),
    html body.woocommerce-page .woocommerce-error:has(.kta-min-cart),
    html body.woocommerce-cart [role="alert"]:has(.kta-min-cart) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    html body.woocommerce-cart .woocommerce-notices-wrapper:has(.kta-min-cart),
    html body.woocommerce-page .woocommerce-notices-wrapper:has(.kta-min-cart),
    html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart),
    html body.woocommerce-page .woocommerce-error:has(.kta-min-cart),
    html body.woocommerce-cart [role="alert"]:has(.kta-min-cart) {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        text-align: right !important;
    }

    html body.woocommerce-cart .woocommerce-error:has(.kta-min-cart) li,
    html body.woocommerce-page .woocommerce-error:has(.kta-min-cart) li {
        margin: 0 !important;
        text-align: right !important;
    }

    .kta-min-cart {
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: right !important;
        gap: 12px;
        padding: 14px 14px 15px;
        border-radius: 14px;
        margin: 0 !important;
    }

    .kta-min-cart__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        margin-top: 2px;
    }

    .kta-min-cart__body,
    .kta-min-cart strong,
    .kta-min-cart__text {
        text-align: right !important;
    }
}
