/* =============================================================================
   Board M² Calculator — style
   ============================================================================= */

/* ── Ukrycie domyślnego pola qty WooCommerce (zastąpione przez kalkulator) ── */
.bc-wc-qty-hidden {
    display: none !important;
}

/* ── Wrapper kalkulatora ────────────────────────────────────────────────────── */
.board-calculator {
    margin: 0 0 1.25em 0;
    font-size: 0.94em;
    color: #333;
    line-height: 1.4;
	background: #fafafa;
    padding: 15px;
    border-radius: 5px;
}

/* ── Wiersze ────────────────────────────────────────────────────────────────── */
.board-calculator .bc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    padding: 0.75em 0px;
}
#primary #main .product-summary-wrapper .woocommerce-variation-availability{
	display: none;
}
.bc-row + .bc-row {
    border-top: 1px solid #e8e8e8;
}

/* ── Informacja o cenie ─────────────────────────────────────────────────────── */
.bc-price-info {
    flex: 1 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.15em;
    min-width: 0;
}

/* Wartość liczbowa (pogrubiona) */
.bc-val {
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Etykieta jednostki: "zł brutto / szt" */
.bc-unit-label {
    color: #666;
    font-size: 0.88em;
    white-space: nowrap;
}

/* Cena za mb w nawiasach */
.bc-mb-wrap {
    margin-left: 0.35em;
    color: #777;
    font-size: 0.88em;
    white-space: nowrap;
}

.bc-mb-wrap .bc-val {
    font-weight: 600;
    color: #555;
}

/* ── Grupa input + jednostka ────────────────────────────────────────────────── */
.bc-input-group {
    display: flex;
    align-items: center;
    gap: 0.45em;
    max-width: 110px;
	width: 100%;
}
#board-calculator .bc-price-info > .bc-val{
	font-size: 24px;
	color: #F49717;
	font-weight: 500;
}
#board-calculator .bc-price-info .bc-mb-wrap  .bc-val{
	font-size: 16px;
	color: #F49717;
	font-weight: 500;
}
#board-calculator .bc-input-group input{
	text-align: left;
}

/* Pole liczbowe (ilość) */
.bc-qty {
    width: 82px;
    padding: 0.38em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 1em;
    font-family: inherit;
    color: #111;
    text-align: right;

    /* Ukrycie strzałek przeglądarki */
    -moz-appearance: textfield;
    appearance: textfield;
}

.bc-qty::-webkit-outer-spin-button,
.bc-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bc-qty:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.07);
}

/* Jednostka przy polu (szt. / m²) */
.bc-input-unit {
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

/* ── Wiersz z łączną kwotą ──────────────────────────────────────────────────── */
#board-calculator .bc-total-row {
	display: none!important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.3em;
    padding: 0.6em 1em 0.7em;
    border-top: 1px solid #e8e8e8;
    background: #f3f3f3;
    border-radius: 0 0 4px 4px;
}

.bc-total-label {
    color: #666;
    font-size: 0.9em;
}

.bc-total-val {
    font-size: 1.15em;
    font-weight: 700;
    color: #1a1a1a;
}

.bc-total-row .bc-unit-label {
    font-size: 0.85em;
}


/* ── Responsywność (wąskie ekrany) ─────────────────────────────────────────── */
@media (max-width: 520px) {
	.board-calculator .bc-row{
		align-items: baseline;
	}
    .bc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4em;
    }

    .bc-input-group {
        width: 100%;
        justify-content: flex-end;
    }

    .bc-price-info {
        flex: 1 1 auto;
    }

    .bc-mb-wrap {
        display: block;
        margin-left: 0;
        margin-top: 0.15em;
    }

    .bc-total-row {
        justify-content: flex-start;
    }
}
