.wc-event-product-table-wrap {
    width: 100%;
    margin: 30px 0;
    overflow-x: auto;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    -webkit-overflow-scrolling: touch;
}

.wc-event-product-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    margin: 0;
    background: #ffffff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Zebra striping */
.wc-event-product-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.wc-event-product-table tbody tr:nth-child(even) td {
    background-color: #fdfdfd;
}

.wc-event-product-table thead th {
    background: #fdfdfd;
    color: #444;
    text-align: left;
    font-weight: 600;
    padding: 14px 12px;
    border-bottom: 2px solid #e5e5e5;
    overflow-wrap: normal;
    border-left: none;
    border-right: none;
}

.wc-event-product-table td {
    border-left: none;
    border-right: none;
    padding: 14px 12px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.wc-event-product-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-event-product-table tbody tr:hover td {
    background-color: #f2f8fc;
}

/* Small course image */

.wc-event-product-table th:first-child,
.wc-event-product-table td:first-child {
    width: 8%;
}

.wc-event-product-table td:first-child img {
    max-width: 100%;
    width: 72px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* Course title */

.wc-event-product-table th:nth-child(2),
.wc-event-product-table .course-title {
    width: 23%;
    font-weight: 600;
}

.wc-event-product-table .course-title a {
    color: #222;
    text-decoration: none;
}

/* Date column */

.wc-event-product-table th:nth-child(3),
.wc-event-product-table td:nth-child(3) {
    width: 15%;
}

/* Days */

.wc-event-product-table th:nth-child(4),
.wc-event-product-table td:nth-child(4) {
    width: 6%;
    text-align: center;
}

/* Venue, language and trainer */

.wc-event-product-table th:nth-child(5),
.wc-event-product-table td:nth-child(5) {
    width: 17%;
}

.wc-event-product-table th:nth-child(6),
.wc-event-product-table th:nth-child(7),
.wc-event-product-table td:nth-child(6),
.wc-event-product-table td:nth-child(7) {
    width: 11%;
}

.wc-event-product-table td:nth-child(2),
.wc-event-product-table td:nth-child(3),
.wc-event-product-table td:nth-child(5),
.wc-event-product-table td:nth-child(6),
.wc-event-product-table td:nth-child(7) {
    overflow-wrap: break-word;
}

/* Book button */

.wc-event-product-table .book-course {
    background: #005B96;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    min-width: 72px;
    padding: 6px 12px;
    /*font-weight: 600;*/
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all .2s ease;
}

.wc-event-product-table .book-course:hover {
    background: #22A5A7;
    color: #ffffff !important;
}

.wc-event-product-table .book-course-disabled,
.wc-event-product-table .book-course-disabled:hover {
    background: #999999;
    color: #ffffff !important;
    cursor: not-allowed;
    pointer-events: none;
}

.wc-event-product-table .event-flash {
    display: inline-block;
    border-radius: 4px;
    padding: 4px 8px;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.wc-event-product-table .event-flash-early-bird {
    background: #4CAF50;
}

.wc-event-product-table .event-flash-nearly-full {
    background: #FF9800;
}

.wc-event-product-table .event-flash-sold-out {
    background: #654EA3;
}

.wc-event-product-table-listing .event-action {
    text-align: right;
}

.wc-event-product-table-listing .event-sold-out-button {
    min-width: 72px;
    padding: 6px 12px;
    text-align: center;
}

/* Keep button compact */

.wc-event-product-table th:last-child,
.wc-event-product-table td:last-child {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}

/* Course-specific table */

.wc-event-product-course-table {
    min-width: 760px;
}

.wc-event-product-course-table .course-mobile-only {
    display: none;
}

.wc-event-product-course-table th:first-child,
.wc-event-product-course-table td:nth-child(3) {
    width: 19%;
}

.wc-event-product-course-table th:nth-child(2),
.wc-event-product-course-table td:nth-child(4) {
    width: 5%;
    text-align: center;
}

.wc-event-product-course-table th:nth-child(3),
.wc-event-product-course-table td:nth-child(5) {
    width: 15%;
}

.wc-event-product-course-table th:nth-child(4),
.wc-event-product-course-table td:nth-child(6) {
    width: 12%;
}

.wc-event-product-course-table th:nth-child(5),
.wc-event-product-course-table td:nth-child(7) {
    width: 15%;
}

.wc-event-product-course-table th:nth-child(6),
.wc-event-product-course-table td:nth-child(8) {
    width: 25%;
}

.wc-event-product-course-table th:last-child,
.wc-event-product-course-table td:last-child {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}

.wc-event-product-course-table .event-price {
    white-space: normal;
}

.wc-event-product-course-table .event-price del {
    color: #222222;
    opacity: 1;
}

.wc-event-product-course-table .event-current-price {
    color: #222222;
}

.wc-event-product-course-table .event-flash {
    margin-right: 6px;
    margin-bottom: 4px;
}

.wc-event-product-course-table .event-price del,
.wc-event-product-course-table .event-price .event-current-price {
    display: inline-block;
}

@media (min-width: 1280px) {
    .wc-event-product-table {
        min-width: 0;
    }

    .wc-event-product-table thead th,
    .wc-event-product-table td {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1180px) {
    .wc-event-product-table {
        font-size: 0.9rem;
    }

    .wc-event-product-table thead th,
    .wc-event-product-table td {
        padding: 12px 10px;
    }

    .wc-event-product-table td:first-child img {
        width: 64px;
        height: 44px;
    }
}

@media (max-width: 980px) {
    .wc-event-product-table {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .wc-event-product-table thead th,
    .wc-event-product-table td {
        padding: 10px 8px;
    }

    .wc-event-product-table th:nth-child(2),
    .wc-event-product-table .course-title {
        width: 21%;
    }

    .wc-event-product-table th:nth-child(3),
    .wc-event-product-table td:nth-child(3) {
        width: 17%;
    }

    .wc-event-product-table th:nth-child(5),
    .wc-event-product-table td:nth-child(5) {
        width: 16%;
    }

    .wc-event-product-table td:first-child img {
        width: 56px;
        height: 40px;
    }

    .wc-event-product-table .book-course {
        min-width: 64px;
        padding: 6px 10px;
    }

    .wc-event-product-course-table th:first-child,
    .wc-event-product-course-table td:nth-child(3) {
        width: 20%;
    }

    .wc-event-product-course-table th:nth-child(2),
    .wc-event-product-course-table td:nth-child(4) {
        width: 4%;
    }

    .wc-event-product-course-table th:nth-child(3),
    .wc-event-product-course-table td:nth-child(5) {
        width: 13%;
    }

    .wc-event-product-course-table th:nth-child(5),
    .wc-event-product-course-table td:nth-child(7) {
        width: 14%;
    }

    .wc-event-product-course-table th:nth-child(6),
    .wc-event-product-course-table td:nth-child(8) {
        width: 27%;
    }

    .wc-event-product-course-table .event-flash {
        display: table;
        padding: 3px 6px;
    }

    .wc-event-product-course-table .event-price del,
    .wc-event-product-course-table .event-price .event-current-price {
        display: block;
    }
}

@media (max-width: 840px) {
    .wc-event-product-table {
        min-width: 720px;
        font-size: 0.84rem;
    }

    .wc-event-product-table thead th,
    .wc-event-product-table td {
        padding: 9px 7px;
    }

    .wc-event-product-table th:first-child,
    .wc-event-product-table td:first-child {
        width: 7%;
    }

    .wc-event-product-table td:first-child img {
        width: 48px;
        height: 36px;
    }

    .wc-event-product-course-table th:first-child,
    .wc-event-product-course-table td:nth-child(3) {
        width: 21%;
    }

    .wc-event-product-course-table th:nth-child(6),
    .wc-event-product-course-table td:nth-child(8) {
        width: 28%;
    }
}

@media (max-width: 720px) {
    .wc-event-product-table-wrap {
        overflow-x: visible;
        background: transparent;
        box-shadow: none;
        margin: 20px 0;
    }

    .wc-event-product-table {
        min-width: 0;
        display: block !important;
        background: transparent;
        font-size: 0.95rem;
        line-height: 1.35;
        border: 0 !important;
        box-shadow: none;
    }

    .wc-event-product-table thead {
        display: none !important;
    }

    .wc-event-product-table tbody {
        display: block !important;
        border: 0 !important;
    }

    .wc-event-product-table tr {
        display: grid !important;
        grid-template-columns: clamp(96px, 24vw, 132px) minmax(0, 1fr);
        column-gap: clamp(14px, 4vw, 28px);
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        padding: 18px clamp(0px, 3vw, 22px);
    }

    .wc-event-product-table tbody tr:nth-child(odd) td,
    .wc-event-product-table tbody tr:nth-child(even) td,
    .wc-event-product-table tbody tr:hover td {
        background-color: transparent;
    }

    .wc-event-product-table td {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .wc-event-product-table td::before {
        content: attr(data-label) ": ";
        font-weight: 400;
    }

    .wc-event-product-table .course-image {
        grid-column: 1;
        grid-row: 1 / span 6;
        align-self: center;
        justify-self: center;
        line-height: 0;
    }

    .wc-event-product-course-table .course-image {
        grid-row: 1 / span 7;
    }

    .wc-event-product-table .course-image::before,
    .wc-event-product-table .event-action::before {
        content: none;
    }

    .wc-event-product-table .course-image img {
        width: clamp(84px, 21vw, 108px) !important;
        height: clamp(84px, 21vw, 108px) !important;
        max-width: 108px !important;
        object-fit: contain;
    }

    .wc-event-product-table .course-title {
        display: block !important;
        grid-column: 2;
        margin-bottom: 7px;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .wc-event-product-table .course-title::before {
        content: none;
    }

    .wc-event-product-course-table .course-title {
        display: none !important;
    }

    .wc-event-product-table .event-date-time {
        display: block !important;
        grid-column: 2;
        margin-bottom: 4px;
        color: #222222;
    }

    .wc-event-product-table .event-date-time br,
    .wc-event-product-table .event-time {
        display: none;
    }

    .wc-event-product-table .event-days,
    .wc-event-product-table .event-language,
    .wc-event-product-table .event-trainer,
    .wc-event-product-table .event-price,
    .wc-event-product-table .event-action {
        grid-column: 2;
        margin-bottom: 4px;
        text-align: left !important;
    }

    .wc-event-product-table .event-venue {
        display: none !important;
    }

    .wc-event-product-table .event-action {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .wc-event-product-table .book-course {
        display: inline-block;
        width: auto;
        min-width: 68px;
        padding: 6px 12px;
    }

    .wc-event-product-table .event-price {
        white-space: normal;
    }

    .wc-event-product-course-table .event-price::before {
        content: none;
    }

    .wc-event-product-table .event-price del,
    .wc-event-product-table .event-price .event-current-price {
        display: inline-block;
    }

    .wc-event-product-table .no-products-found {
        display: block;
        grid-column: 1 / -1;
        padding: 0;
        text-align: left;
    }
}

@media (min-width: 560px) and (max-width: 720px) {
    .wc-event-product-table tr {
        grid-template-columns: clamp(124px, 25vw, 156px) minmax(0, 1fr);
        column-gap: clamp(24px, 5vw, 40px);
        padding-left: clamp(16px, 5vw, 36px);
        padding-right: clamp(16px, 5vw, 36px);
    }

    .wc-event-product-table .course-image img {
        width: clamp(104px, 20vw, 124px) !important;
        height: clamp(104px, 20vw, 124px) !important;
        max-width: 124px !important;
    }

    .wc-event-product-table .course-title {
        font-size: 1.05rem;
    }

}

@media (max-width: 420px) {
    .wc-event-product-table tr {
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 14px;
        padding: 16px 0;
    }

    .wc-event-product-table .course-image img {
        width: 84px !important;
        height: 84px !important;
        max-width: 84px !important;
    }

    .wc-event-product-table {
        font-size: 0.9rem;
    }

    .wc-event-product-table .course-title {
        font-size: 0.95rem;
    }

}
