/* ==========================================
   TEXTILE CALCULATOR PRO
========================================== */

.tccp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.tccp-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}

.tccp-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.tccp-card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
}

.tccp-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.tccp-field {
    flex: 1;
}

.tccp-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.tccp-field input,
.tccp-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.tccp-field input:focus,
.tccp-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

.tccp-accessories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tccp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tccp-checkbox:hover {
    background: #f1f5f9;
}

.tccp-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #2271b1;
    color: #fff;
    transition: .2s;
}

.tccp-button:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.tccp-button:active {
    transform: translateY(0);
}

.tccp-result-table {
    width: 100%;
    border-collapse: collapse;
}

.tccp-result-table td {
    border-bottom: 1px solid #ececec;
    padding: 10px;
}

.tccp-result-table tr:last-child td {
    border-bottom: none;
}

.tccp-result-table td:first-child {
    font-weight: 600;
}

#tccp_unit_price,
#tccp_total_price {
    font-size: 18px;
    font-weight: 700;
}

#tccp_total_price {
    color: #16a34a;
}

.tccp-summary {
    margin-top: 20px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.tccp-summary h3 {
    margin-top: 0;
}

.tccp-loading {
    opacity: .5;
    pointer-events: none;
}

.tccp-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.tccp-profit {
    color: #16a34a;
    font-weight: 700;
}

.tccp-cost {
    color: #dc2626;
    font-weight: 700;
}

/* ==========================================
   PDF BUTTON
========================================== */

#tccp_generate_pdf {
    margin-top: 15px;
    background: #16a34a;
}

#tccp_generate_pdf:hover {
    opacity: .95;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 992px) {

    .tccp-container {
        grid-template-columns: 1fr;
    }

    .tccp-row {
        flex-direction: column;
    }

    .tccp-accessories {
        grid-template-columns: 1fr;
    }

}

/* ==========================================
   RESULT HIGHLIGHT
========================================== */

.tccp-final-price {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    margin-top: 20px;
}

.tccp-final-price .price {
    font-size: 34px;
    font-weight: 800;
    margin-top: 10px;
    color: #2271b1;
}

.tccp-production-days {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}