/* AzanGuru WooCommerce UI v1.0.9 */
@media (min-width:640px) {
    .woocommerce-account.logged-in .common-page-wrapper .woocommerce {
        display: grid;
        gap: 2rem;
        grid-template-columns: 150px 1fr
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    --tw-border-opacity: 1;
    border-color: rgb(0 0 0/var(--tw-border-opacity));
    border-radius: 7px;
    border-width: 1px;
    display: inline-block;
    font-size: .875rem;
    line-height: 1.25rem;
    line-height: 1.5;
    margin-bottom: .5rem;
    text-transform: uppercase
}

@media (min-width:640px) {
    .woocommerce-account .woocommerce-MyAccount-navigation li {
        width: 100%
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: .5rem
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(4 108 78/var(--tw-bg-opacity));
    border-width: 0;
    color: rgb(255 255 255/var(--tw-text-opacity))
}

.woocommerce-account .woocommerce-form-row input,
.woocommerce-account .woocommerce-form-row label {
    border-radius: 7px;
    display: inline-block;
    width: 100%
}

.woocommerce-account .woocommerce-form-row input {
    margin-bottom: 1.5rem
}

.woocommerce-account .woocommerce-Button {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(4 108 78/var(--tw-bg-opacity));
    border-radius: 7px;
    color: rgb(255 255 255/var(--tw-text-opacity));
    display: inline-block;
    line-height: 1.5;
    padding: 1rem;
    text-transform: uppercase
}

.woocommerce-account table.my_account_orders td,
.woocommerce-account table.my_account_orders tr,
.woocommerce-account table.order_details td,
.woocommerce-account table.order_details tr,
.woocommerce-account table.subscription_details td,
.woocommerce-account table.subscription_details tr {
    border: 1px solid;
    padding: 8px
}

.woocommerce-account table.my_account_orders,
.woocommerce-account table.order_details,
.woocommerce-account table.subscription_details {
    margin-bottom: 32px;
    width: 100%
}

.woocommerce-account h2 {
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    margin-bottom: 1rem
}

.woocommerce-account .button.cancel,
.woocommerce-account .button.pay,
.woocommerce-account .button.resubscribe,
.woocommerce-account .button.view {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(200 30 30/var(--tw-bg-opacity));
    border-radius: 7px;
    color: rgb(255 255 255/var(--tw-text-opacity));
    display: inline-block;
    line-height: 1.5;
    margin: .5rem;
    padding: .5rem 1rem;
    text-transform: uppercase
}

.woocommerce-account .button.pay,
.woocommerce-account .button.resubscribe,
.woocommerce-account .button.view {
    --tw-bg-opacity: 1;
    background-color: rgb(4 108 78/var(--tw-bg-opacity))
}

span.subscription-details {
    font-size: .875rem;
    line-height: 1.25rem
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    background: #15803d;
    color: #fff;
    display: inline-block;
    margin: 0;
    padding: 1rem 2rem;
    width: 100%
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt {
    background: #15803d;
    margin-top: 1rem;
    padding: 1rem 2rem
}

.woocommerce-billing-fields__field-wrapper p {
    margin: 1rem 0
}

.woocommerce-additional-fields {
    display: none
}

.woocommerce div.product {
    margin: 3rem auto;
    max-width: 1280px;
    padding: 1rem
}

#order_review strong.product-quantity,
.single-product #sidebar,
.wc-block-components-notice-banner.is-success,
.woocommerce .product_meta,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-Tabs-panel h2:first-of-type,
.woocommerce-page .woocommerce-message .wc-forward,
.woocommerce-page .woocommerce-notices-wrapper .wc-forward,
div#order_review thead,
h3#order_review_heading {
    display: none
}

.woocommerce-billing-fields h3 {
    font-size: 1.4rem;
    font-weight: 700
}

.woocommerce-form-login .woocommerce-form-login__submit {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(4 108 78/var(--tw-bg-opacity));
    border-radius: .375rem;
    color: rgb(255 255 255/var(--tw-text-opacity));
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: .75rem 1.75rem;
    text-transform: uppercase
}

.woocommerce-MyAccount-content a {
    --tw-text-opacity: 1;
    color: rgb(4 108 78/var(--tw-text-opacity));
    font-weight: 500
}

@media only screen and (max-width:767px) {
    table.my_account_orders {
        display: grid;
        grid-template-columns: 100px 1fr
    }

    table.my_account_orders th {
        border-bottom: 1px solid;
        padding: 8px
    }

    table.my_account_orders td,
    table.my_account_orders th {
        display: inline-block;
        width: 100%
    }
}

.woocommerce-address-fields label {
    color: #333;
    display: block;
    font-weight: 700;
    margin-bottom: 5px
}

.woocommerce-address-fields input[type=email],
.woocommerce-address-fields input[type=tel],
.woocommerce-address-fields input[type=text],
.woocommerce-address-fields select {
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 10px;
    width: 100%
}

.woocommerce-address-fields input[type=email]:focus,
.woocommerce-address-fields input[type=tel]:focus,
.woocommerce-address-fields input[type=text]:focus,
.woocommerce-address-fields select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, .5)
}

.woocommerce-address-fields button,
.woocommerce-address-fields input[type=submit] {
    background-color: #0073aa;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px
}

.woocommerce-address-fields button:hover,
.woocommerce-address-fields input[type=submit]:hover {
    background-color: #005a87
}

.woocommerce-address-fields .woocommerce-invalid-required-field {
    border-color: #a00
}

.woocommerce-address-fields .woocommerce-message {
    background-color: #dff0d8;
    border-color: #4caf50;
    border-radius: 3px;
    color: #4caf50;
    margin-bottom: 15px;
    padding: 10px
}

.woocommerce-account h3 {
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    margin-bottom: 1rem
}

.woocommerce-MyAccount-content a.ag-btn-small {
    color: #fff
}

#ag_student_gender_field .woocommerce-input-wrapper {
    align-items: center;
    display: flex;
    gap: 6px
}

