/* Two-step checkout for digital carts (body.lmtk-co, set by LMTK_Checkout). Step 1: details. Step 2 (body.lmtk-co-2):
   coupon and payment. The theme's big page title is replaced by the step headers, and the header slims down on phones.
   The cart page with a digital cart (body.lmtk-cart) shares the look; its own rules are at the end. */
body.lmtk-co, body.lmtk-cart {
  --co-ink: #1E2A45; --co-paper: #FDF9F7; --co-card: #FFFFFF; --co-blush: #F7EAE5; --co-sea: #D6E9E6;
  --co-rose-deep: #A35C53; --co-line: #EADBD5; --co-field: #CFC2BC; --co-muted: #4F586C;
  --co-serif: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  --co-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
body.lmtk-co #page_caption, body.lmtk-cart #page_caption { display: none; }
body.lmtk-co #page_content_wrapper .inner, body.lmtk-cart #page_content_wrapper .inner { padding-top: 24px; }
/* The theme pads every paragraph 20px top and bottom, and WooCommerce builds its form rows from paragraphs */
body.lmtk-co .woocommerce p, body.lmtk-co .lmtk-co-head p, body.lmtk-cart .woocommerce p { padding-top: 0 !important; padding-bottom: 0 !important; }
body.lmtk-co .woocommerce, body.lmtk-cart .woocommerce { max-width: 560px; margin: 0 auto 48px; padding-left: 0; padding-right: 0; color: var(--co-ink); font-family: var(--co-sans); }

/* A slimmer header on phones and tablets, just on checkout */
@media (max-width: 1024px) {
  body.lmtk-co .elementor-element-fb988b7 { padding-top: 10px !important; padding-bottom: 10px !important; }
  body.lmtk-co .elementor-element-3fd4cc4d .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
  body.lmtk-co .elementor-element-3fd4cc4d img { width: 150px !important; height: auto !important; }
  body.lmtk-co #page_content_wrapper .inner { padding-top: 16px; }
}

/* Step headers */
.lmtk-co-head { margin: 0 0 18px; }
.lmtk-co-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.lmtk-co-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--co-line); }
.lmtk-co-steps span.on { background: var(--co-ink); }
.lmtk-co-eyebrow { margin: 0; font: 600 11px/1.4 var(--co-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--co-rose-deep); }
body.lmtk-co h2.lmtk-co-h, body.lmtk-cart h2.lmtk-co-h { margin: 6px 0 16px; padding: 0; font: 500 34px/1.05 var(--co-serif); letter-spacing: -0.01em; text-transform: none; color: var(--co-ink); }
body.lmtk-co h2.lmtk-co-h em, body.lmtk-cart h2.lmtk-co-h em { font-style: italic; color: var(--co-rose-deep); }
.lmtk-co-h:focus { outline: none; }
.lmtk-co-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--co-line); border-radius: 18px; background: var(--co-card); }
.lmtk-co-sum b { display: block; font: 500 21px/1.15 var(--co-serif); color: var(--co-ink); }
.lmtk-co-sum small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--co-muted); word-break: break-word; }
.lmtk-co-sum .lmtk-co-total { flex: none; font-size: 22px; }
.lmtk-co-edit { padding: 0; border: 0; background: none; font: inherit; color: var(--co-rose-deep); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Which parts show in each step */
body.lmtk-co:not(.lmtk-co-2) .lmtk-co-s2,
body.lmtk-co:not(.lmtk-co-2) .woocommerce-form-coupon-toggle,
body.lmtk-co:not(.lmtk-co-2) form.checkout_coupon,
body.lmtk-co:not(.lmtk-co-2) #order_review { display: none !important; }
body.lmtk-co.lmtk-co-2 .lmtk-co-s1,
body.lmtk-co.lmtk-co-2 #customer_details,
body.lmtk-co.lmtk-co-2 #wc-stripe-express-checkout-wrapper,
body.lmtk-co.lmtk-co-2 #wc-stripe-express-checkout-element,
body.lmtk-co.lmtk-co-2 #wc-stripe-express-checkout-button-separator { display: none !important; }
body.lmtk-co #order_review_heading,
body.lmtk-co .woocommerce-billing-fields > h3,
body.lmtk-co #customer_details .col-2:empty { display: none !important; }

/* Express pay (Stripe's Apple Pay and Google Pay) and its divider */
body.lmtk-co #wc-stripe-express-checkout-wrapper { margin: 0 0 4px; }
body.lmtk-co #wc-stripe-express-checkout-button-separator { margin: 12px 0 16px; font-size: 0 !important; line-height: 0; text-align: center; }
body.lmtk-co #wc-stripe-express-checkout-button-separator::after { content: "or continue with email"; font: 600 11px/1.4 var(--co-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--co-muted); }

/* On desktop the theme floats the details left (63%) and the order and payment right (about a third). This checkout
   is one column at every width. */
body.lmtk-co #customer_details, body.lmtk-co #order_review, body.lmtk-co #order_review_heading {
  float: none !important; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
}

