﻿
/*TODO: remove*/
.register-confirm-heading {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f4f4f4;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

/*TODO: remove*/
.register-confirm-body {
    display: flex;
    padding-top: 40px;
    padding-bottom: 40px;
    justify-content: space-between;
    align-items: center;
}

/*TODO: remove*/
.register-confirm-body-left {
    width: 100%;
    margin-right: 60px;
    margin-left: 60px;
}

/*TODO: remove*/
.register-confirm {
    position:relative;
    margin-top: 40px;
    margin-bottom: 40px;
    border-style: solid;
    border-width: 1px;
    border-color: #d1d1d1;
}

.course-select-confirm {

}

.course-select-confirm-heading {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f4f4f4;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.course-select-confirm-body {
    display: flex;
    padding-top: 40px;
    padding-bottom: 40px;
    justify-content: space-between;
    align-items: center;
}

.course-select-body-left {
    width: 100%;
    margin-right: 60px;
    margin-left: 60px;
}

.course-select-confirm .your-selections-wrapper {
    width: 100%;
    max-width: 1245px;
    margin-top: 28px;
}

.course-select-confirm .your-selections {
    border: 1px solid #e5eaee;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11, 40, 56, 0.1);
}

.course-select-confirm .selection-heading {
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid #e9eef1;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #f7f9fa;
    color: #66737b;
    text-align: left;
    text-transform: none;
}

.course-select-confirm .selection-heading .text-block {
    color: #66737b;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}

.selection-progress-chip {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background-color: #d8eef5;
    color: #0b2838;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.course-select-confirm .selection-content-flex {
    margin: 0;
    padding: 20px 22px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.course-select-confirm .course-select-confirm-body-left {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 12px;
}

.course-select-confirm .course-select-confirm-body-left .course-item + .course-item {
    border-top: 1px solid #e9eef1;
    padding-top: 16px;
}

.course-select-confirm .course-options {
    padding: 0;
}

.course-select-confirm .your-selections .course-options {
    margin-bottom: 0;
}

.selected-course-summary {
    max-width: none;
    width: 100%;
    padding: 0;
}

.selected-course-summary .course-summary-header {
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
}

.selected-course-summary .course-summary-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.selected-course-summary .course-number {
    color: #303030;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
}

.selected-course-summary .course-name {
    margin: 0;
    color: #303030;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
}

.course-summary-meta {
    display: grid;
    gap: 8px;
}

.course-summary-meta-row {
    display: grid;
    grid-template-columns: 18px max-content 18px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: #66737b;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.course-summary-meta-row i {
    margin-top: 0;
    color: #0b2838;
    font-size: 12px;
    text-align: center;
}

.course-select-confirm .course-summary-meta-row .address,
.course-select-confirm .course-summary-meta-row .s-course-location {
    margin: 0;
    color: #66737b;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    text-align: left;
}

.course-select-confirm .s-course-name,
.course-select-confirm .s-course-location {
    text-align: left;
}

.course-select-confirm .selection-btn-ctn {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
}

.course-select-confirm .continue-to-next-course {
    width: min(100%, 420px);
    margin: 0 0 12px;
    border-radius: 999px;
    font-size: 15px;
}

.course-select-confirm .change-course,
.selected-course-summary .change-single-course-link {
    width: auto;
    border: none;
    background: transparent;
    color: #66737b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: underline;
}

.selected-course-summary .change-single-course-link {
    display: inline-flex;
    margin: 0;
}

@media screen and (max-width: 767px) {
    /*TODO: remove*/
    .register-confirm-body {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    /*TODO: remove*/
    .register-confirm-body-left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0px;
    }

    .course-select-confirm-body {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .course-select-confirm-body-left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0px;
    }

    .course-select-confirm .your-selections-wrapper {
        /* Leave room for both margins within the booking frame. */
        width: auto;
        margin-top: 28px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .course-select-confirm .selection-content-flex {
        padding: 18px;
        gap: 18px;
    }

    .course-select-confirm .course-select-confirm-body-left {
        display: grid;
        justify-content: stretch;
    }
}

@media screen and (max-width: 479px) {
    .course-select-confirm .course-summary-meta-row {
        /* A long date must not squeeze the address outside the card. */
        grid-template-columns: 18px minmax(0, 1fr);
    }
}

/* Combo stepper: every part of a combo is listed from the start, one compact row
   per course, so the overview stays short above the course list. */
.course-select-confirm.is-combo .your-selections-wrapper {
    margin-top: 16px;
}

.course-select-confirm.is-combo .selection-heading {
    padding: 8px 16px;
}

.course-select-confirm.is-combo .selection-heading .text-block {
    font-size: 13px;
}

.course-select-confirm.is-combo .selection-content-flex {
    padding: 12px 16px 14px;
    gap: 12px;
}

.course-select-confirm.is-combo .course-select-confirm-body-left {
    gap: 0;
}

.course-select-confirm .course-select-confirm-body-left .combo-step + .combo-step {
    border-top: none;
    padding-top: 12px;
}

.course-select-confirm .combo-step .course-options {
    padding: 0;
}

.course-select-confirm.is-combo .continue-to-next-course {
    margin-bottom: 6px;
}

.combo-step {
    position: relative;
}

.combo-step .selected-course-summary {
    margin: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
}

.combo-step .selected-course-summary > * {
    grid-column: 2 / span 2;
}

.course-step-marker {
    display: none;
}

.combo-step .course-step-marker {
    grid-column: 1;
    grid-row: 1;
    /* Stay level with the first line when a long course name wraps. */
    align-self: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1.5px solid #c5d0d7;
    border-radius: 50%;
    background: #fff;
    color: #8a969d;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 400;
}

/* Thin rail joining each marker to the next course's marker. */
.combo-step:not(:last-child)::before {
    content: "";
    position: absolute;
    /* Keeps a 3px gap at each marker. */
    left: 9.5px;
    top: 23px;
    bottom: -9px;
    width: 1px;
    background: #e1e7eb;
}

.combo-step.is-current .course-step-marker {
    border-color: #0b2838;
    background: #d8eef5;
    color: #0b2838;
}

.combo-step.is-done .course-step-marker {
    border-color: #0b2838;
    background: #0b2838;
    color: transparent;
}

.combo-step.is-done .course-step-marker::after {
    content: "";
    position: absolute;
    top: 4.5px;
    left: 6.5px;
    width: 3.5px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.combo-step .course-summary-header {
    grid-row: 1;
    min-height: 20px;
    margin-bottom: 0;
}

/* The marker already shows the order, so the ordinal label is redundant here. */
.combo-step .selected-course-summary .course-number {
    display: none;
}

.combo-step .selected-course-summary .course-name {
    color: #0b2838;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.combo-step.is-upcoming .selected-course-summary .course-name {
    color: #66737b;
    font-weight: 500;
}

.combo-step .course-summary-meta-row {
    grid-template-columns: 14px max-content 14px minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
}

.combo-step .course-summary-meta-row i {
    font-size: 11px;
}

.course-step-status {
    color: #8a969d;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

/* With room to spare, a pending step's status sits beside its name (where
   "Change" appears once dates are chosen), keeping each pending step one line. */
.combo-step .course-step-status {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
}

.combo-step.is-pending .course-summary-header {
    grid-column: 2;
}

.combo-step.is-current .course-step-status {
    color: #0b2838;
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .course-select-confirm.is-combo .your-selections-wrapper {
        margin-top: 16px;
    }

    .course-select-confirm.is-combo .selection-content-flex {
        padding: 12px 14px 14px;
    }
}

@media screen and (max-width: 479px) {
    /* Too narrow to share a line: the status drops under the name. */
    .combo-step .course-step-status {
        grid-column: 2 / span 2;
        grid-row: 2;
        text-align: left;
        white-space: normal;
    }

    .combo-step.is-pending .course-summary-header {
        grid-column: 2 / span 2;
    }

    .combo-step .course-summary-meta-row {
        grid-template-columns: 14px minmax(0, 1fr);
    }
}

/* A paired booking is reviewed as one course with its entire schedule. */
.is-combined-listing .course-select-confirm-body-left {
    width: 100%;
}
.combined-summary-schedule {
    display: block;
    margin-top: 16px;
    width: 100%;
}
.combined-summary-schedule .schedule-row {
    margin: 8px 0;
}
@media (max-width: 767px) {
    .combined-summary-schedule .schedule-row {
        display: block;
    }
    .combined-summary-schedule .schedule-column {
        width: 100%;
    }
    .combined-summary-schedule .divider {
        display: none;
    }
}
