/* Shared calculator layout and components. */
.kb-calorie-wrap,
.kb-hydration-wrap,
.kb-protein-wrap { width:100%;padding:24px 0;display:flex;justify-content:center;background:#f8f3ee;font-family:'IBM Plex Sans',sans-serif }
.kb-calorie-grid,
.kb-hydration-grid,
.kb-protein-grid { max-width:980px;width:94% }
.kb-calorie-card,
.kb-hydration-card,
.kb-protein-card { background:#fff;padding:22px 20px;border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.10);border:1px solid #EFE3D9;color:#15363d }
.kb-calorie-form button,
.kb-hydration-form button,
.kb-protein-form button { margin-top:2px !important;border:0 !important;border-radius:999px !important;background:#A37652 !important;color:#faf5f1 !important;
    cursor:pointer !important;box-shadow:0 10px 22px rgba(163,118,82,.30) !important;min-height:46px !important;
    padding:12px 18px !important;font-size:14px !important;font-weight:800 !important;width:100% !important }
.kb-after-calc { display:none;margin-top:12px;gap:12px;opacity:0;transform:translateY(10px);transition:.35s ease }
.kb-after-calc.is-visible { opacity:1;transform:translateY(0) }
.kb-result { padding:12px;border-radius:10px;background:#f9f2eb;border:1px solid #e8d8ca }
.kb-result p { margin:0 }
.kb-product { border:1px solid #e8d8ca;border-radius:12px;background:#fff;overflow:hidden;height:100%;display:flex;flex-direction:column;padding:12px }
.kb-product-head h4 { margin:0 0 6px;font-size:22px;line-height:1.15;color:#15363d;font-weight:900 }
.kb-product-head p { margin:0 0 10px;font-size:14px;line-height:1.45;color:#2c4a50;font-weight:600 }
.kb-product-buy { display:block;text-align:center;text-decoration:none;background:#A37652;color:#fff !important;border-radius:999px;
    padding:12px 14px;font-size:14px;font-weight:900;letter-spacing:.01em;box-shadow:0 10px 22px rgba(163,118,82,.30);margin-bottom:12px }
.kb-product-buy:hover { filter:brightness(.96) }
.kb-product-media-link { display:block;border-radius:14px;overflow:hidden }
.kb-product-media { aspect-ratio:1/1;background:#f7f2ec;border:1px solid #efe3d9;border-radius:14px;overflow:hidden }
.kb-product-media img { width:100%;height:100%;object-fit:cover;display:block }
.kb-motive-overlay-inner { width:100%;transform:translateY(-18px) }
.kb-newsletter { margin-top:12px;padding:18px;border:1px solid #eadfce;border-radius:14px;background:#fffdfa }
.kb-newsletter-text { margin:0 0 14px;font-size:20px;line-height:1.75;color:#15363d;font-weight:400 }
.kb-newsletter-text strong { font-weight:900;color:#15363d }
.kb-newsletter .wpcf7-form { background:#fffdfa }
.kb-newsletter .wpcf7-list-item,.kb-newsletter .wpcf7-acceptance,.kb-newsletter .wpcf7-form-control-wrap { color:#39555b !important }
.kb-newsletter label { color:#39555b !important }
.kb-newsletter input[type="text"],.kb-newsletter input[type="email"],.kb-newsletter input[type="tel"] { background:#ffffff !important;border:1px solid #d9c8b9 !important;color:#15363d !important }
.kb-newsletter .wpcf7-list-item-label { color:#39555b !important;font-size:14px !important;line-height:1.6 !important }
@media (max-width: 900px) {
.kb-calorie-card,
.kb-hydration-card,
.kb-protein-card { padding:16px 14px;border-radius:14px }
.kb-calorie-form button,
.kb-hydration-form button,
.kb-protein-form button { min-height:42px !important;font-size:13px !important }
.kb-motive-overlay-inner { transform:translateY(-10px) }
.kb-product-head h4 { font-size:20px }
.kb-newsletter { padding:14px }
.kb-newsletter-text { font-size:17px;line-height:1.7 }
}

/* Vertical spacing for the calorie and hydration calculators. */
:is(.kb-calorie-card, .kb-hydration-card) {
    --kb-section-spacing: 20px;
    --kb-field-spacing: 16px;
}
:is(.kb-calorie-card, .kb-hydration-card) > h2 {
    margin-bottom: var(--kb-section-spacing) !important;
}
:is(.kb-calorie-card, .kb-hydration-card) > form {
    display: grid !important;
    row-gap: var(--kb-field-spacing) !important;
}
:is(.kb-calorie-card, .kb-hydration-card) > form > .kb-field {
    display: grid !important;
    row-gap: 6px !important;
}
:is(.kb-calorie-card, .kb-hydration-card) > form > button {
    margin-top: 4px !important;
}
:is(.kb-calorie-card, .kb-hydration-card) > .kb-after-calc {
    margin-top: var(--kb-section-spacing);
    row-gap: var(--kb-section-spacing);
}
:is(.kb-calorie-card, .kb-hydration-card) .kb-product-head p {
    margin-bottom: var(--kb-field-spacing) !important;
}
@media (max-width: 900px) {
    :is(.kb-calorie-card, .kb-hydration-card) {
        --kb-section-spacing: 16px;
        --kb-field-spacing: 12px;
    }
}
