/* =========================================================
   MONTAGE: CHECKOUT
   Split from the child theme style.css for maintainability.
   ========================================================= */

/* =========================================================
   MONTAGE CHECKOUT
   Unify WooCommerce + custom participant/booking fields
   ========================================================= */


/* ---------------------------------------------------------
   1. FIX ADDITIONAL FIELDS WIDTH
   --------------------------------------------------------- */

.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
.woocommerce-checkout #order_comments_field,
.woocommerce-checkout #course-participant-checkout,
.woocommerce-checkout #montage-booking-questions {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #course-participant-checkout,
.woocommerce-checkout #montage-booking-questions {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ---------------------------------------------------------
   2. SECTION HEADINGS
   Match Billing Details
   --------------------------------------------------------- */

.woocommerce-checkout #course-participant-checkout > h3,
.woocommerce-checkout #montage-booking-questions > h2 {
    font-family: "futura-pt", Sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;

    color: var(--sections-title-color, #0085FF);

    margin-top: 0;
    margin-bottom: 30px;
}

.woocommerce-checkout #course-participant-checkout {
    margin-top: 30px;
}

.woocommerce-checkout #montage-booking-questions {
    margin-top: 40px;
}


/* ---------------------------------------------------------
   3. COURSE INTRODUCTION COPY
   --------------------------------------------------------- */

.woocommerce-checkout #course-participant-checkout > p {
    margin-top: 0;
    margin-bottom: 28px;
}


/* ---------------------------------------------------------
   4. COURSE TITLES
   --------------------------------------------------------- */

.woocommerce-checkout .course-participant-course__header h4 {
    margin: 0 0 20px;

    font-family: "futura-pt", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.woocommerce-checkout .course-participant-course {
    margin-bottom: 32px;
}


/* ---------------------------------------------------------
   5. LABELS + QUESTION LEGENDS
   Match WooCommerce billing labels
   --------------------------------------------------------- */

.woocommerce-checkout .course-participant-place > label,
.woocommerce-checkout #montage-booking-questions legend {
    display: block;

    font-family: "futura-pt", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;

    color: var(--forms-labels-color, #0085FF);

    margin: 0 0 3px;
    padding: 0;
}


/* ---------------------------------------------------------
   6. REQUIRED ASTERISKS
   --------------------------------------------------------- */

.woocommerce-checkout #course-participant-checkout .required,
.woocommerce-checkout #montage-booking-questions .required {
    color: red !important;
    font-weight: 700;
    border: 0;
}


/* ---------------------------------------------------------
   7. PARTICIPANT SELECTS
   Match Elementor billing fields
   --------------------------------------------------------- */

.woocommerce-checkout .course-participant-select {
    display: block;
    width: 100%;

    font-family: "futura-pt", Sans-serif;
    font-size: 18px;

    color: inherit;
    background-color: #FFFFFF;

    border-style: solid;
    border-width: 1px;
    border-color: var(--forms-fields-border-color, #C5E1FF);

    border-radius: var(--forms-fields-border-radius, 9px);

    padding: var(--forms-fields-padding, 5px 15px);

    min-height: 50px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   8. ORDER NOTES
   --------------------------------------------------------- */

.woocommerce-checkout #order_comments_field,
.woocommerce-checkout #order_comments {
    width: 100% !important;
    max-width: none !important;
}


/* ---------------------------------------------------------
   9. REMOVE FIELDSET / LEGEND BROWSER STYLING
   --------------------------------------------------------- */

.woocommerce-checkout #montage-booking-questions fieldset {
    border: 0 !important;
    outline: 0;
    padding: 0 !important;

    margin: 0 0 28px !important;

    min-width: 0;
}

.woocommerce-checkout #montage-booking-questions legend {
    width: 100%;
    max-width: 100%;
    float: none;

    border: 0;
}


/* ---------------------------------------------------------
   10. RADIO OPTIONS
   --------------------------------------------------------- */

.woocommerce-checkout #montage-booking-questions fieldset > label {
    display: flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    margin: 8px 0 0;
    padding: 0;

    font-family: "futura-pt", Sans-serif;
    font-size: 18px;
    font-weight: 400;

    color: inherit;
}

.woocommerce-checkout #montage-booking-questions input[type="radio"] {
    width: auto;
    height: auto;
    min-height: 0;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}


/* ---------------------------------------------------------
   11. EXPLANATORY NOTES
   --------------------------------------------------------- */

.woocommerce-checkout .montage-booking-question-note {
    margin: -10px 0 30px;

    font-size: 16px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   12. PARTICIPANT CONFIRMATION
   --------------------------------------------------------- */

.woocommerce-checkout .course-participant-confirmation {
    margin-top: 24px;
    margin-bottom: 16px;
}

.woocommerce-checkout .course-participant-confirmation label,
.woocommerce-checkout .course-participant-new-registration label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}


