/* Dokan [dokan-stores]: keep uneven store descriptions in complete rows. */
#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Legacy clearfix pseudo-elements must not become empty grid cells. */
#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap::before,
#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap::after {
    display: none;
    content: none;
}

#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap > .dokan-single-seller {
    float: none;
    clear: none;
    display: flex;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

#dokan-seller-listing-wrap.grid-view .store-wrapper > .store-header {
    flex-shrink: 0;
}

#dokan-seller-listing-wrap.grid-view .store-wrapper > .store-content {
    flex: 1 0 auto;
    overflow-wrap: anywhere;
}

#dokan-seller-listing-wrap.grid-view .store-wrapper > .store-footer {
    margin-top: auto;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    #dokan-seller-listing-wrap.grid-view .dokan-seller-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    #dokan-seller-listing-wrap.grid-view .dokan-seller-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

#dokan-seller-listing-wrap {
	margin-top: 2rem;
}
