.checkout-header {
    display: flex;
    justify-content: space-between;
}

.cart-icon-container a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-info {
    margin-bottom: 10px;
}

a.showlogin,
a.showcoupon {
    text-decoration: underline;
    margin-left: 10px;
}

.woocommerce-checkout #payment div.payment_box .wc-credit-card-form {
    margin: 0;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-weight: initial;
    display: block;
}

.woocommerce-terms-and-conditions-link {
    font-weight: initial;
}

.woocommerce form .form-row {
    padding: 0;
}

.woocommerce-form__label-for-checkbox {
    margin-bottom: 0rem !important;
    display: block !important;
}

.woocommerce-form__input-checkbox {
    display: none !important;
}

.woocommerce-form__label-for-checkbox abbr {
    display: none;
}




.woocommerce table.shop_table .woocommerce-Price-amount,
.woocommerce-page table.shop_table .woocommerce-Price-amount {
    font-weight: 600;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

input,
select {
    border-radius: 10px !important;
    display: inline-flex;
    align-items: baseline;
    border: 1px dashed #948f8c !important;
    font-weight: 500;
    font-family: Dosis;
    font-size: 1rem !important;
    color: #555 !important;
}

.woocommerce form .form-row {
    margin: 0 0 20px 0;
    opacity: 1;
}

.woocommerce-additional-fields {
    margin: 20px 0 0;
}

.woocommerce form .form-row label {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: initial;
    font-weight: 600;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated {
    display: none !important;
}

.woocommerce {
    margin: 20px 0;
}

/* h3#order_review_heading,
div#order_review {
    background: #fff;
} */

a.custom-logo-link {
    margin-bottom: 20px;
    display: block;
}

.about_paypal {
    display: none;
}

button#place_order {
    padding: 15px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: #028288 !important;
    border-radius: 15px !important;
    border: 1px dashed #F7F2EE;
    margin: 0 !important;
}

/* div#wc_gc_cart_redeem_form {
    display: flex;
} */

/* input#wc_gc_cart_code {
    margin: auto !important;
} */

button#wc_gc_cart_redeem_send {
    background: #333;
}

form.checkout.woocommerce-checkout {
    margin-bottom: 60px;
}

div#ast-desktop-header,
div#customise_checkout_field h5,
.wave-border-div,
.pt-footer-accreditation-container,
form.checkout>p#wc-stripe-payment-request-button-separator {
    display: none !important;
}

div#wc-stripe-payment-request-wrapper {
    margin: 0;
}

/* .col-1 {
    background: #fff;
    margin: 0;
    padding: 30px;
    border-radius: 0 0 20px 20px;
} */

.email-autocomplete-input-size {
    display: none !important;
}

.username-warning p {
    margin: auto;
}

.mailchimp-newsletter {
    display: none;
}

/* .username-warning {
    margin-bottom: 2em!important;
} */

.woocommerce-additional-fields h3 {
    display: none;
}

p#date_of_birth_field {
    padding: 0;
    margin-top: 10px;
}

button#place_order {
    margin: 20px 0;
}

input#date_of_birth,
input#se_date_of_birth {
    padding: 0.75em;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    border: 1px solid #ddd;
}

button#ckocom_googlePay {
    border-radius: 40px;
    background-color: #72A40D !important;
    font-weight: 500;
    width: 100%;
    position: relative;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1em 0;
    line-height: 2.2rem;
}

button#ckocom_googlePay:before {
    content: 'Proceed to';
    position: absolute;
    left: 70px;
    top: 5px;
    text-transform: uppercase;
}

div#payment {
    display: inline-block;
}

.form-row.place-order {
    padding: 0 !important;
}

div#payment {
    padding: 2rem 0;
}

.google-pay-button {
    background-position: 235px !important;
}


/* COUPON */

__form.checkout_coupon.woocommerce-form-coupon {
    display: flex !important;
    min-width: 100%;
}

__form.checkout_coupon.woocommerce-form-coupon p.form-row {
    width: 50%;
}

.woocommerce-form-login__submit,
form.checkout_coupon.woocommerce-form-coupon button.button {
    width: 100%;
    background: #333 !important;
}

/* div#wc_gc_cart_redeem_form>* {
    width: 50% !important;
} */

.woocommerce-order {
    text-align: center;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
    display: flex;
    justify-content: center;
}

.woocommerce ul.order_details li:last-child {
    margin-right: 0;
    padding: 0px;
}

