/* Hide WooCommerce My Account dashboard greeting and default text */
.woocommerce-MyAccount-content p:first-of-type,
.woocommerce-MyAccount-content p:nth-of-type(2) {
    display: none;
}

/* WooCommerce My Account: horizontal pills with smaller buttons + scroll hint */
@media (max-width: 768px) {
  /* 1) Make the nav row scrollable */
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem 0.75rem;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

  /* 2) Reset theme defaults that make items full-width/stacked */
  .woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  /* 3) The actual "smaller pill" button */
  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: inline-block !important;     /* override display:block */
    width: auto !important;               /* kill width:100% overrides */
    max-width: max-content !important;
    font-size: 1.5rem !important;       /* ~14px; reduce if needed */
    line-height: 1.2 !important;
    padding: 0.8rem 1.6rem !important;    /* smaller tap area */
    border-radius: 0.75rem;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border: 1px solid #e1e1e1;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  }

  /* Slightly deemphasize inactives so the active contrasts */
  .woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a { opacity: 0.85; }
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    opacity: 1;
  }

  /* 4) Right-edge fade to signal more items (scroll) */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: relative;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation::after {
    content: '';
    position: absolute;
    right: 0; top: 0; height: 100%; width: 42px;
    pointer-events: none;
    background: linear-gradient(to left, #fff 45%, rgba(255,255,255,0));
  }

  /* 5) Optional: subtle press feedback */
  .woocommerce-account .woocommerce-MyAccount-navigation li a:active { transform: scale(0.98); }
}

/* ========================================
   POUCH AWARE - EMPTY BASKET REDESIGN
   Astra Free + WooCommerce
======================================== */

/* Empty basket container */
.astra-cart-drawer .wc-empty-mini-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 420px;
    padding: 45px 25px !important;
    box-sizing: border-box;
}

/* FIX: Oversized black cart icon */
.astra-cart-drawer .wc-empty-mini-cart > svg {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    margin: 0 auto 25px !important;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Change SVG colour */
.astra-cart-drawer .wc-empty-mini-cart > svg path {
    fill: #168f8b !important;
}

/* Empty basket message */
.astra-cart-drawer .wc-empty-message {
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #64767b !important;
    text-align: center !important;
    margin: 0 0 25px !important;
}

/* Return to shop button */
.astra-cart-drawer .wc-empty-mini-cart > a.bdt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #20343d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

/* Button hover */
.astra-cart-drawer .wc-empty-mini-cart > a.bdt-button:hover {
    background: #00a99d !important;
    color: #ffffff !important;
}

/* Cart drawer content */
.astra-cart-drawer .astra-cart-drawer-content {
    background: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {
    .astra-cart-drawer .wc-empty-mini-cart {
        min-height: 350px;
        padding: 35px 20px !important;
    }

    .astra-cart-drawer .wc-empty-mini-cart > svg {
        width: 65px !important;
        height: 65px !important;
    }
}
