
/* ==========================================
   TEG PREMIUM CHECKOUT
   Black + Orange Design
   ========================================== */

.teg-checkout-page {
    min-height: 600px;
    padding: 28px 20px 70px;
    background: #f5f7fa;
    color: #17243a;
}

.teg-checkout-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.teg-checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #697586;
    font-size: 14px;
}

.teg-checkout-breadcrumb a {
    color: #e87500;
    font-weight: 700;
    text-decoration: none;
}

.teg-checkout-heading {
    margin-bottom: 30px;
    padding: 30px 34px;
    border: 1px solid #e2e7ef;
    border-top: 4px solid #ff8a00;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .04);
}

.teg-checkout-kicker {
    color: #e87500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.teg-checkout-heading h1 {
    margin: 8px 0 10px;
    color: #111111;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.teg-checkout-heading p {
    margin: 0;
    color: #687386;
    font-size: 15px;
}

.teg-checkout-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 20px;
    color: #343b46;
    font-size: 13px;
    font-weight: 600;
}

.teg-checkout-content {
    min-width: 0;
}

/* WooCommerce checkout layout */
.teg-checkout-content .woocommerce {
    color: #17243a;
}

.teg-checkout-content form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr);
    gap: 28px;
    align-items: start;
}

/* Billing details area */
.teg-checkout-content #customer_details {
    min-width: 0;
}

.teg-checkout-content .col2-set,
.teg-checkout-content .col-1,
.teg-checkout-content .col-2 {
    float: none !important;
    width: 100% !important;
}

.teg-checkout-content .col2-set {
    display: block;
}

.teg-checkout-content #customer_details .col-1,
.teg-checkout-content #customer_details .col-2 {
    padding: 0;
}

.teg-checkout-content #customer_details h3,
.teg-checkout-content #order_review_heading {
    margin: 0 0 18px;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
}

/* Form field spacing */
.teg-checkout-content .woocommerce form .form-row {
    margin: 0 0 16px;
    padding: 0;
}

.teg-checkout-content .woocommerce form .form-row label {
    display: block;
    margin-bottom: 7px;
    color: #273449;
    font-size: 13px;
    font-weight: 700;
}

.teg-checkout-content .woocommerce form .form-row .required {
    color: #e87500;
}

.teg-checkout-content .woocommerce input.input-text,
.teg-checkout-content .woocommerce textarea,
.teg-checkout-content .woocommerce select,
.teg-checkout-content .select2-container .select2-selection--single {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background-color: #ffffff;
    color: #17243a;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.teg-checkout-content .woocommerce textarea {
    min-height: 100px;
}

.teg-checkout-content .woocommerce input.input-text:focus,
.teg-checkout-content .woocommerce textarea:focus,
.teg-checkout-content .woocommerce select:focus,
.teg-checkout-content .select2-container--focus .select2-selection--single {
    border-color: #ff8a00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .12);
}

.teg-checkout-content .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.teg-checkout-content .select2-container .select2-selection__rendered {
    padding-left: 0;
    color: #17243a;
    line-height: normal;
}

.teg-checkout-content .select2-container .select2-selection__arrow {
    top: 10px;
    right: 8px;
}

/* Order review card */
.teg-checkout-content #order_review {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e0e6ef;
    border-top: 4px solid #ff8a00;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

.teg-checkout-content table.shop_table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    background: transparent;
}

.teg-checkout-content table.shop_table th,
.teg-checkout-content table.shop_table td {
    padding: 13px 0;
    border-top: 1px solid #e8ecf2;
    background: transparent;
    color: #344054;
    font-size: 13px;
    vertical-align: top;
}

.teg-checkout-content table.shop_table thead th {
    border-top: 0;
    color: #111111;
    font-weight: 800;
}

.teg-checkout-content table.shop_table .product-name {
    padding-right: 12px;
    overflow-wrap: anywhere;
}

.teg-checkout-content table.shop_table .product-total,
.teg-checkout-content table.shop_table tfoot td {
    text-align: right;
    font-weight: 700;
}

.teg-checkout-content table.shop_table tfoot th {
    color: #344054;
    font-weight: 600;
}

.teg-checkout-content table.shop_table tfoot tr.order-total th,
.teg-checkout-content table.shop_table tfoot tr.order-total td {
    color: #111111;
    font-size: 18px;
    font-weight: 800;
}

