/**
 * PumpkinDP mobile experience polish v6
 * Contact form, product actions, cart item flow, and mobile navigation.
 */

@media (max-width: 921px) {
  /* One unmistakable action color across plugins and WooCommerce states. */
  body .wpforms-container button.wpforms-submit,
  body .wpforms-container .wpforms-submit,
  body ul.products li.product a.button,
  body ul.products li.product .button,
  body .woocommerce a.add_to_cart_button,
  body .woocommerce a.product_type_simple,
  body .single_add_to_cart_button,
  body a.added_to_cart,
  body .wc-block-components-button,
  body .wc-block-cart__submit-button,
  body .wc-block-components-checkout-place-order-button {
    border: 0 !important;
    background: #f47a1f !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  body .wpforms-container button.wpforms-submit:hover,
  body .wpforms-container button.wpforms-submit:focus,
  body ul.products li.product a.button:hover,
  body ul.products li.product a.button:focus,
  body .single_add_to_cart_button:hover,
  body .single_add_to_cart_button:focus,
  body a.added_to_cart:hover,
  body a.added_to_cart:focus,
  body .wc-block-components-button:hover,
  body .wc-block-components-button:focus {
    background: #dc6412 !important;
    color: #fff !important;
  }

  body .wpforms-container button.wpforms-submit {
    width: 100% !important;
    min-height: 52px;
    padding: 14px 22px !important;
    border-radius: 13px !important;
    font-weight: 750 !important;
  }

  /* High-contrast mobile navigation drawer. */
  body .ast-mobile-popup-drawer .ast-mobile-popup-inner,
  body #ast-mobile-popup .ast-mobile-popup-inner,
  body .ast-mobile-popup-drawer .ast-mobile-popup-content,
  body #ast-mobile-popup .ast-mobile-popup-content {
    background: #fff !important;
    color: #111318 !important;
  }

  body .ast-mobile-popup-drawer .main-header-menu,
  body #ast-mobile-popup .main-header-menu {
    background: transparent !important;
  }

  body .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link,
  body #ast-mobile-popup .main-header-menu > .menu-item > .menu-link {
    border: 1px solid #e5e8ec !important;
    background: #f7f8fa !important;
    color: #111318 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  body .ast-mobile-popup-drawer .main-header-menu > .current-menu-item > .menu-link,
  body .ast-mobile-popup-drawer .main-header-menu > .current-menu-ancestor > .menu-link,
  body .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link:hover,
  body #ast-mobile-popup .main-header-menu > .current-menu-item > .menu-link,
  body #ast-mobile-popup .main-header-menu > .current-menu-ancestor > .menu-link {
    border-color: #ffd5b7 !important;
    background: #fff3e9 !important;
    color: #d95f0d !important;
  }

  body .ast-mobile-popup-drawer .sub-menu,
  body #ast-mobile-popup .sub-menu {
    border: 1px solid #e5e8ec !important;
    background: #fff !important;
  }

  body .ast-mobile-popup-drawer .sub-menu .menu-link,
  body #ast-mobile-popup .sub-menu .menu-link,
  body .ast-mobile-popup-drawer .ast-menu-toggle,
  body #ast-mobile-popup .ast-menu-toggle {
    color: #303741 !important;
    opacity: 1 !important;
  }

  body .ast-mobile-popup-drawer .menu-toggle-close {
    background: #fff3e9 !important;
    color: #d95f0d !important;
  }
}

@media (max-width: 767px) {
  /* WooCommerce Blocks cart: image, name, price and quantity in a clean vertical flow. */
  body.woocommerce-cart .wc-block-cart-items,
  body.woocommerce-cart .wc-block-cart-items tbody {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 16px !important;
    overflow: hidden;
  }

  body.woocommerce-cart .wc-block-cart-items__row td,
  body.woocommerce-cart .wc-block-cart-item__image,
  body.woocommerce-cart .wc-block-cart-item__product,
  body.woocommerce-cart .wc-block-cart-item__total {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image {
    padding: 0 0 14px !important;
    text-align: center !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image a {
    display: inline-flex !important;
    width: 118px !important;
    max-width: 42vw;
  }

  body.woocommerce-cart .wc-block-cart-item__image img {
    display: block;
    width: 118px !important;
    max-width: 42vw !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain;
  }

  body.woocommerce-cart .wc-block-cart-item__product {
    min-height: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
    display: block !important;
    width: 100% !important;
    margin: 0 0 9px !important;
    overflow-wrap: anywhere;
    color: #111318 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.42 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .wc-block-cart-item__prices {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    margin: 0 0 12px !important;
    color: #f47a1f !important;
    text-align: left !important;
  }

  body.woocommerce-cart .wc-block-cart-item__quantity {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100% !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .wc-block-components-quantity-selector {
    width: 126px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .wc-block-cart-item__remove-link {
    margin: 0 !important;
    color: #737d89 !important;
  }

  body.woocommerce-cart .wc-block-cart-item__total {
    padding: 14px 0 0 !important;
    border-top: 1px solid #eceef1;
    margin-top: 14px !important;
  }

  body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    justify-content: flex-start !important;
  }

  /* Classic cart fallback. */
  body.woocommerce-cart table.shop_table_responsive tr.cart_item {
    display: block;
    padding: 16px;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    background: #fff;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
    float: none !important;
    display: block;
    margin-bottom: 4px;
    color: #737d89;
  }

  body.woocommerce-cart td.product-thumbnail {
    text-align: center !important;
  }

  body.woocommerce-cart td.product-thumbnail img {
    width: 118px !important;
    margin: 0 auto !important;
  }

  /* Keep product grids and action states readable on narrow screens. */
  body ul.products li.product .button,
  body ul.products li.product a.added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  body ul.products li.product a.added_to_cart {
    margin-top: 8px;
  }
}
