/* Cart notices share the mobile card style on every screen size. */
body.woocommerce-cart.sushi-mobile-layout .woocommerce-message,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-info,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-error {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 66px;
    margin: 0 0 16px !important;
    padding: 20px 24px 20px 62px !important;
    border: 1px solid rgba(208, 184, 133, .5) !important;
    border-radius: 12px !important;
    background: rgba(19, 19, 17, .88) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
    color: #f5f2e9 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: left !important;
    list-style: none !important;
    overflow-wrap: anywhere;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-message::before,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-info::before,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-error::before {
    content: "" !important;
    box-sizing: border-box !important;
    position: absolute !important;
    display: block !important;
    top: 21px !important;
    left: 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    background: #d0b885 !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-message::before {
    -webkit-mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
    mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-info::before {
    -webkit-mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7h.01'/%3E%3C/svg%3E");
    mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7h.01'/%3E%3C/svg%3E");
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-error {
    border-color: rgba(217, 136, 136, .7) !important;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-error::before {
    background-color: #d98888 !important;
    -webkit-mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
    mask-image: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

/* WooCommerce's clearfix adds an unnecessary flex item. */
body.woocommerce-cart.sushi-mobile-layout .woocommerce-message::after,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-info::after,
body.woocommerce-cart.sushi-mobile-layout .woocommerce-error::after {
    content: none !important;
    display: none !important;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-message .sushi-notice-copy {
    display: block !important;
    order: 0;
    width: 100%;
    max-width: 100%;
}

/* Order also covers Woo's original markup, where the undo link comes first. */
body.woocommerce-cart.sushi-mobile-layout .woocommerce-message .restore-item {
    display: block !important;
    order: 1;
    float: none !important;
    align-self: flex-start;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    min-height: 24px;
    color: #d0b885 !important;
    font: inherit !important;
    line-height: 24px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-error li {
    padding: 0 !important;
    margin: 0 0 6px !important;
}

body.woocommerce-cart.sushi-mobile-layout .woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

body.woocommerce-cart.sushi-mobile-layout .return-to-shop {
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart.sushi-mobile-layout .return-to-shop a.button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: min(240px, 100%);
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 24px !important;
    border: 1px solid #817033 !important;
    border-radius: 12px !important;
    background: #78662c !important;
    color: #f5f2e9 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal !important;
    transition: background-color .18s ease, border-color .18s ease;
}

body.woocommerce-cart.sushi-mobile-layout .return-to-shop a.button:hover {
    background: #8b7738 !important;
    border-color: #a28c49 !important;
}

body.woocommerce-cart.sushi-mobile-layout .restore-item:focus-visible,
body.woocommerce-cart.sushi-mobile-layout .return-to-shop a.button:focus-visible {
    outline: 2px solid #d0b885 !important;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    body.woocommerce-cart.sushi-mobile-layout .woocommerce-message,
    body.woocommerce-cart.sushi-mobile-layout .woocommerce-info,
    body.woocommerce-cart.sushi-mobile-layout .woocommerce-error {
        min-height: 58px;
        padding: 16px 16px 16px 52px !important;
    }

    body.woocommerce-cart.sushi-mobile-layout .woocommerce-message::before,
    body.woocommerce-cart.sushi-mobile-layout .woocommerce-info::before,
    body.woocommerce-cart.sushi-mobile-layout .woocommerce-error::before {
        top: 18px !important;
        left: 16px !important;
        width: 20px !important;
        height: 20px !important;
    }

    body.woocommerce-cart.sushi-mobile-layout .return-to-shop a.button {
        width: 100% !important;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-cart.sushi-mobile-layout .return-to-shop a.button {
        transition: none;
    }
}
