/* ADW Mobile bottom add-to-cart bar */

.adw-mobile-cart {
    display: none;
}

@media (max-width: 767px) {
    body.single-product.adw-mobile-cart-active footer,
    body.single-product.adw-mobile-cart-active .woocommerce-product-details__add-to-cart,
    body.single-product.adw-mobile-cart-active form.cart,
    body.single-product.adw-mobile-cart-active .single_add_to_cart_button,
    body.single-product.adw-mobile-cart-active .product .cart {
        display: none !important;
    }

    body.single-product.adw-mobile-cart-active {
        padding-bottom: 136px;
    }

    .adw-mobile-cart {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 99999;
        display: block;
        background: var(--adw-mobile-card-bg, var(--adw-pub-bg, #ffffff));
        padding: 12px;
        border: 1px solid var(--adw-mobile-border, var(--adw-pub-border, #e8e8ea));
        border-radius: var(--adw-pub-radius, 16px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
        font-family: 'Roboto', sans-serif;
    }

    .adw-mobile-cart__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .adw-mobile-cart__qty {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .adw-mobile-cart__qty-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        color: var(--adw-mobile-text, var(--adw-pub-text, #1a1a1a));
        cursor: pointer;
        padding: 0;
        font-size: 22px;
        line-height: 1;
        font-weight: 500;
        transition: opacity 0.15s ease;
    }

    .adw-mobile-cart__qty-btn:hover {
        opacity: 0.6;
    }

    .adw-mobile-cart__qty-display {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 36px;
        border: 1px solid var(--adw-mobile-border, var(--adw-pub-border, #e8e8ea));
        border-radius: var(--adw-pub-radius-sm, 8px);
        background: var(--adw-mobile-card-bg, var(--adw-pub-bg, #ffffff));
        font-family: 'Roboto', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: var(--adw-mobile-text, var(--adw-pub-text, #1a1a1a));
        user-select: none;
    }

    .adw-mobile-cart__total {
        display: flex;
        align-items: baseline;
        gap: 6px;
        font-size: 13px;
        color: var(--adw-mobile-text, var(--adw-pub-muted, #666666));
        font-weight: 400;
    }

    .adw-mobile-cart__total-value {
        color: var(--adw-mobile-text, var(--adw-pub-text, #1a1a1a));
        font-size: 16px;
        font-weight: 700;
    }

    .adw-mobile-cart__variations {
        margin-bottom: 12px;
        padding: 8px;
        border: 1px solid var(--adw-mobile-border, var(--adw-pub-border, #e8e8ea));
        border-radius: var(--adw-pub-radius-sm, 8px);
        background: var(--adw-mobile-card-bg, var(--adw-pub-option-bg, #fafafa));
        font-size: 13px;
        color: var(--adw-mobile-text, var(--adw-pub-muted, #666666));
    }

    .adw-mobile-cart__variations:empty {
        display: none;
    }

    .adw-mobile-cart__variations-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 4px;
        border: none;
        background: transparent;
        font-family: 'Roboto', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: var(--adw-mobile-text, var(--adw-pub-text, #1a1a1a));
        cursor: pointer;
        transition: opacity 0.15s ease;
    }

    .adw-mobile-cart__variations-toggle:hover {
        opacity: 0.7;
    }

    .adw-mobile-cart__variations-toggle-icon {
        font-size: 10px;
        transition: transform 0.2s ease;
    }

    .adw-mobile-cart__variations-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .adw-mobile-cart__variations--open .adw-mobile-cart__variations-body {
        max-height: 400px;
    }

    body.single-product .adw-mobile-cart__variations .variations_form,
    body.single-product .adw-mobile-cart__variations .variations {
        display: block !important;
        width: 100%;
    }

    body.single-product .adw-mobile-cart__variations .variations_form .variations {
        display: table !important;
    }

    body.single-product .adw-mobile-cart__variations .variations_form .quantity,
    body.single-product .adw-mobile-cart__variations .variations_form .single_variation_wrap {
        display: none !important;
    }

    .adw-mobile-cart__submit {
        width: 100%;
        min-height: 52px;
        border: 1px solid transparent;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .adw-mobile-cart__submit--styled {
        background: var(--adw-pub-text, #111111);
        color: #ffffff;
    }

    .adw-mobile-cart__submit--rounded {
        border-radius: 12px;
    }

    .adw-mobile-cart__submit--pill {
        border-radius: 999px;
    }

    .adw-mobile-cart__submit--theme {
        background: inherit;
        color: inherit;
        border-radius: inherit;
        border: inherit;
        font: inherit;
    }

    .adw-mobile-cart__submit:hover {
        opacity: 0.9;
        transform: translateY(1px);
    }

    .adw-mobile-cart__submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}