h2.woocommerce-order-downloads__title {
    background-color: #fbfbfb;
    margin: 0;
    padding: 1em;
    font-size: 1.3rem;
    border-width: 1px 1px 0 1px;
    border-style: solid;
    border-color: #e5e5e5;
}

.ptefl-order-logo {
    width: 40%;
    margin: 0 auto 30px;
    display: inline-block;
}

.woocommerce-order,
.woocommerce-order-received .woocommerce {
    margin-top: 0px !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    margin-left: 15px !important;
}

/* h3#order_review_heading {
    display: none;
} */

/* table.shop_table.woocommerce-checkout-review-order-table,
ul.wc_payment_methods.payment_methods.methods,
.form-row.place-order {
    background-color: #fff;
    font-weight: 500;
    border-radius: 0 0 20px 20px;
    padding: 2em !important;
} */

tr.order-total th,
tr.order-total td {
    border: none;
}

.entry-content p {
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.entry-content p a {
    text-decoration: underline;
    font-weight: 400;
}

div#payment {
    padding-top: 0px;
}

button#place_order {
    margin-bottom: 0px;
}

/* div#order_review:before {
    content: 'Order Summary';
} */

/* .wc_payment_methods.payment_methods.methods {
    margin-top: 60px !important;
} */

/* .wc_payment_methods.payment_methods.methods:before {
    content: 'Payment Methods' !important;
    font-size: 1.25rem;
    line-height: 1.5;
    background-color: #0F3042;
    font-weight: 600;
    color: #fff;
    border-radius: 20px 20px 0 0;
    display: block !important;
    padding: 10px 29px;
    border: 1px dotted #f7f2ee !important;
    margin: -87px -34px 20px -34px;
} */

/* div#order_review:before,
.tandc-div {
    font-size: 1.25rem;
    line-height: 1.5;
    display: block;
    background-color: #0F3042;
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 10px 29px;
    border: 1px dotted #f7f2ee !important;
} */

/* ul.wc_payment_methods.payment_methods.methods {
    margin-bottom: 30px !important;
} */

input#terms {
    -webkit-appearance: none;
    margin: 0px !important;
    border: none;
}

.woocommerce-invalid input,
.woocommerce-invalid select {
    border-color: red !important;
}

input#date_of_birth {
    background-clip: none !important;
}

input#terms+*::before {
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 20px;
    height: 20px;
    top: 1px;
    position: relative;
    border-radius: 5px;
    margin-right: 10px;
    border: 1px solid #999;
    flex-shrink: 0;
}

input#terms:checked+*::before {
    content: "";
    background-color: #0F3042;
    border-color: #0F3042;
    background-position: center;
    background-size: 16px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e");
}

div#customer_details {
    position: relative;
}

.username-warning {
    /* background: rgba(97, 116, 128, 0.03); */
    font-size: 16px;
    padding: 20px 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: auto;
    /* margin: auto auto 50px; */
    background-color: #fff;
    position: absolute;
    display: none;
    top: -125px;
}

p#wc-stripe-payment-request-button-separator {
    margin: auto;
}

/* button#place_order {
    float: none !important;
} */

#buying_course_checkout_radio .woocommerce-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#buying_course_checkout_radio .woocommerce-input-wrapper>input {
    width: 2%;
    margin-right: 10px;
    position: relative;
    top: -4px;
}

#buying_course_checkout_radio .woocommerce-input-wrapper>label {
    width: 96%;
    font-size: 1rem;
    line-height: 1.5rem;
}

div#buying_course_checkout_radio {
    margin-top: 10px;
}

#someone_else_checkout_field {
    display: none;
}

.se-fields-note {
    font-size: 1rem;
    margin: 1rem 0 2rem;
    line-height: 1.2;
    text-align: c;
}

.logged-in p#billing_email_field span:after {
    content: 'This is the email address connected to your Learner Dashboard and is not changeable. If you are buying for someone else, please log out and complete your booking with a new email address.';
    font-size: 0.8rem;
    display: block;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 500;
}

input#billing_email[readonly="readonly"] {
    opacity: 0.6;
}


div#someone_else_checkout_field {
    column-gap: 30px;
    margin: 0 0 -1rem 0;
    flex-wrap: wrap;
}

div#someone_else_checkout_field .form-row {
    width: calc(50% - 15px);
    float: none;
}

/* Password Toggle */

.password-input {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    margin-left: -25px;
    margin-top: 15px;
    cursor: pointer;
}