body.woocommerce-checkout .woocommerce-account-fields {
    height: 0;
    overflow: hidden
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box,
.woocommerce-privacy-policy-text {
    display: none
}

/* Premium Responsive Checkout Page Banner */
.page-banner.ag-checkout-banner,
body.woocommerce-checkout .page-banner {
    height: 140px !important;
    min-height: 140px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%),
                url('https://media.azanguru.com/2026/02/12131915/banner-img.webp') center / cover no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Checkout is a completion screen, so remove promotional chrome and keep a
   single cart-driven confirmation close to the payment action. */
body.woocommerce-checkout .page-banner,
body.woocommerce-checkout .ag-welcome-coupon-banner {
    display: none !important;
}

body.woocommerce-checkout .ag-checkout-confirmation {
    margin: 12px 0;
    padding: 11px 12px;
    border: 1px solid #b9dfcf;
    border-radius: 10px;
    background: #f0fdf7;
    color: #173f32;
    font-size: 13px;
    line-height: 1.45;
}

/* Checkout form polish: presentation only; field names, validation, OTP and
   gateway behavior remain owned by WooCommerce and the existing handlers. */
body.woocommerce-checkout form.checkout {
    max-width: 880px;
    margin: 0 auto;
}

body.woocommerce-checkout form.checkout .col2-set,
body.woocommerce-checkout form.checkout #order_review {
    padding: 18px;
    border: 1px solid #e5eee9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 35, 28, .055);
}

body.woocommerce-checkout form.checkout .form-row {
    margin: 0 0 14px;
}

body.woocommerce-checkout form.checkout .form-row label {
    margin: 0 0 6px;
    color: #15221e;
    font-size: 14px;
    font-weight: 700;
}

body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout .select2-selection--single {
    min-height: 50px;
    border: 1px solid #cbd9d4 !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #f4fbf8 0, #fff 24%) !important;
    color: #17211e;
    font-size: 15px;
    box-shadow: none !important;
}

body.woocommerce-checkout form.checkout input.input-text {
    padding: 11px 14px;
}

body.woocommerce-checkout form.checkout input.input-text:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout .select2-container--open .select2-selection--single {
    border-color: #15966c !important;
    box-shadow: 0 0 0 3px rgba(21, 150, 108, .1) !important;
    outline: none;
}

body.woocommerce-checkout form.checkout .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 14px !important;
}

body.woocommerce-checkout form.checkout .select2-selection__arrow {
    height: 48px !important;
    right: 8px !important;
}

body.woocommerce-checkout #ag_checkout_country_code_field.ag-country-field-mounted {
    display: none !important;
}

body.woocommerce-checkout #billing_phone_field .woocommerce-input-wrapper.ag-phone-country-mounted {
    display: flex;
    align-items: stretch;
}

body.woocommerce-checkout #billing_phone_field .ag-inline-country-picker {
    position: relative;
    display: block;
    flex: 0 0 155px;
}

body.woocommerce-checkout #billing_phone_field .ag-inline-country-picker::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    color: #24332e;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-58%);
}

body.woocommerce-checkout #billing_phone_field .ag-inline-country-picker select {
    width: 100%;
    height: 100%;
    min-height: 50px;
    padding: 8px 27px 8px 10px;
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
    background: #f4fbf8 !important;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
}

body.woocommerce-checkout #billing_phone_field .ag-phone-country-mounted > input.input-text {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 10px 10px 0 !important;
}

body.woocommerce-checkout .ag-send-otp-btn {
    width: 100%;
    margin: 0 0 14px;
    padding: 13px 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #07865f, #2daa70);
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .16);
}

body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio {
    margin: 0 18px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 600;
}

body.woocommerce-checkout #ag_course_dropdown_field input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #07865f;
}

body.woocommerce-checkout #ag_course_dropdown_field label.radio .required {
    display: none;
}

body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label {
    margin: 0 18px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 600;
}

body.woocommerce-checkout #ag_student_gender_field input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #07865f;
}

body.woocommerce-checkout #ag_student_gender_field label.radio .required {
    display: none;
}

body.woocommerce-checkout #ag_course_dropdown_field {
    display: block;
    height: auto;
    overflow: visible;
}

body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-info {
    display: none !important;
}

body.woocommerce-checkout #ag_policy_acceptance_field {
    margin-bottom: 0;
    padding: 4px 0 0;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout form.checkout .col2-set,
    body.woocommerce-checkout form.checkout #order_review {
        padding: 12px 14px;
        border-radius: 13px;
        box-shadow: 0 5px 18px rgba(16, 35, 28, .045);
    }

    body.woocommerce-checkout form.checkout input.input-text,
    body.woocommerce-checkout form.checkout select,
    body.woocommerce-checkout form.checkout .select2-selection--single {
        min-height: 48px;
        font-size: 16px;
    }

    body.woocommerce-checkout form.checkout .form-row { margin-bottom: 11px; }

    body.woocommerce-checkout #billing_phone_field .ag-inline-country-picker { flex-basis: 138px; }
}

