/* Wiglabb Commerce: configurators, timeline, notes and bag count.
   Colours and fonts come from Elementor's Global Colors / Global Fonts (Site Settings). */
:root {
  --wl-black: var(--e-global-color-primary, #000);
  --wl-ivory: var(--e-global-color-secondary, #F1EFE7);
  --wl-white: var(--e-global-color-accent, #fff);
  --wl-muted: var(--e-global-color-wlmuted, rgba(0,0,0,.6));
  --wl-line: var(--e-global-color-wlline, rgba(0,0,0,.14));
  --wl-line-strong: var(--e-global-color-wlline2, rgba(0,0,0,.38));
  --wl-serif: var(--e-global-typography-primary-font-family, "Bodoni Moda"), Georgia, serif;
  --wl-sans: var(--e-global-typography-text-font-family, "Jost"), "Helvetica Neue", Arial, sans-serif;
  --wl-ease: cubic-bezier(.22,.61,.36,1);
}
.wl-cfg { font-family: var(--wl-sans); color: var(--wl-black); }
.wl-cfg fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wl-step { border-bottom: 1px solid var(--wl-line); }
.wl-step:first-of-type { border-top: 1px solid var(--wl-black); }
.wl-step-head { margin: 0 !important; font: inherit !important; }
/* Step heads are plain text rows: beat the theme's and the Elementor kit's global button styles. */
body .wl-cfg .wl-step-head button[type="button"], body .wl-cfg .wl-step-head button[type="button"]:hover, body .wl-cfg .wl-step-head button[type="button"]:focus { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 24px 0; cursor: pointer; background: transparent; color: var(--wl-black); border: 0; border-radius: 0; box-shadow: none; font-family: var(--wl-sans); font-size: 1rem; letter-spacing: normal; text-transform: none; }
body .wl-cfg .wl-step-head button[type="button"]:focus-visible { outline: 1px solid var(--wl-black); outline-offset: 4px; }
.wl-step-num { font-family: var(--wl-serif); font-style: italic; width: 28px; flex: none; }
.wl-step-name { font-family: var(--wl-serif); font-size: clamp(1.35rem, 1.15rem + .9vw, 2rem); line-height: 1.1; }
.wl-step-value { margin-left: auto; font-size: .82rem; color: var(--wl-muted); text-align: right; }
.wl-step-head button[aria-expanded="true"] .wl-step-value { opacity: 0; }
.wl-step-body { padding: 0 0 28px 46px; }
.wl-step-help { font-size: .9rem; color: var(--wl-muted); margin: 0 0 16px; }
.wl-options { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-option { position: relative; display: inline-flex; }
.wl-option--card { flex: 1 1 190px; }
.wl-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.wl-option-label { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; min-width: 54px; padding: 8px 16px; border: 1px solid var(--wl-line-strong); font-size: .86rem; line-height: 1.25; transition: background-color .3s var(--wl-ease), color .3s var(--wl-ease), border-color .3s; width: 100%; text-align: center; }
.wl-option--card .wl-option-label { align-items: flex-start; text-align: left; padding: 14px 16px; gap: 3px; }
.wl-option-label strong { font-weight: 500; }
.wl-option-label small { font-size: .74rem; opacity: .72; }
.wl-option:hover .wl-option-label { border-color: var(--wl-black); }
.wl-option input:checked + .wl-option-label { background: var(--wl-black); color: var(--wl-white); border-color: var(--wl-black); }
.wl-option input:focus-visible + .wl-option-label { outline: 1px solid var(--wl-black); outline-offset: 3px; }
.wl-option input:disabled + .wl-option-label { opacity: .32; text-decoration: line-through; }
.wl-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.wl-field label, .wl-legend, .wl-bundle-row label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.wl-cfg select { min-height: 48px; padding: 10px 40px 10px 14px; border: 1px solid var(--wl-line-strong); border-radius: 0; background: var(--wl-white); font: inherit; }
.wl-bundle-rows { display: flex; flex-direction: column; }
.wl-bundle-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--wl-line); }
.wl-bundle-row label { flex: 0 0 110px; }
.wl-bundle-row select { flex: 1; }
.wl-summary { margin-top: 36px; background: var(--wl-ivory); padding: clamp(22px, 3vw, 40px); }
.wl-summary-title { font-family: var(--wl-serif) !important; font-weight: 400 !important; font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem) !important; margin: 0 0 18px !important; }
.wl-summary-list { margin: 0; }
.wl-line { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--wl-line); font-size: .92rem; }
.wl-line dt { color: var(--wl-muted); font-weight: 400; }
.wl-line dd { margin: 0; text-align: right; }
.wl-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--wl-black); }
.wl-total-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.wl-sample { font-style: normal; border: 1px dashed currentColor; padding: 4px 7px; margin-left: 6px; font-size: .6rem; letter-spacing: .14em; }
.wl-total-value { font-family: var(--wl-serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.wl-btn, .wl-cfg button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 20px; padding: 0 2em; background: var(--wl-black); color: var(--wl-white) !important; border: 1px solid var(--wl-black); border-radius: 0; font-family: var(--wl-sans); font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: background-color .4s var(--wl-ease), color .4s var(--wl-ease); text-decoration: none; }
.wl-btn:hover, .wl-cfg button[type="submit"]:hover { background: var(--wl-white); color: var(--wl-black) !important; }
.wl-note { font-size: .8rem; color: var(--wl-muted); margin: 14px 0 0; line-height: 1.6; }
@media (max-width: 1024px) { .wl-step-body { padding-left: 0; } }

/* Processing note on product pages */
.wl-processing-note { margin: 18px 0 0; padding: 16px 18px; background: var(--wl-ivory); font-size: .86rem; line-height: 1.55; }
.wl-processing-note p { margin: 0; }
.wl-processing-note strong { font-weight: 500; }

/* Bag and checkout notes */
.wl-cart-notes { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.wl-cart-note { margin: 0; padding: 14px 18px; border: 1px solid var(--wl-line); font-size: .86rem; line-height: 1.55; }
.wl-cart-note strong { font-weight: 500; }

/* Bag link in the header */
.wl-bag-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: inherit; }
.wl-bag-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.wl-bag-count { position: absolute; top: 6px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--wl-black); color: var(--wl-white); font: 500 .6rem/17px var(--wl-sans); text-align: center; }
.wl-bag-count[data-count="0"] { display: none; }