/* Details */
body.lmtk-co #customer_details .col-1, body.lmtk-co #customer_details .col-2 { float: none; width: 100%; max-width: none; padding: 0; margin: 0; }
body.lmtk-co .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
body.lmtk-co .woocommerce-billing-fields__field-wrapper .form-row { float: none; width: auto; margin: 0 0 14px; padding: 0; }
body.lmtk-co .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
body.lmtk-co .form-row label { display: block; margin: 0 0 6px; font: 600 12px/1.4 var(--co-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--co-ink); }
body.lmtk-co .form-row .input-text { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--co-field); border-radius: 12px; background: #fff; font-size: 16px; }
body.lmtk-co .form-row .input-text:focus { border-color: var(--co-ink); outline: 2px solid rgba(30, 42, 69, 0.15); outline-offset: 1px; }
body.lmtk-co .form-row.woocommerce-invalid .input-text { border-color: #B3261E; }
.lmtk-co-note { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--co-muted); }
.lmtk-co-note a { color: var(--co-rose-deep); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.lmtk-co-error { margin: 10px 0 0; font-size: 13.5px; color: #B3261E; }
.lmtk-co-continue { margin: 18px 0 0; }
.lmtk-co-btn, body.lmtk-co #place_order {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin: 0; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--co-ink) !important; color: #F7F0EC !important;
  font: 600 15px/1 var(--co-sans) !important; letter-spacing: 0.02em; text-transform: none; cursor: pointer; transition: background-color 0.2s;
}
.lmtk-co-btn:hover, body.lmtk-co #place_order:hover { background: var(--co-rose-deep) !important; }
.lmtk-co-btn:focus-visible, body.lmtk-co #place_order:focus-visible { outline: 2px solid var(--co-rose-deep); outline-offset: 3px; }

/* Step 2: the coupon as a quiet link, then a tidy summary and payment box */
body.lmtk-co .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0 0 12px; padding: 0; border: 0; background: none !important; font-size: 14px; color: var(--co-muted); }
body.lmtk-co .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
body.lmtk-co .woocommerce-form-coupon-toggle a { color: var(--co-rose-deep); text-decoration: underline; text-underline-offset: 2px; }
body.lmtk-co form.checkout_coupon { margin: 0 0 16px; padding: 14px; border: 1px solid var(--co-line); border-radius: 16px; background: var(--co-card); }
/* The summary card at the top of step 2 already shows what's being bought and the total (kept in step with the table) */
body.lmtk-co #order_review .woocommerce-checkout-review-order-table { display: none; }
body.lmtk-co #order_review .shop_table { width: 100%; margin: 0 0 16px; border: 1px solid var(--co-line); border-radius: 16px; border-collapse: separate; background: var(--co-card); font-size: 14px; }
body.lmtk-co #order_review .shop_table th, body.lmtk-co #order_review .shop_table td { padding: 10px 14px; border: 0; background: none; }
body.lmtk-co #order_review .shop_table thead { display: none; }
body.lmtk-co #order_review .shop_table .order-total th, body.lmtk-co #order_review .shop_table .order-total td { border-top: 1px solid var(--co-line); font-weight: 600; }
body.lmtk-co #payment { border: 1px solid var(--co-line); border-radius: 18px; background: var(--co-card) !important; }
body.lmtk-co #payment .form-row.place-order { padding: 14px 16px 18px; }
/* Stripe is the only method, so its label reads as a small heading and its box drops the theme's blue panel */
body.lmtk-co #payment ul.payment_methods { margin: 0; padding: 18px 16px 0 !important; border: 0; }
body.lmtk-co #payment li.wc_payment_method > label { display: block; margin: 0 0 12px !important; font: 600 11px/1.4 var(--co-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--co-rose-deep); }
body.lmtk-co #payment .payment_box { margin: 0 !important; padding: 0 !important; background: transparent !important; }
body.lmtk-co #payment .payment_box::before { display: none !important; }
body.lmtk-co .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.5; color: var(--co-muted); }