.page-banner.ag-checkout-banner .page-title,
body.woocommerce-checkout .page-banner .page-title,
.ag-checkout-banner-title {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

@media only screen and (max-width:767px) {
    .page-banner.ag-checkout-banner,
    body.woocommerce-checkout .page-banner {
        height: 90px !important;
        min-height: 90px !important;
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }

    .page-banner.ag-checkout-banner .page-title,
    body.woocommerce-checkout .page-banner .page-title,
    .ag-checkout-banner-title {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-checkout .woocommerce-error,
    body.woocommerce-checkout .woocommerce-info,
    body.woocommerce-checkout .woocommerce-message {
        margin: 0
    }

    body.woocommerce-checkout .alignwide {
        margin-top: 0
    }

    .woocommerce-billing-fields h3 {
        display: none
    }

    .woocommerce form .form-row label {
        font-size: 14px
    }

    div#order_review tr.cart_item {
        font-size: 1rem
    }
}

/* Keep ordinary coupon entry quiet. A featured eligible offer has a separate,
   secondary action and never uses the checkout's high-attention yellow. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    align-items: center;
    background: #f3fbf7;
    border: 1px solid #d5e9e0;
    border-inline-start: 4px solid #15966e;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(17, 75, 55, .06);
    box-sizing: border-box;
    color: #24483b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    justify-content: space-between;
    line-height: 1.3;
    margin: 0 0 10px;
    min-height: 46px;
    padding: 6px 8px 6px 12px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #087a59;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #05684b;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon:focus-visible {
    outline: 3px solid rgba(21, 150, 110, .3);
    outline-offset: 2px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy {
    color: #24483b;
    flex: 1 1 140px;
    font-weight: 600;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-code {
    background: #fff;
    border: 1px dashed #9abfae;
    border-radius: 6px;
    color: #315e4d;
    flex: 0 0 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 7px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-apply {
    align-items: center;
    background: #e9f5ef;
    border: 1px solid #a9d4c1;
    border-radius: 8px;
    color: #08684d;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 32px;
    min-width: 62px;
    padding: 0 12px;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-apply:hover {
    background: #dff0e7;
    border-color: #82bea4;
    color: #064f3b;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-apply:focus-visible {
    outline: 3px solid rgba(21, 150, 110, .3);
    outline-offset: 2px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-applied {
    background: #e9f5ef;
    border-radius: 999px;
    color: #087a59;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-other-code {
    color: #547166;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 500;
}

body.woocommerce-checkout .woocommerce form.checkout_coupon {
    background: #f8fcfa;
    border: 1px solid #d5e9e0;
    border-radius: 10px;
    margin: 0 0 14px;
    padding: 12px;
}

body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text {
    border: 1px solid #cbded5;
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
}

body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text:focus {
    border-color: #15966e;
    box-shadow: 0 0 0 3px rgba(21, 150, 110, .12);
    outline: none;
}

body.woocommerce-checkout .woocommerce form.checkout_coupon button[type="submit"] {
    background: #087a59;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 18px;
    text-transform: none;
    width: 100%;
}

body.woocommerce-checkout .woocommerce form.checkout_coupon button[type="submit"]:hover {
    background: #05684b;
    color: #fff;
}

body.woocommerce-checkout .col2-set .col-1 {
    width: 100%
}

#ag_policy_acceptance_field {
    margin-bottom: 20px;
}

#ag_policy_acceptance_field input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    display: inline-block !important;
    flex-shrink: 0;
}

#ag_policy_acceptance_field label {
    font-size: 13px;
}

#ag_policy_acceptance_field label.checkbox {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

#ag_policy_acceptance_field .optional {
    display: none;
}

/* Show coupon discount and total if coupon is applied */
div#order_review tfoot {
  display: table-footer-group !important;
}

div#order_review tfoot tr.cart-subtotal {
  display: none !important;
}

/* Order Total is the first payment. The confirmation strip explains the
   recurring term, so the same amount does not need a second table section. */
.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-totals,
.woocommerce-checkout #order_review table.shop_table tfoot tr.wcs-recurring-totals-heading,
.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total {
  display: none !important;
}

/* Premium Compact & Mobile Responsive Checkout Order Review Card Styling */
.woocommerce-checkout #order_review table.shop_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 1.25rem !important;
}

/* Remove default table borders and backgrounds from elements inside table */
.woocommerce-checkout #order_review table.shop_table,
.woocommerce-checkout #order_review table.shop_table tbody,
.woocommerce-checkout #order_review table.shop_table tfoot,
.woocommerce-checkout #order_review table.shop_table tr,
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  border: none !important;
  background: none !important;
}

/* Fix currency symbol superscript jumping in order review table */
.woocommerce-checkout #order_review .woocommerce-Price-currencySymbol {
  vertical-align: baseline !important;
  font-size: 0.9em !important;
  line-height: inherit !important;
}

/* Style the product row (tbody tr) */
.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
  padding: 0.65rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td.product-name {
  text-align: left !important;
}

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td.product-total {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Style the Coupon row (tfoot tr.cart-discount) */
.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
  background-color: #f0fdf4 !important; /* light green background for discount */
  color: #15803d !important; /* green text */
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 0.5rem 1rem !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th {
  text-align: left !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Styling the remove coupon link */
.woocommerce-checkout #order_review .woocommerce-remove-coupon {
  color: #ef4444 !important; /* red */
  font-size: 0.75rem !important;
  margin-left: 6px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #fca5a5 !important;
  background-color: #fef2f2 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.woocommerce-checkout #order_review .woocommerce-remove-coupon:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  text-decoration: none !important;
}

/* Style Total row */
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 0.65rem 1rem !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th {
  text-align: left !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Recurring Totals Header & Row */
.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-totals th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-totals td,
.woocommerce-checkout #order_review table.shop_table tfoot tr.wcs-recurring-totals-heading th {
  border-top: 1px solid #e2e8f0 !important;
  padding: 0.5rem 1rem 0.25rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-align: left !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total td {
  padding: 0.5rem 1rem 0.65rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  border-top: 1px dashed #e2e8f0 !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total th {
  text-align: left !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total td {
  text-align: right !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total td .first-payment-date {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* Mobile responsive adjustments (< 768px) */
@media only screen and (max-width: 767px) {
  .woocommerce-checkout #order_review table.shop_table {
    margin-bottom: 1rem !important;
  }
  
  .woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th,
  .woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.825rem !important;
  }

  .woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
  .woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
  }

  .woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-totals th,
  .woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total th,
  .woocommerce-checkout #order_review table.shop_table tfoot tr.recurring-total td {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.825rem !important;
  }
}

/* ==========================================================================
   AZANGURU LUXURY ISLAMIC STORE & PHYSICAL PRODUCTS STYLING
   ========================================================================== */

.ag-store-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #083b2e 40%, #03241b 100%) !important;
  color: #ffffff !important;
  padding: 48px 24px !important;
  border-radius: 24px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  text-align: center !important;
}

.ag-store-hero-banner::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 600px !important;
  height: 600px !important;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%) !important;
  pointer-events: none !important;
}

.ag-store-badge-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  border-radius: 50px !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 16px !important;
}

.ag-store-hero-title {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
}

@media (max-width: 640px) {
  .ag-store-hero-title {
    font-size: 26px !important;
  }
}

