/* WW James Tools — Mower Tool v1.2.0 */

.jlm-mower-tool-wrap * { box-sizing: border-box; }

.jlm-tool {
    --jlm-green:  #005e2b;
    --jlm-lime:   #8cb639;
    --jlm-orange: #D4581A;
    --jlm-dark:   #2C2C2C;
    font-family: 'Open Sans', system-ui, sans-serif;
    background: #f3f8f3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,60,20,0.16);
    width: 100%;
}

/* ── Header ── */
.jlm-tool__header {
    background: var(--jlm-green);
    padding: 16px 22px 14px;
}
.jlm-tool__title {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

/* ── Body layout ── */
.jlm-tool__body {
    display: flex;
    flex-wrap: wrap;
}

/* ── Controls ── */
.jlm-tool__controls {
    flex: 1 1 250px;
    padding: 18px 20px 16px;
}

/* Labels — 20px orange */
.jlm-label {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--jlm-orange);
    margin-bottom: 10px;
    display: block;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

/* Unit toggle */
.jlm-unit-toggle {
    display: inline-flex;
    border: 1.5px solid var(--jlm-green);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 12px;
}
.jlm-unit-btn {
    padding: 5px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: white;
    color: var(--jlm-green);
    transition: background 0.15s, color 0.15s;
}
.jlm-unit-btn.is-active {
    background: var(--jlm-green);
    color: white;
}

/* Slider */
.jlm-slider-wrap { margin-bottom: 20px; }
.jlm-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--jlm-green) var(--pct,10%), #c0d8c0 var(--pct,10%));
    outline: none;
    cursor: pointer;
    margin-bottom: 8px;
}
.jlm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--jlm-green);
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,60,20,0.35);
}
.jlm-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--jlm-green);
    cursor: pointer;
    border: none;
}
.jlm-size-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--jlm-dark);
}

/* Deck section — centered */
.jlm-deck-section { text-align: center; }
.jlm-deck-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.jlm-deck-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.jlm-deck-btn {
    width: 54px;
    padding: 9px 4px 7px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    border: 1.5px solid #ccd8cc;
    background: white;
    color: var(--jlm-dark);
    transition: all 0.12s;
    text-align: center;
}
.jlm-deck-btn:hover { border-color: var(--jlm-green); }
.jlm-deck-btn.is-active {
    background: var(--jlm-green);
    color: white;
    border-color: var(--jlm-green);
    box-shadow: 0 2px 10px rgba(0,94,43,0.4);
}
.jlm-deck-btn.is-suggested:not(.is-active) {
    border-color: var(--jlm-lime);
    background: #eef7e6;
}
.jlm-deck-in { font-size: 14px; font-weight: 500; line-height: 1.1; }
.jlm-deck-type { font-size: 9px; opacity: 0.55; font-family: 'Open Sans', sans-serif; margin-top: 2px; }

/* Fit badge */
.jlm-fit-badge {
    font-size: 11px;
    padding: 3px 11px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}
.jlm-fit-badge--suggest { background: var(--jlm-orange); color: white; }
.jlm-fit-badge--good {
    background: transparent;
    color: #2a7c4a;
    font-family: 'Open Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    cursor: default;
}

/* ── Visual panel ── */
.jlm-tool__visual {
    flex: 1 1 174px;
    min-width: 174px;
    background: white;
    border-left: 1px solid #d8e8d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-align: center;
}
.jlm-mower-svg { display: block; margin: 0 auto 6px; }
.jlm-mower-photo {
    max-width: 150px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    border-radius: 4px;
}
.jlm-mower-link { display: block; text-decoration: none; }
.jlm-mower-link:hover .jlm-mower-photo { opacity: 0.88; }
.jlm-mower-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11.5px;
    color: var(--jlm-green);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.jlm-mower-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    text-align: left;
    width: 100%;
}
.jlm-mower-bullets li {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #555;
    padding: 3px 0 3px 14px;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid #f0f4f0;
}
.jlm-mower-bullets li:last-child { border-bottom: none; }
.jlm-mower-bullets li::before {
    content: '\2713';
    color: var(--jlm-green);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 10px;
}
.jlm-view-product {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--jlm-green);
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
    font-family: 'Open Sans', sans-serif;
}
.jlm-view-product:hover { color: var(--jlm-orange); text-decoration: underline; }

/* ── Results bar — all white ── */
.jlm-tool__results {
    background: var(--jlm-dark);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.jlm-result-clocks {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jlm-result-info { flex: 1 1 140px; }
.jlm-result-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 3px;
}
.jlm-result-time {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.1;
}
.jlm-result-caveat {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    font-family: 'Open Sans', sans-serif;
    margin-top: 4px;
}
.jlm-result-cta { flex: 1 1 180px; }

/* CTA button — full-width, bright orange hover */
.jlm-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background: var(--jlm-orange);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.15s;
}
.jlm-cta-btn:hover {
    background: #ff6a00;
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .jlm-tool__visual {
        width: 100%;
        border-left: none;
        border-top: 1px solid #d8e8d8;
        flex-direction: row;
        gap: 14px;
        padding: 14px 16px;
        justify-content: flex-start;
    }
    .jlm-mower-bullets { margin: 0; }
    .jlm-tool__results { flex-direction: column; align-items: flex-start; }
    .jlm-result-cta { width: 100%; }
    .jlm-cta-btn { width: 100%; }
}

/* ── Brand Logo Band [jlm_brand_logos] ──────────────────────── */
.jlm-brand-band {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-top: 3px solid var(--ww-color-a, #005e2b);
    border-bottom: 1px solid #e0ece0;
    padding: 0;
    width: 100%;
}
.jlm-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    text-decoration: none;
    color: #2c2c2c;
    flex: 1 1 0;
    border-right: 1px solid #e8eee8;
    transition: background 0.15s;
    min-height: 80px;
    text-align: center;
}
.jlm-brand-item:last-child { border-right: none; }
.jlm-brand-item:hover {
    background: #f3f8f3;
    text-decoration: none;
    color: var(--ww-color-a, #005e2b);
}
.jlm-brand-logo {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(30%) opacity(0.85);
    transition: filter 0.15s;
}
.jlm-brand-item:hover .jlm-brand-logo {
    filter: none;
}
.jlm-brand-name-fallback {
    font-size: 15px;
    font-weight: 600;
    color: var(--ww-color-a, #005e2b);
    letter-spacing: 0.04em;
}
.jlm-brand-tagline {
    font-size: 10px;
    color: #999;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .jlm-brand-item {
        flex: 1 1 33.33%;
        max-width: 33.33%;
        padding: 12px 8px;
    }
    .jlm-brand-tagline { display: none; }
}
@media (max-width: 380px) {
    .jlm-brand-item { flex: 1 1 50%; max-width: 50%; }
}
