.b4d-feeding-calculator {
    max-width: 820px;
    margin: 30px auto;
    padding: 26px;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    box-sizing: border-box;
}

.b4d-feeding-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.b4d-feeding-header p {
    margin: 0 0 22px;
    color: #555555;
    font-size: 16px;
    line-height: 1.5;
}

.b4d-form-group {
    margin-bottom: 18px;
}

.b4d-form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #222222;
}

.b4d-form-group input,
.b4d-form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
    box-sizing: border-box;
}

.b4d-form-group input:focus,
.b4d-form-group select:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.b4d-calc-button,
.b4d-order-button {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.b4d-calc-button:hover,
.b4d-order-button:hover {
    opacity: 0.9;
}

.b4d-calc-button:active,
.b4d-order-button:active {
    transform: scale(0.99);
}

.b4d-order-button {
    margin-top: 18px;
    background: #2e7d32;
}

.b4d-order-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.b4d-error {
    display: none;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #ffecec;
    border: 1px solid #ffb5b5;
    color: #9b0000;
    font-weight: 600;
}

.b4d-result {
    display: none;
    margin-top: 24px;
    padding: 20px;
    border-radius: 14px;
    background: #f8f8f8;
    border: 1px solid #dddddd;
}

.b4d-result h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.b4d-result-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid #dddddd;
    font-size: 16px;
}

.b4d-result-row:last-of-type {
    border-bottom: none;
}

.b4d-result-label {
    font-weight: 700;
    color: #222222;
}

.b4d-meal-guidance {
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dddddd;
}

.b4d-meal-guidance h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.b4d-meal-guidance .b4d-result-row:last-of-type {
    border-bottom: none;
}

.b4d-per-meal-amount {
    text-align: right;
}

.b4d-recommended-row {
    margin-top: 4px;
    padding: 14px 0;
    font-size: 18px;
}

.b4d-recommended-row .b4d-suggested-order {
    font-weight: 900;
}

.b4d-note {
    margin-top: 15px;
    padding: 13px 14px;
    border-left: 4px solid #111111;
    border-radius: 8px;
    background: #ffffff;
    color: #444444;
    font-size: 14px;
    line-height: 1.5;
}

.b4d-puppy-growth-note {
    display: none;
    border-left-color: #b45f06;
    background: #fff8ee;
}

.b4d-sample-order {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dddddd;
}

.b4d-sample-order h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.b4d-sample-order p {
    margin: 0 0 15px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.b4d-sample-order-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
}

.b4d-sample-order-item:last-child {
    border-bottom: none;
}

.b4d-sample-product-name {
    color: #222222;
}

.b4d-sample-product-qty {
    font-weight: 800;
    white-space: nowrap;
    color: #222222;
}

.b4d-cart-message {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;.b4d-feeding-calculator {
    font-weight: 700;
}

.b4d-cart-message.b4d-cart-success {
    display: block;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.b4d-cart-message.b4d-cart-error {
    display: block;
    background: #ffecec;
    border: 1px solid #ffb5b5;
    color: #9b0000;
}

.b4d-disclaimer {
    margin-top: 24px;
    color: #666666;
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .b4d-feeding-calculator {
        margin: 20px 12px;
        padding: 20px;
    }

    .b4d-feeding-header h2 {
        font-size: 24px;
    }

    .b4d-result-row,
    .b4d-sample-order-item {
        flex-direction: column;
        gap: 4px;
    }

    .b4d-per-meal-amount {
        text-align: left;
    }

    .b4d-sample-product-qty {
        white-space: normal;
    }
}