/* Payment methods */
.teg-checkout-content #payment {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #f9fafb;
}

.teg-checkout-content #payment ul.payment_methods {
    padding: 0 0 14px;
    border-bottom: 1px solid #e3e7ed;
}

.teg-checkout-content #payment ul.payment_methods li {
    padding: 12px;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    background: #ffffff;
}

.teg-checkout-content #payment ul.payment_methods li label {
    color: #273449;
    font-weight: 700;
}

.teg-checkout-content #payment div.payment_box {
    border-radius: 8px;
    background: #fff3e3;
    color: #344054;
}

.teg-checkout-content #payment div.payment_box::before {
    border-bottom-color: #fff3e3;
}

/* Place order button */
.teg-checkout-content #place_order,
.teg-checkout-content .woocommerce button.button,
.teg-checkout-content .woocommerce input.button,
.teg-checkout-content .woocommerce a.button {
    min-height: 48px;
    padding: 14px 20px;
    border: 1px solid #e87500 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ffbd45, #ff8a00) !important;
    color: #111111 !important;
    font-size: 14px;
    font-weight: 800 !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 138, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.teg-checkout-content #place_order {
    width: 100%;
    margin-top: 12px;
    font-size: 16px;
}

.teg-checkout-content #place_order:hover,
.teg-checkout-content .woocommerce button.button:hover,
.teg-checkout-content .woocommerce input.button:hover,
.teg-checkout-content .woocommerce a.button:hover {
    transform: translateY(-1px);
    background: #ffbd59 !important;
    color: #111111 !important;
    box-shadow: 0 8px 20px rgba(255, 138, 0, .2);
}

/* Coupon area */
.teg-checkout-content .woocommerce-form-coupon {
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #ffd09a;
    border-left: 4px solid #ff8a00;
    border-radius: 10px;
    background: #fff8ef;
}

.teg-checkout-content .woocommerce-form-coupon p {
    color: #344054;
}

/* Notices and validation */
.teg-checkout-content .woocommerce-error,
.teg-checkout-content .woocommerce-info,
.teg-checkout-content .woocommerce-message {
    border-top-color: #ff8a00;
    border-radius: 8px;
}

.teg-checkout-content .woocommerce-error::before,
.teg-checkout-content .woocommerce-info::before,
.teg-checkout-content .woocommerce-message::before {
    color: #e87500;
}

/* Checkout terms and privacy */
.teg-checkout-content .woocommerce-privacy-policy-text,
.teg-checkout-content .woocommerce-terms-and-conditions-wrapper {
    color: #687386;
    font-size: 12px;
    line-height: 1.7;
}

/* Responsive layout */
@media (max-width: 850px) {
    .teg-checkout-content form.checkout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .teg-checkout-content #order_review {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .teg-checkout-page {
        padding: 20px 13px 42px;
    }

    .teg-checkout-heading {
        padding: 23px 19px;
    }

    .teg-checkout-benefits {
        flex-direction: column;
        gap: 8px;
    }

    .teg-checkout-content #order_review {
        padding: 16px;
    }

    .teg-checkout-content #payment {
        padding: 12px;
    }
}

/* Fix Classic WooCommerce checkout columns */
body.woocommerce-checkout .teg-checkout-content form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr) !important;
    column-gap: 30px !important;
    row-gap: 24px !important;
    align-items: start !important;
}

/* Billing details stay in left column */
body.woocommerce-checkout .teg-checkout-content #customer_details {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Order summary stays in right column */
body.woocommerce-checkout .teg-checkout-content #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 0 12px !important;
}

body.woocommerce-checkout .teg-checkout-content #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Place heading and order card together in the right column */
body.woocommerce-checkout .teg-checkout-content form.checkout {
    grid-template-rows: auto auto;
}

/* Hide empty second billing column spacing */
body.woocommerce-checkout .teg-checkout-content #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
}