.ag-store-hero-subtitle {
  font-size: 16px !important;
  color: #d1fae5 !important;
  max-width: 650px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.6 !important;
}

/* Store Search Bar */
.ag-store-search-wrap {
  max-width: 580px !important;
  margin: 0 auto 24px auto !important;
}

.ag-store-search-form {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 6px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.ag-store-search-input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  color: #1f2937 !important;
  background: transparent !important;
}

.ag-store-search-btn {
  background: #f59e0b !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ag-store-search-btn:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Hero Feature Pills */
.ag-store-hero-features {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
}

.ag-store-feat-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(4, 78, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ecfdf5 !important;
}

.ag-store-feat-pill i {
  color: #fbbf24 !important;
}

/* Category Filter Bar */
.ag-store-cat-bar {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding-bottom: 8px !important;
  margin-bottom: 28px !important;
}

.ag-store-cat-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  border: 1.5px solid #e5e7eb !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.ag-store-cat-item:hover {
  border-color: #064e3b !important;
  color: #064e3b !important;
  background: #f0fdf4 !important;
}

.ag-store-cat-item.active {
  background: #064e3b !important;
  border-color: #064e3b !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2) !important;
}

.ag-store-cat-badge {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  font-size: 12px !important;
  padding: 2px 8px !important;
  border-radius: 50px !important;
}

.ag-store-cat-item.active .ag-store-cat-badge {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

/* Toolbar Bar */
.ag-store-toolbar-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  margin-bottom: 28px !important;
}

.ag-store-toolbar-count {
  font-size: 14px !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
}

.ag-store-toolbar-sort select {
  padding: 8px 16px !important;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  outline: none !important;
}

/* Product Grid Reset & Layout */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce ul.products.ag-store-product-grid,
ul.products.ag-store-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 28px !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
  list-style: none !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products.ag-store-product-grid::before,
ul.products.ag-store-product-grid::after {
  content: none !important;
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
ul.products.ag-store-product-grid li.product,
ul.products.ag-store-product-grid li.ag-card-single,
.ag-card-single {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

/* Single Product Card */
.ag-card-single {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
}

.ag-card-single:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03) !important;
  border-color: #cbd5e1 !important;
}

.ag-card-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 16px !important;
}

.ag-card-img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.5s ease !important;
}

.ag-card-single:hover .ag-card-img {
  transform: scale(1.08) !important;
}

/* Fallback Product Graphic when thumbnail is missing */
.ag-card-fallback-graphic {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-radius: 12px !important;
  color: #064e3b !important;
  text-align: center !important;
  padding: 20px !important;
}

.ag-card-fallback-icon {
  font-size: 42px !important;
  color: #064e3b !important;
  margin-bottom: 8px !important;
}

.ag-card-fallback-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #d97706 !important;
  letter-spacing: 0.5px !important;
}

/* Card Badges */
.ag-card-badge-wrap {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  z-index: 10 !important;
}

.ag-card-badge-sale {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3) !important;
}

.ag-card-badge-physical {
  background: #064e3b !important;
  color: #fbbf24 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 4px 6px rgba(6, 78, 59, 0.3) !important;
}

/* Card Content Body */
.ag-card-body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  justify-content: space-between !important;
}

.ag-card-cat {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #d97706 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.ag-card-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.ag-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.ag-card-single:hover .ag-card-title a {
  color: #064e3b !important;
}

.ag-card-stars {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: #f59e0b !important;
  font-size: 12px !important;
  margin-bottom: 14px !important;
}

.ag-card-stars span {
  color: #9ca3af !important;
  font-size: 11px !important;
  margin-left: 4px !important;
  font-weight: 600 !important;
}

.ag-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  gap: 8px !important;
}

.ag-card-price {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #064e3b !important;
}

.ag-card-price bdi {
  color: #064e3b !important;
  font-weight: 900 !important;
}

.ag-card-price del {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-right: 4px !important;
}

.ag-card-price ins {
  text-decoration: none !important;
}

/* Card Button */
.ag-card-btn {
  background: #f59e0b !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25) !important;
  transition: all 0.2s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.ag-card-btn:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.35) !important;
}

/* Guarantee Section */
.ag-store-trust-grid {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr) !important;
  gap: 20px !important;
  margin-top: 48px !important;
  padding-top: 40px !important;
  border-top: 1px solid #e5e7eb !important;
}

@media (min-width: 640px) {
  .ag-store-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .ag-store-trust-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.ag-store-trust-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}

.ag-store-trust-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.ag-store-trust-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
}

.ag-store-trust-desc {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Single Product Page Styling */
.ag-single-buy-btn:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.4) !important;
}

.ag-single-cart-form .quantity input.qty {
  width: 72px !important;
  height: 52px !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  outline: none !important;
}

.ag-single-cart-form .quantity input.qty:focus {
  border-color: #064e3b !important;
  background: #ffffff !important;
}

.ag-thumb-item:hover {
  border-color: #064e3b !important;
}

/* Compact, mobile-first checkout summary and a persistent discount callout. */
body.woocommerce-checkout form.checkout #order_review {
    padding: 10px !important;
}

body.woocommerce-checkout #order_review table.shop_table {
    margin-bottom: 6px !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
    background: #f7faf8 !important;
    border-top: 1px solid #dfeae4 !important;
    color: #064e3b !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 0.5rem 0.75rem !important;
}

