/* PackMCF — Storefront CSS
 * Theme-agnostic. Works with any WooCommerce theme.
 * Theme can override any rule via standard CSS specificity.
 * ------------------------------------------------------------------ */

/* ── Plugin-injected stock badge (fallback when theme has none) ──── */
#pf-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

#pf-stock-badge .pf-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
    flex-shrink: 0;
}

#pf-stock-badge.is-in-stock  { color: #16A34A; }
#pf-stock-badge.is-in-stock  .pf-stock-dot { background: #16A34A; }

#pf-stock-badge.pf-stock--low  { color: #B45309; }
#pf-stock-badge.pf-stock--low  .pf-stock-dot { background: #D97706; }

#pf-stock-badge.is-out-of-stock { color: #DC2626; }
#pf-stock-badge.is-out-of-stock .pf-stock-dot { background: #DC2626; }

/* ── Low-stock state for theme badges that use Olanzu classes ─────── */
.olz-stock-badge.pf-stock--low { color: #B45309; }
.pf-stock--low .olz-stock-dot  { background: #D97706; }

/* ── Strikethrough price — override theme's del style ────────────── */
.woocommerce-variation-price del,
.summary .price del,
#olz-price-block del {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #A8A29E;
}

/* ── Per-sign price row ──────────────────────────────────────────── */
#pf-per-sign-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pf-per-sign-price {
    font-size: 14px;
    color: #6B6560;
    font-weight: 600;
}

.pf-save-badge {
    display: inline-flex;
    align-items: center;
    background: #DCFCE7;
    color: #15803D;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}

/* ── Price block — prototype layout ─────────────────────────────────
   [total 34px bold]  [per-sign 14px gray]  [~~base~~ 14px]  [Save X%]
   ------------------------------------------------------------------ */
#olz-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

#olz-price-block .pf-price-total {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
}

@media (max-width: 768px) {
    #olz-price-block .pf-price-total {
        font-size: 24px;
    }
}

#olz-price-block .pf-price-per-sign {
    font-size: 15px;
    color: #6B6560;
    font-weight: 600;
}

#olz-price-block del.pf-price-original {
    font-size: 15px;
    color: #A8A29E;
    font-weight: 600;
    text-decoration: line-through;
}

#olz-price-block .pf-save-badge {
    font-size: 12px;
    font-weight: 800;
    background: #DCFCE7;
    color: #15803D;
    padding: 3px 9px;
    border-radius: 20px;
    align-self: center;
}

/* ── Qty adjust message ──────────────────────────────────────────── */
#pf-qty-adjust-msg {
    font-size: 13px;
    font-weight: 600;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 10px;
}

/* ── Tier progress bar ───────────────────────────────────────────── */
#pf-tier-wrap {
    margin-top: 30px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 20px;
}

.pf-tier-next-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #15803D;
    margin-bottom: 7px;
    min-height: 1.4em;
}

.pf-tier-bar-wrap {
    position: relative;
    height: 9px;
    background: #ECEAE6;
    border-radius: 20px;
    overflow: hidden;
}

.pf-tier-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #D4AF37;
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
}

.pf-tier-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #A8A29E;
}

.pf-tier-marker {
    white-space: nowrap;
}

/* ── Tracking section (Thank You + My Account order pages) ──────── */
.pf-tracking-section {
    margin: 24px 0;
    padding: 18px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.pf-tracking-section__title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
}

.pf-tracking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-tracking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pf-tracking-carrier {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    background: #E2E8F0;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pf-tracking-number {
    font-size: 14px;
    font-weight: 600;
    color: #007BFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pf-tracking-number:hover {
    text-decoration: underline;
}

a.pf-tracking-number svg {
    opacity: 0.6;
}
