body {
    background: var(--teflie-background-warm);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--teflie-text-primary);
}

.payment_method_revolut_cc label img {
    max-width: 30px;
}

form.checkout.woocommerce-checkout>#wc-stripe-payment-request-button-separator,
.form-row.woocommerce-SavedPaymentMethods-saveNew {
    display: none !important;
}

.return-to-cart-btn {
    background-color: var(--teflie-text-primary);
    color: #fff !important;
    padding: 10px 25px;
    display: inline-block;
    border-radius: 7px;
    margin-bottom: 1rem;
}

.place-order .form-row label.checkbox {
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 10px;
}

.place-order .form-row label.checkbox input {
    width: 20px;
    height: 20px;
}

p#account_username_field,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-additional-fields h3,
.woocommerce-billing-fields .cross-sells {
    display: none;
}

.entry-content>.woocommerce {
    margin-top: 40px;
}

div#sc-cc {
    background: #f7f7f7;
    padding: 10px;
}

div#coupons_list h3 {
    font-size: 1em;
    margin-bottom: 5px;
}

.woocommerce-checkout #primary .download-file a {
  color: white !important;
}

/*.woocommerce-form-coupon-toggle,*/

div#coupons_list {
    display: none !important;
}

.woocommerce-form-coupon-toggle {
    font-weight: bold;
}

.showlogin {
    display: none;
}

.showlogin.tefl-custom-msg {
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
}


ul.wc_payment_methods.payment_methods.methods {
    margin-bottom: 24px !important;
}

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

.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-validated input,
.woocommerce-validated select {
    border-width: 2px !important;
}

.woocommerce-validated input,
.woocommerce-validated select {
    border-color: #69bf29 !important;
}

.woocommerce-invalid input,
.woocommerce-invalid select {
    border-width: 3px !important;
}

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

div#customer_details {
    position: relative;
}

.username-warning {
    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 {
    /* padding: 20px; */
    font-size: 1.4em;
    border-radius: 1rem !important;
}

.add_gift_card_form {
    display: block;
    background: #fcfcfd;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 10px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
    border: 1px dashed var(--teflie-turquoise);
    margin: 0 24px 24px;
}

.add_gift_card_form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--teflie-text-primary);
    font-weight: 600;
}

#wc_gc_cart_redeem_form input.input-text {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

#wc_gc_cart_redeem_form input.input-text:focus {
    border-color: var(--teflie-turquoise);
    outline: none;
}

#wc_gc_cart_redeem_form button.button {
    background: var(--teflie-text-primary);
    color: #fff;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

#wc_gc_cart_redeem_form button.button:hover:not(:disabled) {
    opacity: 0.9;
}

#wc_gc_cart_redeem_form button.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    #wc_gc_cart_redeem_form {
        flex-direction: column;
    }

    #wc_gc_cart_redeem_form input.input-text,
    #wc_gc_cart_redeem_form button.button {
        width: 100%;
    }
}

div#order_review {
    padding: 0px !important;
}

fieldset#wc-stripe-cc-form>.form-row {
    padding-bottom: 0px !important;
    margin: 0px !important;
}

div#stripe-payment-data fieldset:last-child {
    padding: 0px;
    border: none;
}

fieldset#wc-stripe-cc-form {
    background-color: #fcfcfd !important;
    margin: 10px 0px 10px 0 !important;
    padding: 10px 15px 155px !important;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
    background-image: url('https://tefl.ie/wp-content/uploads/2022/08/stripe-badge-grey.png') !important;
    background-size: 330px !important;
    background-position: center calc(100% - 20px) !important;
    background-repeat: no-repeat !important;
}

label[for="wc-stripe-new-payment-method"] {
    line-height: 1rem !important;
}

.payment_box.payment_method_stripe {
    padding: 0px !important;
    margin: 0px !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection--single,
.woocommerce select,
.woocommerce-page .select2-container .select2-selection--single,
.woocommerce-page select {
    border-color: none;
}

.order-again a {
    color: white !important;
}

body.logged-in .woocommerce-additional-fields #customise_checkout_field {
    display: none;
}

