/* SKNCode 2026: WooCommerce basket, checkout, order confirmation and account in the design. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wc-hero { padding-bottom: clamp(20px, 3vh, 36px); }
.wc-wrap { padding-top: 0; }
.wc-content { max-width: 1180px; }
.wc-content .woocommerce { font-size: 16px; color: var(--ink); }
.wc-content .woocommerce h2, .wc-content .woocommerce h3, #order_review_heading { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--font); letter-spacing: -.015em; color: var(--ink); margin: 0 0 18px; }

/* buttons */
.wc-content .button, .wc-content button.button, .wc-content a.button, .wc-content input.button, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2); font: 600 14.5px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s, color .3s, box-shadow .3s;
}
.wc-content .button:hover { border-color: var(--wine); color: var(--wine); }
.wc-content .button.alt, .wc-content .checkout-button, .wc-content #place_order, .wc-content .woocommerce-form-login__submit, .wc-content .woocommerce-Button, .wc-block-components-button.contained, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--wine); border-color: var(--wine); color: #fff;
}
.wc-content .button.alt:hover, .wc-content .checkout-button:hover, .wc-content #place_order:hover, .wc-content .woocommerce-form-login__submit:hover, .wc-content .woocommerce-Button:hover { background: var(--wine-2); border-color: var(--wine-2); color: #fff; box-shadow: 0 14px 30px -14px rgba(71, 0, 18, .7); }
.wc-content .button:disabled, .wc-content .button[disabled] { opacity: .45; cursor: default; }
.wc-content .checkout-button, .wc-content #place_order { height: 58px; padding: 0 34px; font-size: 16px; width: 100%; }

