.egr-table-wrap {
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 42, 67, .08);
}

.egr-table {
    width: 100%;
    border-collapse: collapse;
    color: #102a43;
    text-align: left;
}

.egr-table caption {
    padding: 18px 20px;
    background: #087cb9;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
}

.egr-table thead th {
    padding: 15px 16px;
    border: 0;
    background: #102a43;
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.egr-table th,
.egr-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e3e9ee;
    vertical-align: middle;
}

.egr-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.egr-training-dates {
    margin-bottom: 26px;
}

.egr-training-dates .egr-course-name {
    color: #102a43;
    font-weight: 700;
    text-decoration: none;
}

.egr-training-dates .egr-course-name:hover {
    color: #087cb9;
}

.egr-date-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5f7182;
    font-weight: 700;
}

.egr-date-status::before {
    width: 8px;
    height: 8px;
    background: #79b82a;
    content: "";
}

.egr-course-status {
    display: block;
    margin-top: 5px;
    color: #5f7182;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.egr-course-status-nearly_full {
    color: #8a5700;
}

.egr-course-status-sold_out {
    color: #a61b13;
}

.egr-table-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    background: #79b82a;
    color: #102a43 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.egr-table-action:hover {
    background: #679f22;
    color: #fff !important;
}

.egr-training-dates .egr-table-action-disabled {
    background: #d9e2ea !important;
    color: #5f7182 !important;
    cursor: not-allowed;
}

.egr-training-enquiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 34px;
    background: #102a43;
    color: #fff;
    box-shadow: 0 12px 34px rgba(16, 42, 67, .12);
}

.egr-training-enquiry strong {
    display: block;
    margin-bottom: 8px;
    color: #91c84c;
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.egr-training-enquiry h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
}

.egr-training-enquiry p {
    margin: 0;
    color: #d9e2ea;
}

.egr-training-enquiry-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.egr-training-enquiry-actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #79b82a;
    color: #102a43 !important;
    font-weight: 700;
    text-decoration: none;
}

.egr-training-enquiry-actions a + a {
    border: 2px solid #fff;
    background: transparent;
    color: #fff !important;
}

@media (max-width: 767px) {
    .egr-table-wrap {
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .egr-table,
    .egr-table tbody,
    .egr-table tr,
    .egr-table th,
    .egr-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .egr-table thead {
        display: none;
    }

    .egr-table caption {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .egr-table tr {
        margin: 0 0 14px;
        padding: 0;
        border: 1px solid #d9e2ea;
        border-top: 4px solid #087cb9;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
    }

    .egr-table th[scope="row"] {
        padding: 17px 16px;
        border: 0;
        border-bottom: 1px solid #d9e2ea;
        color: #102a43;
        font-size: 17px;
    }

    .egr-table td {
        display: grid;
        grid-template-columns: minmax(105px, 36%) 1fr;
        gap: 14px;
        padding: 11px 16px;
        border: 0;
        border-bottom: 1px solid #edf1f4;
        color: #34495e;
    }

    .egr-table td::before {
        content: attr(data-label);
        color: #087cb9;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .egr-table td[data-label=""]::before {
        display: none;
    }

    .egr-training-dates .egr-table-action {
        width: 100%;
        min-height: 44px;
    }

    .egr-training-enquiry {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .egr-training-enquiry-actions {
        flex-direction: column;
    }

    .egr-training-enquiry-actions a {
        width: 100%;
        box-sizing: border-box;
    }
}


button.egr-table-action {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.egr-booking-notice {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-left: 5px solid #087cb9;
    background: #eef7fb;
    color: #102a43;
    line-height: 1.55;
}

.egr-booking-notice strong {
    display: block;
    margin-bottom: 3px;
}

.egr-booking-notice-success {
    border-left-color: #79b82a;
    background: #f1f8e9;
}

.egr-booking-notice-error {
    border-left-color: #b42318;
    background: #fff1f0;
}

.egr-booking-is-open {
    overflow: hidden;
}

.egr-booking-modal[hidden] {
    display: none !important;
}

.egr-booking-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 34px 20px;
}

.egr-booking-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 30, 49, .78);
    backdrop-filter: blur(3px);
}

.egr-booking-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: auto;
    padding: 34px;
    border-top: 6px solid #79b82a;
    background: #fff;
    color: #102a43;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.egr-booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid #d9e2ea;
    background: #f4f7f9;
    color: #102a43;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.egr-booking-close:hover,
.egr-booking-close:focus-visible {
    background: #102a43;
    color: #fff;
}

.egr-booking-kicker {
    margin: 0 56px 8px 0;
    color: #67a922;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.egr-booking-dialog h2 {
    margin: 0 56px 8px 0;
    color: #102a43;
    font-size: 34px;
    line-height: 1.15;
}

.egr-booking-summary {
    margin: 0 0 26px;
    color: #52667a;
    font-size: 16px;
    font-weight: 600;
}

.egr-booking-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.egr-booking-fields label {
    display: block;
    flex: 1 1 calc(50% - 9px);
    color: #102a43;
    font-size: 14px;
    font-weight: 700;
}

.egr-booking-fields .egr-booking-wide {
    flex-basis: 100%;
}

.egr-booking-fields input,
.egr-booking-fields textarea {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #aebdca;
    border-radius: 0;
    background: #fff;
    color: #102a43;
    font: inherit;
    font-weight: 400;
}

.egr-booking-fields input,
.egr-booking-fields textarea {
    margin-top: 7px;
}

.egr-booking-fields textarea {
    min-height: 94px;
    resize: vertical;
}

.egr-booking-fields input:focus,
.egr-booking-fields textarea:focus {
    border-color: #087cb9;
    outline: 3px solid rgba(8, 124, 185, .18);
}

.egr-booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 20px 0 0;
    color: #52667a;
    font-size: 13px;
    line-height: 1.5;
}

.egr-booking-consent input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 1px;
}

.egr-booking-consent a {
    color: #087cb9;
    text-decoration: underline;
}

.egr-booking-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.egr-booking-payment-note {
    margin: 18px 0;
    padding: 13px 15px;
    background: #f4f7f9;
    color: #52667a;
    font-size: 13px;
    line-height: 1.5;
}

.egr-booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.egr-booking-actions button {
    min-height: 48px;
    padding: 11px 17px;
    border: 2px solid #102a43;
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.egr-booking-cancel {
    background: #fff;
    color: #102a43;
}

.egr-booking-submit {
    border-color: #79b82a !important;
    background: #79b82a;
    color: #102a43;
}

.egr-booking-submit:hover,
.egr-booking-submit:focus-visible {
    border-color: #102a43 !important;
    background: #102a43;
    color: #fff;
}

.egr-booking-submit:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 620px) {
    .egr-booking-modal {
        padding: 12px;
    }

    .egr-booking-dialog {
        padding: 26px 20px 22px;
    }

    .egr-booking-dialog h2 {
        font-size: 27px;
    }

    .egr-booking-fields label {
        flex-basis: 100%;
    }

    .egr-booking-actions {
        flex-direction: column-reverse;
    }

    .egr-booking-actions button {
        width: 100%;
    }
}
