/**
 * PrintNotch Delivery — the estimate as the customer sees it.
 *
 * Colours come from the PrintNotch theme's variables where they exist, with a
 * plain fallback so the plugin still looks deliberate on any other theme.
 */

.pnd-estimate {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid var(--pn-line, #e2e8f0);
    border-left: 4px solid var(--pn-blue, #2F76AF);
    border-radius: var(--pn-radius, 8px);
    background: var(--pn-blue-wash, #f1f6fb);
    font-size: 14px;
    line-height: 1.5;
}
.pnd-estimate.is-loading { opacity: .55; }

.pnd-line { display: flex; align-items: flex-start; gap: 8px; }
.pnd-icon { flex: 0 0 auto; margin-top: 1px; color: var(--pn-blue, #2F76AF); }
.pnd-text { color: var(--pn-body, #334155); }
.pnd-window { color: var(--pn-ink, #0f172a); font-weight: 700; }

.pnd-cutoff { padding-left: 24px; color: var(--pn-blue, #2F76AF); font-size: 13px; font-weight: 600; }
.pnd-notice { padding-left: 24px; color: #8a6116; font-size: 13px; }

/* Checkout sits inside the order-review table, where the border would double up. */
.pnd-estimate--checkout { margin: 8px 0; }
.pnd-row td { padding: 0 !important; }

/* Sits under its delivery option, on its own line. It has to survive a narrow
   checkout sidebar, so it wraps rather than pushing the box open. */
.pnd-method-eta {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    color: var(--pn-subtle, #64748b);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.pnd-method-eta strong { color: var(--pn-ink, #0f172a); font-weight: 700; }

.pnd-order-window {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--pn-blue, #2F76AF);
    background: var(--pn-blue-wash, #f1f6fb);
    font-size: 14px;
}

@media (max-width: 480px) {
    .pnd-estimate { font-size: 13px; }
}

/* Which option a single estimate is based on, when several are still on offer.
   Quiet by design: it qualifies the date above it rather than competing with it. */
.pnd-basis {
    display: block;
    margin-top: 2px;
    color: var(--pn-subtle, #64748b);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* The large-order invitation. Warmer than the estimate it sits under, because it
   is an offer rather than a fact, but not loud enough to compete with the date. */
.pnd-quote {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--pn-line, #e2e8f0);
    border-radius: 8px;
    background: var(--pn-wash, #f8fafc);
    font-size: 13px;
    line-height: 1.5;
}
.pnd-quote-icon { flex: 0 0 auto; margin-top: 1px; color: var(--pn-blue, #2F76AF); }
.pnd-quote-text { min-width: 0; overflow-wrap: anywhere; }
.pnd-quote a { color: var(--pn-blue, #2F76AF); font-weight: 600; }

/* In the order summary the box is already a box; a second border inside it
   just draws a line round a line. */
.pnd-row .pnd-quote,
.pnd-quote--checkout { border: 0; background: none; padding: 8px 0 0; margin-top: 4px; }

/* A warning with no date beside it needs its own breathing room — it is no
   longer hanging off the bottom of an estimate block. */
.pnd-estimate--notice-only { display: block; }
.pnd-estimate--notice-only .pnd-notice { margin-top: 0; }
