/* Stuntgras M² Calculator — modern WoodMart-friendly interface */
.sgmc-calculator {
    --sgmc-accent: var(--wd-primary-color, #49b653);
    --sgmc-text: var(--wd-title-color, #242424);
    --sgmc-muted: #6f7773;
    --sgmc-border: rgba(24, 48, 38, .12);
    --sgmc-soft: rgba(73, 182, 83, .08);
    margin: 0 0 22px;
    color: var(--sgmc-text);
}

.sgmc-calculator-inner {
    padding: 20px;
    border: 1px solid var(--sgmc-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(19, 50, 38, .07);
}

.sgmc-calculator .sgmc-title {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--sgmc-text);
}

.sgmc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sgmc-calculator .sgmc-field {
    min-width: 0;
    margin: 0;
}

.sgmc-calculator label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    color: var(--sgmc-text);
}

.sgmc-calculator .sgmc-unit {
    font-weight: 500;
    color: var(--sgmc-muted);
}

.sgmc-calculator select,
.sgmc-calculator input[type="number"],
.sgmc-calculator .sgmc-fixed-value {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--sgmc-border) !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: var(--sgmc-text) !important;
    font-size: 14px;
    font-weight: 550;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.sgmc-calculator select:hover,
.sgmc-calculator input[type="number"]:hover {
    border-color: rgba(73, 182, 83, .55) !important;
}

.sgmc-calculator select:focus,
.sgmc-calculator input[type="number"]:focus {
    outline: none !important;
    border-color: var(--sgmc-accent) !important;
    box-shadow: 0 0 0 3px rgba(73, 182, 83, .13) !important;
}

.sgmc-calculator .sgmc-fixed-value {
    display: flex;
    align-items: center;
    background: #f8faf9 !important;
}

.sgmc-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 0;
    border: 0;
}

.sgmc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 13px 15px;
    border: 1px solid var(--sgmc-border);
    border-radius: 12px;
    background: #f8faf9;
}

.sgmc-summary-total {
    border-color: rgba(73, 182, 83, .22);
    background: var(--sgmc-soft);
}

.sgmc-summary-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--sgmc-text);
}

.sgmc-summary-label small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--sgmc-muted);
}

.sgmc-summary-value {
    flex: 0 0 auto;
    text-align: right;
    font-size: 16px;
    font-weight: 750;
    color: var(--sgmc-text);
}

.sgmc-summary-total .sgmc-summary-value {
    color: var(--sgmc-accent);
    font-size: 18px;
}

.sgmc-price-suffix {
    margin-left: .18em;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    color: inherit !important;
    vertical-align: baseline !important;
}

/* Shop/categorie button: no visual overrides here.
 * WoodMart is deliberately the only styling source so this button is
 * identical to the normal WooCommerce add-to-cart button. */

@media (max-width: 575px) {
    .sgmc-calculator-inner {
        padding: 16px;
        border-radius: 14px;
    }

    .sgmc-fields,
    .sgmc-summary {
        grid-template-columns: 1fr;
    }

    .sgmc-summary-row {
        min-height: 62px;
    }
}