/* The cart: one card per item, then the total and one button on to checkout */
body.lmtk-cart #page_content_wrapper .woocommerce { padding-left: 0; padding-right: 0; }
body.lmtk-cart .woocommerce .cart_totals, body.lmtk-cart .woocommerce .wc-proceed-to-checkout a.checkout-button { box-sizing: border-box; }
body.lmtk-cart .woocommerce table.shop_table.cart, body.lmtk-cart .woocommerce table.shop_table.cart tbody {
  display: block; width: 100%; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
body.lmtk-cart .woocommerce table.shop_table.cart thead { display: none; }
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb price remove";
  column-gap: 14px; align-items: center; margin: 0 0 12px; padding: 12px; border: 1px solid var(--co-line); border-radius: 18px; background: var(--co-card);
}
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item td { display: block; padding: 0; border: 0; background: none; text-align: left !important; }
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item td::before { display: none; }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-thumbnail { grid-area: thumb; display: block !important; }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-thumbnail a { display: block; }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-thumbnail img { display: block; width: 72px; max-width: none; height: 72px; border-radius: 12px; object-fit: cover; }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-name { grid-area: name; align-self: end; font: 500 21px/1.15 var(--co-serif); }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-name a { color: var(--co-ink); text-decoration: none; }
body.lmtk-cart .lmtk-cart-kicker { display: block; margin-bottom: 3px; font: 600 10px/1.4 var(--co-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--co-rose-deep); }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-price { grid-area: price; align-self: start; margin-top: 4px; font-size: 14px; color: var(--co-muted); }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-remove { grid-area: remove; }
body.lmtk-cart .woocommerce table.shop_table.cart td.product-remove a.remove {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--co-line); border-radius: 50%;
  background: var(--co-card); color: var(--co-muted) !important; font: 400 20px/1 Arial, sans-serif; text-decoration: none;
}
body.lmtk-cart .woocommerce table.shop_table.cart td.product-remove a.remove:hover { border-color: var(--co-rose-deep); background: var(--co-blush); color: var(--co-rose-deep) !important; }
/* Tools are sold one at a time, so there's no quantity to show or update, and the line total repeats the price */
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item td.product-subtotal { display: none; }
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item td.product-quantity { grid-column: 2; }
body.lmtk-cart .woocommerce table.shop_table.cart tr.cart_item td.product-quantity:has(input.qty[type="hidden"]) { display: none; }
body.lmtk-cart .woocommerce-cart-form:not(:has(input.qty:not([type="hidden"]))) button[name="update_cart"] { display: none !important; }