body.woocommerce-checkout .ag-checkout-confirmation {
    margin: 6px 0 8px !important;
    padding: 7px 10px !important;
    border: 1px solid #f2cf66 !important;
    border-radius: 9px !important;
    background: linear-gradient(100deg, #fff9e7 0%, #fff0bd 100%) !important;
    box-shadow: 0 2px 7px rgba(117, 79, 0, 0.08) !important;
    color: #5a3b00 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    min-height: 40px !important;
    padding: 6px 10px !important;
    border-color: #f1cf70 !important;
    border-inline-start-color: #f2a900 !important;
    background: linear-gradient(100deg, #fff9e7 0%, #fff0bd 100%) !important;
    box-shadow: 0 2px 8px rgba(117, 79, 0, 0.08) !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy {
    color: #553800 !important;
    flex: 1 1 auto !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout form.checkout #order_review {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
        padding: 0.4rem 0.65rem !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th,
    body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
        padding: 0.35rem 0.65rem !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
        padding: 0.45rem 0.65rem !important;
    }

    body.woocommerce-checkout .ag-checkout-confirmation {
        margin: 4px 0 6px !important;
        padding: 6px 8px !important;
    }
}

@media (max-width: 768px) {
  .ag-single-main-grid {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 28px !important;
  }
  .ag-single-buy-btn {
    width: 100% !important;
  }
}

/* Checkout visual refinement only: preserve every field, gateway and action. */
body.woocommerce-checkout form.checkout .col2-set,
body.woocommerce-checkout form.checkout #order_review {
    border: 1px solid #dce9e2 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefc 100%) !important;
    box-shadow: 0 8px 22px rgba(13, 64, 47, 0.055) !important;
}

body.woocommerce-checkout form.checkout .form-row {
    margin-bottom: 10px !important;
}

body.woocommerce-checkout form.checkout .form-row label {
    margin-bottom: 5px !important;
    color: #18392e !important;
    font-size: 13px !important;
    letter-spacing: 0.01em;
}

body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout .select2-selection--single {
    border-color: #cbded4 !important;
    border-radius: 11px !important;
    background: #fbfdfb !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    align-items: center !important;
    min-height: 42px !important;
    margin-bottom: 9px !important;
    padding: 8px 12px !important;
    border: 1px solid #cfe7d9 !important;
    border-inline-start: 4px solid #d89a00 !important;
    border-radius: 12px !important;
    background: linear-gradient(105deg, #fff9e8 0%, #fff3cc 100%) !important;
    box-shadow: 0 4px 12px rgba(116, 79, 0, 0.08) !important;
    color: #164333 !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy {
    color: #174b38 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy[role="status"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy[role="status"]::before {
    content: "✓";
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #087a59;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

body.woocommerce-checkout form.checkout #order_review {
    padding: 11px !important;
}

body.woocommerce-checkout #order_review table.shop_table {
    margin: 0 0 7px !important;
    border: 1px solid #e2ece6 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
    padding: 10px 12px !important;
    color: #243b32 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th,
body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
    padding: 8px 12px !important;
    border-top: 1px solid #e8f0eb !important;
    background: #eff9f2 !important;
    color: #08734f !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

body.woocommerce-checkout #order_review .woocommerce-remove-coupon {
    padding: 2px 7px !important;
    border: 1px solid #efd7d1 !important;
    border-radius: 999px !important;
    background: #fff8f6 !important;
    color: #9b5145 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
    padding: 9px 12px !important;
    border-top: 1px solid #d9e9df !important;
    background: linear-gradient(90deg, #edf8f0 0%, #e6f4ea 100%) !important;
    color: #075c41 !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
}

body.woocommerce-checkout .ag-checkout-confirmation {
    display: block !important;
    margin: 5px 0 8px !important;
    padding: 8px 10px !important;
    border: 1px solid #f0d277 !important;
    border-radius: 11px !important;
    background: linear-gradient(100deg, #fff9e7 0%, #fff0bd 100%) !important;
    box-shadow: 0 3px 10px rgba(117, 79, 0, 0.07) !important;
    color: #513900 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

body.woocommerce-checkout #place_order {
    min-height: 54px !important;
    border: 1px solid #e7bd47 !important;
    border-radius: 12px !important;
    background: linear-gradient(100deg, #07684c 0%, #0b8b62 100%) !important;
    box-shadow: 0 7px 16px rgba(5, 100, 72, 0.18) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.woocommerce-checkout #place_order:hover {
    filter: brightness(1.04);
    box-shadow: 0 9px 20px rgba(5, 100, 72, 0.22) !important;
}

body.woocommerce-checkout #place_order:focus-visible {
    outline: 3px solid rgba(216, 154, 0, 0.38) !important;
    outline-offset: 3px;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout form.checkout .col2-set,
    body.woocommerce-checkout form.checkout #order_review {
        padding: 10px !important;
        border-radius: 14px !important;
    }

    body.woocommerce-checkout form.checkout .form-row {
        margin-bottom: 9px !important;
    }

    body.woocommerce-checkout form.checkout input.input-text,
    body.woocommerce-checkout form.checkout select,
    body.woocommerce-checkout form.checkout .select2-selection--single {
        min-height: 46px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
        padding: 8px 9px !important;
        font-size: 12px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount th,
    body.woocommerce-checkout #order_review table.shop_table tfoot tr.cart-discount td {
        padding: 7px 9px !important;
        font-size: 11.5px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
        padding: 8px 9px !important;
        font-size: 15px !important;
    }

    body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
        gap: 5px 8px !important;
        padding: 7px 9px !important;
    }

    body.woocommerce-checkout .woocommerce-form-coupon-toggle .ag-checkout-coupon-offer-copy {
        font-size: 11.5px !important;
    }

    body.woocommerce-checkout .ag-checkout-confirmation {
        margin: 4px 0 6px !important;
        padding: 7px 8px !important;
        font-size: 11.5px !important;
    }

    body.woocommerce-checkout #place_order {
        min-height: 52px !important;
        font-size: 14px !important;
    }
}

