/**
 * Parkett Pakke-kalkulator - Full Width Design
 */

.parkett-calc {
    background: #fff;
    border: 2px solid #FBBC34;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(251, 188, 52, 0.15);
}

.parkett-calc-title {
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parkett-calc-title::before {
    content: "📐";
    font-size: 1.3em;
}

.parkett-calc-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #FBBC34;
    background: #fff;
}

.parkett-calc-input {
    flex: 1;
    position: relative;
}

.parkett-sqm {
    width: 100%;
    padding: 20px;
    border: none;
    font-size: 1.6em;
    font-weight: 600;
    background: transparent;
    text-align: center;
}

.parkett-sqm:focus {
    outline: none;
    background: #fffef5;
}

.parkett-sqm::placeholder {
    color: #bbb;
    font-weight: 400;
    text-align: center;
}

.parkett-calc-output {
    background: #FBBC34;
    color: #fff;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parkett-result-packs {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.parkett-result-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 2px;
}

.parkett-calc-details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px dashed #FBBC34;
}

.parkett-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.parkett-detail-coverage,
.parkett-detail-price {
    color: #333;
}

.parkett-detail-coverage strong,
.parkett-detail-price strong {
    color: #FBBC34;
    font-size: 1.1em;
}

.parkett-detail-info {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.parkett-add-btn {
    background: #FBBC34;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.parkett-add-btn:hover {
    background: #e5ab2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 188, 52, 0.4);
}

.parkett-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.parkett-add-btn.success {
    background: #4caf50;
}

.parkett-calc-tip {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 0.9em;
    color: #8b7355;
    border-left: 4px solid #FBBC34;
}

.parkett-calc-tip::before {
    content: "💡 ";
}

.parkett-calc-notice {
    color: #999;
    font-style: italic;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

/* Hide "Frakt:" / "Shipping:" label in WooCommerce */
.woocommerce-shipping-totals th {
    display: none !important;
}

.woocommerce-shipping-totals td {
    padding-left: 0 !important;
    text-align: left !important;
}

/* Responsive */
@media (max-width: 600px) {
    .parkett-calc {
        padding: 18px;
    }

    .parkett-calc-row {
        flex-direction: column;
    }

    .parkett-sqm {
        padding: 15px;
        font-size: 1.4em;
    }

    .parkett-calc-output {
        min-width: auto;
        padding: 15px;
        flex-direction: row;
        gap: 8px;
    }

    .parkett-result-packs {
        font-size: 1.5em;
    }

    .parkett-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}