/* Coupon: a quiet row under the items */
body.lmtk-cart .woocommerce table.shop_table.cart tr:not(.cart_item) { display: block; }
body.lmtk-cart .woocommerce table.shop_table.cart td.actions { display: block; padding: 4px 0 0; border: 0; background: none; }
body.lmtk-cart .woocommerce table.shop_table.cart td.actions .coupon::before, body.lmtk-cart .woocommerce table.shop_table.cart td.actions .coupon::after { display: none; }
body.lmtk-cart .woocommerce table.shop_table.cart td.actions .coupon > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.lmtk-cart .woocommerce table.shop_table.cart td.actions .coupon { display: flex; gap: 8px; float: none; width: 100%; margin: 0; padding: 0; }
body.lmtk-cart .woocommerce table.shop_table.cart td.actions .coupon .input-text {
  flex: 1 1 auto; width: auto; min-width: 0; min-height: 46px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--co-field); border-radius: 12px; background: #fff; font-size: 16px;
}
body.lmtk-cart .woocommerce td.actions .button {
  flex: none; float: none; width: auto; min-height: 46px; margin: 0; padding: 0 18px; border: 1px solid var(--co-ink) !important; border-radius: 999px;
  background: transparent !important; color: var(--co-ink) !important; font: 600 13px/1 var(--co-sans) !important; letter-spacing: 0.04em; text-transform: none;
}
body.lmtk-cart .woocommerce td.actions .button:hover { background: var(--co-ink) !important; color: #F7F0EC !important; }
body.lmtk-cart .woocommerce td.actions > .button { width: 100%; margin-top: 10px; }

/* Total and the button on to checkout */
body.lmtk-cart .woocommerce .cart-collaterals { margin-top: 20px; }
body.lmtk-cart .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; padding: 16px 18px 18px; border: 1px solid var(--co-line); border-radius: 18px; background: var(--co-card); }
body.lmtk-cart .cart_totals h2 { margin: 0 0 6px; padding: 0; font: 600 11px/1.4 var(--co-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--co-rose-deep); }
body.lmtk-cart .cart_totals table.shop_table, body.lmtk-cart .cart_totals table.shop_table tbody { display: block; width: 100%; margin: 0; border: 0; border-radius: 0; background: none; }
body.lmtk-cart .cart_totals table.shop_table tr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; background: none; }
body.lmtk-cart .cart_totals table.shop_table th { display: none; }
body.lmtk-cart .cart_totals table.shop_table td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: none; font-size: 15px; text-align: right; }
body.lmtk-cart .cart_totals table.shop_table td::before { content: attr(data-title); float: none; font-weight: 500; text-align: left; color: var(--co-muted); }
body.lmtk-cart .cart_totals table.shop_table tr.order-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--co-line); }
body.lmtk-cart .cart_totals table.shop_table tr.order-total td { font: 500 24px/1.1 var(--co-serif); color: var(--co-ink); }
body.lmtk-cart .cart_totals table.shop_table tr.order-total td::before { font: 600 12px/1.4 var(--co-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--co-ink); }
body.lmtk-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
body.lmtk-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--co-ink) !important; color: #F7F0EC !important;
  font: 600 15px/1 var(--co-sans) !important; letter-spacing: 0.02em; text-transform: none; transition: background-color 0.2s;
}
body.lmtk-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: var(--co-rose-deep) !important; }
body.lmtk-cart .woocommerce .wc-proceed-to-checkout a.checkout-button::after { content: "\2192"; display: inline-block !important; margin-left: 8px; }

/* The empty cart: the heading says it, then one button back to the tools */
body.lmtk-cart .wc-empty-cart-message { display: none; }
body.lmtk-cart .lmtk-cart-note { margin: -6px 0 0; font-size: 15px; line-height: 1.6; color: var(--co-muted); }
body.lmtk-cart .woocommerce .return-to-shop { margin: 22px 0 0; padding: 0 !important; }
body.lmtk-cart .woocommerce .return-to-shop a.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin: 0; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--co-ink) !important; color: #F7F0EC !important;
  font: 600 15px/1 var(--co-sans) !important; letter-spacing: 0.02em; text-transform: none; transition: background-color 0.2s;
}
body.lmtk-cart .woocommerce .return-to-shop a.button:hover { background: var(--co-rose-deep) !important; }
body.lmtk-cart .woocommerce .return-to-shop a.button::after { content: "\2192"; display: inline-block !important; margin-left: 8px; }

@media (max-width: 480px) {
  body.lmtk-co h2.lmtk-co-h, body.lmtk-cart h2.lmtk-co-h { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .lmtk-co-btn, body.lmtk-co #place_order, body.lmtk-cart .wc-proceed-to-checkout a.checkout-button, body.lmtk-cart .return-to-shop a.button { transition: none; }
}