/* Coupon success strip and checkout summary: match the supplied checkout design. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin: 0 auto 12px !important;
    max-width: 980px;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info:has(.ag-checkout-coupon-success) {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #b8d8c8 !important;
    border-inline-start: 5px solid #07815d !important;
    border-radius: 15px !important;
    background: linear-gradient(105deg, #f1faf4 0%, #fffdf4 100%) !important;
    box-shadow: 0 5px 16px rgba(15, 74, 53, .08) !important;
    color: #123e30 !important;
}

body.woocommerce-checkout .ag-checkout-coupon-success {
    display: grid;
    grid-template-columns: auto auto minmax(150px, 1fr) minmax(210px, auto);
    align-items: center;
    gap: 10px 16px;
    padding: 12px 16px;
}

body.woocommerce-checkout .ag-checkout-coupon-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #07563f;
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
}

body.woocommerce-checkout .ag-checkout-coupon-check {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #087951;
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

body.woocommerce-checkout .ag-checkout-coupon-success-code {
    padding: 6px 13px;
    border: 1px dashed #f0c454;
    border-radius: 999px;
    background: linear-gradient(135deg, #075a43, #087b59);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .045em;
    white-space: nowrap;
}

body.woocommerce-checkout .ag-checkout-coupon-code-actions {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 7px;
}

body.woocommerce-checkout .ag-checkout-coupon-remove {
    color: #a12d2d !important;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    white-space: nowrap;
}

body.woocommerce-checkout #order_review table.shop_table .woocommerce-remove-coupon {
    display: none !important;
}

body.woocommerce-checkout .ag-checkout-coupon-savings {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #174635;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

body.woocommerce-checkout .ag-checkout-coupon-savings strong {
    color: #08734f;
    font-size: 20px;
    font-weight: 900;
}

body.woocommerce-checkout .ag-checkout-coupon-proceed {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    border: 1px solid #e8c45c;
    border-radius: 12px;
    background: linear-gradient(110deg, #075a43, #087b59);
    box-shadow: 0 4px 10px rgba(5, 86, 63, .15);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

body.woocommerce-checkout .ag-checkout-coupon-proceed:hover,
body.woocommerce-checkout .ag-checkout-coupon-proceed:focus-visible {
    background: linear-gradient(110deg, #064d3b, #07694e);
    color: #fff !important;
    outline: 3px solid rgba(8, 123, 89, .2);
    outline-offset: 2px;
}

body.woocommerce-checkout #order_review {
    max-width: 980px;
    margin-inline: auto !important;
    padding: 14px !important;
}

body.woocommerce-checkout #order_review table.shop_table {
    width: 100%;
    margin: 0 0 10px !important;
    border: 1px solid #dce8e0 !important;
    border-radius: 13px;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
    padding: 9px 12px !important;
    border-color: #e7eee9 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
    background: linear-gradient(90deg, #eaf6e8, #f1f8e9) !important;
    color: #075b41 !important;
    font-size: 17px !important;
    font-weight: 850 !important;
}

body.woocommerce-checkout #payment {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    background: transparent !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
    border: 1px solid #d8e3dd !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.woocommerce-checkout #payment div.place-order {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    order: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout #ag_policy_acceptance_field {
    order: 1;
    margin: 0 !important;
    padding: 0 4px !important;
}

body.woocommerce-checkout #payment #place_order {
    order: 2;
    width: 100% !important;
    min-height: 56px !important;
    border-radius: 999px !important;
    background: linear-gradient(110deg, #075b43, #087b58) !important;
    box-shadow: 0 5px 14px rgba(5, 86, 63, .19) !important;
    font-size: 16px !important;
}

body.woocommerce-checkout #payment #place_order:hover {
    filter: brightness(1.06);
}

body.woocommerce-checkout .ag-checkout-confirmation {
    border-radius: 11px !important;
    background: linear-gradient(100deg, #fff2c7, #fff8e7) !important;
    color: #704700 !important;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout .woocommerce-form-coupon-toggle {
        margin-bottom: 9px !important;
    }

    body.woocommerce-checkout .ag-checkout-coupon-success {
        grid-template-columns: auto 1fr;
        gap: 8px 10px;
        padding: 10px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-heading {
        font-size: 14px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-check {
        width: 23px;
        height: 23px;
        font-size: 15px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-code-actions {
        justify-self: end;
        gap: 6px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-success-code {
        padding: 5px 10px;
        font-size: 13px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-remove {
        font-size: 10px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-savings {
        font-size: 12px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-savings strong {
        font-size: 17px;
    }

    body.woocommerce-checkout .ag-checkout-coupon-proceed {
        min-height: 38px;
        justify-self: stretch;
        padding: 7px 9px;
        font-size: 12px;
        white-space: normal;
    }

    body.woocommerce-checkout #order_review {
        padding: 9px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table th,
    body.woocommerce-checkout #order_review table.shop_table td {
        padding: 8px 9px !important;
        font-size: 12px !important;
    }

    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
    body.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
        font-size: 15px !important;
    }

    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
        padding: 9px !important;
    }

    body.woocommerce-checkout #payment #place_order {
        min-height: 52px !important;
        font-size: 14px !important;
    }
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
    font-size: 11px;
    outline: none;
    padding: .5rem .5rem .5rem 1.5rem
}

body.woocommerce-checkout .woocommerce-error:before,
body.woocommerce-checkout .woocommerce-info:before,
body.woocommerce-checkout .woocommerce-message:before {
    left: .5em;
    top: .5rem
}

@media only screen and (max-width:767px) {
    body.woocommerce-checkout .site-footer-wrap {
        display: none
    }

    body.woocommerce-checkout .checkout-page-info,
    body.woocommerce-checkout .powered-by {
        display: inline-block;
        text-align: center;
        width: 100%
    }
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    display: grid
}

#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
    order: 2
}

.woocommerce-checkout .checkout_coupon button[type=submit] {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: rgb(4 108 78/var(--tw-bg-opacity));
    border-radius: .375rem;
    color: rgb(255 255 255/var(--tw-text-opacity));
    display: inline-block;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: .5rem 1rem;
    text-align: center
}

.woocommerce-checkout .checkout_coupon button[type=submit]:hover {
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity))
}

.showcoupon {
    --tw-text-opacity: 1;
    border-radius: .375rem;
    color: rgb(4 108 78/var(--tw-text-opacity));
    display: inline-block;
    font-weight: 500
}

.showcoupon:hover {
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity))
}

body.woocommerce-checkout .checkout_coupon .form-row-first,
body.woocommerce-checkout .form-row-last {
    float: none;
    width: 100%
}

body.woocommerce-checkout .woocommerce form.checkout_coupon {
    border: none;
    margin-bottom: 0;
    padding: 0
}

/* Finish the checkout cards and choice controls shown in the reference. */
body.woocommerce-checkout #ag_course_dropdown_field,
body.woocommerce-checkout #ag_student_gender_field {
    display: inline-flex !important;
    width: calc(50% - 6px) !important;
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    vertical-align: top;
    margin: 0 8px 12px 0 !important;
    padding: 10px 11px !important;
    border: 1px solid #e6dfd2 !important;
    border-radius: 14px !important;
    background: linear-gradient(130deg, #fffdf8, #f8fbf7) !important;
    box-shadow: 0 3px 10px rgba(65, 58, 37, .045) !important;
}

