.ghz-commerce{--ghz-navy:#11253f;--ghz-blue:#1e63d5;--ghz-green:#159a67;--ghz-bg:#f5f8fc;--ghz-border:#e2e8f0;--ghz-text:#172033;--ghz-muted:#647188}
.ghz-commerce .page-top,.ghz-commerce .breadcrumbs-wrap{display:none}
.ghz-commerce .main-content{padding-top:28px}
.ghz-commerce-hero{margin:0 0 24px;padding:34px 38px;border-radius:24px;background:linear-gradient(135deg,#0b1d35,#173b67);color:#fff}
.ghz-commerce-hero.compact{padding-block:28px}
.ghz-commerce-hero>span{color:#91baff;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.ghz-commerce-hero h1{margin:8px 0 9px;color:#fff;font-size:clamp(27px,4vw,42px);font-weight:800;line-height:1.25}
.ghz-commerce-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.75);line-height:1.75}
.ghz-commerce-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 28px}
.ghz-commerce-steps>span{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid var(--ghz-border);border-radius:14px;background:#fff;color:var(--ghz-muted)}
.ghz-commerce-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef2f7}
.ghz-commerce-steps .active{border-color:#cfe0ff;color:var(--ghz-navy)}
.ghz-commerce-steps .active b{background:var(--ghz-blue);color:#fff}
.ghz-commerce-steps small{font-weight:800}
.ghz-commerce .woocommerce-cart-form,.ghz-commerce .cart_totals,.ghz-commerce form.checkout .col2-set,.ghz-commerce #order_review,.ghz-commerce #payment{border:1px solid var(--ghz-border);border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(17,37,63,.05)}
.ghz-commerce .woocommerce-cart-form{overflow:hidden;padding:18px}
.ghz-commerce .shop_table{margin-bottom:0}
.ghz-commerce .shop_table th{color:var(--ghz-muted);font-size:12px;text-transform:none}
.ghz-commerce .shop_table td{vertical-align:middle}
.ghz-commerce .product-thumbnail img{border-radius:12px;background:var(--ghz-bg)}
.ghz-commerce .product-name a{color:var(--ghz-navy);font-weight:800}
.ghz-commerce .quantity .qty{border-radius:10px}
.ghz-commerce .cart-collaterals{margin-top:25px}
.ghz-commerce .cart_totals{padding:24px}
.ghz-commerce .cart_totals h2{color:var(--ghz-navy);font-size:24px}
.ghz-commerce .checkout-button,.ghz-commerce #place_order{min-height:52px;border-radius:12px!important;background:var(--ghz-blue)!important;font-weight:800!important}
.ghz-commerce-assurance{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.ghz-commerce-assurance article{padding:17px;border:1px solid var(--ghz-border);border-radius:14px;background:var(--ghz-bg)}
.ghz-commerce-assurance strong,.ghz-commerce-assurance span{display:block}
.ghz-commerce-assurance strong{color:var(--ghz-navy)}
.ghz-commerce-assurance span{margin-top:4px;color:var(--ghz-muted);font-size:12px}
.ghz-commerce-points{margin:0 0 18px;padding:18px;border:1px solid #d8e7ff;border-radius:15px;background:#f1f6ff}
.ghz-commerce-points span,.ghz-commerce-points strong,.ghz-commerce-points small{display:block}
.ghz-commerce-points span{color:var(--ghz-blue);font-size:12px;font-weight:800}
.ghz-commerce-points strong{margin:5px 0;color:var(--ghz-navy);font-size:28px}
.ghz-commerce-points small{color:var(--ghz-muted);line-height:1.55}
.ghz-commerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);gap:24px;align-items:start}
.ghz-commerce-checkout form.checkout>.col2-set{grid-column:1;padding:26px}
.ghz-commerce-checkout form.checkout>#order_review_heading,.ghz-commerce-checkout form.checkout>#order_review{grid-column:2}
.ghz-commerce-checkout form.checkout>#order_review{position:sticky;top:100px;padding:24px}
.ghz-commerce-checkout .col2-set .col-1,.ghz-commerce-checkout .col2-set .col-2{float:none;width:100%}
.ghz-commerce-checkout .col2-set .col-2{margin-top:18px}
.ghz-commerce-section-heading{margin:0 0 18px}
.ghz-commerce-section-heading h2{margin:0 0 5px;color:var(--ghz-navy);font-size:22px}
.ghz-commerce-section-heading p{margin:0;color:var(--ghz-muted);font-size:13px}
.ghz-commerce .form-row label{color:var(--ghz-navy);font-weight:700}
.ghz-commerce .input-text,.ghz-commerce select,.ghz-commerce .select2-selection{min-height:48px!important;border:1px solid var(--ghz-border)!important;border-radius:11px!important;background:#fff!important}
.ghz-commerce textarea.input-text{min-height:110px!important;padding-top:12px}
.ghz-commerce .woocommerce-form-login,.ghz-commerce .woocommerce-form-coupon{padding:20px;border:1px solid var(--ghz-border);border-radius:16px;background:var(--ghz-bg)}
.ghz-commerce .digits-form_container,.ghz-commerce .digits-form_wrapper,.ghz-commerce .digits_secure_modal_box{border-radius:16px}
.ghz-commerce-checkout-note{margin-top:14px;padding:15px;border-radius:12px;background:#eef8f4;color:#176348}
.ghz-commerce-checkout-note strong,.ghz-commerce-checkout-note span{display:block}
.ghz-commerce-checkout-note span{margin-top:4px;font-size:12px}
.ghz-thankyou-hero{display:flex;align-items:center;gap:20px;margin-bottom:22px;padding:34px;border-radius:24px;background:linear-gradient(135deg,#0c6b4e,#159a67);color:#fff}
.ghz-thankyou-icon{display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;border-radius:50%;background:rgba(255,255,255,.16);font-size:34px;font-weight:900}
.ghz-thankyou-hero small{color:rgba(255,255,255,.72);font-weight:800}
.ghz-thankyou-hero h1{margin:5px 0 7px;color:#fff;font-size:clamp(27px,4vw,40px)}
.ghz-thankyou-hero p{margin:0;color:rgba(255,255,255,.8)}
.ghz-commerce-thankyou .woocommerce-order-overview,.ghz-commerce-thankyou .woocommerce-order-details,.ghz-commerce-thankyou .woocommerce-customer-details{padding:22px;border:1px solid var(--ghz-border);border-radius:18px;background:#fff}
.ghz-thankyou-points{display:flex;align-items:center;gap:16px;margin:22px 0;padding:20px;border:1px solid #d8e7ff;border-radius:16px;background:#f1f6ff}
.ghz-thankyou-points>span{font-size:30px;color:#d39b16}
.ghz-thankyou-points strong{display:block;color:var(--ghz-navy);font-size:18px}
.ghz-thankyou-points p{margin:5px 0 0;color:var(--ghz-muted)}
.ghz-thankyou-support{display:flex;align-items:center;gap:12px;margin-top:25px;padding:22px;border-radius:18px;background:var(--ghz-navy);color:#fff}
.ghz-thankyou-support>div{margin-inline-end:auto}
.ghz-thankyou-support strong{font-size:18px}
.ghz-thankyou-support p{margin:4px 0 0;color:rgba(255,255,255,.7)}
.ghz-thankyou-support a{padding:11px 16px;border-radius:10px;background:var(--ghz-blue);color:#fff!important;font-weight:800}
@media(max-width:991px){.ghz-commerce-checkout form.checkout{display:block}.ghz-commerce-checkout form.checkout>.col2-set,.ghz-commerce-checkout form.checkout>#order_review{margin-bottom:22px}.ghz-commerce-checkout form.checkout>#order_review{position:static}.ghz-commerce-assurance{grid-template-columns:1fr}.ghz-thankyou-support{align-items:flex-start;flex-wrap:wrap}.ghz-thankyou-support>div{width:100%}}
@media(max-width:575px){.ghz-commerce .main-content{padding-top:15px}.ghz-commerce-hero{padding:25px 20px}.ghz-commerce-steps{gap:6px}.ghz-commerce-steps>span{justify-content:center;padding:10px 6px}.ghz-commerce-steps small{display:none}.ghz-commerce .woocommerce-cart-form{padding:10px}.ghz-commerce .shop_table_responsive tr{padding:14px 0}.ghz-thankyou-hero{align-items:flex-start;padding:26px 20px}.ghz-thankyou-icon{flex-basis:52px;width:52px;height:52px}.ghz-thankyou-support a{width:100%;text-align:center}}

/* GHZ CHECKOUT STRUCTURE FIX */
.ghz-commerce-checkout form.checkout {
    display: block !important;
}

.ghz-commerce-checkout form.checkout > .col2-set,
.ghz-commerce-checkout form.checkout > #order_review_heading,
.ghz-commerce-checkout form.checkout > #order_review {
    grid-column: auto !important;
}

.ghz-commerce-checkout form.checkout > #order_review {
    position: static !important;
    top: auto !important;
}

.ghz-commerce-checkout .ghz-commerce-steps,
.ghz-commerce-checkout .ghz-commerce-section-heading {
    display: none !important;
}

.ghz-commerce-checkout .woocommerce-billing-fields,
.ghz-commerce-checkout .woocommerce-shipping-fields,
.ghz-commerce-checkout #order_review {
    margin-top: 0;
}

/* GHZ PORTO CHECKOUT FINAL FIX */

/*
 * Porto already owns the checkout grid:
 * customer_details > col-lg-7 + col-lg-5.
 * Do not apply a second layout system.
 */
.ghz-commerce-checkout form.checkout {
    display: block !important;
}

.ghz-commerce-checkout #customer_details {
    display: flex !important;
    align-items: flex-start;
    margin-inline: calc(var(--porto-column-spacing) * -1);
}

.ghz-commerce-checkout #customer_details > .col-lg-7 {
    flex: 0 0 58.333333%;
    width: 58.333333%;
    max-width: 58.333333%;
}

.ghz-commerce-checkout #customer_details > .col-lg-5 {
    flex: 0 0 41.666667%;
    width: 41.666667%;
    max-width: 41.666667%;
}

/* Remove the earlier oversized card treatment from the raw review wrapper. */
.ghz-commerce-checkout #order_review {
    position: static !important;
    top: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Porto's own review card remains responsible for the visible box. */
.ghz-commerce-checkout .checkout-order-review {
    width: 100%;
}

.ghz-commerce-checkout .checkout-order-review .featured-boxes {
    width: 100%;
    padding: 22px 24px;
    border-radius: 18px;
}

/* Prevent product image, title, quantity and price from colliding. */
.ghz-commerce-checkout .checkout-order-review .product-checkout-wrap {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.ghz-commerce-checkout .checkout-order-review .product-thumbnail {
    flex: 0 0 64px;
    width: 64px;
    margin-inline-end: 14px;
    margin-inline-start: 0;
}

.ghz-commerce-checkout .checkout-order-review .product-thumbnail img {
    display: block;
    width: 64px;
    max-width: 64px;
    height: auto;
    border-radius: 10px;
}

.ghz-commerce-checkout .checkout-order-review .product-content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.ghz-commerce-checkout .checkout-order-review .product-name {
    min-width: 0;
    padding-inline-end: 28px;
    padding-inline-start: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ghz-commerce-checkout .checkout-order-review .product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.ghz-commerce-checkout .checkout-order-review .product-total {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.4;
}

.ghz-commerce-checkout .checkout-order-review .quantity {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

/* Keep subtotal/shipping/total rows readable in RTL. */
.ghz-commerce-checkout .checkout-order-review .shop_table tfoot tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ghz-commerce-checkout .checkout-order-review .shop_table tfoot th,
.ghz-commerce-checkout .checkout-order-review .shop_table tfoot td {
    width: auto;
    min-width: 0;
}

.ghz-commerce-checkout .checkout-order-review .shop_table tfoot td {
    text-align: end !important;
}

/* Avoid the hero being visually clipped below the admin bar. */
.admin-bar.ghz-commerce-checkout .ghz-commerce-hero {
    margin-top: 18px;
}

/* Postal code is removed through PHP. This is only a stale-markup safeguard. */
.ghz-commerce-checkout #billing_postcode_field,
.ghz-commerce-checkout #shipping_postcode_field {
    display: none !important;
}

@media (max-width: 1199px) {
    .ghz-commerce-checkout #customer_details > .col-lg-7 {
        flex-basis: 55%;
        width: 55%;
        max-width: 55%;
    }

    .ghz-commerce-checkout #customer_details > .col-lg-5 {
        flex-basis: 45%;
        width: 45%;
        max-width: 45%;
    }

    .ghz-commerce-checkout .checkout-order-review .featured-boxes {
        padding-inline: 18px;
    }
}

@media (max-width: 991px) {
    .ghz-commerce-checkout #customer_details {
        display: block !important;
        margin-inline: 0;
    }

    .ghz-commerce-checkout #customer_details > .col-lg-7,
    .ghz-commerce-checkout #customer_details > .col-lg-5 {
        width: 100%;
        max-width: 100%;
    }

    .ghz-commerce-checkout #customer_details > .col-lg-5 {
        margin-top: 28px;
    }
}

@media (max-width: 575px) {
    .ghz-commerce-checkout .checkout-order-review .featured-boxes {
        padding: 18px 14px;
    }

    .ghz-commerce-checkout .checkout-order-review .product-thumbnail {
        flex-basis: 54px;
        width: 54px;
        margin-inline-end: 10px;
    }

    .ghz-commerce-checkout .checkout-order-review .product-thumbnail img {
        width: 54px;
        max-width: 54px;
    }

    .ghz-commerce-checkout .checkout-order-review .product-price {
        align-items: flex-start;
        flex-direction: column;
    }

    .ghz-commerce-checkout .checkout-order-review .product-total {
        white-space: normal;
    }
}
