.mmc-tool {
    --mmc-font-family: "Inter", Arial, Helvetica, sans-serif;
    --mmc-green: #315a35;
    --mmc-green-dark: #203c24;
    --mmc-soft: #f7f6f1;
    --mmc-green-soft: #eaf1e7;
    --mmc-ink: #171915;
    --mmc-text: #30362d;
    --mmc-muted: #687064;
    --mmc-line: #dedbd0;
    width: 100%;
    max-width: 100%;
    color: var(--mmc-ink);
    font-family: var(--mmc-font-family);
    font-size: 16px;
    line-height: 1.5;
}

.mmc-tool *,
.mmc-tool *::before,
.mmc-tool *::after {
    box-sizing: border-box;
}

.mmc-tool [hidden] {
    display: none !important;
}

.mmc-tool button,
.mmc-tool input,
.mmc-tool select {
    font-family: inherit;
    font-size: inherit;
}

.mmc-tool h2,
.mmc-tool h3,
.mmc-tool p,
.mmc-tool dl,
.mmc-tool dd {
    margin-top: 0;
}

.mmc-tool h2,
.mmc-tool h3 {
    color: var(--mmc-ink);
    font-family: inherit;
    letter-spacing: 0;
}

.mmc-tool__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    overflow: hidden;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(36, 42, 31, .1);
}

.mmc-tool__inputs,
.mmc-results {
    padding: 32px;
}

.mmc-results {
    border-left: 1px solid var(--mmc-line);
    background: var(--mmc-soft);
    scroll-margin-top: 90px;
}

.mmc-results:focus {
    outline: none;
}

.mmc-tool__head {
    margin-bottom: 24px;
}

.mmc-tool__head--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 22px;
    align-items: center;
}

.mmc-tool__head-copy {
    min-width: 0;
}

.mmc-tool__head-copy > p:last-child {
    margin-bottom: 0;
}

.mmc-material-image {
    overflow: hidden;
    width: 150px;
    aspect-ratio: 4 / 3;
    margin: 0;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: var(--mmc-soft);
}

.mmc-material-image[hidden] {
    display: none;
}

.mmc-material-fact[hidden],
.mmc-depth-help[hidden] {
    display: none;
}

.mmc-material-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmc-tool__head h2,
.mmc-results h3 {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
}

.mmc-results h3 {
    white-space: nowrap;
}

.mmc-tool__head > p:last-child,
.mmc-results__intro {
    margin-bottom: 0;
    color: var(--mmc-muted);
}

.mmc-tool__kicker {
    margin-bottom: 7px;
    color: var(--mmc-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.mmc-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mmc-field {
    display: grid;
    gap: 7px;
}

.mmc-field > span:first-child {
    color: #30362d;
    font-size: 13px;
    font-weight: 850;
}

.mmc-field input,
.mmc-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--mmc-ink);
}

.mmc-field input:focus,
.mmc-field select:focus {
    border-color: var(--mmc-green);
    box-shadow: 0 0 0 3px rgba(49, 90, 53, .12);
}

.mmc-input-unit {
    position: relative;
    display: block;
}

.mmc-input-unit input {
    padding-right: 70px;
}

.mmc-input-unit em {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--mmc-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
    transform: translateY(-50%);
    pointer-events: none;
}

.mmc-material-fact {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 14px 16px;
    border-left: 4px solid var(--mmc-green);
    border-radius: 8px;
    background: #f1f4ec;
}

.mmc-material-fact div {
    min-width: 0;
}

.mmc-material-fact strong,
.mmc-material-fact span {
    display: block;
}

