/* ================= WooCommerce styling for Lybaura ================= */

/* ---------- Form controls ---------- */
.woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="tel"],
.woocommerce input[type="password"], .woocommerce input[type="number"], .woocommerce input[type="search"],
.woocommerce textarea, .woocommerce select, .woocommerce-page select,
.select2-container .select2-selection--single {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #cfc9be; border-radius: 4px; padding: 12px 14px; outline: none; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce textarea { min-height: 96px; }
.woocommerce input:focus, .woocommerce textarea:focus, .woocommerce select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 14px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 46px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.select2-dropdown { border-color: #cfc9be; }
.select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink) !important; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
.woocommerce form .form-row .required { color: var(--sale); text-decoration: none; border: 0; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--sale); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 6px); }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { accent-color: var(--ink); width: 16px; height: 16px; vertical-align: middle; }

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font: inherit; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; transition: .25s; line-height: 1.2; text-align: center;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--ink); }
.woocommerce .button:disabled, .woocommerce .button.disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; cursor: not-allowed; }
.woocommerce .button.loading { opacity: .6; pointer-events: none; }
.woocommerce .button.loading::after, .woocommerce .added_to_cart { display: none; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--cream);
  font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.woocommerce-error { border-color: var(--sale); background: #fdf2f1; display: block; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button { padding: 10px 18px; order: 2; }
.woocommerce-store-notice, p.demo_store { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: var(--ink); color: #fff; padding: 12px 16px; text-align: center; font-size: 13px; margin: 0; }
.woocommerce-store-notice a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ---------- Shop toolbar ---------- */
.toolbar .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--line); padding: 8px 32px 8px 10px; min-height: 0; width: auto; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a756d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cat-hero.plain { background: var(--cream); color: var(--ink); height: auto; padding: 48px 0 32px; }
.cat-hero.plain::before { display: none; }
.cat-hero .crumbs a { color: inherit; }
.cat-intro { max-width: 560px; margin-top: 8px; opacity: .9; }
.cat-intro p { margin: 0; }
.fopt.cat-link .box { width: 16px; height: 16px; border: 1px solid #b9b3a8; border-radius: 2px; flex: none; }
.fopt.cat-link.on .box { background: var(--ink); border-color: var(--ink); }
.fopt.cat-link.on { color: var(--ink); }
.fopt small { color: var(--muted); font-size: 12px; }
.fopt input[type="radio"] { border-radius: 50%; }

/* ---------- Single product ---------- */
.single-product .pdp { padding-bottom: 20px; }
.pdp-info .star-rating, .star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; line-height: 1; font-size: 14px; overflow: hidden; vertical-align: middle; }
.star-rating::before { content: "★★★★★"; color: var(--line); position: absolute; inset: 0; letter-spacing: .1em; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; color: var(--accent); position: absolute; top: 0; left: 0; letter-spacing: .1em; }
.woocommerce-product-rating { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.woocommerce-review-link { text-decoration: underline; }
.short-desc { color: var(--muted); margin-top: 16px; }
.size-guide-row { margin-top: 18px; text-align: right; }
.size-guide-row .link-dark { margin: 0; }
.buy-area { margin-top: 12px; }
.buy-area form.cart { margin: 0; }
.buy-area .stock { font-size: 13px; margin: 10px 0; }
.buy-area .stock.out-of-stock { color: var(--sale); }
.buy-area .stock.in-stock { color: #2e7d4f; }
.buy-area table.variations { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.buy-area table.variations tr { display: block; margin-top: 20px; }
.buy-area table.variations th, .buy-area table.variations td { display: block; padding: 0; text-align: left; }
.buy-area table.variations th label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; display: block; }
.buy-area table.variations th label .chosen { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: 14px; }
.buy-area .lyb-hidden-select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.buy-area .sizes { margin-bottom: 0; }
.buy-area .sizes button:disabled, .buy-area .color-opts button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.buy-area .reset_variations { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 10px; }
.buy-area .single_variation { margin: 14px 0 4px; }
.buy-area .single_variation .price { font-size: 18px; }
.buy-area .woocommerce-variation-description { color: var(--muted); font-size: 14px; }
.buy-area form.cart:not(.variations_form), .buy-area .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.buy-area .quantity { display: inline-flex; border: 1px solid var(--line); }
.buy-area .quantity .qty, .woocommerce .quantity .qty { width: 64px; min-height: 50px; text-align: center; border: 0; border-radius: 0; padding: 0 4px; box-shadow: none; -moz-appearance: textfield; display: block; }
.woocommerce .quantity .qty::-webkit-inner-spin-button { opacity: 1; }
.buy-area .single_add_to_cart_button { flex: 1; min-height: 52px; }
.buy-area .wish-big { width: 52px; }
.buy-area .buy-now { flex-basis: 100%; background: #fff; color: var(--ink); border: 1px solid var(--ink); min-height: 50px; }
.buy-area .buy-now:hover { background: var(--ink); color: #fff; }
.buy-area .single_add_to_cart_button.wc-variation-selection-needed { opacity: .55; }
.pdp .accordion .woocommerce-Reviews-title, .pdp .accordion #reply-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.pdp .commentlist { list-style: none; display: grid; gap: 16px; }
.pdp .commentlist .comment_container { display: flex; gap: 12px; }
.pdp .commentlist img.avatar { width: 40px; height: 40px; border-radius: 50%; }
.pdp .comment-form-rating .stars a { color: var(--accent); margin-right: 4px; }
.pdp .comment-form p { margin-bottom: 10px; }
.pdp .comment-form label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.pdp .comment-form input:not([type=checkbox]), .pdp .comment-form textarea { width: 100%; border: 1px solid #cfc9be; padding: 10px 12px; font: inherit; }
.pdp .comment-form .submit { background: var(--ink); color: #fff; border: 0; padding: 12px 24px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.pdp-spacer { height: 72px; }
.sticky-add .price, .sticky-add span .amount { font-size: 14px; }

/* ---------- Cart page ---------- */
.woocommerce-cart .wc-page { display: block; }
.woocommerce-cart-form { margin-bottom: 40px; }
.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop_table th { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--ink); }
.shop_table td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop_table .product-thumbnail img { width: 80px; height: auto; }
.shop_table .product-remove a { font-size: 22px; color: var(--muted); }
.shop_table td.actions { text-align: right; }
.shop_table .coupon { display: inline-flex; gap: 10px; float: left; }
.shop_table .coupon input { width: 200px; }
.shop_table .coupon label { display: none; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(440px, 100%); background: var(--cream); padding: 28px; }
.cart_totals h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 12px; }
.cart_totals .shop_table td, .cart_totals .shop_table th { border-color: var(--line); padding: 12px 0; }
.cart_totals .order-total strong .amount { font-size: 18px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; padding: 18px; margin-top: 12px; }
#shipping_method { list-style: none; }
#shipping_method li { margin-bottom: 6px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 13px; color: var(--muted); }
.cart-empty.woocommerce-info { justify-content: center; }
.return-to-shop { text-align: center; }

/* ---------- Checkout (classic) ---------- */
.co-header { border-bottom: 1px solid var(--line); background: #fff; }
.co-header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.co-back, .co-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.co-back:hover { color: var(--ink); }
.co-secure { justify-self: end; }
.co-back svg, .co-secure svg { width: 18px; height: 18px; }
.co-footer { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.co-footer a:hover { color: var(--ink); text-decoration: underline; }
.co-wrap { padding-top: 32px; padding-bottom: 72px; }
.co-title { font-family: var(--serif); font-weight: 500; font-size: 40px; text-align: center; margin-bottom: 24px; }

.woocommerce-checkout .woocommerce-form-login-toggle, .woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 4px; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info, .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { background: none; border: 0; padding: 0 0 10px; display: block; }
.woocommerce-checkout .showlogin, .woocommerce-checkout .showcoupon { text-decoration: underline; }
form.checkout_coupon, form.woocommerce-form-login { border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; max-width: 640px; }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
form.checkout_coupon p:first-child { flex-basis: 100%; }
form.checkout_coupon .form-row-first { flex: 1; width: auto !important; margin: 0; }
form.checkout_coupon .form-row-last { width: auto !important; margin: 0; }

form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 4; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 28px 28px 0; background: var(--cream); }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; background: var(--cream); padding: 12px 28px 28px; position: sticky; top: 20px; }
#customer_details .col-1, #customer_details .col-2 { float: none; width: 100%; max-width: none; padding: 0; }
#customer_details h3, #order_review_heading { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 16px; }
#customer_details .col-2 { margin-top: 20px; }
#ship-to-different-address { font-family: var(--sans); font-size: 15px; font-weight: 400; }
#ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; }
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row { width: 100%; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first, .woocommerce-shipping-fields__field-wrapper .form-row-last { width: calc(50% - 6px); }
.woocommerce-account-fields, .woocommerce-additional-fields { margin-top: 20px; }

#order_review .shop_table { margin-bottom: 18px; }
#order_review .shop_table th, #order_review .shop_table td { border-color: var(--line); padding: 12px 0; }
#order_review .shop_table thead th { border-bottom-color: var(--line); color: var(--muted); }
#order_review .product-name { color: var(--ink); }
#order_review .product-quantity { color: var(--muted); }
#order_review .product-total, #order_review tfoot td { text-align: right; }
#order_review .order-total th, #order_review .order-total td { font-size: 18px; border-top: 1px solid var(--ink); border-bottom: 0; }
#order_review tfoot th { font-weight: 400; color: var(--muted); }
#order_review .order-total th { color: var(--ink); font-weight: 500; }
#order_review #shipping_method { text-align: left; }
#order_review #shipping_method label { display: inline; }

#payment { background: none; }
#payment ul.payment_methods { list-style: none; border: 1px solid #cfc9be; border-radius: 4px; overflow: hidden; background: #fff; margin: 0 0 16px; padding: 0; }
#payment ul.payment_methods li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li:last-child { border-bottom: 0; }
#payment ul.payment_methods li > label { font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
#payment ul.payment_methods li img { max-height: 22px; width: auto; display: inline; vertical-align: middle; margin-left: 6px; }
#payment .payment_box { margin-top: 10px; font-size: 13px; color: var(--muted); background: var(--cream); padding: 10px 12px; }
#payment .payment_box p { margin: 0; }
#payment .place-order { margin: 0; }
#payment #place_order { width: 100%; padding: 18px; font-size: 13px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-link { text-decoration: underline; }

.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* Order received */
.woocommerce-order { max-width: 920px; margin: 0 auto; }
.woocommerce-thankyou-order-received { font-size: 18px; text-align: center; margin-bottom: 24px; }
ul.woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); margin-bottom: 32px; }
ul.woocommerce-order-overview li { flex: 1 1 160px; padding: 16px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
ul.woocommerce-order-overview li:last-child { border-right: 0; }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
.woocommerce-order-details, .woocommerce-customer-details { margin-bottom: 32px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 12px; }
.woocommerce-customer-details address { font-style: normal; border: 1px solid var(--line); padding: 20px; line-height: 1.8; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-columns--addresses .col-1, .woocommerce-columns--addresses .col-2 { width: auto; float: none; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { color: var(--ink); }
.woocommerce-MyAccount-content > p { margin-bottom: 14px; }
.woocommerce-MyAccount-content a:not(.button) { text-decoration: underline; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.woocommerce-account #customer_login .u-column1, .woocommerce-account #customer_login .u-column2 { width: auto; float: none; }
.woocommerce-account #customer_login h2, .woocommerce-account .woocommerce > h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin-bottom: 16px; }
.woocommerce-form-login, .woocommerce-form-register { border: 1px solid var(--line); padding: 28px; }
.woocommerce-form-login__rememberme { display: flex !important; align-items: center; gap: 8px; margin: 6px 0 14px; }
.woocommerce-LostPassword a { font-size: 13px; text-decoration: underline; color: var(--muted); }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-Address address { font-style: normal; line-height: 1.8; }

/* Block cart / checkout (if a site keeps the block versions) */
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-family: var(--sans); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; font-weight: 500 !important; text-transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .co-header-in { height: 64px; }
  form.woocommerce-checkout { display: block; }
  form.woocommerce-checkout #order_review_heading { padding: 20px 20px 0; margin-top: 28px; }
  form.woocommerce-checkout #order_review { position: static; padding: 8px 20px 20px; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; }
  .woocommerce-account #customer_login, .woocommerce-Addresses, .woocommerce-columns--addresses { grid-template-columns: 1fr; }
  .shop_table_responsive thead { display: none; }
  .shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .shop_table_responsive td { display: flex; justify-content: space-between; border: 0; padding: 6px 0; text-align: right; }
  .shop_table_responsive td::before { content: attr(data-title); font-weight: 500; text-align: left; margin-right: 12px; }
  .shop_table_responsive td.product-thumbnail::before, .shop_table_responsive td.actions::before, .shop_table_responsive td.product-remove::before { display: none; }
  .shop_table td.actions { display: block; }
  .shop_table .coupon { float: none; display: flex; margin-bottom: 10px; }
  .shop_table .coupon input { width: auto; flex: 1; }
  .cart_totals { padding: 20px; }
}
@media (max-width: 640px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last,
  .woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first, .woocommerce-shipping-fields__field-wrapper .form-row-last { width: 100%; }
  .buy-area .single_add_to_cart_button { letter-spacing: .1em; padding-left: 10px; padding-right: 10px; }
  .co-title { font-size: 32px; }
}

/* Override WooCommerce layout floats on the product page */
.woocommerce div.product.pdp div.summary, .woocommerce-page div.product.pdp div.summary { float: none; width: auto; clear: none; margin: 0; }
.woocommerce div.product.pdp { margin-bottom: 0; position: static; }
.size-guide-row { text-align: left; }


/* ================= Checkout (Khaadi-style steps) ================= */
.co-body { background: #f5f5f4; }
.co-body .co-header { background: #fff; }
.co-body .co-back, .co-body .co-secure { visibility: hidden; }
.co-wrap { max-width: 1160px; }
.woocommerce-checkout .woocommerce-form-login-toggle { display: none; }
form.woocommerce-checkout { column-gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
#customer_details.co-steps-on { display: grid; gap: 16px; }
.co-step { background: #fff; border-radius: 6px; padding: 0 24px; }
.co-step-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 22px 0; text-align: left; flex-wrap: wrap; }
.co-num { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.co-step.done .co-num { background: var(--ink); color: #fff; }
.co-step-title { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; flex: 1; }
.co-step-sum { flex-basis: 100%; padding-left: 34px; font-size: 13px; color: var(--muted); }
.co-step-sum:empty { display: none; }
.co-edit { display: none; font-size: 12px; text-decoration: underline; color: var(--muted); }
.co-step.done .co-edit { display: inline; }
.co-step-head::after { content: ""; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -4px 4px 0 6px; }
.co-step.open .co-step-head::after { transform: rotate(-135deg); margin-top: 4px; }
.co-step.done .co-step-head::after { display: none; }
.co-step-body, .co-step .co-next { display: none; }
.co-step.open .co-step-body { display: block; padding-bottom: 8px; }
.co-step.open .co-next { display: block; width: 100%; margin: 6px 0 24px; border-radius: 999px; padding: 16px; font-size: 13px; }
.co-step.todo .co-step-head { opacity: .55; }
.co-signin { font-size: 14px; margin: -6px 0 16px; }
.co-signin a { text-decoration: underline; font-weight: 500; }

/* Underlined fields */
.co-step .form-row input.input-text, .co-step .form-row select, .co-step .form-row textarea, .co-step .select2-container .select2-selection--single {
  border: 0; border-bottom: 1px solid #cfc9be; border-radius: 0; padding-left: 0; padding-right: 0; background: transparent; box-shadow: none !important;
}
.co-step .form-row input.input-text:focus, .co-step .form-row select:focus, .co-step .form-row textarea:focus { border-bottom-color: var(--ink); }
.co-step .form-row textarea { border: 1px solid #cfc9be; border-radius: 4px; padding: 10px 12px; }
.co-step .form-row label { font-size: 12px; margin-bottom: 0; }
.co-step .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0; }
.co-step #ship-to-different-address { font-size: 14px; margin: 6px 0 10px; }
.co-step .woocommerce-additional-fields h3 { display: none; }

/* Payment step */
.co-step #payment ul.payment_methods { border-radius: 6px; }
.co-step #payment #place_order { border-radius: 999px; padding: 17px; margin-top: 4px; }
.co-step #payment .place-order { padding-bottom: 20px; }

/* Your Bag + promo + order summary */
form.woocommerce-checkout #order_review_heading { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 6px 6px 0 0; padding: 22px 24px 12px; font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0; border-bottom: 1px solid var(--line); }
form.woocommerce-checkout #order_review { background: #fff; border-radius: 0 0 6px 6px; padding: 8px 24px 24px; }
.co-bag-total { font-weight: 500; }
#order_review .shop_table thead { display: none; }
#order_review .cart_item td { border-bottom: 1px solid var(--line); padding: 14px 0; vertical-align: top; }
#order_review .cart_item .product-name { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; font-size: 14px; }
.co-thumb { grid-row: span 3; }
.co-thumb img { width: 76px; height: 104px; object-fit: cover; border-radius: 4px; }
.co-name { font-weight: 500; }
#order_review .product-name .product-quantity { font-weight: 400; color: var(--muted); grid-column: 2; }
#order_review .product-name dl.variation { grid-column: 2; font-size: 12px; color: var(--muted); margin-top: 4px; }
#order_review .product-name dl.variation dt, #order_review .product-name dl.variation dd, #order_review .product-name dl.variation p { display: inline; margin: 0; }
#order_review tfoot::before { content: ""; display: table-row; height: 10px; }
#order_review tfoot th { font-size: 13px; }
.co-promo { background: #f7f5f1; border-radius: 6px; padding: 16px 18px; margin: 16px 0 6px; }
.co-promo-title { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; }
.co-promo-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.co-promo-row input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font: inherit; font-size: 15px; padding: 6px 0 !important; min-height: 0 !important; box-shadow: none !important; }
.co-promo-row button { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.co-promo-msg { font-size: 13px; margin-top: 8px; color: #2e7d4f; }
.co-promo-msg.bad { color: var(--sale); }
.co-promo-msg:empty { display: none; }
.woocommerce-checkout .woocommerce-NoticeGroup, .woocommerce-checkout .woocommerce-notices-wrapper { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .co-wrap { padding-top: 12px; padding-left: 12px; padding-right: 12px; }
  .co-title { display: none; }
  form.woocommerce-checkout { display: flex; flex-direction: column; }
  form.woocommerce-checkout #order_review_heading { order: 1; border-radius: 6px; margin-top: 0; cursor: pointer; border-bottom: 0; padding: 16px 18px; }
  form.woocommerce-checkout #order_review_heading::after { content: ""; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-left: 10px; }
  .co-bag-open form.woocommerce-checkout #order_review_heading { border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--line); }
  .co-bag-open form.woocommerce-checkout #order_review_heading::after { transform: rotate(-135deg); }
  .co-bag-total { margin-left: auto; }
  form.woocommerce-checkout #order_review { order: 2; display: none; padding: 4px 18px 18px; }
  .co-bag-open form.woocommerce-checkout #order_review { display: block; }
  #customer_details.co-steps-on { order: 3; margin-top: 12px; gap: 12px; }
  .co-step { padding: 0 18px; }
  .co-step-head { padding: 18px 0; }
  .co-body .co-footer { margin-top: 20px; }
}
form.woocommerce-checkout #order_review_heading { gap: 12px; }
@media (max-width: 900px) {
  form.woocommerce-checkout { align-items: stretch; }
  form.woocommerce-checkout #order_review_heading { width: 100%; }
}
