/* WooCommerce Kalkulator m² - Frontend Styles */

.m2-calculator-wrapper {
    margin: 20px 0;
    padding: 0;
    font-family: inherit;
}

/* Info bar */
.m2-calc-info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #555;
    flex-wrap: wrap;
}

.m2-calc-info-item strong {
    color: #333;
}

.m2-calc-info-sep {
    color: #ccc;
}

/* Calculator inputs */
.m2-calc-inputs {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.m2-calc-input-group {
    flex: 1;
    min-width: 200px;
}

.m2-calc-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Stepper control (matching screenshot) */
.m2-calc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 44px;
}

.m2-calc-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f8f8;
    color: #666;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.m2-calc-btn:hover {
    background: #eee;
    color: #333;
}

.m2-calc-btn:active {
    background: #ddd;
}

.m2-calc-btn-minus {
    border-right: 1px solid #ddd;
}

.m2-calc-btn-plus {
    border-left: 1px solid #ddd;
}

.m2-calc-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0 8px;
    height: 100%;
    background: transparent;
    outline: none;
    min-width: 60px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.m2-calc-input::-webkit-outer-spin-button,
.m2-calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.m2-calc-unit {
    padding: 0 12px 0 0;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}

/* Summary table */
.m2-calc-summary {
    margin-bottom: 16px;
}

.m2-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.m2-calc-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #999;
    border-bottom: 2px solid #eee;
}

.m2-calc-table thead th:last-child {
    text-align: right;
}

.m2-calc-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f2f2f2;
    color: #555;
    vertical-align: middle;
}

.m2-calc-table tbody td:last-child {
    text-align: right;
}

.m2-calc-row-active {
    background: #f8faf9;
}

.m2-calc-row-active td {
    color: #333;
}

.m2-calc-total-price strong {
    font-size: 15px;
    color: #2d6a4f;
}

/* Responsive */
@media (max-width: 480px) {
    .m2-calc-inputs {
        flex-direction: column;
        gap: 16px;
    }

    .m2-calc-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .m2-calc-info-sep {
        display: none;
    }
}
