html {
    scroll-behavior: smooth;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix for WooCommerce Login/Register Form Layout */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the gap as needed */
    margin-bottom: 20px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    float: none !important; /* CRITICAL: Override default float behavior */
    width: 48% !important; /* Set explicit width for desktop */
    min-width: 300px; /* Keep this to prevent columns from becoming too narrow */
}

/* Wishlist Page Button Alignment */
.bdm-wishlist-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%; /* Ensure it takes full width in the flex container */
}

@media (min-width: 600px) {
    .bdm-wishlist-item-actions {
        width: auto; /* Allow it to shrink on desktop */
    }
}


/* On smaller screens, make columns full width */
@media (max-width: 768px) {
    .woocommerce-account .u-column1,
    .woocommerce-account .u-column2 {
        width: 100% !important; /* Make columns full width on mobile */
        min-width: auto; /* Allow width to shrink below 300px on mobile */
    }
}
