/* WBC CSS Pack */

/* BASE DESKTOP LAYOUT */
section.wbc-match-main.wbc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.wbc-match-sidebar {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.wbc-match-content {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* two columns for cards on desktop */
    gap: 20px;
}

/* AVAILABILITY COLUMNS (desktop) */
.wbc-availability-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wbc-availability-column {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.wbc-availability-column h4 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.wbc-availability-column ul {
    margin: 0;
    padding-left: 18px;
}

/* STATUS CARDS + NOTES */
.wbc-status-card {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wbc-status-card h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.wbc-status-pill-inline {
    display: inline-block;
    padding: 6px 10px;
    background: #eee;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 14px;
}

.wbc-notes-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    min-height: 120px;
    font-size: 15px;
    line-height: 1.4;
}

.wbc-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {

    body section.wbc-match-main.wbc-layout {
        display: block !important;
        width: 100% !important;
    }

    body section.wbc-match-main.wbc-layout > .wbc-match-sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    body section.wbc-match-main.wbc-layout > .wbc-match-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    body .wbc-availability-columns {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ===== PHONE ===== */
@media (max-width: 768px) {

    body section.wbc-match-main.wbc-layout {
        display: block !important;
        width: 100% !important;
    }

    body section.wbc-match-main.wbc-layout > .wbc-match-content {
        display: block !important;
        width: 100% !important;
    }

    body .wbc-availability-columns {
        grid-template-columns: 1fr !important;
    }

    body .wbc-status-card,
    body .wbc-availability-card,
    body .wbc-notes-box {
        width: 100% !important;
    }
}