.woocommerce-billing-fields__field-wrapper {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.logged-in p#billing_email_field span:after {
    content: 'This is the Email Address related to your Moodle Account and is not changeable. If you are trying to order for someone else, We suggest you to logout and place a separate order with a fresh account.';
    font-size: 0.75rem;
    line-height: 1rem;
    display: block;
    margin-top: 10px;
}

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

.woocommerce-page.woocommerce-checkout form #order_review td.product-name {
    flex-direction: column;
    align-items: flex-start;
    /* gap: 10px; */
    font-size: 16px;
}

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

.payment-breakdown-container .payment-partners {
    margin: auto;
}

/* .woocommerce-page.woocommerce-checkout form #order_review td.product-name strong.product-quantity {
	position: absolute;
	margin-left: -20px;
	margin-top: -10px;
	background: #AB9;
	line-height: 1;
	width: 20px;
	height: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	letter-spacing: -2px;
	font-size: 12px;
	border-radius: 50%;
	text-align: center;
	text-indent: -2px;
} */

@media (max-width:768px) {
    fieldset#wc-stripe-cc-form {
        padding: 10px 15px 35vw !important;
        background-size: 70vw !important;
    }

}

@media (min-width:1024px) {
    .woocommerce-order-pay form#order_review {
        display: flex;
        gap: 40px;
    }

}

.woocommerce-page.woocommerce-checkout table.shop_table td,
.woocommerce-page.woocommerce-checkout table.shop_table th,
.woocommerce.woocommerce-checkout table.shop_table td,
.woocommerce.woocommerce-checkout table.shop_table th {
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.4;
}

ul.wc_payment_methods.payment_methods.methods>li {
    cursor: pointer;
}

ul.wc_payment_methods.payment_methods.methods>li>input {
    width: 20px;
    height: 20px;
    transform: translateY(5px);
}

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

/* checkout redesign */
body.woocommerce-page.woocommerce-order-received header,
body.woocommerce-page.woocommerce-order-received .header-banner,
body.woocommerce-page.woocommerce-order-received .main-header-bar.ast-header-breadcrumb {
    display: none;
}

span.tefl-order-logo {
    width: 300px;
    display: block;
    margin: auto;
}

.woocommerce-order {
    text-align: center;
    margin: 40px auto;
}

@media screen and (min-width:768px) {
    .woocommerce-order {
        max-width: 90%;
    }
}

.woocommerce-order .woocommerce-notice {
    font-weight: 700;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
    display: flex;
    justify-content: center;
    text-align: left;
    margin-bottom: 1rem !important;
}

.woocommerce-order-details .order-again {
    display: none;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-order-downloads h2 {
    border-radius: 1rem 1rem 0 0;
    background: #D1D7DA !important;
    color: var(--color-priamry-new);
    border: none !important;
}

.woocommerce-order-details table,
.woocommerce-customer-details table,
.woocommerce-order-downloads table {
    border-radius: 0 0 1rem 1rem !important;
}

.woocommerce-order-details table a,
.woocommerce-customer-details table a,
.woocommerce-order-downloads table a {
    color: var(--color-priamry-new) !important;
}

@media screen and (max-width:768px) {
    ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
        flex-direction: column;
        gap: 10px;
    }

    span.tefl-order-logo {
        width: 150px;
    }

    ul.app-moble-list {
        margin-bottom: 1rem !important;
    }

    .app-mobile-actions {
        margin-bottom: 1rem !important;
    }

    .app-mobile-buttons .app-mobile-button {
        text-align: left;
    }

    button#app_send_button {
        font-weight: 500;
        border-radius: 8px;
        background: var(--teflie-border-2);
        text-transform: capitalize;
        font-size: 16px;
        transition: all .4s ease;
    }

    .app-input-wrapper .iti.iti--allow-dropdown {
        width: 100%;
    }

    .app-mobile-buttons .app-mobile-button {
        text-align: left !important;
    }

    .app-mobile-content {
        padding: 30px 0 !important;
    }
}

/* New design */
button#place_order {
    background: var(--teflie-turquoise) !important;
}

body.page-template-page-checkout #order_review,
body.page-template-page-checkout #order_review_heading {
    border-color: var(--teflie-turquoise) !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;
}