body.woocommerce-checkout #ag_student_gender_field {
    margin-right: 0 !important;
}

body.woocommerce-checkout #ag_course_dropdown_field > label,
body.woocommerce-checkout #ag_student_gender_field::before {
    display: block;
    margin: 0 0 8px !important;
    color: #124835 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2;
}

body.woocommerce-checkout #ag_student_gender_field::before {
    content: "Gender";
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper,
body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper input[type="radio"],
body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio,
body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label.radio {
    display: inline-flex !important;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #d9dedb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #183a2f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

body.woocommerce-checkout #ag_course_dropdown_field input[type="radio"]:checked + label.radio,
body.woocommerce-checkout #ag_student_gender_field input[type="radio"]:checked + label.radio {
    border-color: #b9dfc7 !important;
    background: #eaf5e9 !important;
    color: #075b41 !important;
    box-shadow: inset 0 0 0 1px rgba(7, 91, 65, .06);
}

body.woocommerce-checkout #ag_course_dropdown_field input[type="radio"]:focus-visible + label.radio,
body.woocommerce-checkout #ag_student_gender_field input[type="radio"]:focus-visible + label.radio {
    outline: 3px solid rgba(7, 129, 93, .24);
    outline-offset: 2px;
}

body.woocommerce-checkout #payment::before {
    content: "▣  Payment Method";
    order: 0;
    display: block;
    padding: 0 2px 2px;
    color: #103f30;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
    color: #142b24 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.3;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
    display: block;
    float: none !important;
    max-width: 145px !important;
    max-height: 42px !important;
    margin: 4px 0 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 9px 11px !important;
    border-radius: 10px !important;
    background: #eff7ef !important;
    color: #455a50 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box::before {
    display: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box p {
    margin: 0 !important;
}

body.woocommerce-checkout #ag_policy_acceptance_field label.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    color: #182c25 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.5;
}

body.woocommerce-checkout #ag_policy_acceptance_field input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-top: 1px !important;
    accent-color: #087b58;
}

body.woocommerce-checkout #ag_policy_acceptance_field a {
    color: #08734f !important;
    font-weight: 750;
}

body.woocommerce-checkout #payment #place_order {
    border: 2px solid #e8c45c !important;
    border-radius: 999px !important;
    background: linear-gradient(110deg, #075b43, #087b58) !important;
    box-shadow: 0 5px 14px rgba(5, 86, 63, .19), inset 0 1px rgba(255, 255, 255, .12) !important;
    font-size: 17px !important;
    font-weight: 850 !important;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout #ag_course_dropdown_field,
    body.woocommerce-checkout #ag_student_gender_field {
        width: calc(50% - 5px) !important;
        min-height: 78px;
        margin-right: 6px !important;
        padding: 9px 8px !important;
    }

    body.woocommerce-checkout #ag_student_gender_field {
        margin-right: 0 !important;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper {
        gap: 4px;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label.radio {
        min-height: 34px;
        padding: 5px 4px !important;
        font-size: 11px !important;
    }

    body.woocommerce-checkout #payment::before {
        font-size: 16px;
    }

    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
        grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 7px;
        padding: 8px !important;
    }

    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
        font-size: 12px !important;
    }

    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
        max-width: 105px !important;
        max-height: 34px !important;
    }

    body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box {
        padding: 7px !important;
        font-size: 10px !important;
    }

    body.woocommerce-checkout #ag_policy_acceptance_field label.checkbox {
        gap: 7px;
        font-size: 12px !important;
    }

    body.woocommerce-checkout #payment #place_order {
        min-height: 52px !important;
        font-size: 14px !important;
    }
}

/* Follow-up fixes: clear selection controls and a non-interactive coupon note. */
body.woocommerce-checkout .ag-checkout-coupon-savings .ag-checkout-coupon-saving-amount {
    color: #c63832 !important;
}

body.woocommerce-checkout .ag-checkout-coupon-next-step {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #315e4d;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    cursor: default;
}

body.woocommerce-checkout .ag-checkout-coupon-next-step span:last-child {
    color: #08734f;
    font-size: 17px;
    font-weight: 800;
}

body.woocommerce-checkout #ag_course_dropdown_field,
body.woocommerce-checkout #ag_student_gender_field {
    box-sizing: border-box;
}

body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio,
body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label.radio {
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout #ag_course_dropdown_field,
    body.woocommerce-checkout #ag_student_gender_field {
        display: flex !important;
        width: 100% !important;
        min-height: 62px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 8px !important;
        padding: 9px 11px !important;
    }

    body.woocommerce-checkout #ag_student_gender_field {
        margin-bottom: 0 !important;
    }

    body.woocommerce-checkout #ag_course_dropdown_field > label,
    body.woocommerce-checkout #ag_student_gender_field::before {
        flex: 0 0 82px;
        margin: 0 !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 7px;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label.radio {
        min-width: 72px;
        min-height: 36px;
        padding: 5px 7px !important;
        font-size: 11px !important;
    }

    body.woocommerce-checkout .ag-checkout-coupon-next-step {
        justify-self: end;
        font-size: 11px;
    }
}

@media only screen and (max-width: 360px) {
    body.woocommerce-checkout #ag_course_dropdown_field > label,
    body.woocommerce-checkout #ag_student_gender_field::before {
        flex-basis: 70px;
        font-size: 12px !important;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper {
        gap: 5px;
    }

    body.woocommerce-checkout #ag_course_dropdown_field .woocommerce-input-wrapper label.radio,
    body.woocommerce-checkout #ag_student_gender_field .woocommerce-input-wrapper label.radio {
        min-width: 65px;
        padding-inline: 4px !important;
        font-size: 10px !important;
    }
}

