/* Container holding both buttons (often .cart is a flex container in modern themes, but we add our own overrides) */
form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Style the Buy Now button */
.dbn-button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
    flex: 1; /* Make it stretch equally if next to Add to Cart */
    min-width: 140px;
    text-align: center;
}

.dbn-button:hover {
    background-color: #333333 !important;
}

.dbn-button:active {
    transform: scale(0.98);
}

/* Ensure Add to Cart button also behaves well next to it */
form.cart .single_add_to_cart_button {
    flex: 1;
    min-width: 140px;
}

/* On very small screens, stack the buttons */
@media (max-width: 480px) {
    form.cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dbn-button, form.cart .single_add_to_cart_button {
        width: 100%;
    }
}
