/* Laminaatti: neliökenttä (WC Kalkulator puuttuu kategoriasta). */
.kp-laminaatti-calculator {
    width: 100%;
    margin: 0 0 0.75rem;
}

.kp-laminaatti-calculator .label {
    padding-right: 1rem;
    vertical-align: middle;
}

.kp-laminaatti-calculator .value input {
    max-width: 8rem;
}

p.wckalkulator-price.kp-laminaatti-total {
    font-size: 20px;
    padding-top: 20px;
    margin: 0;
}

.kp-waste-toggle {
    margin: 0.75rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.4;
}

.kp-waste-toggle input {
    width: auto;
    min-width: 1.125rem;
    min-height: 1.125rem;
    margin: 0;
    flex-shrink: 0;
}

.kp-waste-toggle span {
    min-width: 0;
}

.kp-area-waste-note {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.kp-delivery-notice {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    background: #f5f0eb;
    border-left: 3px solid #8b6914;
    font-size: 0.95rem;
    line-height: 1.4;
}

.kp-delivery-notice__sub {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.15rem;
}

.kp-upsell-block {
    margin: 1.25rem 0 0;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    max-width: 100%;
    overflow-x: auto;
}

.kp-upsell-block__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.kp-upsell-block__hint {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: #666;
}

.kp-upsell-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kp-upsell-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid #e8e8e8;
}

.kp-upsell-item:first-child {
    border-top: none;
    padding-top: 0;
}

.kp-upsell-item__name {
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.kp-upsell-item__type {
    font-size: 0.8rem;
    color: #777;
    margin: 0.1rem 0 0;
}

.kp-upsell-item__meta {
    font-size: 0.85rem;
    color: #444;
    margin: 0.2rem 0 0;
}

.kp-upsell-item__price {
    font-weight: 600;
    white-space: nowrap;
}

.kp-upsell-item__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kp-upsell-add {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.85rem !important;
    min-height: 2.75rem;
}

.kp-upsell-add.is-added {
    opacity: 0.7;
}

.kp-upsell-add.is-error {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
    color: #fff !important;
}

.kp-delivery-cart-row th,
.kp-delivery-cart-row td {
    border-top: 1px dashed #ddd !important;
}

.kp-delivery-cart-note {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 0.15rem;
}

.kp-underlay-roll-notice {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #f5f0eb;
    border-left: 3px solid #8b6914;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 599px) {
    .kp-upsell-block {
        padding: 0.85rem;
    }

    .kp-upsell-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .kp-upsell-item__price {
        white-space: normal;
    }

    .kp-upsell-item__actions {
        width: 100%;
    }

    .kp-upsell-add {
        width: 100%;
        justify-content: center;
    }

    .kp-waste-toggle {
        align-items: flex-start;
        min-height: 2.75rem;
    }
}

@media (min-width: 600px) {
    .kp-upsell-item {
        grid-template-columns: 1fr auto auto;
    }

    .kp-upsell-item__actions {
        grid-column: auto;
    }
}