/* v1.0.13: keep learner choice controls aligned without nested field cards. */
body.woocommerce-checkout .ag-learner-choice-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start !important;
    gap: 12px;
    width: 100%;
    margin: 14px 0 18px;
    clear: both;
    box-sizing: border-box;
}

body.woocommerce-checkout .ag-learner-choice-row > #ag_course_dropdown_field,
body.woocommerce-checkout .ag-learner-choice-row > #ag_student_gender_field {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: flex-start !important;
    gap: 6px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .ag-learner-choice-row > #ag_course_dropdown_field > label,
body.woocommerce-checkout .ag-learner-choice-row > #ag_student_gender_field::before {
    display: block;
    flex: 0 0 auto;
    margin: 0 0 2px !important;
    color: #124835 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.3;
    white-space: nowrap;
}

body.woocommerce-checkout .ag-learner-choice-row > #ag_student_gender_field > label:first-child {
    display: none !important;
}

body.woocommerce-checkout .ag-learner-choice-row > #ag_student_gender_field::before {
    content: "Gender";
}

body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper {
    display: flex !important;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px !important;
}

body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper label.radio {
    display: inline-flex !important;
    min-width: 0 !important;
    min-height: 40px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 7px 5px !important;
    border: 1px solid #d9dedb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #183a2f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper input[type="radio"]:checked + label.radio {
    border-color: #b9dfc7 !important;
    background: #eaf5e9 !important;
    color: #075b41 !important;
    box-shadow: inset 0 0 0 1px rgba(7, 91, 65, .06);
}

body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper input[type="radio"]:focus-visible + label.radio {
    outline: 3px solid rgba(7, 129, 93, .24);
    outline-offset: 2px;
}

@media only screen and (max-width: 640px) {
    body.woocommerce-checkout .ag-learner-choice-row {
        gap: 10px;
        margin: 12px 0 16px;
    }

    body.woocommerce-checkout .ag-learner-choice-row > #ag_course_dropdown_field > label,
    body.woocommerce-checkout .ag-learner-choice-row > #ag_student_gender_field::before {
        font-size: 12px !important;
    }

    body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper {
        gap: 5px !important;
    }

    body.woocommerce-checkout .ag-learner-choice-row .woocommerce-input-wrapper label.radio {
        min-height: 38px;
        padding: 6px 3px !important;
        font-size: 11px !important;
    }
}


/* Mobile checkout shortcut: proxy only; the native WooCommerce button remains authoritative. */
@media (max-width: 767px) {
    body.woocommerce-checkout .ag-checkout-mobile-pay {
        position: fixed;
        z-index: 9999;
        left: 14px;
        right: 14px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        display: block;
        width: calc(100% - 28px);
        min-height: 54px;
        padding: 13px 18px;
        border: 2px solid #e8c55e;
        border-radius: 999px;
        background: linear-gradient(110deg, #087b58, #0a8c63);
        box-shadow: 0 8px 24px rgba(3, 62, 45, .24);
        color: #fff;
        font: inherit;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    body.woocommerce-checkout .ag-checkout-mobile-pay.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body.woocommerce-checkout .ag-checkout-mobile-pay:focus-visible {
        outline: 3px solid rgba(8, 123, 88, .35);
        outline-offset: 3px;
    }

    body.woocommerce-checkout {
        scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }
}

/* Match the sticky shortcut and original WooCommerce payment CTA to AzanGuru yellow. */
body.woocommerce-checkout #payment #place_order,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .ag-checkout-mobile-pay {
    border: 2px solid #dda900 !important;
    background: linear-gradient(110deg, #ffdf62 0%, #ffc928 100%) !important;
    box-shadow: 0 6px 18px rgba(155, 109, 0, .2) !important;
    color: #064b37 !important;
}

body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout .ag-checkout-mobile-pay:hover {
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(155, 109, 0, .24) !important;
}

body.woocommerce-checkout .ag-checkout-mobile-pay {
    font-size: 15px;
    white-space: normal;
}

/* v1.0.17: explicit, compact zero-total checkout and clean progressive Step 3. */
body.woocommerce-checkout[data-ag-checkout-step="3"] form.checkout > .col2-set,
body.woocommerce-checkout[data-ag-checkout-step="3"] form.checkout #customer_details {
    display: none !important;
}

body.woocommerce-checkout .ag-free-checkout-state {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 12px;
    padding: 14px 16px;
    border: 1px solid #b8ddc7;
    border-radius: 14px;
    background: linear-gradient(135deg, #f2fbf5 0%, #e9f7ed 100%);
    color: #123f31;
    box-shadow: 0 5px 16px rgba(18, 88, 62, .07);
}

body.woocommerce-checkout .ag-free-checkout-state__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #07815c;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

body.woocommerce-checkout .ag-free-checkout-state strong,
body.woocommerce-checkout .ag-free-checkout-state small {
    display: block;
}

body.woocommerce-checkout .ag-free-checkout-state strong {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.25;
}

body.woocommerce-checkout .ag-free-checkout-state small {
    color: #49685c;
    font-size: 12px;
    line-height: 1.45;
}

body.woocommerce-checkout.ag-zero-total-checkout #payment::before {
    display: none !important;
}

body.woocommerce-checkout.ag-zero-total-checkout #payment,
body.woocommerce-checkout.ag-zero-total-checkout #payment div.place-order {
    padding-top: 0 !important;
}

body.woocommerce-checkout.ag-zero-total-checkout .ag-checkout-confirmation {
    display: none !important;
}

body.woocommerce-checkout.ag-zero-total-checkout #payment #place_order {
    border-color: #e0b928 !important;
    background: linear-gradient(110deg, #ffdf62, #ffc928) !important;
    color: #064b37 !important;
    box-shadow: 0 6px 18px rgba(194, 146, 0, .2) !important;
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout .ag-free-checkout-state {
        gap: 10px;
        margin-bottom: 10px;
        padding: 12px;
    }

    body.woocommerce-checkout .ag-free-checkout-state__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 18px;
    }

    body.woocommerce-checkout .ag-free-checkout-state strong {
        font-size: 14px;
    }
}