form.cart-has-deposit div#wc-stripe-payment-request-wrapper,
form.cart-has-deposit #wc-stripe-payment-request-button-separator {
    display: none !important;
}


p#se_address_field {
    width: 100% !important;
    margin-bottom: 20px;
}


.woocommerce-order-pay table.shop_table td,
.woocommerce-order-pay table.shop_table td,
.woocommerce-order-pay table.shop_table th,
.woocommerce-order-pay table.shop_table th {
    padding: 5px 15px !important;
}

.woocommerce-order-pay div#payment {
    width: 100%;
}

.create-account {
    margin-top: 20px;
}

li.wc_payment_method.payment_method_stripe img {
    width: 120px;
}

@media only screen and (min-width: 1024px) {
    .woocommerce-order {
        padding: 50px 200px;
    }
}

@media only screen and (max-width: 767px) {
    .woocommerce ul.order_details li {
        margin-right: 1em;
        padding-right: 1em;
    }

    #buying_course_checkout_radio .woocommerce-input-wrapper>input {
        min-width: 20px;
        height: 20px;
    }

    #buying_course_checkout_radio .woocommerce-input-wrapper {
        flex-wrap: nowrap;
        margin-top: 20px;
    }

    #buying_course_checkout_radio .woocommerce-input-wrapper>label {
        line-height: 1.15;
        font-size: 0.85rem;
    }

    div#someone_else_checkout_field .form-row label {
        font-size: 0.85rem;
    }

    /* .col-1 {
        padding: 20px;
    } */

}

.site-footer-above-section-4 {
    display: none !important
}

.StripeElement iframe {
    display: block !important;
}

/* New design */

body.page-template-page-checkout #order_review,
body.page-template-page-checkout #order_review_heading {
    border-color: #03818a !important;
    border-style: dashed !important;
}

body.page-template-page-checkout #order_review {
    border-radius: 0 0 10px 10px !important;
}

body.page-template-page-checkout #order_review_heading {
    border-radius: 10px 10px 0 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 10px;
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    border: 1px dashed #dcdcdc;
}

tr.order-total {
    display: none;
}

.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #03818a;
}

.order-total .woocommerce-Price-amount.amount {
    font-size: 20px;
    font-weight: 700;
}

.wc-ppcp-paylater-msg__container {
    display: none !important;
}

button.btn-after-form {
    margin-top: 1rem !important;
    float: right;
    background: #03818a !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 16px !important;
    border-radius: 0 !important;
}

#order_review td.product-name {
    color: #03818a;
    font-weight: 400;
    position: relative;
}

.first-cart-item-name {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0;
}

.payment-logo-container {
    display: flex;
    align-items: center;
    width: 40%;
    float: right;
    clear: right;
    justify-content: space-between;
    margin-top: 1rem;
}

.payment-logo-container img.payment-logo {
    background: var(--white);
    border: 1px solid #dcdcdc;
    padding: 0 4px;
    --dim: 40px;
    width: var(--dim);
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 5px;
}

.payment-logo-container .payment-logo-text {
    font-size: 13px;
    font-weight: 500;
}

form.checkout.woocommerce-checkout {
    margin-bottom: 2rem;
}

/* 
.remove-btn {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
} */

@media screen and (min-width:769px) {
    button#place_order.hide-on-desktop {
        display: none !important;
    }
}

@media screen and (max-width:768px) {
    button#place_order.hide-on-mobile {
        display: none !important;
    }

    .payment-logo-container {
        width: 100%;
    }

    form.checkout.woocommerce-checkout {
        margin-bottom: 0;
    }
}


.resource-container {
    /* overflow: hidden; */
    margin-bottom: 1rem;
    border-radius: 1rem;
    width: 50%;
}

@media screen and (max-width: 768px) {
    .resource-container {
        width: 100%;
    }

}

.resource-icon {
    padding: 20px;
    border-radius: 1.5rem 0 0 0;
}

.resource-price,
.resource-icon {
    flex: 40%;
    background: #ECE6E1;
}

.resource-description,
.resource-add-to-cart {
    flex: 60%
}

.resource-container__left {
    flex: 40%;
    background: #D1D9DF;
}

.resource-container__right {
    flex: 60%;
    background: #DBE0E4;
}

.resource-description {
    padding: 16px;
    background: #F2EAE4;
    border-radius: 0 1.5rem 0 0;
}

.resource-description h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #113041;
}

