/* Delivery Estimator – Frontend Styles */

/* ── Cart / Checkout widget ───────────────────────────────── */
.de-estimate-row th {
    padding: 10px 0 0;
    border: none;
}

.de-estimate-box {
    background: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-left: 4px solid #2c7be5;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 8px 0 4px;
    font-size: 0.92em;
    line-height: 1.6;
}

.de-estimate-headline {
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.de-estimate-date {
    font-size: 1.15em;
    font-weight: 600;
    color: #2c7be5;
    margin-bottom: 4px;
}

.de-estimate-shipping { color: #444; }
.de-shipping-cost { color: #333; }
.de-shipping-cost.de-free { color: #28a745; }

.de-upsell {
    margin-top: 6px;
    font-size: 0.88em;
    color: #e67e22;
    font-weight: 500;
}

.de-estimate-note { color: #666; font-style: italic; }
.de-estimate-box.de-loading { opacity: 0.55; pointer-events: none; }


/* ── Product page widget ──────────────────────────────────── */
.de-product-wrap {
    width: 100%;
    clear: both;
    margin: 16px 0;
    box-sizing: border-box;
}

.de-product-estimate {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-left: 4px solid #2c7be5;
    border-radius: 6px;
    padding: 13px 18px;
    box-sizing: border-box;
    width: 100%;
}

.de-product-icon {
    font-size: 1.6em;
    flex-shrink: 0;
    line-height: 1;
}

.de-product-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    flex: 1;
    min-width: 0;
}

.de-product-headline {
    font-size: 0.78em;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.de-product-date {
    font-weight: 700;
    color: #2c7be5;
    font-size: 1em;
}

.de-product-sub {
    font-size: 0.8em;
    color: #aaa;
    font-style: italic;
    width: 100%;
}

.de-product-free {
    font-size: 0.8em;
    color: #28a745;
    font-weight: 500;
    margin-left: auto;
}

.de-product-free a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.de-product-free a:hover { opacity: 0.75; }

/* Backorder state */
.de-product-estimate.de-backorder {
    border-left-color: #e67e22;
    background: #fffbf5;
}

.de-product-estimate.de-backorder .de-product-date {
    color: #e67e22;
}