/* fields */
.wc-content .input-text, .wc-content input[type="text"], .wc-content input[type="email"], .wc-content input[type="tel"], .wc-content input[type="password"], .wc-content input[type="number"], .wc-content select, .wc-content textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff;
  font: 400 16px/1.3 var(--font); color: var(--ink); box-shadow: none;
}
.wc-content textarea { height: auto; min-height: 110px; padding: 14px 16px; }
.wc-content .input-text:focus, .wc-content select:focus, .wc-content textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: transparent; }
.wc-content .form-row { margin: 0 0 16px; padding: 0; }
.wc-content .form-row label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.wc-content .form-row label.checkbox, .wc-content .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.wc-content .required { color: var(--wine); text-decoration: none; border: 0; }
.wc-content .optional { font-weight: 400; color: var(--text); }
.wc-content .woocommerce-invalid .input-text, .wc-content .woocommerce-invalid select { border-color: #b32d2e; }
.select2-container--default .select2-selection--single { height: 52px; border-radius: var(--r-s); border: 1px solid var(--line-2); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 50px; padding-left: 16px; color: var(--ink); font-family: var(--font); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
.select2-dropdown { border-color: var(--line-2); border-radius: var(--r-s); overflow: hidden; font-family: var(--font); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--wine); }

/* tables */
.wc-content table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; margin: 0 0 24px; }
.wc-content table.shop_table th, .wc-content table.shop_table td { padding: 16px 18px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); font-size: 15.5px; }
.wc-content table.shop_table thead th { border-top: 0; background: var(--cream); font: 600 11.5px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.wc-content table.shop_table tfoot th { font-weight: 600; color: var(--ink-2); }
.wc-content table.shop_table .order-total th, .wc-content table.shop_table .order-total td { font-size: 18px; font-weight: 600; }
.wc-content .woocommerce-Price-amount { white-space: nowrap; }

/* basket */
.wc-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 28px 40px; align-items: start; }
.wc-cart .woocommerce > .woocommerce-notices-wrapper, .wc-cart .woocommerce > .cart-empty, .wc-cart .woocommerce > .return-to-shop, .wc-cart .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
.wc-cart .woocommerce-cart-form { min-width: 0; }
.wc-cart td.product-thumbnail { width: 108px; }
.wc-cart td.product-thumbnail img, .wc-cart .skn-cart-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.wc-cart td.product-name a { font-weight: 600; color: var(--ink); }
.wc-cart td.product-name a:hover { color: var(--wine); }
.wc-cart td.product-remove { width: 44px; padding-right: 0; }
.wc-cart a.remove { flex: none; min-width: 30px; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text) !important; font-size: 18px; line-height: 1; text-decoration: none; }
.wc-cart a.remove:hover { border-color: var(--wine); color: var(--wine) !important; background: var(--wine-soft); }
.wc-cart td.actions { background: #fcfbf8; }
.wc-cart td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; }
.wc-cart td.actions .coupon .input-text, .wc-cart #coupon_code { width: 200px !important; height: 48px; border-radius: 999px; padding: 0 18px; }
.wc-cart table.cart:not(:has(input.qty[type="number"])) .product-quantity { display: none; }
.wc-content .woocommerce-notices-wrapper :focus, .wc-content .woocommerce-message:focus, .wc-content .woocommerce-error:focus, .wc-content .woocommerce-info:focus { outline: none; }
.wc-cart td.actions > .button { float: right; }
.wc-cart .cart-collaterals { width: auto; }
.wc-cart .cart_totals { width: 100% !important; float: none !important; position: sticky; top: calc(var(--nav-h) + 24px); padding: 26px; border-radius: var(--r); background: var(--cream); }
.wc-cart .cart_totals table.shop_table { border: 0; background: transparent; border-radius: 0; }
.wc-cart .cart_totals table.shop_table th, .wc-cart .cart_totals table.shop_table td { padding: 12px 0; border-color: var(--cream-2); }
.wc-cart .cart_totals tr:first-child th, .wc-cart .cart_totals tr:first-child td { border-top: 0; }
.wc-cart .wc-proceed-to-checkout { padding: 8px 0 0; }
.wc-cart .cart-empty { font-size: 18px; }
.wc-cart .return-to-shop .button { background: var(--wine); border-color: var(--wine); color: #fff; }

/* checkout */
.wc-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); grid-template-rows: auto 1fr; gap: 0 48px; align-items: start; }
.wc-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.wc-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 26px 26px 14px; background: var(--cream); border-radius: var(--r) var(--r) 0 0; }
.wc-checkout form.checkout > #order_review { grid-column: 2; grid-row: 2; padding: 0 26px 26px; background: var(--cream); border-radius: 0 0 var(--r) var(--r); position: sticky; top: calc(var(--nav-h) + 24px); }
.wc-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.wc-checkout .col2-set .col-1, .wc-checkout .col2-set .col-2 { float: none; width: 100%; }
.wc-checkout .col2-set .col-2 { margin-top: 16px; }
.wc-checkout .form-row-first, .wc-checkout .form-row-last { width: calc(50% - 8px); float: left; }
.wc-checkout .form-row-last { float: right; }
.wc-checkout .form-row-wide { clear: both; }
.wc-checkout .woocommerce-billing-fields__field-wrapper::after, .wc-checkout .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.wc-checkout #order_review table.shop_table { background: #fff; }
.wc-checkout #payment { background: transparent; border-radius: 0; }
.wc-checkout #payment ul.payment_methods { margin: 0 0 18px; padding: 0; list-style: none; border: 0; }
.wc-checkout #payment ul.payment_methods li { margin: 0 0 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }
.wc-checkout #payment ul.payment_methods li label { font-weight: 600; margin-left: 6px; }
.wc-checkout #payment .payment_box { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--cream); font-size: 14.5px; color: var(--ink-2); }
.wc-checkout #payment .payment_box::before { content: none; }
.wc-checkout .woocommerce-privacy-policy-text, .wc-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; color: var(--text); margin: 0 0 14px; }
.wc-checkout .woocommerce-privacy-policy-text a { color: var(--wine); border-bottom: 1px solid currentColor; }
.wc-checkout .woocommerce-form-coupon-toggle .woocommerce-info, .wc-checkout .woocommerce-form-login-toggle .woocommerce-info { justify-content: flex-start; }
.wc-checkout form.checkout_coupon { display: flex; gap: 8px; padding: 18px; margin: 0 0 18px; border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.wc-checkout form.checkout_coupon p { margin: 0; }
.wc-checkout form.checkout_coupon .form-row-first { flex: 1; width: auto; }

/* order received */
.wc-checkout .woocommerce-order { display: grid; gap: 22px; }
.wc-checkout .woocommerce-thankyou-order-received { font: 300 clamp(26px, 2.6vw, 40px)/1.15 var(--font); letter-spacing: -.02em; color: var(--ink); }
.wc-checkout ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wc-checkout ul.woocommerce-order-overview li { padding: 16px 18px; border-radius: var(--r-s); background: var(--cream); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border: 0; margin: 0; float: none; }
.wc-checkout ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.wc-checkout .woocommerce-customer-details address { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-s); font-style: normal; line-height: 1.7; }