/* ---------------------------------------------------------
   13. PARTICIPANT SUMMARY
   --------------------------------------------------------- */

.woocommerce-checkout .course-participant-summary {
    margin-top: 18px;
}

.woocommerce-checkout .course-participant-summary dl {
    margin: 0 0 12px;
}

.woocommerce-checkout .course-participant-summary dl > div {
    display: grid;
    grid-template-columns: minmax(150px, 30%) 1fr;
    gap: 15px;

    padding: 5px 0;
}

.woocommerce-checkout .course-participant-summary dt {
    font-weight: 700;
}

.woocommerce-checkout .course-participant-summary dd {
    margin: 0;
}


/* ---------------------------------------------------------
   14. MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .woocommerce-checkout
    .course-participant-summary dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

}

/* =========================================================
   MONTAGE CHECKOUT — FULL WIDTH RADIO / CHECKBOX CONTROLS
   ========================================================= */


/* ---------------------------------------------------------
   BOOKING QUESTION RADIO OPTIONS
   --------------------------------------------------------- */

.woocommerce-checkout
#montage-booking-questions
fieldset {
    display: grid;
    gap: 10px;
}


/* Full-width clickable row */

.woocommerce-checkout
#montage-booking-questions
fieldset > label {
    position: relative;

    display: flex;
    align-items: center;

    width: 100% !important;
    min-height: 58px;

    margin: 0 !important;
    padding: 12px 16px !important;

    box-sizing: border-box;

    background: #c5e1ff;

    border: 0 !important;
    border-radius: 9px;

    color: #0085ff;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Hover */

.woocommerce-checkout
#montage-booking-questions
fieldset > label:hover {
    background: #badaff;
}


/* ---------------------------------------------------------
   HIDE RADIO CIRCLE
   Keep it accessible but visually remove it
   --------------------------------------------------------- */

.woocommerce-checkout
#montage-booking-questions
input[type="radio"] {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;

    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    pointer-events: none;
}


/* ---------------------------------------------------------
   SELECTED RADIO STATE
   --------------------------------------------------------- */

.woocommerce-checkout
#montage-booking-questions
fieldset > label:has(input[type="radio"]:checked) {
    background: #00d4d4;
    color: #ffffff;
}


/* Keep active colour on hover */

.woocommerce-checkout
#montage-booking-questions
fieldset > label:has(input[type="radio"]:checked):hover {
    background: #00d4d4;
    color: #ffffff;
}


/* Keyboard focus */

.woocommerce-checkout
#montage-booking-questions
fieldset > label:has(input[type="radio"]:focus-visible) {
    outline: 2px solid #0085ff;
    outline-offset: 2px;
}


/* =========================================================
   PARTICIPANT CHECKBOX CONTROLS
   ========================================================= */


/* Full-width checkbox bar */

.woocommerce-checkout
.course-participant-new-registration > label,
.woocommerce-checkout
.course-participant-confirmation > label {
    display: flex !important;
    align-items: center !important;
    gap: 12px;

    width: 100%;

    min-height: 58px;

    margin: 0;
    padding: 12px 16px !important;

    box-sizing: border-box;

    background: #c5e1ff;

    border-radius: 9px;

    color: #0085ff;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Hover */

.woocommerce-checkout
.course-participant-new-registration > label:hover,
.woocommerce-checkout
.course-participant-confirmation > label:hover {
    background: #badaff;
}


/* ---------------------------------------------------------
   CHECKBOX ITSELF
   --------------------------------------------------------- */

.woocommerce-checkout
.course-participant-new-registration input[type="checkbox"],
.woocommerce-checkout
.course-participant-confirmation input[type="checkbox"] {
    flex: 0 0 auto;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    border: 2px solid #0085ff !important;
    border-radius: 5px;

    cursor: pointer;

    position: relative;
}


/* Checked box */

.woocommerce-checkout
.course-participant-new-registration input[type="checkbox"]:checked,
.woocommerce-checkout
.course-participant-confirmation input[type="checkbox"]:checked {
    background: #ffffff;
    border-color: #ffffff !important;
}


/* Tick */

.woocommerce-checkout
.course-participant-new-registration input[type="checkbox"]:checked::after,
.woocommerce-checkout
.course-participant-confirmation input[type="checkbox"]:checked::after {
    content: "";

    position: absolute;

    left: 6px;
    top: 2px;

    width: 6px;
    height: 11px;

    border: solid #00a9a9;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* ---------------------------------------------------------
   ACTIVE CHECKBOX ROW
   --------------------------------------------------------- */

.woocommerce-checkout
.course-participant-new-registration > label:has(input[type="checkbox"]:checked),
.woocommerce-checkout
.course-participant-confirmation > label:has(input[type="checkbox"]:checked) {
    background: #00d4d4;
    color: #ffffff;
}


/* Keep active colour on hover */

.woocommerce-checkout
.course-participant-new-registration > label:has(input[type="checkbox"]:checked):hover,
.woocommerce-checkout
.course-participant-confirmation > label:has(input[type="checkbox"]:checked):hover {
    background: #00d4d4;
    color: #ffffff;
}


/* Keyboard focus */

.woocommerce-checkout
.course-participant-new-registration > label:has(input[type="checkbox"]:focus-visible),
.woocommerce-checkout
.course-participant-confirmation > label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid #0085ff;
    outline-offset: 2px;
}

/* =========================================================
   PARTICIPANT REVIEW / EDIT BUTTON
   ========================================================= */

.woocommerce-checkout
.course-participant-summary p a {
    display: inline-block;

    margin-top: 8px;
    padding: 15px 30px;

    font-family: "CS Gordon Rounded", Sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1em;

    color: #ffffff !important;
    background-color: #0085ff;

    border: 0;
    border-radius: 4px;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Hover */

.woocommerce-checkout
.course-participant-summary p a:hover {
    background-color: #badaff;
    color: #0085ff !important;
}


/* Keyboard focus */

.woocommerce-checkout
.course-participant-summary p a:focus-visible {
    outline: 2px solid #0085ff;
    outline-offset: 3px;
}

/* =========================================================
   PARTICIPANT SUMMARY
   ========================================================= */

.woocommerce-checkout .course-participant-summary {
    width: 100%;
    max-width: none;

    margin-top: 22px;

    font-family: "futura-pt", Sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.woocommerce-checkout .course-participant-summary dl {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}

.woocommerce-checkout .course-participant-summary dl > div {
    display: grid;

    grid-template-columns:
        minmax(260px, 42%)
        minmax(0, 1fr);

    column-gap: 36px;

    width: 100%;

    padding: 6px 0;
    margin: 0;

    box-sizing: border-box;
}

.woocommerce-checkout .course-participant-summary dt,
.woocommerce-checkout .course-participant-summary dd {
    margin: 0;
    padding: 0;

    font-family: "futura-pt", Sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.woocommerce-checkout .course-participant-summary dt {
    font-weight: 700;
}

.woocommerce-checkout .course-participant-summary dd {
    font-weight: 400;
    min-width: 0;
    text-align: left;
}


/* MOBILE */

@media (max-width: 767px) {

    .woocommerce-checkout
    .course-participant-summary dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 0;
    }

}

/* =========================================================
   CHECKOUT ORDER SUMMARY — FORCE PRODUCT COLUMN WIDTH
   ========================================================= */

.woocommerce-checkout
#order_review
table.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    table-layout: auto !important;
}


/* PRODUCT COLUMN
   Automatically consumes all remaining space
   --------------------------------------------------------- */

.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
th.product-name,
.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
td.product-name {
    width: auto !important;
    max-width: none !important;
}


/* SUBTOTAL COLUMN
   Keep this deliberately narrow
   --------------------------------------------------------- */

.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
th.product-total,
.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
td.product-total {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;

    text-align: right !important;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   VARIATION DETAILS
   --------------------------------------------------------- */

.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
dl.variation {
    display: grid;
    grid-template-columns: max-content 1fr;

    column-gap: 8px;
    row-gap: 2px;

    width: 100%;
    margin: 8px 0 0;
}

.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
dl.variation dt,
.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
dl.variation dd {
    float: none !important;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout
#order_review
.woocommerce-checkout-review-order-table
dl.variation dd p {
    margin: 0;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    th.product-total,
    .woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    td.product-total {
        width: 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
    }

}

/* =========================================================
   WC DONATIONS — CHECKOUT PANEL STYLING
   ========================================================= */


/* ---------------------------------------------------------
   OUTER PLUGIN WRAPPER
   Remove grey background and outer spacing
   --------------------------------------------------------- */

.woocommerce-checkout #wc_donation_on_checkout,
.woocommerce-checkout .wc_donation_on_checkout {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ---------------------------------------------------------
   MAIN DONATION PANEL
   --------------------------------------------------------- */

.woocommerce-checkout .wc-donation-in-action {
    background: #ffffff !important;

    border: 1px solid #c5e1ff !important;
    border-radius: 10px !important;

    padding: 28px 32px !important;
    margin: 0 !important;

    box-sizing: border-box;
}


/* Hide campaign title */

.woocommerce-checkout
.wc-donation-in-action
.campaign-title {
    display: none !important;
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.block-campaign-thumbnail {
    margin: 0 0 20px !important;
}

.woocommerce-checkout
.wc-donation-in-action
.block-campaign-thumbnail img {
    display: block;
    width: 160px;
    height: auto;
}


/* ---------------------------------------------------------
   SECTION TITLES
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-title {
    font-family: "futura-pt", Sans-serif !important;
    color: #0085ff !important;
}


/* ---------------------------------------------------------
   DONATION AMOUNT OPTIONS
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.row1 .row1 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin: 0 0 28px;
}


/* Amount buttons */

.woocommerce-checkout
.wc-donation-in-action
.wc-label-button {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    min-height: 58px;

    margin: 0 !important;
    padding: 12px 16px !important;

    box-sizing: border-box;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 500;

    color: #0085ff !important;
    background: #c5e1ff !important;

    border: 0 !important;
    border-radius: 9px !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Hide native radios */

.woocommerce-checkout
.wc-donation-in-action
.wc-label-button
input[type="radio"] {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;

    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    pointer-events: none;
}


/* Hover */

.woocommerce-checkout
.wc-donation-in-action
.wc-label-button:hover {
    background: #badaff !important;
}


/* Selected state
   Plugin adds .wc-active to the label */

.woocommerce-checkout
.wc-donation-in-action
label.wc-label-button.wc-active,
.woocommerce-checkout
.wc-donation-in-action
.wc-label-button:has(input[type="radio"]:checked) {
    background: #00d4d4 !important;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   OTHER AMOUNT INPUT
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.price-wrapper {
    width: 100%;
    margin: 0 0 24px !important;
}

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-donation-other-value {
    width: 100% !important;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 18px !important;

    background: #ffffff !important;

    border: 1px solid #c5e1ff !important;
    border-radius: 9px !important;

    padding: 10px 15px !important;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   GIFT AID
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-gift-aid-wrapper {
    margin-top: 8px;
}

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-gift-aid-explanation,
.woocommerce-checkout
.wc-donation-in-action
.wc-donation-gift-aid-declaration {
    font-family: "futura-pt", Sans-serif !important;
}


/* Gift Aid checkbox row */

.woocommerce-checkout
.wc-donation-in-action
.wc-label-radio {
    display: flex !important;
    align-items: center;
    gap: 12px;

    margin: 18px 0 !important;

    font-family: "futura-pt", Sans-serif !important;

    cursor: pointer;
}


/* ---------------------------------------------------------
   DONATE BUTTON
   --------------------------------------------------------- */

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-submit-donation {
    font-family: "CS Gordon Rounded", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 500;

    padding: 15px 30px !important;

    background: #0085ff !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 9px !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-submit-donation:hover {
    background: #badaff !important;
    color: #0085ff !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .woocommerce-checkout .wc-donation-in-action {
        padding: 22px 18px !important;
    }

    .woocommerce-checkout
    .wc-donation-in-action
    .row1 .row1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   PAYPAL MESSAGE SPACING
   ========================================================= */

.woocommerce-checkout .ppcp-messages {
    margin-top: 24px !important;
}

/* =========================================================
   PAYPAL BUTTON WRAPPER — REMOVE EMPTY SPACE
   ========================================================= */

/* If the PayPal gateway button itself is hidden,
   collapse its outer wrapper too */

.woocommerce-checkout
.ppc-button-wrapper:has(
    > #ppc-button-ppcp-gateway[style*="display: none"]
) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* When PayPal is active, restore normal spacing */

.woocommerce-checkout
.ppc-button-wrapper:has(
    > #ppc-button-ppcp-gateway:not([style*="display: none"])
) {
    display: block;
    margin-top: 24px;
}

/* =========================================================
   WOOCOMMERCE TERMS CHECKBOX — FULL WIDTH BLUE STYLE
   ========================================================= */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.form-row.validate-required {
    margin: 0 !important;
}


/* Full-width checkbox row */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 12px;

    width: 100% !important;
    min-height: 58px;

    margin: 0 !important;
    padding: 12px 16px !important;

    box-sizing: border-box;

    background: #c5e1ff;

    border-radius: 9px;

    color: #0085ff;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Hover */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.woocommerce-form__label-for-checkbox:hover {
    background: #badaff;
}


/* Checkbox itself */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
input[type="checkbox"]#terms {
    flex: 0 0 auto;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    border: 2px solid #0085ff !important;
    border-radius: 5px;

    position: relative;

    cursor: pointer;
}


/* Checked state */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
input[type="checkbox"]#terms:checked {
    background: #ffffff;
    border-color: #ffffff !important;
}


/* Tick */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
input[type="checkbox"]#terms:checked::after {
    content: "";

    position: absolute;

    left: 6px;
    top: 2px;

    width: 6px;
    height: 11px;

    border: solid #00a9a9;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* Active full-width row */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.woocommerce-form__label-for-checkbox:has(
    input[type="checkbox"]#terms:checked
) {
    background: #00d4d4;
    color: #ffffff;
}


/* Keep links readable when active */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.woocommerce-form__label-for-checkbox:has(
    input[type="checkbox"]#terms:checked
)
a {
    color: #ffffff !important;
}


/* Required asterisk */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.required {
    color: red !important;
    font-weight: 700;
}


/* Keyboard focus */

.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
.woocommerce-form__label-for-checkbox:has(
    input[type="checkbox"]#terms:focus-visible
) {
    outline: 2px solid #0085ff;
    outline-offset: 2px;
}

/* =========================================================
   WC DONATIONS — HOVER / ACTIVE STATES
   ========================================================= */


/* Amount buttons — hover */

.woocommerce-checkout
.wc-donation-in-action
.wc-label-button:hover {
    background: #00d4d4 !important;
    color: #ffffff !important;
}


/* Amount buttons — selected */

.woocommerce-checkout
.wc-donation-in-action
label.wc-label-button.wc-active,
.woocommerce-checkout
.wc-donation-in-action
.wc-label-button:has(input[type="radio"]:checked) {
    background: #00d4d4 !important;
    color: #ffffff !important;
}


/* Donate button — hover */

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-submit-donation:hover {
    background: #00d4d4 !important;
    color: #ffffff !important;
}


/* Donate button — click / active */

.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-submit-donation:active,
.woocommerce-checkout
.wc-donation-in-action
.wc-donation-f-submit-donation:focus {
    background: #00d4d4 !important;
    color: #ffffff !important;
    border-color: #00d4d4 !important;
}

/* =========================================================
   WC DONATION AMOUNT BUTTONS — HOVER / SELECTED
   ========================================================= */

/* Hover */

.woocommerce-checkout
#wc_donation_on_checkout
label.wc-label-button:hover {
    background-color: #00d4d4 !important;
    border-color: #00d4d4 !important;
    color: #ffffff !important;
}


/* Selected / clicked */

.woocommerce-checkout
#wc_donation_on_checkout
label.wc-label-button.wc-active {
    background-color: #00d4d4 !important;
    border-color: #00d4d4 !important;
    color: #ffffff !important;
}


/* Also catch native checked state */

.woocommerce-checkout
#wc_donation_on_checkout
label.wc-label-button:has(input[type="radio"]:checked) {
    background-color: #00d4d4 !important;
    border-color: #00d4d4 !important;
    color: #ffffff !important;
}


/* Keep selected state turquoise on hover */

.woocommerce-checkout
#wc_donation_on_checkout
label.wc-label-button.wc-active:hover {
    background-color: #00d4d4 !important;
    border-color: #00d4d4 !important;
    color: #ffffff !important;
}


/* =========================================================
   LOGGED-OUT CHECKOUT
   ========================================================= */

/* Overall logged-out checkout card */
.woocommerce-checkout
.elementor-widget-woocommerce-checkout-page
.woocommerce {
    font-family: "futura-pt", Sans-serif;
}


/* Wrap the main logged-out messages visually */
.woocommerce-checkout
.elementor-widget-woocommerce-checkout-page
.woocommerce-info.montage-checkout-account-required {
    position: relative;

    margin: 30px 0 0 !important;
    padding: 28px 30px !important;

    background: #ffffff !important;

    border: 5px solid #c5e1ff !important;
    border-radius: 12px !important;

    color: #6b7480 !important;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 18px;
    line-height: 1.45;
}


/* Remove WooCommerce's default info icon */
.woocommerce-checkout
.woocommerce-info.montage-checkout-account-required::before {
    display: none !important;
}


/* Heading line */
.woocommerce-checkout
.woocommerce-info.montage-checkout-account-required strong {
    display: block;

    margin-bottom: 6px;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;

    color: #092c46;
}


/* Sign in / Create account button */
.woocommerce-checkout
.woocommerce-info.montage-checkout-account-required
a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 22px;
    padding: 15px 28px !important;

    font-family: "CS Gordon Rounded", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 500;

    background: #0085ff !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 9px !important;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.woocommerce-checkout
.woocommerce-info.montage-checkout-account-required
a.button:hover {
    background: #00d4d4 !important;
    color: #ffffff !important;
}


/* Basket notice */
.woocommerce-checkout
.woocommerce-message {
    font-family: "futura-pt", Sans-serif !important;

    background: #ffffff !important;

    border-top: 3px solid #0085ff !important;
    border-radius: 0 !important;
}


/* View basket button */
.woocommerce-checkout
.woocommerce-message
a.button {
    font-family: "CS Gordon Rounded", Sans-serif !important;
    font-size: 18px !important;

    background: #0085ff !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 9px !important;

    padding: 14px 24px !important;
}

.woocommerce-checkout
.woocommerce-message
a.button:hover {
    background: #00d4d4 !important;
}


/* "You must be logged in to checkout." */
.woocommerce-checkout
.elementor-widget-woocommerce-checkout-page
.woocommerce {
    color: #6b7480;
}


/* Mobile */
@media (max-width: 767px) {

    .woocommerce-checkout
    .woocommerce-info.montage-checkout-account-required {
        padding: 22px 18px !important;
    }

    .woocommerce-checkout
    .woocommerce-info.montage-checkout-account-required
    a.button {
        width: 100%;
    }

}

/* =========================================================
   WOOCOMMERCE ORDER CONFIRMATION / THANK YOU PAGE
   ========================================================= */


/* ---------------------------------------------------------
   OUTER ORDER CONFIRMATION PANEL
   --------------------------------------------------------- */

.woocommerce-order {
    width: 100%;

    box-sizing: border-box;

    padding: 32px;

    background: #ffffff;

    border: 5px solid #c5e1ff;
    border-radius: 20px;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 18px !important;
    line-height: 1.5;

    color: #092c49;
}


/* Force Futura throughout the confirmation content */

.woocommerce-order *,
.woocommerce-order p,
.woocommerce-order li,
.woocommerce-order td,
.woocommerce-order th,
.woocommerce-order address,
.woocommerce-order strong,
.woocommerce-order a {
    font-family: "futura-pt", Sans-serif !important;
}


/* Minimum readable body size */

.woocommerce-order p,
.woocommerce-order li,
.woocommerce-order td,
.woocommerce-order th,
.woocommerce-order address {
    font-size: 18px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.woocommerce-order
.woocommerce-thankyou-order-received {
    margin: 0 0 28px !important;
    padding: 0 !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    color: #0085ff !important;

    background: transparent !important;

    border: 0 !important;
}


/* =========================================================
   ORDER OVERVIEW
   ========================================================= */

.woocommerce-order
.woocommerce-order-overview {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0 !important;

    width: 100% !important;

    margin: 0 0 36px !important;
    padding: 0 !important;

    list-style: none !important;

    border-top: 1px solid #c5e1ff;
    border-left: 1px solid #c5e1ff;

    border-radius: 10px;

    overflow: hidden;
}


/* Individual overview cells */

.woocommerce-order
.woocommerce-order-overview
li {
    width: auto !important;

    margin: 0 !important;
    padding: 16px 18px !important;

    float: none !important;

    box-sizing: border-box;

    font-size: 18px !important;
    line-height: 1.4 !important;

    color: #092c49 !important;

    border-right: 1px solid #c5e1ff !important;
    border-bottom: 1px solid #c5e1ff !important;
}


/* Remove WooCommerce separators */

.woocommerce-order
.woocommerce-order-overview
li::before {
    display: none !important;
}


/* Strong values */

.woocommerce-order
.woocommerce-order-overview
li strong {
    display: block;

    margin-top: 3px;

    font-size: 18px !important;
    font-weight: 700 !important;

    color: #092c49 !important;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.woocommerce-order
.woocommerce-order-details__title,

.woocommerce-order
.woocommerce-column__title {
    margin: 0 0 18px !important;

    font-family: "futura-pt", Sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;

    color: #0085ff !important;
}


/* =========================================================
   ORDER DETAILS SECTION
   ========================================================= */

.woocommerce-order
.woocommerce-order-details {
    margin: 0 0 38px !important;
}


/* Main table */

.woocommerce-order
.woocommerce-table--order-details {
    width: 100% !important;

    margin: 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    overflow: hidden;

    border: 1px solid #c5e1ff !important;
    border-radius: 12px !important;

    background: #ffffff !important;
}


/* Header */

.woocommerce-order
.woocommerce-table--order-details
thead th {
    padding: 15px 18px !important;

    font-size: 18px !important;
    font-weight: 700 !important;

    color: #092c49 !important;

    background: #f7fbff !important;

    border: 0 !important;
    border-bottom: 1px solid #c5e1ff !important;
}


/* Body / footer cells */

.woocommerce-order
.woocommerce-table--order-details
tbody td,

.woocommerce-order
.woocommerce-table--order-details
tfoot th,

.woocommerce-order
.woocommerce-table--order-details
tfoot td {
    padding: 16px 18px !important;

    font-size: 18px !important;
    line-height: 1.45 !important;

    color: #092c49 !important;

    background: #ffffff !important;

    border: 0 !important;
    border-bottom: 1px solid #e3edf8 !important;
}


/* Remove bottom border from final footer row */

.woocommerce-order
.woocommerce-table--order-details
tfoot tr:last-child th,

.woocommerce-order
.woocommerce-table--order-details
tfoot tr:last-child td {
    border-bottom: 0 !important;
}


/* Give product name more room */

.woocommerce-order
.woocommerce-table--order-details
.product-name {
    width: 72% !important;
}


.woocommerce-order
.woocommerce-table--order-details
.product-total {
    width: 28% !important;

    text-align: right !important;

    white-space: nowrap;
}


/* Product links */

.woocommerce-order
.woocommerce-table--order-details
.product-name a {
    color: #0085ff !important;

    text-decoration: none;
}


.woocommerce-order
.woocommerce-table--order-details
.product-name a:hover {
    color: #00d4d4 !important;
}


/* =========================================================
   ITEM META
   ========================================================= */

.woocommerce-order
.wc-item-meta {
    margin: 10px 0 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


.woocommerce-order
.wc-item-meta li {
    display: grid;

    grid-template-columns:
        minmax(160px, 38%)
        minmax(0, 1fr);

    gap: 10px;

    margin: 0 !important;
    padding: 3px 0 !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
}


.woocommerce-order
.wc-item-meta li strong {
    font-size: 16px !important;
    font-weight: 700 !important;
}


.woocommerce-order
.wc-item-meta li p {
    margin: 0 !important;

    font-size: 16px !important;
}


/* =========================================================
   BILLING ADDRESS
   ========================================================= */

.woocommerce-order
.woocommerce-customer-details {
    margin: 0 !important;
}


.woocommerce-order
.woocommerce-customer-details address {
    height: auto !important;

    margin: 0 !important;
    padding: 18px !important;

    box-sizing: border-box;

    font-style: normal !important;

    color: #092c49 !important;

    background: #f7fbff !important;

    border: 1px solid #c5e1ff !important;
    border-radius: 12px !important;
}


/* Phone / email */

.woocommerce-order
.woocommerce-customer-details--phone,

.woocommerce-order
.woocommerce-customer-details--email {
    margin: 10px 0 0 !important;

    font-size: 18px !important;

    color: #092c49 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .woocommerce-order {
        padding: 22px 18px;

        border-width: 4px;
        border-radius: 16px;
    }


    /* Stack overview cards */

    .woocommerce-order
    .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }


    /* Order table */

    .woocommerce-order
    .woocommerce-table--order-details
    .product-name {
        width: 68% !important;
    }

    .woocommerce-order
    .woocommerce-table--order-details
    .product-total {
        width: 32% !important;
    }


    /* Item metadata stacks */

    .woocommerce-order
    .wc-item-meta li {
        grid-template-columns: 1fr;

        gap: 1px;
    }

}

/* =========================================================
   ORDER CONFIRMATION — ROUNDED BLUE SUB-SECTIONS
   ========================================================= */


/* ---------------------------------------------------------
   ORDER DETAILS SECTION
   --------------------------------------------------------- */

.woocommerce-order
.woocommerce-order-details {
    margin: 0 0 32px !important;
    padding: 24px !important;

    background: #ffffff !important;

    border: 2px solid #c5e1ff !important;
    border-radius: 16px !important;

    box-shadow: none !important;
}


/* Remove grey / inherited backgrounds */

.woocommerce-order
.woocommerce-order-details,
.woocommerce-order
.woocommerce-order-details table,
.woocommerce-order
.woocommerce-order-details thead,
.woocommerce-order
.woocommerce-order-details tbody,
.woocommerce-order
.woocommerce-order-details tfoot,
.woocommerce-order
.woocommerce-order-details tr,
.woocommerce-order
.woocommerce-order-details th,
.woocommerce-order
.woocommerce-order-details td {
    background: #ffffff !important;
}


/* Heading spacing inside rounded panel */

.woocommerce-order
.woocommerce-order-details__title {
    margin: 0 0 20px !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
}


/* ---------------------------------------------------------
   INNER ORDER TABLE
   Remove second outer border so section itself is the box
   --------------------------------------------------------- */

.woocommerce-order
.woocommerce-table--order-details {
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    overflow: visible !important;
}


/* Keep subtle horizontal separators only */

.woocommerce-order
.woocommerce-table--order-details
thead th {
    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid #c5e1ff !important;
}


.woocommerce-order
.woocommerce-table--order-details
tbody td,

.woocommerce-order
.woocommerce-table--order-details
tfoot th,

.woocommerce-order
.woocommerce-table--order-details
tfoot td {
    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid #e3edf8 !important;
}


.woocommerce-order
.woocommerce-table--order-details
tfoot tr:last-child th,

.woocommerce-order
.woocommerce-table--order-details
tfoot tr:last-child td {
    border-bottom: 0 !important;
}


/* =========================================================
   BILLING ADDRESS SECTION
   ========================================================= */

.woocommerce-order
.woocommerce-customer-details {
    margin: 0 !important;
    padding: 24px !important;

    background: #ffffff !important;

    border: 2px solid #c5e1ff !important;
    border-radius: 16px !important;

    box-shadow: none !important;
}


/* Billing heading */

.woocommerce-order
.woocommerce-customer-details
.woocommerce-column__title {
    margin: 0 0 18px !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
}


/* Address no longer gets its own box */

.woocommerce-order
.woocommerce-customer-details
address {
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .woocommerce-order
    .woocommerce-order-details,

    .woocommerce-order
    .woocommerce-customer-details {
        padding: 18px !important;

        border-radius: 14px !important;
    }

}

/* ==========================================
   WOOCOMMERCE PAYMENT METHOD CARDS
   ========================================== */

.woocommerce-checkout #payment ul.wc_payment_methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Reset individual payment rows */
.woocommerce-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

/* Hide native radio visually, but keep it accessible */
.woocommerce-checkout #payment .wc_payment_method > input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%);
    overflow: hidden;
}

/* Payment method label */
.woocommerce-checkout #payment .wc_payment_method > label {
    display: flex !important;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-height: 64px;
    padding: 16px 20px !important;
    margin: 0 !important;

    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 10px !important;

    color: #222 !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .2s, background-color .2s;
}

/* Custom radio indicator */
.woocommerce-checkout #payment .wc_payment_method > label::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 20px;

    width: 20px !important;
    height: 20px !important;

    border: 2px solid #999 !important;
    border-radius: 50% !important;
    background: #fff !important;

    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box;
}

/* Selected state */
.woocommerce-checkout #payment
.wc_payment_method > input[type="radio"]:checked + label {
    border-color: #0787ff !important;
    background: #f2f8ff !important;
}

/* Selected radio */
.woocommerce-checkout #payment
.wc_payment_method > input[type="radio"]:checked + label::before {
    border: 6px solid #0787ff !important;
}

/* Keyboard focus */
.woocommerce-checkout #payment
.wc_payment_method > input[type="radio"]:focus-visible + label {
    outline: 2px solid #0787ff !important;
    outline-offset: 3px;
}

/* Payment provider logos */
.woocommerce-checkout #payment .wc_payment_method > label img {
    display: inline-block;
    width: auto !important;
    max-width: 90px;
    max-height: 28px;
    margin-left: auto !important;
    object-fit: contain;
}

/* Expanded credit-card form */
.woocommerce-checkout #payment .wc_payment_method > .payment_box {
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid #d9d9d9;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fafafa;
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce-checkout #payment .wc_payment_method > label {
        min-height: 58px;
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
}

/* Checkout sign-in / create account button */

.woocommerce-checkout a.button[href*="return_to=checkout"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1.2 !important;
    text-align: center;

    white-space: normal;
    padding: 18px 28px;
}

/* Student prompt on the checkout page */
.woocommerce-checkout .woocommerce-info.student-checkout-notice {
    position: relative;
    box-sizing: border-box;

    /* Leave space for the button on the right */
    padding: 24px 220px 24px 24px;

    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;

    line-height: 1.5;
}

/* Remove WooCommerce's default notice icon */
.woocommerce-checkout .woocommerce-info.student-checkout-notice::before {
    display: none !important;
    content: none !important;
}

/* Add student button */
.woocommerce-checkout .woocommerce-info.student-checkout-notice .button {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);

    float: none;
    margin: 0;
    white-space: nowrap;

    font-family: "CS Gordon Rounded", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;

    color: #ffffff !important;
    background: #0085ff !important;
    padding: 15px 30px !important;
    border: 0 !important;
    border-radius: 9px !important;

    transition: background-color 0.2s, color 0.2s;
}

/* Stack the button beneath the message on smaller screens */
@media (max-width: 767px) {
    .woocommerce-checkout .woocommerce-info.student-checkout-notice {
        padding: 20px;
    }

    .woocommerce-checkout .woocommerce-info.student-checkout-notice .button {
        position: static;
        display: table;
        transform: none;
        margin-top: 16px;
    }
}