table.shop_table.woocommerce-checkout-review-order-table,
ul.wc_payment_methods.payment_methods.methods,
.place-order {
    padding: 0 1.5em 1.5em 1.5em !important;
    border: none;
    margin: 0 !important;
}

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

.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: #fff;
    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;
}

tr.order-total {
    display: none;
}

.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--teflie-text-primary);
}

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

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

button.btn-after-form {
    margin-top: 1rem !important;
    float: right;
    background: var(--teflie-text-primary) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 16px !important;
    border-radius: 0 !important;
}

#order_review td.product-name {
    color: var(--teflie-text-primary);
    font-weight: 400;
    position: relative;
}

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

@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%;
        margin-bottom: 20px;
    }

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

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

.cart-collaterals::before,
.cart-collaterals::after {
    display: none !important;
}


/* Carousel Styles*/

.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 {
    width: calc((100% - 20px) / 1.75);
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--teflie-white);
    padding: var(--teflie-space-sm);
    border-radius: 1rem;
    box-shadow: 0 0 0 1px inset var(--teflie-border-3);
    gap: var(--teflie-space-md);
    justify-content: space-between;
}

.resource-icon img {
    width: 75px;
}

.resource-container__top {
    display: flex;
    align-items: center;
    gap: var(--teflie-space-sm);
}

.resource-header {
    flex: 60%;
}

.resource-header span {
    font-weight: var(--teflie-font-weight-semibold);
    color: var(--teflie-text-primary);
    line-height: 1;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.resource-add-to-cart a {
    width: 100%;
}

.resource-add-to-cart a:focus {
    outline: none !important;
    border: none !important;
}

.resource-price {
    color: var(--teflie-text-primary);
    font-size: 18px;
    margin-bottom: 5px;
}

.resource-price ins {
    font-weight: var(--teflie-font-weight-bold);
}

.rescource-label {
    position: absolute;
    background: var(--teflie-red);
    color: var(--teflie-white);
    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: var(--teflie-light-red);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    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: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: 16px;
    color: #fff;
    pointer-events: 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) {
    .resource-description h3 {
        font-size: 16px !important;
    }

    .carousel-track {
        padding: 20px 50px;
    }

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

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

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

    span.woocommerce-terms-and-conditions-checkbox-text a {
        text-decoration: underline;
        display: inline-block;
    }

    .place-order .form-row label.checkbox {
        min-width: 100%;
        display: block!important;
    }


    .place-order .form-row label.checkbox {
        margin-left: 50px;
    }

    .place-order .form-row label.checkbox input {
        position: absolute;
        margin-left: -50px;
        margin-top: 5px;
    }  

	.entry-content>.woocommerce {
	    margin-top: 20px;
	}
	
	.woocommerce-message, .woocommerce-error, .woocommerce-info {
	    padding: 0.5em 1em 0.5em 3.5em;
	    line-height: 1.2;
	    margin-bottom: 15px;
	}
	
	.showlogin.tefl-custom-msg {
	    margin-left: 0;
	}
	
	.resources-carousel-wrapper {
	    margin-top: 0;
	}
	
	.resource-header span {
	    font-size: 14px;
	    margin-bottom: 0;
	}
	
	.resource-add-to-cart a {
	    padding: 5px 10px;
	}
	
	.woocommerce-page.woocommerce-checkout form #order_review td.product-name {
	    font-size: 12px;
	    line-height: 1.2;
	}
	
	.first-cart-item-name {
	    margin-bottom: 10px!important;
	    font-size: 18px;
	}	

	.place-order .form-row label.checkbox {
	    padding-right: 40px;
	}
	
	.payment-logos {
	    display: flex;
	}
	
	span.payment-logo-text {
	    text-align: right;
	    line-height: 1;
	}	

	.resource-price {
	    font-size: 14px;
	}
	
	.btn-underline {
	    font-size: 10px;
	}
	
	.resource-icon {
	    max-width: 45px;
	}	
}

.show-password-input{
    display: none !important;
}

.woocommerce-input-wrapper {
    position: relative;
    display: block;
}

input.password-field {
    padding-right: 40px !important;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
    z-index: 9;
    transition: color 0.2s ease;
}

.password-toggle-icon:hover {
    color: #333;
}