/* =========================
   Core wrapper
========================= */
.ccc-wrapper {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
}

.ccc-title {
    font-weight: 700;
    margin-bottom: 15px;
}

/* =========================
   Floors + Package row
========================= */
.ccc-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.ccc-top-row label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.ccc-top-row select {
    width: 100%;
    padding: 6px;
}

/* =========================
   Table (Desktop)
========================= */
.ccc-table {
    width: 100%;
    border-collapse: collapse;
}

.ccc-table th,
.ccc-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.ccc-table th {
    background: #f2f2f2;
    font-weight: bold;
}

.ccc-table input {
    width: 100%;
    padding: 5px;
}

.ccc-total-row td {
    font-weight: bold;
    background: #f9f9f9;
}

/* =========================
   Mobile layout (≤768px)
========================= */
@media (max-width: 768px) {

    /* Stack top controls */
    .ccc-top-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Hide table header */
    .ccc-table thead {
        display: none;
    }

    /* Card-style rows */
    .ccc-table,
    .ccc-table tbody,
    .ccc-table tr,
    .ccc-table td {
        display: block;
        width: 100%;
    }

    .ccc-table tr {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 12px;
    }

    .ccc-table td {
        border: none;
        padding: 0;
    }

    .ccc-table td:first-child {
        font-weight: 600;
        margin-bottom: 8px;
        text-align: left;
    }

    .ccc-table td:nth-child(2) {
        margin-bottom: 6px;
    }

    .ccc-table input {
        font-size: 15px;
        padding: 8px;
    }

    .ccc-table td:nth-child(3),
    .ccc-table td:nth-child(4),
    .ccc-table td:nth-child(5) {
        display: inline-block;
        width: 32%;
        font-size: 13px;
        text-align: left;
    }

    .ccc-total-row td {
        display: inline-block;
        width: 50%;
        font-size: 16px;
    }
}
