/* Free Delivery Pro — front styles (PS 1.7+) */

/* Native product flag badge on product images */
.product-flags li.product-flag.free-delivery {
    background: #28a745;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

/* Custom hook label (legacy) */
span.free_delivery_list {
    background-color: #28a745;
    bottom: 0;
    color: #fff;
    display: block;
    font: 700 12px/16px Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
    max-width: 100%;
    opacity: 0.9;
    padding: 4px 8px;
    position: absolute;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

/* Free delivery progress (cart page, product page, banner, add-to-cart modal) */
.pd-fdp-slot:empty {
    display: none;
}
.pd-fdp-progress {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    color: #232323;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: left;
}
.pd-fdp-progress--reached {
    background: #f3faf5;
    border-color: #cfe8d8;
}
.pd-fdp-progress__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #f1f3f5;
}
.pd-fdp-progress--reached .pd-fdp-progress__icon {
    background: #fff;
}
.pd-fdp-progress__icon svg,
.pd-fdp-note__icon svg {
    display: block;
}
.pd-fdp-progress__body {
    flex: 1 1 auto;
    min-width: 0;
}
.pd-fdp-progress__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
}
.pd-fdp-progress__amount {
    font-weight: 700;
    white-space: nowrap;
}
.pd-fdp-progress__track {
    position: relative;
    height: 0.5rem;
    margin: 0.5rem 0 0.4rem;
    border-radius: 999px;
    overflow: hidden;
}
.pd-fdp-progress__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}
.pd-fdp-progress__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0.25rem 0 0;
    color: #6c757d;
    font-size: 0.8125rem;
}
.pd-fdp-progress__meta span {
    min-width: 0;
}

/* Short information in the cart summary */
.pd-fdp-slot--summary {
    margin: 0 0 0.75rem;
}
.pd-fdp-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    color: #232323;
    font-size: 0.875rem;
    line-height: 1.35;
}
.pd-fdp-note--reached {
    background: #f3faf5;
    border-color: #cfe8d8;
}
.pd-fdp-note__icon {
    flex: 0 0 auto;
    margin-top: 0.05rem;
}
.pd-fdp-note__text {
    font-weight: 600;
    min-width: 0;
}
.pd-fdp-note__carriers {
    display: block;
    margin-top: 0.125rem;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Banner position */
.pd-fdp-banner .pd-fdp-progress {
    max-width: 640px;
    margin: 0.5rem auto;
}

/* Add-to-cart modal */
.modal .pd-fdp-progress {
    margin: 0.75rem 0 0;
}

@media (max-width: 991px) {
    .pd-fdp-slot--with-bar {
        display: none;
    }
}

@media (max-width: 575px) {
    .pd-fdp-progress {
        gap: 0.625rem;
        padding: 0.75rem;
    }
    .pd-fdp-progress__icon {
        width: 2rem;
        height: 2rem;
    }
    .pd-fdp-progress__meta {
        flex-direction: column;
    }
}