/* Responsive: stack on smaller screens */
@media (max-width: 800px) {
    body.woocommerce-checkout .teg-checkout-content form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    body.woocommerce-checkout .teg-checkout-content #customer_details,
    body.woocommerce-checkout .teg-checkout-content #order_review_heading,
    body.woocommerce-checkout .teg-checkout-content #order_review {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* TEG: Move order summary up beside billing details */
@media (min-width: 801px) {
    body.woocommerce-checkout .teg-checkout-content form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr) !important;
        grid-template-rows: auto auto !important;
        align-items: start !important;
        column-gap: 30px !important;
        row-gap: 0 !important;
    }

    body.woocommerce-checkout .teg-checkout-content #customer_details {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        align-self: start !important;
    }

    body.woocommerce-checkout .teg-checkout-content #order_review_heading {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
    }

    body.woocommerce-checkout .teg-checkout-content #order_review {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
    }
}

/* =========================================
   TEG PREMIUM THANK YOU / ORDER RECEIVED
   Orange + Black + Light Grey
========================================= */

body.woocommerce-order-received {
    background: #f4f6f9;
}

body.woocommerce-order-received .woocommerce {
    width: min(1180px, calc(100% - 36px));
    margin: 38px auto 70px;
    color: #182235;
}

/* Success notice */
body.woocommerce-order-received .woocommerce-notice--success {
    padding: 24px 28px;
    margin: 0 0 28px;
    border: 1px solid #ccebd9;
    border-left: 5px solid #169b62;
    border-radius: 14px;
    background: #f0fff6;
    color: #17683f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

/* Order number / date / email details */
body.woocommerce-order-received ul.order_details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 30px;
    padding: 0;
}

body.woocommerce-order-received ul.order_details::before,
body.woocommerce-order-received ul.order_details::after {
    display: none;
}

body.woocommerce-order-received ul.order_details li {
    float: none;
    width: auto;
    margin: 0;
    padding: 19px;
    border: 1px solid #e0e5ed;
    border-top: 3px solid #ff8500;
    border-radius: 12px;
    background: #fff;
    color: #182235;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

body.woocommerce-order-received ul.order_details li strong {
    display: block;
    margin-top: 5px;
    color: #101827;
    font-size: 16px;
    font-weight: 800;
}

/* Section headings */
body.woocommerce-order-received .woocommerce h2,
body.woocommerce-order-received .woocommerce h3 {
    margin: 30px 0 16px;
    color: #111827;
    font-size: clamp(21px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

/* Order details table */
body.woocommerce-order-received table.shop_table {
    width: 100%;
    margin: 0 0 28px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
}

body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td {
    padding: 16px 18px;
    border-color: #e8ecf2;
    color: #263449;
    text-align: left;
    vertical-align: middle;
}

body.woocommerce-order-received table.shop_table thead th {
    background: #101b2c;
    color: #fff;
    font-weight: 700;
}

body.woocommerce-order-received table.shop_table a {
    color: #c96500;
    font-weight: 700;
    text-decoration: none;
}

body.woocommerce-order-received table.shop_table a:hover {
    color: #ff8500;
    text-decoration: underline;
}

/* Download links for digital products */
body.woocommerce-order-received .woocommerce-order-downloads {
    padding: 22px;
    border: 1px solid #e1e6ee;
    border-top: 4px solid #ff8500;
    border-radius: 14px;
    background: #fff;
}

body.woocommerce-order-received .woocommerce-order-downloads a {
    color: #bd5b00;
    font-weight: 800;
}

/* Address / customer information */
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-columns {
    margin-top: 28px;
}

body.woocommerce-order-received address {
    padding: 20px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    background: #fff;
    line-height: 1.9;
}

/* Hide billing address heading when no address is available */
body.woocommerce-order-received .woocommerce-column--billing-address {
    min-width: 0;
}

/* Mobile layout */
@media (max-width: 760px) {
    body.woocommerce-order-received .woocommerce {
        width: calc(100% - 24px);
        margin: 22px auto 42px;
    }

    body.woocommerce-order-received ul.order_details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.woocommerce-order-received ul.order_details li {
        padding: 14px;
        font-size: 12px;
    }

    body.woocommerce-order-received ul.order_details li strong {
        font-size: 14px;
    }

    body.woocommerce-order-received table.shop_table th,
    body.woocommerce-order-received table.shop_table td {
        padding: 12px 10px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    body.woocommerce-order-received .woocommerce-notice--success {
        padding: 18px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    body.woocommerce-order-received ul.order_details {
        grid-template-columns: 1fr;
    }
}