/* Order timeline */
.wl-timeline-wrap { margin: 0 0 32px; padding: 24px; border: 1px solid var(--wl-line); }
.wl-timeline { display: flex; list-style: none; margin: 0; padding: 0; }
.wl-timeline-step { flex: 1 1 0; position: relative; padding: 28px 10px 0 0; min-width: 0; }
.wl-timeline-step::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--wl-line-strong); }
.wl-timeline-step.is-complete::before { background: var(--wl-black); }
.wl-timeline-step:last-child::before { display: none; }
.wl-timeline-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--wl-black); background: var(--wl-white); }
.wl-timeline-step.is-complete .wl-timeline-dot, .wl-timeline-step.is-current .wl-timeline-dot { background: var(--wl-black); }
.wl-timeline-step.is-current .wl-timeline-dot { box-shadow: 0 0 0 4px var(--wl-white), 0 0 0 5px var(--wl-black); }
.wl-timeline-title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; line-height: 1.4; display: block; }
.wl-timeline-step:not(.is-complete):not(.is-current) .wl-timeline-title { color: var(--wl-muted); }
.wl-timeline-est { margin: 18px 0 0; font-size: .86rem; }
@media (max-width: 767px) {
  .wl-timeline { flex-direction: column; }
  .wl-timeline-step { padding: 0 0 22px 30px; }
  .wl-timeline-step::before { top: 6px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
}

/* Archive intro (shop and category headers) */
.wl-archive-intro { font-family: var(--wl-sans); font-size: var(--e-global-typography-wllede-font-size, 1.15rem); line-height: 1.6; color: var(--wl-muted); }
.wl-archive-intro p { margin: 0; }

/* Product specification list */
.wl-spec-list { margin: 0; border-top: 1px solid var(--wl-black); }
.wl-spec-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--wl-line); font-size: .92rem; }
.wl-spec-list dt { color: var(--wl-muted); font-weight: 400; }
.wl-spec-list dd { margin: 0; text-align: right; }

/* Product loops from shortcodes (complete the look, you may also like): quiet cards like the Xpro grid */
.wl-loop ul.products, .elementor-widget-shortcode .related ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px !important; margin: 0 !important; padding: 0; }
.wl-loop ul.products::before, .wl-loop ul.products::after, .elementor-widget-shortcode .related ul.products::before, .elementor-widget-shortcode .related ul.products::after { display: none !important; }
.wl-loop ul.products li.product, .elementor-widget-shortcode .related ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.wl-loop ul.products li.product img, .elementor-widget-shortcode .related ul.products li.product img { width: 100%; height: 420px; object-fit: cover; margin: 0 0 14px !important; }
.wl-loop ul.products li.product .button, .elementor-widget-shortcode .related ul.products li.product .button, .wl-loop .added_to_cart, .elementor-widget-shortcode .related .added_to_cart { display: none !important; }
.elementor-widget-shortcode .related > h2 { display: none; }
@media (max-width: 1024px) { .wl-loop ul.products, .elementor-widget-shortcode .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px !important; } .wl-loop ul.products li.product img, .elementor-widget-shortcode .related ul.products li.product img { height: 320px; } }
@media (max-width: 767px) { .wl-loop ul.products li.product img, .elementor-widget-shortcode .related ul.products li.product img { height: 230px; } }

/* Reviews */
.wl-reviews #reviews #comments > h2, .wl-reviews .woocommerce-Reviews-title { font-family: var(--wl-serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); margin: 0 0 16px; }
.wl-reviews .woocommerce-noreviews, .wl-reviews .woocommerce-verification-required { color: var(--wl-muted); margin: 0 0 12px; }
.wl-reviews ol.commentlist { list-style: none; margin: 0; padding: 0; }
.wl-reviews ol.commentlist li { border-top: 1px solid var(--wl-line); padding: 20px 0; }
.wl-reviews .star-rating, .wl-reviews p.stars a { color: var(--wl-black); }
.wl-reviews #review_form_wrapper { margin-top: 24px; }

/* Shop sort and count bar */
.wl-shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.wl-result-count { margin: 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--wl-muted); }
.wl-ordering { display: flex; align-items: center; gap: 12px; margin: 0; }
.wl-ordering label { white-space: nowrap; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.wl-ordering select { min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid var(--wl-line-strong); border-radius: 0; background: var(--wl-white); font: inherit; font-family: var(--wl-sans); }

/* My Wiglabb: latest order */
.wl-account-latest { margin: 28px 0 8px; }
.wl-account-latest h2 { font-family: var(--wl-serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); margin: 0 0 8px; }
.wl-account-latest p { margin: 0 0 16px; color: var(--wl-muted); }

/* Checkout: numbered steps */
.woocommerce-checkout form.checkout { counter-reset: wlstep; }
.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3, .woocommerce-checkout #order_review_heading { counter-increment: wlstep; }
.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3::before, .woocommerce-checkout #order_review_heading::before { content: "0" counter(wlstep) "  "; font-style: italic; white-space: pre; }