.resource-description span {
    font-size: 14px;
    line-height: 1.25;
    display: none;
    ;
    color: #113041;
    font-weight: 400;
}

.resource-container__top,
.resource-container__bottom {
    display: flex;
}

.resource-container__bottom {
    border-top: 2px solid #113041;
}

.resource-add-to-cart a {
    border-radius: 0 !important;
    padding: 8px 16px !important;
    background: var(--black-jet) !important;
    text-align: center;
    display: flex !important;
    justify-content: space-around;
}

.resource-price {
    display: flex;
    font-size: 14px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 1.5rem;
}

.resource-price ins {
    font-weight: 700;
    color: #113041;
}

.resource-price del {
    text-decoration-color: red;
    color: gray;
    font-weight: 600;
}

.resource-description-header {
    position: relative;
}

.resource-description-header .fa {
    color: #fff;
    font-weight: 400;
    font-size: 8px;
    background: #69BB9E;
    padding: 4px 7px;
    border-radius: 100%;
    position: absolute;
    right: 20%;
    top: 50%;
    cursor: pointer;
    /* transform: translateY(-50%); */
}

.resource-info-container {
    background: #0F3042;
    color: #fff;
    padding: 20px;
    font-size: 12px;
    border-radius: 10px;
    position: absolute;
    z-index: -1;
    bottom: 40px;
    right: -40%;
    opacity: 0;
    transform: translateY(-40px);
    transition: all .4s ease-in-out;
}

.resource-info-container::after {
    content: "";
    position: absolute;
    right: calc(45% - 1.5rem/2);
    bottom: -7px;
    background: #0F3042;
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(45deg);
    border-radius: 2px;
}

.resource-info {
    margin-bottom: 1.5rem;
}

.resource-info-container.animate-slide-down {
    transform: translateY(0);
    opacity: 1;
    z-index: 999;
}

.resource-info-container p {
    margin-bottom: 1rem;
}

.resource-info-container ul {
    margin-left: 16px;
}

.resource-add-to-cart a {
    border-radius: 0 !important;
    padding: 8px 16px !important;
    background: #0F3042 !important;
    text-align: center;
    display: flex !important;
    justify-content: space-around;
    border-radius: 0 0 1.5rem 0 !important;
}

.resource-info-container .btn:hover {
    color: #fff;
    background: #F12C3E;
}

.resource-info-container ul li {
    list-style: disc;
}

.resource-info-container h6 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

@media screen and (max-width:768px) {
    /* .resource-description-header .fa {
        right: -5%;
        top: 0;
    } */

    .resource-info-container {
        bottom: 60px;
        right: 0;
        left: -40%;
    }


}

.resource-price .discount-percentage {
    display: none;
}

.resource-info-container a {
    display: block;
    background: #69BB9E;
    text-align: center;
    border-radius: 1rem;
    padding: 4px 16px;
    color: #fff;
}

#primary {
    overflow: visible;
}

.discount-icon {
    position: absolute;
    top: 0;
    right: calc(-120px - 10px);
    width: 120px;
}

@media screen and (max-width:768px) {

    .discount-icon {
        top: -50px;
        right: 120px;
    }
}

@media screen and (max-width:1100px) and (min-width:769px) {
    .discount-icon {
        right: 0;
    }

}


.cart-container {
    display: flex;
    gap: 20px
}


body.xoo-wsc-cart-active,
html.xoo-wsc-cart-active {
    overflow: auto !important;
}

.resources-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 20px auto;
    padding: 0;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 20px 60px;
    /* Space for absolute buttons */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-track .resource-container {
    min-width: calc((100% - 20px) / 1.75);
    /* Show 1.75 slides */
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
}

.rescource-label {
    position: absolute;
    background: #0F3042;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    width: max-content;
    top: -15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
}

.carousel-prev {
    left: -30px;
}

.carousel-next {
    right: -30px;
}

.carousel-btn i {
    font-size: 24px;
    color: #fff;
    pointer-events: none;
    /* Prevent icon from being click target */
}

button.show-password-input.display-password,
button.show-password-input {
    display: none;
}


@media screen and (max-width: 1024px) {
    .carousel-track .resource-container {
        min-width: calc((100% - 20px) / 1.5);
        /* Show 1.5 slides on tablets */
    }
}

@media screen and (max-width: 768px) {
    .carousel-track {
        padding: 20px 50px;
    }

    .carousel-track .resource-container {
        min-width: 100%;
        /* Full slide on mobile */
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 18px;
    }
}