/* LPW Exclusive Fragile Delivery. Scoped to plugin classes to avoid theme conflicts. */
.lpw-efd-compact-card,
.lpw-efd-compact-card *,
.lpw-efd-checkout-card,
.lpw-efd-checkout-card * {
    box-sizing: border-box;
}

.lpw-efd-compact-card {
    width: 100%;
    margin: 14px 0 16px !important;
    padding: 12px !important;
    border: 1px solid #dbe7d7 !important;
    border-radius: 12px !important;
    background: #f8fbf6 !important;
    color: #273126 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.lpw-efd-compact-card__header {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #e3ebdf !important;
}

.lpw-efd-compact-card__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #e6f2e2 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    overflow: hidden !important;
}

.lpw-efd-compact-card__heading {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lpw-efd-compact-card__eyebrow {
    display: block !important;
    margin: 0 0 1px !important;
    color: #2a7423 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

.lpw-efd-compact-card__title {
    display: block !important;
    margin: 0 !important;
    color: #202820 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.lpw-efd-compact-card__price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-width: 78px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #d6e6d1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    text-align: right !important;
}

.lpw-efd-compact-card__price strong {
    margin: 0 !important;
    color: #1f271f !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.lpw-efd-compact-card__price small {
    display: block !important;
    margin: 2px 0 0 !important;
    color: #6a7368 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.lpw-efd-compact-card__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lpw-efd-compact-card__item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid #e4ece0 !important;
    border-radius: 8px !important;
    background: #fff !important;
}

.lpw-efd-compact-card__item > span {
    flex: 0 0 auto !important;
    width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.lpw-efd-compact-card__item div {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lpw-efd-compact-card__item strong,
.lpw-efd-compact-card__item small {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lpw-efd-compact-card__item strong {
    color: #2a3229 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.lpw-efd-compact-card__item small {
    margin-top: 2px !important;
    color: #6b736a !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
}

.lpw-efd-compact-card__details {
    margin: 9px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.lpw-efd-compact-card__details summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #356630 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
}

.lpw-efd-compact-card__details p {
    margin: 7px 0 0 !important;
    padding: 8px 9px !important;
    border-radius: 7px !important;
    background: #eef5eb !important;
    color: #4d574b !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

/* Compact cart/checkout explanation beneath the exclusive shipping rate. */
.lpw-efd-checkout-card {
    display: block !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 8px 0 2px !important;
    padding: 9px 10px !important;
    border: 1px solid #dbe7d7 !important;
    border-radius: 9px !important;
    background: #f8fbf6 !important;
    color: #334032 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.lpw-efd-checkout-card__title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #263225 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}

.lpw-efd-checkout-card__title span {
    font-size: 14px !important;
    line-height: 1 !important;
}

.lpw-efd-checkout-card__facts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
}

.lpw-efd-checkout-card__facts span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 3px 7px !important;
    border: 1px solid #dbe7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #356630 !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
}

.lpw-efd-checkout-card__message {
    margin: 0 !important;
    padding: 0 !important;
    color: #596257 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* The JS adds this class after classic/Fluid Checkout AJAX refreshes. */
.lpw-efd-exclusive-rate {
    border: 1px solid #dbe7d7 !important;
    border-radius: 10px !important;
    background: #fcfefb !important;
    list-style: none !important;
}

/* Some checkout themes add a list marker or decorative pseudo-element to shipping rows.
   On Fluid Checkout this can appear as a tiny empty square below our card. */
.lpw-efd-exclusive-rate::marker {
    content: '' !important;
    font-size: 0 !important;
}

.lpw-efd-exclusive-rate::before,
.lpw-efd-exclusive-rate::after {
    content: none !important;
    display: none !important;
}

/* Fluid Checkout and some themes draw an option-state glyph on the label ::after.
   When our custom delivery description is multi-line, that glyph can fall below the
   description and appear as a tiny empty square. Keep the normal radio control, but
   suppress only the trailing label decoration on our specialist shipping rate. */
.lpw-efd-exclusive-label::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Fallback used by the JS only for tiny, empty, non-interactive elements that a
   theme may append after our checkout card. */
.lpw-efd-orphan-decoration {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.lpw-efd-checkout-card + :empty:not(input):not(button):not(select):not(textarea):not(a):not(label) {
    display: none !important;
}

.lpw-efd-exclusive-rate > label,
.lpw-efd-exclusive-rate label {
    font-weight: 700 !important;
}

.lpw-efd-unavailable {
    display: block !important;
    padding: 10px 12px !important;
    border: 1px solid #ead6b4 !important;
    border-radius: 8px !important;
    background: #fff9ef !important;
    line-height: 1.45 !important;
}

@media (max-width: 680px) {
    .lpw-efd-compact-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .lpw-efd-compact-card__header {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .lpw-efd-compact-card__price {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 5px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 8px !important;
        text-align: left !important;
    }

    .lpw-efd-compact-card__grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .lpw-efd-compact-card__item {
        min-height: 0 !important;
        padding: 7px 8px !important;
    }

    .lpw-efd-checkout-card {
        max-width: none !important;
        padding: 8px 9px !important;
    }
}
