/* Digisoft ZA v1.9.58: desktop-only WooCommerce layout correction.
   Native WooCommerce checkout, payment gateways and hooks remain intact. */
@media (min-width:1100px) {
  body.digisoft-theme.woocommerce-cart .ds-standard-content,
  body.digisoft-theme.woocommerce-checkout .ds-standard-content {
    width:calc(100% - 96px)!important; max-width:1520px!important;
    margin-left:auto!important; margin-right:auto!important; padding:26px 0 85px!important;
  }
  /* This is the actual 900px bottleneck in page.php. */
  body.digisoft-theme .ds-standard-content > .ds-commerce-prose,
  body.digisoft-theme .ds-standard-content .ds-commerce-prose,
  body.digisoft-theme .ds-commerce-prose > .woocommerce {
    width:100%!important; max-width:100%!important; min-width:0!important;
    margin-left:0!important; margin-right:0!important;
  }
  body.digisoft-theme .ds-commerce-prose .woocommerce::before,
  body.digisoft-theme .ds-commerce-prose .woocommerce::after {content:none!important;display:none!important;}
  body.digisoft-theme.woocommerce-cart .ds-standard-content > h1,
  body.digisoft-theme.woocommerce-checkout .ds-standard-content > h1 {font-size:42px;line-height:1.2;margin:5px 0 30px;}

  /* Basket: 1000px-ish product area plus 420px summary on a 1520px monitor. */
  body.digisoft-theme.woocommerce-cart .ds-commerce-prose .woocommerce {
    display:grid!important;grid-template-columns:minmax(0,1fr) 420px!important;
    align-items:start;gap:32px!important;
  }
  body.digisoft-theme.woocommerce-cart .ds-commerce-prose .woocommerce > form.woocommerce-cart-form {
    grid-column:1;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;
  }
  body.digisoft-theme.woocommerce-cart .ds-commerce-prose .woocommerce > .cart-collaterals {
    grid-column:2;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;
  }
  body.digisoft-theme.woocommerce-cart .ds-commerce-prose .woocommerce > :not(form.woocommerce-cart-form):not(.cart-collaterals) {grid-column:1/-1;}
  body.digisoft-theme.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    float:none!important;width:100%!important;max-width:none!important;padding:28px!important;
    border:1px solid #dcebe2;border-radius:17px;background:#fff;
  }
  body.digisoft-theme.woocommerce-cart .woocommerce .cart_totals h2 {font-size:25px;margin:0 0 18px;}
  body.digisoft-theme.woocommerce-cart .woocommerce .cart_totals table {width:100%;border:0;}
  body.digisoft-theme.woocommerce-cart .woocommerce .cart_totals td {text-align:right;white-space:nowrap;}
  body.digisoft-theme.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {width:100%;display:block;padding:16px!important;font-size:16px!important;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table {
    width:100%!important;max-width:none!important;table-layout:auto!important;
    border:1px solid #dcebe2;border-radius:16px;border-collapse:separate;border-spacing:0;
  }
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table th {background:#f4faf6;padding:16px 12px;font-size:13px;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table td {padding:18px 12px;vertical-align:middle;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-name {width:auto!important;min-width:260px!important;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-name a {color:#123e2d;font-weight:700;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-thumbnail {width:95px;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-thumbnail img {width:72px!important;height:72px!important;max-width:none!important;object-fit:contain;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-price,
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-subtotal {white-space:nowrap;}
  body.digisoft-theme.woocommerce-cart .woocommerce .quantity .qty {width:76px;min-height:46px;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table td.actions {padding:17px;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table td.actions .coupon {display:flex;gap:12px;align-items:center;max-width:none;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table td.actions .coupon #coupon_code {width:245px;min-width:180px;float:none;margin:0;}

  /* Checkout: left column 1000px with two full-size sections; right 420px summary. */
  body.digisoft-theme.woocommerce-checkout .ds-commerce-prose .woocommerce {width:100%!important;max-width:none!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {
    display:grid!important;grid-template-columns:minmax(0,1fr) 420px!important;
    gap:26px 34px!important;width:100%!important;max-width:none!important;align-items:start;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set {
    grid-column:1!important;grid-row:1!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px!important;width:100%!important;max-width:none!important;min-width:0!important;
    float:none!important;clear:none!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-1,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-2 {
    float:none!important;clear:none!important;display:block!important;
    width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-shipping-fields,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-additional-fields {
    width:100%!important;max-width:none!important;min-width:0!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row {
    max-width:none!important;min-width:0!important;margin-bottom:17px;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row-first,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row-last {
    width:48%!important;float:left!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row-last {float:right!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row-wide {width:100%!important;float:none!important;clear:both!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .form-row select {width:100%!important;max-width:none!important;min-height:47px;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .col2-set h3 {font-size:24px;margin:0 0 20px;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review_heading {
    grid-column:2!important;grid-row:1!important;align-self:start;margin:0!important;
    padding:24px 24px 0!important;font-size:25px;z-index:1;pointer-events:none;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review {display:contents!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > .woocommerce-checkout-review-order-table {
    grid-column:2!important;grid-row:1!important;width:100%!important;max-width:none!important;
    margin:0!important;padding-top:65px!important;min-width:0!important;
    border:1px solid #dcebe2;border-radius:17px;background:#fff;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {
    grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;
    margin:0!important;padding:20px 24px!important;border:1px solid #dcebe2;border-radius:17px;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > :not(#payment):not(.woocommerce-checkout-review-order-table) {grid-column:1;}
  body.digisoft-theme.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.digisoft-theme.woocommerce-checkout .woocommerce-checkout-review-order-table td {padding:15px 14px;}
  body.digisoft-theme.woocommerce-checkout .woocommerce-checkout-review-order-table td:last-child,
  body.digisoft-theme.woocommerce-checkout .woocommerce-checkout-review-order-table th:last-child {text-align:right;white-space:nowrap;}
  body.digisoft-theme.woocommerce-checkout #payment #place_order {float:none;width:100%;min-height:52px;}
}
@media (min-width:1100px) and (max-width:1350px) {
  body.digisoft-theme.woocommerce-cart .ds-commerce-prose .woocommerce,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {grid-template-columns:minmax(0,1fr) 340px!important;gap:24px!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set {gap:18px!important;}
  body.digisoft-theme.woocommerce-cart .woocommerce table.shop_table .product-name {min-width:180px!important;}
}

/* v1.9.59: Keep the complete classic checkout in one left-hand flow.
   WooCommerce and third-party checkout extensions can inject fields directly
   into form.checkout after .col2-set. A grid on the form previously pushed
   those fields into later full-width rows. Reserve the right sidebar with
   padding instead, so all extension fields and payment remain in normal flow. */
@media (min-width:1100px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {
    display:block!important;
    position:relative!important;
    box-sizing:border-box!important;
    padding-right:454px!important;
    min-height:500px;
    width:100%!important;
    max-width:none!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 24px!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-1,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-2 {
    float:none!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 22px!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review_heading {
    position:absolute!important;
    top:0!important;
    right:0!important;
    width:420px!important;
    box-sizing:border-box!important;
    padding:24px 24px 0!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review {
    display:contents!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > .woocommerce-checkout-review-order-table {
    position:absolute!important;
    top:0!important;
    right:0!important;
    width:420px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding-top:65px!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {
    position:static!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:24px 0 0!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > :not(#order_review):not(#order_review_heading):not(.col2-set) {
    box-sizing:border-box!important;
    max-width:100%!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields__field-wrapper {
    width:100%!important;
    max-width:none!important;
  }
}
@media (min-width:1100px) and (max-width:1350px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {padding-right:364px!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review_heading,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > .woocommerce-checkout-review-order-table {width:340px!important;}
}

/* v1.9.60: Actual desktop payment sidebar. Do not relocate WooCommerce nodes;
   checkout AJAX and Yoco gateway handlers continue to own their original DOM. */
@media (min-width:1100px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {
    min-height:var(--ds-sidebar-height, 620px)!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {
    position:absolute!important;
    top:calc(var(--ds-review-height, 320px) + 18px)!important;
    right:0!important;
    width:420px!important;
    max-width:420px!important;
    margin:0!important;
    z-index:2;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-1,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > .col2-set > .col-2 {
    margin-bottom:12px!important;
  }
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields h3,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout .woocommerce-additional-fields h3 {
    margin-bottom:16px!important;
  }
  body.digisoft-theme.woocommerce-checkout #payment .payment_methods img {max-width:100%;height:auto;}
}
@media (min-width:1100px) and (max-width:1350px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {
    width:340px!important;max-width:340px!important;
  }
}

/* v1.9.61: Slightly wider desktop order/payment sidebar, no mobile changes. */
@media (min-width:1351px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {padding-right:504px!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review_heading,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > .woocommerce-checkout-review-order-table,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {width:470px!important;max-width:470px!important;}
}
@media (min-width:1100px) and (max-width:1350px) {
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout {padding-right:414px!important;}
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review_heading,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > .woocommerce-checkout-review-order-table,
  body.digisoft-theme.woocommerce-checkout .woocommerce form.checkout > #order_review > #payment {width:390px!important;max-width:390px!important;}
}
@media (min-width:1100px) {
  body.digisoft-theme.woocommerce-checkout #payment .payment_methods img {
    max-height:32px!important;width:auto!important;max-width:100%!important;
    object-fit:contain;vertical-align:middle;margin:0 5px 4px 2px;
  }
}