/* after an order: book the appointment */
.wc-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin: 28px 0 0; padding: 28px; border-radius: var(--r); background: var(--wine); color: var(--on-wine); }
.wc-next h2 { font: 300 clamp(24px, 2.4vw, 34px)/1.15 var(--font); letter-spacing: -.02em; color: #fff; margin: 0 0 6px; }
.wc-next p { color: var(--on-wine-2); margin: 0; }
.wc-next .btn-row { justify-content: flex-end; }
@media (max-width: 720px) { .wc-next { grid-template-columns: 1fr; } .wc-next .btn-row { justify-content: flex-start; } }

/* account */
.wc-account .woocommerce-form-login, .wc-account .woocommerce-form-register, .wc-account .woocommerce-ResetPassword { max-width: 480px; padding: 28px; border-radius: var(--r); background: var(--cream); border: 0; margin: 0 0 20px; }
.wc-account .woocommerce-form-login .form-row:last-of-type { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wc-account .lost_password a { color: var(--wine); border-bottom: 1px solid currentColor; }
.wc-account .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.wc-account .u-columns .col-1, .wc-account .u-columns .col-2 { float: none; width: auto; }
.wc-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.wc-account .woocommerce > .woocommerce-notices-wrapper, .wc-account .woocommerce > .woocommerce-form-login, .wc-account .woocommerce > h2, .wc-account .woocommerce > .u-columns, .wc-account .woocommerce > form { grid-column: 1 / -1; }
.wc-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
.wc-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wc-account .woocommerce-MyAccount-navigation a { display: block; padding: 11px 16px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.wc-account .woocommerce-MyAccount-navigation .is-active a, .wc-account .woocommerce-MyAccount-navigation a:hover { background: var(--cream); color: var(--wine); }
.wc-account .woocommerce-MyAccount-content { float: none; width: auto; }
.wc-account .woocommerce-MyAccount-content a { color: var(--wine); }

/* block basket and checkout (if the store uses them) */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--font); color: var(--ink); }
.wc-block-components-totals-wrapper, .wc-block-components-sidebar { background: transparent; }

@media (max-width: 960px) {
  .wc-cart .woocommerce, .wc-checkout form.checkout, .wc-account .woocommerce { grid-template-columns: 1fr; }
  .wc-checkout form.checkout > #customer_details, .wc-checkout form.checkout > #order_review_heading, .wc-checkout form.checkout > #order_review { grid-column: 1; grid-row: auto; }
  .wc-checkout form.checkout > #order_review_heading { margin-top: 26px; }
  .wc-cart .cart_totals, .wc-checkout form.checkout > #order_review { position: static; }
}
@media (max-width: 720px) {
  .wc-content table.shop_table_responsive thead, .wc-content table.shop_table_responsive tbody th { display: none; }
  .wc-content table.shop_table_responsive tr { display: block; border-top: 1px solid var(--line); }
  .wc-content table.shop_table_responsive tr:first-child { border-top: 0; }
  .wc-content table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 0; padding: 8px 16px; text-align: right; }
  .wc-content table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--text); text-align: left; }
  .wc-content table.shop_table_responsive td.product-remove, .wc-content table.shop_table_responsive td.product-thumbnail { display: inline-flex; padding-top: 14px; }
  .wc-content table.shop_table_responsive td.product-remove::before, .wc-content table.shop_table_responsive td.product-thumbnail::before, .wc-content table.shop_table_responsive td.actions::before { content: none; }
  .wc-cart td.actions { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: left; padding: 16px !important; }
  .wc-cart td.actions .coupon { display: flex; }
  .wc-content table.shop_table_responsive, .wc-content table.shop_table_responsive tbody { display: block; width: 100%; }
  .wc-cart td.actions .coupon .input-text, .wc-cart #coupon_code { flex: 1 1 0; width: 0 !important; min-width: 0; }
  .wc-cart td.actions .coupon .button { flex: none; padding: 0 16px; }
  .wc-cart td.actions > .button { float: none; width: 100%; }
  .wc-checkout .form-row-first, .wc-checkout .form-row-last { width: 100%; float: none; }
  .wc-cart .cart_totals, .wc-checkout form.checkout > #order_review, .wc-checkout form.checkout > #order_review_heading { padding-left: 18px; padding-right: 18px; }
}

/* Stripe's hidden style probe is as wide as the screen and pushed to the right: keep it inside the payment box,
   so the checkout does not scroll sideways on phones (only its position and width change, not the styles Stripe reads) */
.wc-upe-form, .payment_box { position: relative; }
#wc-stripe-hidden-style-input { left: 0 !important; max-width: 100% !important; }
