/* parcel shipping needs a minimum weight of frozen goods (ViewConfig::getMinParcelWeight());
   local delivery and pickup do not - hints on details/list pages, progress + refill in the basket */

/* details page: below price and shipping note */
.fd-parcel-hint {
    margin-top: .5rem;
    padding: .5rem .75rem;
    border-left: 3px solid #79aaaf;
    border-radius: 0 8px 8px 0;
    background: #f2f7f7;
    color: #4f3429;
    font-size: 14px;
    line-height: 1.35;
}

/* list items: one discreet line in the top corner of the title area
   (the card body is a centred flex row, the title stays where it was) */
.fd-parcel-list-hint {
    position: absolute;
    top: 6px;
    right: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    color: #79aaaf;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* basket sidebar */
.fd-parcel-box {
    margin-top: 12px;
    padding: 15px;
    border-radius: 30px;
    background-color: #79aaaf;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}
.fd-parcel-box.is-reached {
    background-color: #e8f3ec;
    color: #2d6a3e;
}
.fd-parcel-title {
    font-size: 16px;
}
.fd-parcel-title strong {
    font-family: Rounded-Bold, Arial, Helvetica, sans-serif;
}
.fd-parcel-note {
    margin-top: 6px;
    font-size: 13px;
}

.fd-parcel-bar {
    position: relative;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
}
.fd-parcel-bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #fff;
    transition: width .3s ease;
}

/* refill products (1 kg packs) below the bar */
.fd-parcel-refill {
    margin-top: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    color: #4f3429;
}
.fd-parcel-refill-head {
    margin-bottom: 6px;
    font-family: Rounded-Bold, Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.fd-parcel-refill-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid #f1ebe2;
}
.fd-parcel-refill-item:first-of-type {
    border-top: 0;
}
.fd-parcel-refill-img {
    flex: 0 0 56px;
}
.fd-parcel-refill-img img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.fd-parcel-refill-info {
    flex: 1 1 0;
    min-width: 0;
}
.fd-parcel-refill-title {
    display: block;
    color: #4f3429;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}
.fd-parcel-refill-price {
    font-family: Rounded-Bold, Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.fd-parcel-refill-unit {
    font-family: Rounded-Reg, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #7a6a62;
}
.fd-parcel-refill-btn {
    flex: 1 0 100%;
}
.fd-parcel-refill-vat {
    margin-top: 4px;
    font-size: 11px;
    color: #7a6a62;
}

/* minibasket flyout */
.fd-parcel-mini .fd-parcel-bar {
    margin-bottom: 4px;
    background: #e3eeef;
}
.fd-parcel-mini .fd-parcel-bar-fill {
    background: #79aaaf;
}
.fd-parcel-mini small {
    display: block;
    font-size: 13px;
}
/* mini basket: parcel weight reached - green box like the basket sidebar (#basketModal beats the theme colour) */
#basketModal .fd-parcel-mini.is-reached,
.fd-parcel-mini.is-reached {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 20px;
    background-color: #e8f3ec;
    color: #2d6a3e;
    line-height: 1.35;
}
#basketModal .fd-parcel-mini-title,
.fd-parcel-mini-title {
    color: #2d6a3e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Rounded-Bold, Arial, Helvetica, sans-serif;
    font-size: 16px;
}
.fd-parcel-check {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #2d6a3e;
}
.fd-parcel-check::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
#basketModal .fd-parcel-mini-note,
.fd-parcel-mini-note {
    padding-left: 30px;
    font-size: 13px;
    color: #3f6b4c;
}
.fd-shipping-estimate-note {
    margin-top: 2px;
    color: #6c757d;
}

/* basket summary: shipping options for guests */
.fd-shipping-estimate {
    gap: 12px;
}
.fd-shipping-estimate-label {
    flex: 0 0 auto;
}
.fd-shipping-estimate-text {
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}
.fd-shipping-estimate-option,
.fd-shipping-estimate-link {
    display: block;
}
.fd-shipping-estimate-link {
    white-space: nowrap;
}
.fd-parcel-hint strong {
    font-family: Rounded-Bold, Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.fd-parcel-refill-more {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #79aaaf;
    border-radius: 20px;
    background: #fff;
    color: #79aaaf;
}
.fd-parcel-refill-more:hover,
.fd-parcel-refill-more:focus {
    background: #79aaaf;
    color: #fff;
}

/* trial shipment via ad: explain that the lower minimum is a one-time offer */
.fd-parcel-trial {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
}
.fd-parcel-mini .fd-parcel-trial {
    border-top-color: rgba(0, 0, 0, 0.15);
}
.fd-parcel-trial-thankyou {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef5f5;
    color: #4a3b35;
    text-align: left;
}