.mmc-material-fact div > span {
    margin-top: 3px;
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-material-fact > span {
    flex: 0 0 auto;
    color: var(--mmc-green-dark);
    font-size: 13px;
    font-weight: 850;
}

.mmc-depth-help {
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 13px 15px;
    border-radius: 8px;
    background: var(--mmc-soft);
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-depth-help > strong {
    color: var(--mmc-green-dark);
}

.mmc-depth-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.mmc-depth-presets button {
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(49, 90, 53, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--mmc-green);
    font-weight: 800;
    cursor: pointer;
}

.mmc-depth-presets button:hover,
.mmc-depth-presets button:focus-visible {
    border-color: var(--mmc-green);
    background: var(--mmc-green);
    color: #fff;
}

.mmc-tool__actions {
    display: flex;
    position: relative;
    clear: both;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.mmc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid var(--mmc-green);
    border-radius: 8px;
    background: var(--mmc-green);
    color: #fff;
    font-weight: 850;
    line-height: 1.15;
    cursor: pointer;
}

.mmc-button:hover,
.mmc-button:focus-visible {
    border-color: var(--mmc-green-dark);
    background: var(--mmc-green-dark);
}

.mmc-button--secondary {
    border-color: var(--mmc-line);
    background: #fff;
    color: var(--mmc-ink);
}

.mmc-button--secondary:hover,
.mmc-button--secondary:focus-visible {
    border-color: rgba(49, 90, 53, .35);
    background: #f1f4ec;
    color: var(--mmc-green-dark);
}

.mmc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 16px;
}

.mmc-result-grid > div {
    display: grid;
    grid-template-rows: auto minmax(36px, 1fr);
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: #fff;
}

.mmc-result-grid__primary {
    border-color: var(--mmc-green) !important;
    background: var(--mmc-green) !important;
}

.mmc-result-grid dt {
    color: var(--mmc-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.mmc-result-grid dd {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin: 5px 0 0;
    color: var(--mmc-green-dark);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
}

.mmc-result-grid__primary dt,
.mmc-result-grid__primary dd {
    color: #fff;
}

.mmc-formula,
.mmc-bag-note,
.mmc-estimate-note {
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-lead-panel {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.mmc-lead-panel[hidden] {
    display: none;
}

.mmc-access {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mmc-access-step {
    display: grid;
    gap: 11px;
    margin: 18px 0 20px;
    padding: 16px;
    border: 1px solid rgba(49, 90, 53, .22);
    border-radius: 8px;
    background: var(--mmc-green-soft);
}

.mmc-access-step .mmc-tool__kicker {
    margin-bottom: -2px;
}

.mmc-access legend {
    margin-bottom: 9px;
    color: var(--mmc-ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.mmc-access__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.mmc-access__options label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.mmc-access__options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.mmc-access__options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: #fff;
    color: var(--mmc-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.mmc-access__options input:checked + span {
    border-color: var(--mmc-green);
    background: #eaf1e7;
    color: var(--mmc-green-dark);
    box-shadow: inset 0 0 0 1px var(--mmc-green);
}

.mmc-access__options input:focus-visible + span {
    outline: 3px solid rgba(49, 90, 53, .18);
    outline-offset: 2px;
}

.mmc-access-info {
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: #fff;
}

.mmc-access-info summary {
    padding: 11px 13px;
    color: var(--mmc-green-dark);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.mmc-access-info p {
    margin: 0;
    padding: 0 13px 12px;
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-delivery-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.mmc-delivery-meta > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--mmc-line);
    border-radius: 8px;
    background: #fff;
}

.mmc-delivery-meta dt {
    color: var(--mmc-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.mmc-delivery-meta dd {
    margin: 4px 0 0;
    color: var(--mmc-green-dark);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.mmc-delivery-recommendation {
    padding: 15px;
    border-left: 4px solid #8b8f87;
    border-radius: 8px;
    background: #f0f0ed;
}

.mmc-delivery-recommendation[data-type="sack_standard"],
.mmc-delivery-recommendation[data-type="sack_limited"],
.mmc-delivery-recommendation[data-type="large_sack"] {
    border-left-color: var(--mmc-green);
    background: #eaf1e7;
}

.mmc-delivery-recommendation[data-type="container_medium"],
.mmc-delivery-recommendation[data-type="bulk_large"] {
    border-left-color: #9a6a1e;
    background: #faf1df;
}

.mmc-delivery-recommendation[data-type="unsure"] {
    border-left-color: #5d6670;
    background: #eef1f3;
}

.mmc-delivery-recommendation strong,
.mmc-delivery-recommendation span {
    display: block;
}

.mmc-delivery-recommendation strong {
    color: var(--mmc-green-dark);
    font-size: 17px;
    line-height: 1.25;
}

.mmc-delivery-recommendation span {
    margin-top: 4px;
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-recommendation-link {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--mmc-green-dark);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
    cursor: pointer;
}

.mmc-recommendation-link[hidden] {
    display: none;
}

.mmc-recommendation-link:hover,
.mmc-recommendation-link:focus-visible {
    color: var(--mmc-green);
}

.mmc-delivery-information {
    display: grid;
    gap: 8px;
}

.mmc-info-group {
    display: grid;
    gap: 8px;
}

.mmc-info-group[hidden] {
    display: none;
}

.mmc-info-item {
    overflow: hidden;
    border: 1px solid rgba(49, 90, 53, .24);
    border-radius: 8px;
    background: #fff;
}

.mmc-info-item__heading {
    margin: 0;
}

.mmc-tool .mmc-info-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--mmc-green-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.mmc-tool .mmc-info-toggle:hover {
    background: rgba(49, 90, 53, .05);
}

.mmc-tool .mmc-info-toggle:focus-visible {
    outline: 3px solid rgba(49, 90, 53, .3);
    outline-offset: -3px;
}

.mmc-info-toggle__icon {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mmc-green-soft);
}

.mmc-info-toggle__icon::before,
.mmc-info-toggle__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--mmc-green-dark);
    content: "";
    transform: translate(-50%, -50%);
}

.mmc-info-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .16s ease;
}

.mmc-info-toggle[aria-expanded="true"] .mmc-info-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.mmc-info-content {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(49, 90, 53, .12);
}

.mmc-info-content[hidden] {
    display: none;
}

.mmc-info-content p {
    margin: 0;
    padding-top: 12px;
    color: var(--mmc-muted);
    font-size: 13px;
}

.mmc-info-content ul {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0 0 0 18px;
    color: var(--mmc-text);
    font-size: 13px;
}

.mmc-info-content li {
    margin: 0;
}

.mmc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--mmc-green);
    border-radius: 8px;
    background: var(--mmc-green);
    color: #fff !important;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.mmc-cta:hover,
.mmc-cta:focus-visible {
    border-color: var(--mmc-green-dark);
    background: var(--mmc-green-dark);
    color: #fff !important;
}

.mmc-conversion-cta {
    display: grid;
    gap: 14px;
    margin-top: 2px;
    padding: 20px;
    border: 1px solid rgba(49, 90, 53, .22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 42, 31, .08);
}

.mmc-conversion-cta__copy h4 {
    margin: 0;
    color: var(--mmc-green-dark);
    font-family: inherit;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.25;
}

.mmc-conversion-cta__copy > p:last-child {
    margin: 7px 0 0;
    color: var(--mmc-muted);
    font-size: 14px;
}

.mmc-cta-note {
    margin: -5px 0 0;
    color: var(--mmc-muted);
    font-size: 12px;
    text-align: center;
}

.mmc-formula {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
}

.mmc-bag-note {
    margin-bottom: 10px;
}

.mmc-estimate-note {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--mmc-line);
}

.mmc-admin-notice {
    padding: 14px;
    border-left: 4px solid #dba617;
    background: #fff8e5;
}

@media (max-width: 900px) {
    .mmc-tool__grid {
        grid-template-columns: 1fr;
    }

    .mmc-results {
        border-top: 1px solid var(--mmc-line);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .mmc-tool {
        width: 90vw;
        max-width: 90vw;
        margin-right: calc(50% - 45vw);
        margin-left: calc(50% - 45vw);
    }

    .mmc-tool__inputs,
    .mmc-results {
        padding: 20px 17px;
    }

    .mmc-tool__head h2,
    .mmc-results h3 {
        font-size: 22px;
    }

    .mmc-tool__head--media {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 13px;
        align-items: start;
    }

    .mmc-material-image {
        width: 96px;
    }

    .mmc-results h3 {
        white-space: normal;
    }

    .mmc-field-grid,
    .mmc-result-grid {
        grid-template-columns: 1fr;
    }

    .mmc-access__options {
        grid-template-columns: 1fr;
    }

    .mmc-delivery-meta {
        grid-template-columns: 1fr;
    }

    .mmc-access__options span {
        justify-content: flex-start;
        min-height: 44px;
        text-align: left;
    }

    .mmc-access-step {
        padding: 14px;
    }

    .mmc-material-fact {
        display: block;
    }

    .mmc-material-fact > span {
        margin-top: 9px;
    }

    .mmc-tool__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mmc-depth-help {
        margin-bottom: 22px;
    }

    .mmc-button {
        width: 100%;
    }

    .mmc-conversion-cta {
        padding: 17px;
    }

    .mmc-conversion-cta__copy h4 {
        font-size: 18px;
    }

    .mmc-result-grid dd {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mmc-tool *,
    .mmc-tool *::before,
    .mmc-tool *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
