#ingevity-pricing-calculator {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.pricing-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #856404;
}

.disclaimer p {
    margin: 0;
    font-size: 14px;
}

.disclaimer a {
    color: #0073aa;
    text-decoration: underline;
}

.password-field,
.pounds-field {
    margin-bottom: 20px;
}

.password-field label,
.pounds-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.password-field input,
.pounds-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#calculate-pricing {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calculate-pricing:hover {
    background-color: #005a87;
}

#calculate-pricing:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pricing-results {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border: 2px solid #0073aa;
    border-radius: 8px;
}

#pricing-results h4 {
    text-align: center;
    color: #0073aa;
    margin-bottom: 20px;
    font-size: 20px;
}

.price-container {
    margin-bottom: 20px;
}

/* --- UPDATED LAYOUT FOR PRICE ROW --- */
.price-item {
    display: flex;
    align-items: baseline;     /* align number and /lb nicely */
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #0073aa;

    /* keep items together instead of spacing each child out */
    justify-content: flex-start;
    gap: 0;                    /* no extra gaps between flex items */
    flex-wrap: nowrap;
}

.product-code {
    font-weight: bold;
    color: #333;
    font-size: 16px;

    /* take available space so price sits on the right */
    flex: 1 1 auto;
}

/* Price and unit use the SAME font and sit tightly together */
.price,
.unit {
    font-family: inherit;     /* same font as container (Arial) */
    font-size: 20px;
    line-height: 1;
    color: #0073aa;
}

.price {
    font-weight: bold;
    margin-left: auto;        /* push price (and unit after it) to the right */
    margin-right: 0.15em;     /* tight space before /lb */
    display: inline-flex;
    align-items: baseline;
}

.unit {
    font-weight: 400;         /* adjust if you want bold as well */
    display: inline-flex;
    align-items: baseline;
}

.price-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.price-info small {
    display: block;
    margin-bottom: 5px;
}

#last-updated {
    font-style: italic;
}

#error-message {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.volume-info {
    background-color: #e8f4f8;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.total-prices {
    background-color: #d4edda;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

.total-prices h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #155724;
    font-size: 18px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.total-item strong {
    color: #155724;
    font-size: 18px;
}

/* --- RESPONSIVE: keep price + unit together, stack code above --- */
@media (max-width: 600px) {
    #ingevity-pricing-calculator {
        margin: 10px;
        padding: 15px;
    }

    .price-item {
        flex-wrap: wrap;             /* allow product code to break to its own line */
    }

    .product-code {
        flex-basis: 100%;            /* full width on first line */
        margin-bottom: 8px;
    }

    .price {
        margin-left: 0;              /* no push once code is on its own line */
        margin-right: 0.15em;
    }
}
