
/* Jay Studio Demo 19: dedicated Classic Checkout presentation layer. */

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface{
  --jay-d19-checkout-canvas: #f6f7f6;
  --jay-d19-checkout-shell: var(--jay-d19-commerce-panel);
  --jay-d19-checkout-shell-soft: #f1f3f2;
  --jay-d19-checkout-max-width: 1240px;
  --jay-d19-checkout-express-width: 760px;
  --jay-d19-checkout-control-height: 52px;
  --jay-d19-checkout-card-radius: 24px;
  --jay-d19-checkout-row-radius: 14px;
  --jay-d19-checkout-card-padding: clamp(24px, 2.5vw, 34px);
  --jay-d19-checkout-page-gutter: clamp(20px, 4vw, 48px);
  --jay-d19-checkout-section-gap: clamp(24px, 3vw, 34px);
  --jay-d19-checkout-column-gap: clamp(28px, 3.2vw, 44px);
  --jay-d19-checkout-sticky-gap: clamp(20px, 2vw, 28px);
  --jay-d19-checkout-shadow: 0 20px 55px -40px rgb(31 55 53 / 42%);
  background-color: var(--jay-d19-checkout-canvas);
  color: var(--jay-d19-commerce-text);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface{
  --jay-d19-checkout-canvas: #111013;
  --jay-d19-checkout-shell-soft: #242326;
  --jay-d19-checkout-shadow: 0 24px 64px -38px rgb(0 0 0 / 78%);
}

/* Keep Ohio's native navigation and footer while replacing the page heading. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-headline{
  display: none;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .site-content{
  background-color: var(--jay-d19-checkout-canvas);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset
  > #primary,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset
  > #primary
  > .page-content,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset
  .site-main,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset
  .entry-content,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .page-container.top-offset.bottom-offset
  .entry-content
  > .woocommerce{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .entry-content
  > .woocommerce
  > .vc_row{
  margin-right: 0;
  margin-left: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-before-form{
  box-sizing: border-box;
  width: calc(100% - (var(--jay-d19-checkout-page-gutter) * 2));
  max-width: var(--jay-d19-checkout-max-width);
  margin-right: auto;
  margin-left: auto;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-before-form
  > .vc_col-md-12,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-after-form{
  box-sizing: border-box;
  float: none;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout{
  box-sizing: border-box;
  width: calc(100% - (var(--jay-d19-checkout-page-gutter) * 2));
  max-width: var(--jay-d19-checkout-max-width);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px) 0 clamp(48px, 7vw, 84px);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-intro{
  box-sizing: border-box;
  width: calc(100% - (var(--jay-d19-checkout-page-gutter) * 2));
  max-width: var(--jay-d19-checkout-max-width);
  margin: clamp(34px, 5vw, 66px) auto 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-intro
  > h1{
  margin: 0;
  color: var(--jay-d19-commerce-ink);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-after-form{
  width: calc(100% - (var(--jay-d19-checkout-page-gutter) * 2));
  max-width: var(--jay-d19-checkout-max-width);
  margin-right: auto;
  margin-left: auto;
}

/* Express checkout is styled by generic provider presence; gateway identity remains plugin-owned. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express{
  box-sizing: border-box;
  width: 100%;
  max-width: var(--jay-d19-checkout-express-width);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express:has(.jay-demo19-checkout-express__providers > :not(script):not(style)){
  margin: 0 auto clamp(34px, 5vw, 58px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--jay-d19-commerce-line);
  border-radius: 20px;
  background-color: var(--jay-d19-checkout-shell);
  box-shadow: var(--jay-d19-checkout-shadow);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express__heading{
  display: none;
  margin: 0 0 18px;
  color: var(--jay-d19-commerce-ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express:has(.jay-demo19-checkout-express__providers > :not(script):not(style))
  .jay-demo19-checkout-express__heading{
  display: block;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express__providers{
  width: 100%;
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

/* Standard checkout: customer details and order summary are distinct columns. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: var(--jay-d19-checkout-column-gap);
  margin: 0;
  align-items: start;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid::before,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid::after{
  display: none;
  content: none;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid
  > .jay-demo19-checkout-details,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid
  > .jay-demo19-checkout-summary{
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  padding: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid
  > .jay-demo19-checkout-details
  > #customer_details,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid
  > .jay-demo19-checkout-details
  > .jay-demo19-checkout-payment,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
  > .jay-demo19-checkout-grid
  > .jay-demo19-checkout-summary
  > .woo-sidebar.-boxed{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--jay-d19-checkout-card-padding);
  border: 1px solid var(--jay-d19-commerce-line);
  border-radius: var(--jay-d19-checkout-card-radius);
  background-color: var(--jay-d19-checkout-shell);
  box-shadow: var(--jay-d19-checkout-shadow);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  > .col-1,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  > .col-2{
  float: none;
  width: 100%;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  > .col-2{
  margin-top: var(--jay-d19-checkout-section-gap);
  padding-top: var(--jay-d19-checkout-section-gap);
  border-top: 1px solid var(--jay-d19-commerce-line);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  > .col-1
  > #contact_details
  + .woocommerce-billing-fields,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-shipping-fields
  + .woocommerce-additional-fields,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-account-fields{
  margin-top: var(--jay-d19-checkout-section-gap);
  padding-top: var(--jay-d19-checkout-section-gap);
  border-top: 1px solid var(--jay-d19-commerce-line);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #contact_details
  > h3,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-payment__heading,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review_heading{
  margin: 0 0 22px;
  color: var(--jay-d19-commerce-ink);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-billing-fields
  > .heading-md,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-shipping-fields
  .heading-md,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-additional-fields
  > h3{
  margin: 0 0 20px;
  color: var(--jay-d19-commerce-ink);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Customer fields retain WooCommerce semantics but share one control language. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row{
  margin-bottom: 0;
  padding-bottom: 16px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  > label{
  margin-bottom: 7px;
  color: var(--jay-d19-commerce-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  input.input-text,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  textarea,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .select2-container--default
  .select2-selection--single{
  box-sizing: border-box;
  width: 100%;
  min-height: var(--jay-d19-checkout-control-height);
  border: 1px solid var(--jay-d19-commerce-line);
  border-radius: 12px;
  background-color: var(--jay-d19-commerce-soft);
  box-shadow: none;
  color: var(--jay-d19-commerce-text);
  font-size: 16px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  input.input-text{
  padding-right: 14px;
  padding-left: 14px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  textarea{
  min-height: 112px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  input.input-text:focus,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .form-row
  textarea:focus,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .select2-container--open
  .select2-selection--single{
  border-color: var(--clb-color-primary);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clb-color-primary) 22%, transparent);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  #ship-to-different-address
  > label,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
  .woocommerce-account-fields
  label.checkbox{
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--jay-d19-commerce-text);
  cursor: pointer;
}

/* Order summary stays compact, readable, and stable across AJAX refreshes. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table{
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: var(--jay-d19-commerce-text);
  font-size: 14px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  th,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  td{
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--jay-d19-commerce-line);
  line-height: 1.45;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  thead
  th{
  padding-top: 0;
  color: var(--jay-d19-commerce-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  .product-name{
  width: 55%;
  padding-right: 18px;
  overflow-wrap: anywhere;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  .product-total{
  width: 45%;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  .product-total,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  tfoot
  td{
  color: var(--jay-d19-commerce-ink);
  text-align: right;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  > table.woocommerce-checkout-review-order-table
  .order-total
  > *{
  padding-top: 18px;
  border-bottom: 0;
  color: var(--jay-d19-commerce-ink);
  font-size: 1.12em;
  font-weight: 700;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  tr.woocommerce-shipping-totals.shipping
  > td,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  #shipping_method{
  text-align: left;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  #shipping_method{
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  #shipping_method
  > li{
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
  #shipping_method
  > li
  + li{
  margin-top: 9px;
}

/* Payment methods remain plugin-owned; only their outer rows are normalized. */
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-payment{
  margin-top: var(--jay-d19-checkout-section-gap);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment.woocommerce-checkout-payment{
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--jay-d19-commerce-line);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-payment
  #payment.woocommerce-checkout-payment{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment
  > .wc_payment_methods{
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment
  > .wc_payment_methods
  > li.wc_payment_method{
  box-sizing: border-box;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--jay-d19-commerce-line);
  border-radius: var(--jay-d19-checkout-row-radius);
  background-color: var(--jay-d19-commerce-soft);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment
  > .wc_payment_methods
  > li.wc_payment_method
  + li.wc_payment_method{
  margin-top: 9px;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment
  > .wc_payment_methods
  > li.wc_payment_method
  > label{
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--jay-d19-commerce-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .woo-sidebar
  #payment
  > .wc_payment_methods
  > li.wc_payment_method
  > .payment_box{
  margin: 7px 0 4px;
  padding: 15px 0 2px;
  border-top: 1px solid var(--jay-d19-commerce-line);
  color: var(--jay-d19-commerce-text);
  font-size: 14px;
  line-height: 1.55;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  > .form-row.place-order{
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--jay-d19-commerce-line);
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  > .form-row.place-order
  .woocommerce-privacy-policy-text,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  > .form-row.place-order
  .woocommerce-terms-and-conditions-wrapper{
  color: var(--jay-d19-commerce-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  > .form-row.place-order
  #place_order{
  min-height: var(--jay-d19-checkout-control-height);
  padding-right: 28px;
  padding-left: 28px;
  border-radius: 999px;
  font-weight: 650;
}

body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  > .form-row.place-order
  #place_order:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px var(--jay-d19-checkout-shell), 0 0 0 6px var(--clb-color-primary);
}

/* Restore Ohio's native sticky summary and keep long orders fully reachable. */
@media (min-width: 1280px){
  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary.-sticky-block{
    position: sticky !important;
    top: var(--jay-d19-checkout-sticky-gap);
    z-index: 2;
    align-self: start;
    margin-top: 0;
  }

  body.admin-bar.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary.-sticky-block{
    top: calc(32px + var(--jay-d19-checkout-sticky-gap));
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary.-sticky-block
    > .woo-sidebar.-boxed{
    max-height: calc(
      100dvh - var(--jay-d19-checkout-sticky-gap) - var(--jay-d19-checkout-sticky-gap)
    );
    overflow-y: auto;
    /* Let a non-overflowing summary pass wheel input to the page. Long orders
       still scroll here first, then chain naturally at either boundary. */
    overscroll-behavior: auto;
    scrollbar-gutter: stable;
  }

  body.admin-bar.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary.-sticky-block
    > .woo-sidebar.-boxed{
    max-height: calc(
      100dvh - 32px - var(--jay-d19-checkout-sticky-gap) - var(--jay-d19-checkout-sticky-gap)
    );
  }
}
/* End native sticky order summary. */

@media (max-width: 1279.98px){
  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-details,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary{
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout
    > .jay-demo19-checkout-grid
    > .jay-demo19-checkout-summary.-sticky-block{
    position: static !important;
    top: auto;
    z-index: auto;
    margin-top: 0;
  }
}

@media (max-width: 768px){
  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface{
    --jay-d19-checkout-card-padding: 20px;
    --jay-d19-checkout-card-radius: 18px;
    --jay-d19-checkout-page-gutter: 16px;
    --jay-d19-checkout-section-gap: 24px;
    --jay-d19-checkout-column-gap: 24px;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface form.woocommerce-checkout.checkout{
    padding-top: 28px;
    padding-bottom: 54px;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express:has(.jay-demo19-checkout-express__providers > :not(script):not(style)),
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface .jay-demo19-checkout-express:has(.jay-demo19-checkout-express__providers > :not(script):not(style)){
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 18px;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
    .form-row-first,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #customer_details
    .form-row-last{
    float: none;
    width: 100%;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table{
    font-size: 13px;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping
    > th,
body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping
    > td{
    box-sizing: border-box;
    display: block;
    width: 100%;
    text-align: left;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping
    > th{
    padding-bottom: 4px;
    border-bottom: 0;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #order_review
    > table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping
    > td{
    padding-top: 4px;
  }

  body.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
    > .form-row.place-order
    #place_order{
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

}

/* Adapt WooPay's save-user phone field and body-portaled country picker to dark mode. */
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]{
  border-color: var(--jay-d19-commerce-line);
  background-color: var(--jay-d19-commerce-soft);
  color: var(--jay-d19-commerce-text);
  caret-color: var(--jay-d19-commerce-ink);
  box-shadow: none;
  color-scheme: dark;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]::placeholder{
  color: var(--jay-d19-commerce-muted);
  opacity: 1;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]:-webkit-autofill,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]:autofill{
  -webkit-text-fill-color: var(--jay-d19-commerce-text);
  caret-color: var(--jay-d19-commerce-ink);
  box-shadow: 0 0 0 1000px var(--jay-d19-commerce-soft) inset;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]:focus{
  border-color: var(--clb-color-primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clb-color-primary) 22%, transparent);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]:-webkit-autofill:focus,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  input.phone-input.input-text[type="tel"][name="woopay_user_phone_field[no-country-code]"]:autofill:focus{
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--clb-color-primary) 22%, transparent),
    0 0 0 1000px var(--jay-d19-commerce-soft) inset;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  .iti__selected-flag,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  .iti__selected-dial-code{
  color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  .iti__arrow{
  border-top-color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface #payment
  .woopay-save-new-user-container
  .save-details-form.form-row[data-testid="save-user-form"]
  .iti__arrow--up{
  border-top-color: transparent;
  border-bottom-color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container{
  color-scheme: dark;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list{
  border-color: var(--jay-d19-commerce-line);
  background-color: var(--jay-d19-checkout-shell);
  color: var(--jay-d19-commerce-text);
  box-shadow: var(--jay-d19-checkout-shadow);
  scrollbar-color: var(--jay-d19-commerce-muted) var(--jay-d19-checkout-shell);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country{
  background-color: var(--jay-d19-checkout-shell);
  color: var(--jay-d19-commerce-text);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country.iti__highlight,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country:hover,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country:focus{
  background-color: rgb(255 255 255 / 8%);
  color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country.iti__active,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country[aria-selected="true"]{
  background-color: rgb(255 255 255 / 8%);
  color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country
  .iti__country-name{
  color: inherit;
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country
  .iti__dial-code{
  color: var(--jay-d19-commerce-muted);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country.iti__active
  .iti__dial-code,
body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__country[aria-selected="true"]
  .iti__dial-code{
  color: var(--jay-d19-commerce-ink);
}

body.dark-scheme.woocommerce-checkout.demo33-demo20-commerce .jay-demo19-transaction-surface > .iti.iti--container
  > .iti__country-list
  > .iti__divider{
  border-bottom-color: var(--jay-d19-commerce-line);
}
/* End WooPay save-user phone and country picker dark-mode bridge. */

/* End Jay Studio Demo 19 dedicated Classic Checkout presentation layer. */

