.ml-sale-heading {
    margin: 0 0 32px;
    text-align: center;
}

.ml-sale-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-sale-grid__item {
    min-width: 0;
}

.ml-sale-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e7e7e7;
}

.ml-sale-card__image-link:focus,
.ml-sale-card__title-link:focus,
.ml-sale-card__button:focus,
.ml-sale-all-link:focus {
    outline: 3px solid #176ec4 !important;
    outline-offset: 4px;
}

.ml-sale-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 48px 16px 16px;
    overflow: hidden;
}

.ml-sale-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ml-sale-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: contain;
    transition: transform .2s ease;
}

.ml-sale-card__image-link:hover img,
.ml-sale-card__image-link:focus img {
    transform: scale(1.04);
}

.ml-sale-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ml-sale-card__badge,
.ml-sale-card__discount {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.ml-sale-card__badge {
    color: #713400;
    background: #fff0de;
}

.ml-sale-card__discount {
    color: #fff;
    background: #bb4c00;
}

.ml-sale-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
}

.ml-sale-card__title {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ml-sale-card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.ml-sale-card__title-link:hover,
.ml-sale-card__title-link:focus {
    color: #176ec4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ml-sale-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-width: 0;
    max-width: 100%;
    gap: 4px 12px;
    margin-top: auto;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ml-sale-price-old,
.ml-sale-price-new {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ml-sale-price-old {
    color: #6a6a6a;
    font-size: 15px;
    text-decoration: line-through;
}

.ml-sale-price-new {
    color: #bb4c00;
    font-size: 22px;
    font-weight: 700;
}

.ml-sale-card__button {
    padding: 8px 16px;
}

.ml-sale-card__button:hover,
.ml-sale-card__button:focus {
    color: #2f89fc;
    background: transparent;
}

.ml-sale-section__footer {
    margin-top: 36px;
    text-align: center;
}

.ml-sale-all-link {
    padding: 10px 24px;
}

.ml-sale-empty {
    margin: 0;
}

.ml-sale-prices--single {
    margin: 0;
}

.ml-product-inquiry-dialog {
    width: min(600px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    overflow-y: auto;
    color: inherit;
    background: transparent;
}

.ml-product-inquiry-dialog:not([open]) {
    display: none;
}

.ml-product-inquiry-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.ml-product-inquiry-dialog .modal-dialog {
    margin: 0;
    max-width: none;
    min-height: 0;
}

.ml-product-inquiry-dialog .wpcf7-form p:last-child {
    margin-bottom: 0;
}

.ml-sale-inquiry-notice {
    margin: 0 0 20px;
    padding: 16px;
    color: #513500;
    background: #fff4df;
    border: 1px solid #dba54f;
}

.ml-sale-inquiry-notice p {
    margin: 0 0 10px;
}

.ml-sale-inquiry-notice button {
    white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
    .ml-sale-card__media img,
    .ml-sale-card__title-link {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .ml-sale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ml-sale-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ml-sale-card__media {
        aspect-ratio: 4 / 3;
    }
}
