/* ============================================================
   RRS WooSup — style frontendowe
   ============================================================ */

/* ---- Omnibus: najniższa cena z 30 dni ---- */
.rrsws-omnibus {
    font-size: 0.8em;
    color: #6b7280;
    margin: 0.25em 0 0.75em;
    line-height: 1.4;
}

.rrsws-omnibus .woocommerce-Price-amount {
    font-weight: 600;
    color: #4b5563;
}

ul.products .rrsws-omnibus {
    font-size: 0.75em;
    margin: 0.15em 0 0.5em;
}

/* ---- Checkout: sekcja „Zamów na firmę" ---- */
.rrsws-company-fields {
    margin-top: 0.5em;
    padding: 1em;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.rrsws-company-fields.rrsws-hidden { display: none; }

.rrsws-nip-error {
    color: #dc2626;
    font-size: 0.85em;
    display: none;
}

.rrsws-nip-invalid .rrsws-nip-error { display: block; }
.rrsws-nip-invalid input { border-color: #dc2626 !important; }

/* ---- Checkout: zgody ---- */
.rrsws-consents {
    margin: 1em 0;
}

.rrsws-consents .rrsws-consent {
    display: block;
    margin-bottom: 0.5em;
    font-size: 0.85em;
    line-height: 1.45;
}

.rrsws-consents .rrsws-consent input {
    margin-right: 0.4em;
}

.rrsws-consent .required { color: #dc2626; text-decoration: none; }

/* ---- Pasek darmowej dostawy ---- */
.rrsws-freeship {
    margin: 0 0 1.25em;
    padding: 0.875em 1em;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.9em;
    color: #14532d;
}

.rrsws-freeship--done {
    background: #f0fdf4;
    border-color: #86efac;
}

.rrsws-freeship-text { margin: 0 0 0.5em; display: block; }
.rrsws-freeship-text strong { color: #15803d; }

.rrsws-freeship-track {
    height: 8px;
    background: #dcfce7;
    border-radius: 999px;
    overflow: hidden;
}

.rrsws-freeship-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #15803d);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Mini-koszyk — węższa wersja */
.widget_shopping_cart .rrsws-freeship {
    font-size: 0.8em;
    padding: 0.625em 0.75em;
}
