/*
Theme Name:   Tough Outlet Shop (Kadence Child)
Theme URI:    https://shop.toughoutlet.com
Description:  Child theme for shop.toughoutlet.com. Matches the current BigCommerce storefront (Poppins + Istok Web, Tough Outlet blue).
Author:       Tough Outlet
Template:     kadence
Version:      0.2.0
Text Domain:  toughoutlet-shop
*/

/* Values measured from shop.toughoutlet.com product pages */
:root {
  --to-blue: #007bff;
  --to-blue-hover: #0062cc;
  --to-text: #6f6f6f;        /* body text */
  --to-text-dark: #4d4d4d;   /* intro + price */
  --to-heading: #393939;     /* page title */
  --to-nav: #343a40;         /* Account / Cart */
  --to-line: #dadada;        /* title rule, inputs */
  --to-line-light: #e4e4e4;  /* option group rule */
  --to-option-border: #999999;
  --to-black: #000000;
  --to-font-heading: "Poppins", "Istok Web", Helvetica, Arial, sans-serif;
  --to-font-body: "Istok Web", Helvetica, Arial, sans-serif;
  --to-max: 1280px;
  --to-gutter: 28.8px;
}

/* ---------- Base ---------- */
body {
  background: #fff;
  color: var(--to-text);
  font-family: var(--to-font-body);
  font-size: 14px;
  line-height: 20px;
}
a { color: var(--to-blue); text-decoration: none; }
a:hover, a:focus { color: var(--to-blue-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--to-font-heading); }

.to-container {
  max-width: var(--to-max);
  margin: 0 auto;
  padding-left: var(--to-gutter);
  padding-right: var(--to-gutter);
}

/* ---------- Header ---------- */
.to-header { background: #fff; }
.to-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.to-header-left { display: flex; align-items: center; gap: 6px; }
.to-logo img { display: block; width: 70px; height: auto; }
.to-phone { font-family: var(--to-font-heading); color: #0062cc; font-weight: 600; font-size: 15px; } /* same font, size and blue as the main site header (readable blue, WCAG AA) */
.to-phone:hover, .to-phone:focus { color: #004a99; }
.to-header-right a { color: var(--to-nav); font-size: 14px; padding: 8px; }
.to-header-right a:hover { color: var(--to-blue); }

/* ---------- Footer ---------- */
.to-footer { padding: 46px 0; color: var(--to-text); font-size: 14px; }

/* ---------- Single product layout ---------- */
.single-product .site-main,
.single-product .content-container,
.single-product .content-wrap,
.single-product .entry-content-wrap { padding: 0; background: transparent; box-shadow: none; }
.single-product .content-container.site-container { max-width: var(--to-max); padding-left: var(--to-gutter); padding-right: var(--to-gutter); }
.single-product .product-title, .single-product .kadence-breadcrumbs,
.single-product .woocommerce-breadcrumb, .single-product .entry-hero { display: none !important; }

.woocommerce div.product.to-product, .to-product { padding: 22px 0 40px !important; margin: 0; }

.to-product-title {
  font-family: var(--to-font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 32.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--to-heading);
  margin: 0;
  padding: 0 20px 24.4px 0;
  border-bottom: 1px solid var(--to-line);
}

.to-product-intro {
  padding: 20px 0 6px;
  border-bottom: 1px solid var(--to-line);
  color: var(--to-text-dark);
  font-size: 14px;
  line-height: 20px;
}
.to-product-intro p { margin: 0 0 14px; }
.to-product-intro a { color: #007bff; text-decoration: none; }
.to-product-intro a:hover { color: #0062cc; text-decoration: underline; }
.to-product-intro img { max-width: 100%; height: auto; }

.to-product-config { padding-top: 32px; }

body form.cart.to-config-form:has(#yith-wapo-container .yith-wapo-block),
.woocommerce div.product form.cart.to-config-form,
.to-config-form {
  display: grid !important;
  grid-template-columns: 269px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.to-buy-col { grid-column: 1; grid-row: 1; }
/* The buy column must stretch to the full height of the options so its sticky box has room to travel. */
body .to-config-form > .to-buy-col { align-self: stretch !important; height: auto; }
.to-options-col { grid-column: 2; grid-row: 1; min-width: 0; }
.to-buy-sticky { position: sticky; top: 24px; }
.admin-bar .to-buy-sticky { top: 56px; }

/* Price */
.to-buy-col .to-price {
  font-family: var(--to-font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 43.2px;
  color: var(--to-text-dark);
  margin: 0 0 17px;
}
.to-buy-col .to-price .amount, .to-buy-col .to-price bdi { color: inherit; font: inherit; }
.to-buy-col .to-price del { font-size: 20px; opacity: .6; }
.to-buy-col .to-price ins { text-decoration: none; }

/* Quantity */
.to-qty-label {
  display: block;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--to-text);
  margin: 0 0 5px;
}
.to-buy-col .quantity { display: block; margin: 0 0 14px; }
.to-buy-col .quantity .minus, .to-buy-col .quantity .plus { display: none !important; }
.to-buy-col .quantity input.qty {
  width: 100%;
  max-width: none;
  height: 42px;
  padding: 10px;
  text-align: left;
  font-family: var(--to-font-body);
  font-size: 14px;
  color: var(--to-text);
  background: #fff;
  border: 1px solid var(--to-line);
  border-radius: 3px;
  box-shadow: none;
}

/* Buttons: Add to Cart (blue) and Quick Quote (black) */
.to-buy-col .single_add_to_cart_button,
.to-buy-col .yith-ywraq-add-to-quote .add-request-quote-button,
.to-buy-col .add-request-quote-button {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0 0 14px;
  padding: 10px 20px;
  font-family: var(--to-font-heading);
  font-weight: 600;
  text-align: center;
  border-radius: 3px;
  box-shadow: none;
  text-transform: none;
  transition: background-color .4s cubic-bezier(.25,.46,.45,.94), border-color .4s cubic-bezier(.25,.46,.45,.94);
}
.to-buy-col .single_add_to_cart_button {
  font-size: 14px;
  letter-spacing: 0.14px;
  color: #fff;
  background: var(--to-blue);
  border: 1px solid var(--to-blue);
}
.to-buy-col .single_add_to_cart_button:hover { background: var(--to-blue-hover); border-color: var(--to-blue-hover); color: #fff; }
.to-buy-col .add-request-quote-button {
  font-size: 18px;
  letter-spacing: 0.18px;
  color: #fff !important;
  background: var(--to-black) !important;
  border: 1px solid #393939 !important;
  line-height: 28px;
}
.to-buy-col .add-request-quote-button:hover { background: #393939 !important; }
.to-buy-col .yith-ywraq-add-to-quote { margin: 0; }
.to-buy-col .yith_ywraq_add_item_response_message,
.to-buy-col .yith_ywraq_add_item_browse_message { font-size: 14px; margin: 0 0 10px; }

/* ---------- YITH options grid (styled like BigCommerce "rectangle" options) ---------- */
#yith-wapo-container { margin: 0; }
#yith-wapo-container .yith-wapo-block { margin: 0 0 48px; padding: 0; background: none; }
#yith-wapo-container .yith-wapo-block > .yith-wapo-block-title,
#yith-wapo-container .yith-wapo-block-title { display: none; }

/* 4 equal columns, 48px gap, groups flow left-to-right like the live site.
   One grid for the whole options area: each YITH block (the computer's own options, then the shared
   chargers/Office/accessories/warranty block) is "display: contents", so a block that ends part-way
   through a row no longer leaves empty slots before the next block starts. */
#yith-wapo-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin: 0 0 48px;
}
#yith-wapo-container .yith-wapo-block { display: contents !important; }
#yith-wapo-container .yith-wapo-addon {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  width: auto !important;
  float: none !important;
}

/* Group title */
#yith-wapo-container .yith-wapo-addon .addon-header,
#yith-wapo-container .yith-wapo-addon .wapo-addon-title { margin: 0; padding: 0; }
#yith-wapo-container .yith-wapo-addon .wapo-addon-title,
#yith-wapo-container .yith-wapo-addon .addon-header h3,
#yith-wapo-container .yith-wapo-addon .addon-header h4 {
  display: block;
  font-family: var(--to-font-heading) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: normal;
  text-transform: none;
  color: var(--to-text) !important;
  margin: 0 0 7.5px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid var(--to-line-light);
}
#yith-wapo-container .yith-wapo-addon .addon-header { border: 0; display: block !important; width: 100%; }
#yith-wapo-container .yith-wapo-addon .addon-header .wapo-addon-title { width: 100%; }
#yith-wapo-container .wapo-addon-title .required,
#yith-wapo-container .addon-header .required { display: none; }

/* Options: one per line, full column width */
#yith-wapo-container .yith-wapo-addon .options,
#yith-wapo-container .yith-wapo-addon .options.grid {
  display: block !important;
  margin: 0;
}
#yith-wapo-container .yith-wapo-addon .yith-wapo-option {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 8.4px 0 !important;
  padding: 0 !important;
  float: none !important;
}
#yith-wapo-container .yith-wapo-option input[type="checkbox"],
#yith-wapo-container .yith-wapo-option input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
#yith-wapo-container .yith-wapo-option .label_container,
#yith-wapo-container .yith-wapo-option .label,
#yith-wapo-container .yith-wapo-option .label-container-display {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0;
}
/* The whole box is the clickable element (YITH listens on div.label) */
#yith-wapo-container .yith-wapo-option div.label.yith-wapo-addon-label {
  display: block !important;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--to-option-border) !important;
  border-radius: 14px !important;
  padding: 8px 16px !important;
  text-align: center;
  color: var(--to-text);
  font-family: var(--to-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  background: #fff !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: border-color .15s ease, color .15s ease;
}
#yith-wapo-container .yith-wapo-option div.label.yith-wapo-addon-label:hover { border-color: var(--to-blue) !important; }
#yith-wapo-container .yith-wapo-option.selected div.label.yith-wapo-addon-label {
  border-color: var(--to-blue) !important;
  color: var(--to-blue);
  font-family: var(--to-font-heading);
  font-weight: 600;
}
#yith-wapo-container .yith-wapo-option div.label * { pointer-events: none; }
#yith-wapo-container .yith-wapo-option .inside,
#yith-wapo-container .yith-wapo-option .outside { display: block; padding: 0; margin: 0; text-align: center; }
#yith-wapo-container .yith-wapo-option .label_price,
#yith-wapo-container .yith-wapo-option .label_price label {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#yith-wapo-container .yith-wapo-option .option-price,
#yith-wapo-container .yith-wapo-option .option-price .amount,
#yith-wapo-container .yith-wapo-option .option-price span {
  display: inline;
  font: inherit !important;
  color: inherit !important;
  margin: 0;
}
#yith-wapo-container .yith-wapo-option .option-price::before { content: " "; }
#yith-wapo-container .yith-wapo-option .option-price .brackets { display: none !important; }
#yith-wapo-container .yith-wapo-block-title, #yith-wapo-container > h3 { display: none !important; }
#yith-wapo-container .yith-wapo-option .image,
#yith-wapo-container .yith-wapo-option .image-container,
#yith-wapo-container .yith-wapo-option .yith-wapo-img-label,
#yith-wapo-container .yith-wapo-option .checkmark,
#yith-wapo-container .yith-wapo-option .label_container::after,
#yith-wapo-container .yith-wapo-option .label_container::before,
#yith-wapo-container .yith-wapo-option .label-container-display::after,
#yith-wapo-container .yith-wapo-option .tooltip,
#yith-wapo-container .yith-wapo-option .description { display: none !important; }

/* YITH running totals table: hidden (the buy-box price updates instead) */
#wapo-total-price-table { display: none !important; }

/* ---------- Responsive (breakpoints mirror shop.toughoutlet.com) ---------- */
@media (max-width: 1100px) {
  #yith-wapo-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
@media (max-width: 800px) {
  body form.cart.to-config-form:has(#yith-wapo-container .yith-wapo-block),
  .woocommerce div.product form.cart.to-config-form,
  .to-config-form { grid-template-columns: minmax(120px, 22%) minmax(0, 1fr) !important; column-gap: 28px; }
  #yith-wapo-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
/* Phones: buy box (price, quantity, buttons) first, options underneath in 2 columns */
@media (max-width: 550px) {
  :root { --to-gutter: 9px; }
  body form.cart.to-config-form:has(#yith-wapo-container .yith-wapo-block),
  .woocommerce div.product form.cart.to-config-form,
  .to-config-form { grid-template-columns: minmax(0, 1fr) !important; row-gap: 80px; }
  .to-buy-col { grid-column: 1; grid-row: 1; }
  .to-options-col { grid-column: 1; grid-row: 2; }
  .to-buy-sticky { position: static; }
  .to-product-title, .to-page-title { padding: 0 0 7px; }
  .woocommerce div.product.to-product, .to-product { padding-top: 28px !important; }
  .to-header-inner { padding-left: 28.8px; padding-right: 28.8px; }
  .to-product-config { padding-top: 40px; }
  body.single-product div.product .to-buy-col button.single_add_to_cart_button.button.alt,
  body.single-product div.product .to-buy-col a.add-request-quote-button,
  body.single-product div.product .to-buy-col .add-request-quote-button.button {
    min-height: 43px !important; font-size: 14px !important; line-height: normal !important; letter-spacing: 0.14px !important;
  }
}

/* ---------- Specificity overrides (Kadence / WooCommerce / YITH defaults) ---------- */
body.single-product div.product .to-buy-col p.price.to-price,
body.single-product div.product .to-buy-col p.price.to-price .amount,
body.single-product div.product .to-buy-col p.price.to-price bdi {
  font-family: var(--to-font-heading) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 43.2px !important;
  color: var(--to-text-dark) !important;
}
body.single-product div.product .to-buy-col p.price.to-price { margin: 0 0 17px !important; }

body.single-product div.product .to-buy-col .quantity { width: 100% !important; display: block !important; margin: 0 0 14px !important; }
body.single-product div.product .to-buy-col .quantity input.qty {
  width: 100% !important;
  height: 42px !important;
  text-align: left !important;
  padding: 10px !important;
  border: 1px solid var(--to-line) !important;
  border-radius: 3px !important;
  font-size: 14px !important;
}

body.single-product div.product .to-buy-col button.single_add_to_cart_button.button.alt {
  display: block !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 0 14px !important;
  padding: 10px 20px !important;
  background: var(--to-blue) !important;
  border: 1px solid var(--to-blue) !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-family: var(--to-font-heading) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18px !important;
  line-height: 28px !important;
  box-shadow: none !important;
}
body.single-product div.product .to-buy-col button.single_add_to_cart_button.button.alt:hover {
  background: var(--to-blue-hover) !important; border-color: var(--to-blue-hover) !important;
}

body.single-product div.product .to-buy-col .yith-ywraq-add-to-quote,
body.single-product div.product .to-buy-col .yith-ywraq-add-button { display: block !important; width: 100% !important; margin: 0 !important; }
body.single-product div.product .to-buy-col a.add-request-quote-button,
body.single-product div.product .to-buy-col .add-request-quote-button.button {
  display: block !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 0 14px !important;
  padding: 10px 20px !important;
  background: #000 !important;
  border: 1px solid #393939 !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-family: var(--to-font-heading) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18px !important;
  line-height: 28px !important;
  text-align: center !important;
  box-shadow: none !important;
}
body.single-product div.product .to-buy-col a.add-request-quote-button:hover { background: #393939 !important; }

/* Option text wraps at spaces like the live site, never mid-price */
#yith-wapo-container .yith-wapo-option div.label,
#yith-wapo-container .yith-wapo-option div.label * {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}
#yith-wapo-container .yith-wapo-option .option-price { white-space: nowrap; }

/* =====================================================================
   Cart page (matches shop.toughoutlet.com/cart.php)
   ===================================================================== */
.woocommerce-cart .entry-hero, .woocommerce-cart .entry-header, .woocommerce-cart .page-title { display: none !important; }
.woocommerce-cart .content-container.site-container { max-width: var(--to-max); padding-left: var(--to-gutter); padding-right: var(--to-gutter); }
.woocommerce-cart .site-main, .woocommerce-cart .content-wrap, .woocommerce-cart .entry-content-wrap,
.woocommerce-cart article.entry { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.woocommerce-cart .entry-content { margin: 0; }
.woocommerce-cart .woocommerce { padding: 64px 0 40px; }

.to-page-title {
  font-family: var(--to-font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 32.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--to-heading);
  margin: 0 0 20px;
  padding: 0 20px 24.4px 0;
  border-bottom: 1px solid var(--to-line);
}

.to-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  column-gap: 40px;
  align-items: start;
}

/* Item card */
.to-cart-item {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0 0 40px;
  color: var(--to-text);
  font-size: 14px;
  line-height: 20px;
}
.to-cart-item-top {
  position: relative;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
}
.to-cart-item-image {
  width: 100%;
  padding-bottom: 50%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
}
/* Cart item without a photo: grey tile with icon + part number, filling the image area */
.to-cart-item-image--ph { position: relative; }
.to-cart-item-image--ph .to-acc-ph,
.to-cart-item-image--ph .to-acc-ph { position: absolute; inset: 0; width: auto; aspect-ratio: auto; background: #f3f4f6; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.to-cart-item-image--ph .to-acc-ph svg { width: 56px; height: 56px; }
.to-cart-item-image--ph .to-acc-ph span { font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; color: #6f6f6f; letter-spacing: .3px; text-align: center; padding: 0 8px; word-break: break-all; }
.woocommerce .to-cart-item a.remove.to-cart-remove,
.to-cart-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccc !important;
  color: #6f6f6f !important;
  border-radius: 0 !important;
  font-size: 24px !important;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}
.woocommerce .to-cart-item a.remove.to-cart-remove:hover { background: #b5b5b5 !important; color: #393939 !important; }

.to-cart-qty {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
}
.to-qty-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ccc;
  color: #6f6f6f;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
  box-shadow: none;
}
.to-qty-btn:hover { background: #b5b5b5; color: #393939; }
.to-cart-qty input.to-qty-val {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #4d4d4d;
  color: #ccc;
  font-family: var(--to-font-body);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  -moz-appearance: textfield;
  box-shadow: none;
}
.to-cart-qty input.to-qty-val::-webkit-outer-spin-button,
.to-cart-qty input.to-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.to-cart-item-content { min-width: 0; }
.to-cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 6px;
}
.to-cart-item-title {
  font-family: var(--to-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--to-heading) !important;
}
.to-cart-item-title:hover { color: var(--to-blue) !important; }
.to-cart-item-price, .to-cart-item-price .amount {
  font-family: var(--to-font-body);
  font-size: 20px;
  line-height: 20px;
  color: var(--to-heading);
  white-space: nowrap;
}

/* Selected options: "Label:  value", label underlined, one per line */
.to-cart-item-options dl.variation { margin: 0 0 10px; padding: 0; border: 0; font-size: 13px; line-height: 20px; }
.to-cart-item-options dl.variation dt {
  float: left;
  clear: left;
  margin: 0 10px 0 0;
  padding: 0;
  font-weight: 400;
  text-decoration: underline;
  color: var(--to-text);
}
.to-cart-item-options dl.variation dd { margin: 0; padding: 0; color: var(--to-text); }
.to-cart-item-options dl.variation dd p,
.to-cart-item-options dl.variation dd div { margin: 0 !important; display: inline; }
.to-cart-item-options dl.variation::after { content: ""; display: block; clear: both; }

/* "Change Options" (YITH edit link) */
.to-cart-item .yith-wapo-edit-addons-link { margin: 0; }
.to-cart-item .yith-wapo-edit-addons-link a,
.to-cart-item .yith-wapo-edit-addons-link small {
  font-size: 14px;
  color: var(--to-text);
  text-decoration: underline;
  cursor: pointer;
}
.to-cart-item .yith-wapo-edit-addons-link a:hover small { color: var(--to-blue); }

/* Hidden "Update cart" (quantity buttons submit it automatically) */
.to-cart-actions { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sidebar */
.to-cart-sidebar { width: 305px; }
.woocommerce .cart-collaterals.to-cart-sidebar .cart_totals { width: 100%; float: none; }
.to-sidebar-title {
  font-family: var(--to-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--to-heading);
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--to-line);
}
.to-totals { color: var(--to-text); font-size: 14px; line-height: 20px; }
.to-total-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 20px;
}
.to-total-value, .to-total-value .amount { color: var(--to-text); text-align: right; }
.to-ship-later { font-weight: 400; color: #6f6f6f; font-size: 13px; }
.to-link, .to-shipping-calc .shipping-calculator-button {
  background: none !important;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  color: var(--to-text-dark) !important;
  text-decoration: underline !important;
  cursor: pointer;
  box-shadow: none !important;
}
.to-link:hover, .to-shipping-calc .shipping-calculator-button:hover { color: var(--to-blue) !important; }
.to-shipping-row { margin-bottom: 0; }
.to-shipping-calc { margin: -20px 0 20px; text-align: right; }
/* Once shipping is calculated the row shows the price, so "Change" goes on its own line below it. */
.cart_totals.calculated_shipping .to-shipping-calc { margin: 2px 0 18px !important; }
div.cart_totals .to-shipping-calc.is-uncalc { margin: -24px 0 24px !important; } /* no ZIP yet: "Calculate" sits on the Shipping line */
div.cart_totals .to-shipping-calc.is-uncalc .shipping-calculator-button { font-size: 14px; line-height: 20px; margin-top: 0; }
.cart_totals.calculated_shipping .to-shipping-calc .shipping-calculator-button { font-size: 12px; margin-top: 0; }
.to-shipping-calc .shipping-calculator-button::after { display: none; }
.to-shipping-calc .shipping-calculator-form { text-align: left; margin-top: 12px; }
.to-coupon-form { display: flex; gap: 8px; margin: -8px 0 20px; }
.to-coupon-form[hidden] { display: none; }
.to-coupon-form input { flex: 1; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid var(--to-line); border-radius: 3px; font-size: 14px; }
.to-coupon-form .to-coupon-apply { height: 40px; padding: 0 16px; background: var(--to-text-dark); color: #fff; border: 0; border-radius: 3px; font-family: var(--to-font-heading); font-weight: 600; }

.to-grand-total { margin: 0 0 30px; }
.to-grand-label { display: block; color: var(--to-text); font-size: 14px; line-height: 20px; }
.to-grand-value, .to-grand-value .amount, .to-grand-value strong {
  display: block;
  margin-top: 6px;
  font-family: var(--to-font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  color: #000;
}
.to-grand-value small { display: block; font-size: 12px; font-weight: 400; }

/* Checkout (blue) + Quick Quote (black) */
.woocommerce .wc-proceed-to-checkout { padding: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button.to-checkout-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 20px;
  background: var(--to-blue) !important;
  border: 1px solid var(--to-blue) !important;
  border-radius: 3px;
  color: #fff !important;
  font-family: var(--to-font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16px;
  line-height: normal;
  text-align: center;
  box-shadow: none;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button.to-checkout-btn:hover { background: var(--to-blue-hover) !important; border-color: var(--to-blue-hover) !important; }
.woocommerce .wc-proceed-to-checkout #ywraq_cart_quote,
.woocommerce .wc-proceed-to-checkout .quote-button {
  display: block;
  width: 100%;
  margin: 14px 0 0 !important;
  padding: 10px 20px !important;
  background: #000 !important;
  border: 1px solid #393939 !important;
  border-radius: 3px !important;
  color: #fff !important;
  font-family: var(--to-font-heading) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14px;
  line-height: normal !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}
.woocommerce .wc-proceed-to-checkout #ywraq_cart_quote:hover { background: #393939 !important; }

.to-card-icons { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; }
.to-card-icons img { width: 48px; height: 30px; object-fit: contain; }

/* Empty cart */
.woocommerce-cart .cart-empty { font-size: 16px; color: var(--to-text); }
.woocommerce-cart .return-to-shop .button { background: var(--to-blue); color: #fff; border-radius: 3px; font-family: var(--to-font-heading); font-weight: 600; }

/* Cart responsive (mirrors shop.toughoutlet.com/cart.php) */
@media (max-width: 1100px) {
  .to-cart-item { grid-template-columns: 260px minmax(0, 1fr); }
}
/* Tablet / phone: the items first, then Order Totals and Checkout; totals rows stack label over value */
@media (max-width: 800px) {
  .to-cart-layout { grid-template-columns: minmax(0, 1fr); row-gap: 50px; }
  .to-cart-layout .to-cart-items { grid-row: 1; }
  .to-cart-layout .to-cart-sidebar { grid-row: 2; }
  .to-total-row { display: block; }
  .to-total-label, .to-total-value { display: block; text-align: left; }
  .to-coupon-row .to-coupon-toggle { display: inline; }
  .to-shipping-calc { margin: -20px 0 20px; text-align: left; }
  div.cart_totals .to-shipping-calc.is-uncalc { margin: 4px 0 20px !important; } /* rows stack here, so "Calculate" goes under "Shipping" */
}
/* Phone: image box full width on top, details underneath, "Change Options" and price share the last line */
@media (max-width: 550px) {
  .to-cart-item { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .to-cart-item-top { padding: 10px; }
  .to-cart-item-content {
    padding: 0 0 0 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 4px;
  }
  .to-cart-item-head { display: contents; }
  .to-cart-item-title { grid-column: 1 / -1; grid-row: 1; margin: 0; }
  .to-cart-item-options { grid-column: 1 / -1; grid-row: 2; }
  .to-cart-item .yith-wapo-edit-addons-link { grid-column: 1; grid-row: 3; }
  .to-cart-item-price { grid-column: 2; grid-row: 3; text-align: left; }
}

/* Kadence cart wrapper overrides */
.woocommerce-cart .cart-summary { display: none !important; }
.kadence-woo-cart-form-wrap { display: block !important; }
.kadence-woo-cart-form-wrap .to-cart-layout .woocommerce-cart-form { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
.kadence-woo-cart-form-wrap .to-cart-layout .cart-collaterals.to-cart-sidebar { width: 305px !important; float: none !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 900px) {
  .kadence-woo-cart-form-wrap .to-cart-layout .cart-collaterals.to-cart-sidebar { width: 100% !important; }
}

/* Phones: buy-box buttons are 43px tall / 14px text, as on shop.toughoutlet.com */
@media (max-width: 550px) {
  body.single-product div.product .to-buy-col button.single_add_to_cart_button.button.alt,
  body.single-product div.product .to-buy-col a.add-request-quote-button,
  body.single-product div.product .to-buy-col .add-request-quote-button.button {
    min-height: 43px !important;
    font-size: 14px !important;
    line-height: 21px !important;
    letter-spacing: 0.14px !important;
  }
}

/* Phones: cart page title spacing as on shop.toughoutlet.com */
@media (max-width: 550px) {
  .woocommerce-cart .woocommerce { padding-top: 28px; }
  .to-page-title { padding: 0 0 7px; }
}

/* Cart options: one row each; a value that doesn't fit beside its label drops to its own line (as on the live cart) */
.to-item-data { margin: 0 0 10px; font-size: 13px; line-height: 20px; color: var(--to-text); }
.to-item-data-row { display: block; }
.to-item-data-label { text-decoration: underline; margin-right: 10px; }
.to-item-data-value { display: inline-block; vertical-align: top; max-width: 100%; }

/* =====================================================================
   Quick Quote popup (values measured from the B2B Ninja window on shop.toughoutlet.com)
   ===================================================================== */
:root {
  --qm-font: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --qm-panel: #ebeff2;
  --qm-divider: rgba(0, 0, 0, .12);
  --qm-text: rgba(0, 0, 0, .87);
  --qm-outline: rgba(0, 0, 0, .23);
}

/* YITH's inline "added to list / browse the list" messages are replaced by the popup */
.to-buy-col .yith_ywraq_add_item_response_message,
.to-buy-col .yith_ywraq_add_item_browse_message,
.to-buy-col .yith_ywraq_add_item_product_message { display: none !important; }
.to-buy-col .yith-ywraq-add-button.hide { display: block !important; }

html.to-qm-open, html.to-qm-open body { overflow: hidden; }
.to-qm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 44px;
  overflow-y: auto;
}
.to-qm-overlay[hidden] { display: none; }
.to-qm-shell {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--qm-font);
  color: var(--qm-text);
}
.to-qm-tabs { display: flex; gap: 16px; padding: 16px 16px 0; }
.to-qm-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 156px;
  padding: 6px 16px;
  border: 2px solid #9e9e9e;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  font-family: var(--qm-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--qm-text) !important;
  text-decoration: none !important;
  box-sizing: border-box;
}
.to-qm-tab.is-active { background: #000; border-color: #000; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff !important; }
.to-qm-tab:not(.is-active):hover { background: #f5f5f5; }
.to-qm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, .54);
  cursor: pointer;
  line-height: 0;
}
.to-qm-close:hover { color: rgba(0, 0, 0, .87); }
.to-qm-frame { display: block; width: 100%; height: 400px; border: 0; }

/* ---- Inside the iframe (/request-quote/?to_modal=1) ---- */
body.to-qm-page { margin: 0; padding: 0 !important; background: #fff; font-family: var(--qm-font); color: var(--qm-text); }
body.to-qm-page .to-qm-overlay { display: none !important; }
.to-qm-head {
  background: #000;
  color: #fff;
  padding: 20px 16px 24px;
  font-family: var(--qm-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}
.to-qm-body { display: grid; grid-template-columns: 416px minmax(0, 1fr); }
.to-qm-contact { background: var(--qm-panel); padding: 20px 16px 16px; border-radius: 0 0 0 8px; }
.to-qm-contact h2 {
  margin: 0 0 11px;
  font-family: var(--qm-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--qm-text);
}

/* YITH list hidden here (the right column shows the items); keep its form + messages */
.to-qm-contact #yith-ywraq-form,
.to-qm-contact .yith-ywraq-before-table,
.to-qm-contact .yith-ywraq-mail-form-wrapper > h3,
.to-qm-contact .ywraq-wrapper > h2,
.to-qm-contact .ywraq-wrapper > h3,
.to-qm-contact .return-to-shop { display: none !important; }
.to-qm-contact .ywraq-wrapper, .to-qm-contact .yith-ywraq-mail-form-wrapper, .to-qm-contact .ywraq-form-table-wrapper { display: block !important; width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.to-qm-contact #yith-ywraq-default-form .form-row { margin: 0 0 16px !important; padding: 0 !important; width: 100% !important; float: none !important; }
.to-qm-contact #yith-ywraq-default-form label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.to-qm-contact #yith-ywraq-default-form input[type="text"],
.to-qm-contact #yith-ywraq-default-form input[type="email"],
.to-qm-contact #yith-ywraq-default-form textarea {
  width: 100% !important;
  height: 40px;
  padding: 10.5px 14px !important;
  border: 1px solid var(--qm-outline) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-family: var(--qm-font);
  font-size: 16px;
  line-height: 19px;
  color: var(--qm-text);
  box-shadow: none !important;
  box-sizing: border-box;
}
.to-qm-contact #yith-ywraq-default-form input:hover, .to-qm-contact #yith-ywraq-default-form textarea:hover { border-color: rgba(0,0,0,.87) !important; }
.to-qm-contact #yith-ywraq-default-form input:focus, .to-qm-contact #yith-ywraq-default-form textarea:focus { border-color: var(--to-blue) !important; outline: 1px solid var(--to-blue); }
.to-qm-contact #yith-ywraq-default-form textarea { height: 110px; resize: vertical; }
.to-qm-contact #yith-ywraq-default-form .form-row:has(textarea) {
  margin: 8px -16px 0 !important;
  padding: 18px 16px 0 !important;
  width: auto !important;
  border-top: 2px solid var(--qm-divider);
}
.to-qm-contact #yith-ywraq-default-form ::placeholder { color: rgba(0,0,0,.6); opacity: 1; }
.to-qm-contact #yith-ywraq-default-form .raq-send-request,
.to-qm-contact #yith-ywraq-default-form [type="submit"],
.to-qm-contact #yith-ywraq-default-form .form-row:has([type="submit"]) { position: absolute !important; left: -9999px !important; }
.to-qm-contact .woocommerce-error, .to-qm-contact .woocommerce-message, .to-qm-contact #yith-ywraq-message { font-size: 14px; margin: 0 0 12px; }
.to-qm-contact .ywraq-form-error, .to-qm-contact .error { font-size: 12px; color: #d32f2f; }

.to-qm-items { padding: 52px 16px 16px; }
.to-qm-items > :first-child { border-top: 2px solid var(--qm-divider); }
.to-qm-empty { padding: 24px 0; font-size: 16px; }
.to-qm-empty p { margin: 0 0 12px; }
.to-qm-empty a { color: var(--to-blue); }
.to-qm-item { padding: 24px 0 24px; border-bottom: 2px solid var(--qm-divider); margin-bottom: 8px; }
.to-qm-item-main { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
.to-qm-thumb { width: 75px; height: auto; max-height: 75px; object-fit: contain; }
.to-qm-name { padding-left: 0; font-family: var(--qm-font); font-size: 18px; font-weight: 700; line-height: 22px; color: #000; }
.to-qm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.to-qm-remove { width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #f44336; cursor: pointer; line-height: 0; }
.to-qm-remove:hover { color: #c62828; }
.to-qm-price, .to-qm-price .amount { font-family: var(--qm-font); font-size: 24px; font-weight: 700; line-height: 24px; color: var(--qm-text); }
.to-qm-qty {
  width: 88px;
  height: 43px;
  padding: 12px 8px;
  border: 1px solid var(--qm-outline);
  border-radius: 8px;
  background: #fff;
  font-family: var(--qm-font);
  font-size: 16px;
  text-align: right;
  color: var(--qm-text);
  box-sizing: border-box;
}
.to-qm-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: 0;
  padding: 3px 10px 3px 5px;
  border: 0;
  border-radius: 999px;
  background: #bdbdbd;
  color: var(--qm-text);
  font-family: var(--qm-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.to-qm-details-toggle:hover { background: #a9a9a9; }
.to-qm-chev { color: #fff; flex: none; transition: transform .15s; }
.to-qm-details-toggle[aria-expanded="true"] .to-qm-chev { transform: rotate(180deg); }
.to-qm-details { margin: 12px 0 0 4px; font-size: 14px; line-height: 1.6; color: var(--qm-text); }
.to-qm-detail span { color: rgba(0,0,0,.6); }
.to-qm-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 2px; }
.to-qm-keep, .to-qm-submit {
  border-radius: 999px;
  font-family: var(--qm-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 26px;
  text-transform: uppercase;
  cursor: pointer;
}
.to-qm-keep { min-height: 58px; padding: 8px 28px; background: transparent; color: var(--qm-text); border: 1px solid var(--qm-outline); }
.to-qm-keep:hover { background: rgba(0,0,0,.04); }
.to-qm-submit {
  min-height: 50px;
  padding: 6px 16px;
  background: var(--to-blue);
  color: #fff;
  border: 0;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
}
.to-qm-submit:hover { background: var(--to-blue-hover); }

@media (max-width: 800px) {
  .to-qm-overlay { padding: 0; }
  .to-qm-shell { max-width: none; min-height: 100%; border-radius: 0; }
  .to-qm-tab { min-width: 0; flex: 1; font-size: 12px; padding: 6px 8px; }
  .to-qm-tabs { padding-right: 56px; }
  .to-qm-body { grid-template-columns: 1fr; }
  .to-qm-contact { border-radius: 0; }
  .to-qm-items { padding-top: 16px; }
  .to-qm-name { font-size: 16px; }
  .to-qm-keep, .to-qm-submit { font-size: 15px; padding-left: 16px; padding-right: 16px; }
}


/* =====================================================================
   Other add-on types (match shop.toughoutlet.com):
   checkbox = small native box + text, select = full-width "Pick one",
   text / textarea = plain single-border field. Only the button-style
   (label) and radio types use the rounded boxes above.
   ===================================================================== */
#yith-wapo-container .yith-wapo-addon-type-checkbox .yith-wapo-option div.label.yith-wapo-addon-label,
#yith-wapo-container .yith-wapo-addon-type-text .yith-wapo-option div.label.yith-wapo-addon-label,
#yith-wapo-container .yith-wapo-addon-type-textarea .yith-wapo-option div.label.yith-wapo-addon-label,
#yith-wapo-container .yith-wapo-addon-type-radio .yith-wapo-option div.label.yith-wapo-addon-label {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-align: left;
  font-family: var(--to-font-body) !important;
  font-weight: 400 !important;
  color: var(--to-text) !important;
  font-size: 13px;
  line-height: 1.55;
}
/* checkbox / radio: visible small native control beside the text */
#yith-wapo-container .yith-wapo-addon-type-checkbox .checkbox-button-container,
#yith-wapo-container .yith-wapo-addon-type-radio .radio-button-container { display: flex !important; align-items: flex-start; gap: 6px; }
#yith-wapo-container .yith-wapo-addon-type-checkbox .checkboxbutton,
#yith-wapo-container .yith-wapo-addon-type-radio .radiobutton { display: contents !important; }
#yith-wapo-container .yith-wapo-addon-type-checkbox input[type="checkbox"],
#yith-wapo-container .yith-wapo-addon-type-radio input[type="radio"] {
  position: static !important; opacity: 1 !important; width: 13px !important; height: 13px !important;
  margin: 3px 0 0 !important; flex: 0 0 13px; pointer-events: auto !important; cursor: pointer;
  appearance: auto !important; -webkit-appearance: auto !important; accent-color: var(--to-blue);
}
#yith-wapo-container .yith-wapo-addon-type-checkbox label,
#yith-wapo-container .yith-wapo-addon-type-radio label { pointer-events: auto !important; cursor: pointer; text-align: left; }
/* text fields */
#yith-wapo-container .yith-wapo-addon-type-text input[type="text"],
#yith-wapo-container .yith-wapo-addon-type-textarea textarea,
#yith-wapo-container .yith-wapo-addon-type-select select {
  pointer-events: auto !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: var(--to-font-body);
  font-size: 13px;
  color: var(--to-dark-text, #4d4d4d);
  padding: 8px 10px !important;
  min-height: 38px;
}
#yith-wapo-container .yith-wapo-addon-type-text .option-container,
#yith-wapo-container .yith-wapo-addon-type-text .input-text-container,
#yith-wapo-container .yith-wapo-addon-type-textarea .option-container { width: 100% !important; }
#yith-wapo-container .yith-wapo-addon-type-text input:focus,
#yith-wapo-container .yith-wapo-addon-type-textarea textarea:focus,
#yith-wapo-container .yith-wapo-addon-type-select select:focus { border-color: var(--to-blue) !important; outline: 0; }
#yith-wapo-container .yith-wapo-addon-type-select .options,
#yith-wapo-container .yith-wapo-addon-type-select .option-container,
#yith-wapo-container .yith-wapo-addon-type-select .select-container { width: 100% !important; max-width: none !important; margin-top: 8.4px; }

/* =====================================================================
   CHECKOUT — matches the BigCommerce Optimized Checkout on shop.toughoutlet.com
   (grey logo bar, Customer / Shipping / Billing / Payment, Order Summary card)
   ===================================================================== */
.to-checkout-header { background: #f7f7f7; border-bottom: 1px solid #e5e5e5; padding: 0; }
.to-checkout-wrap { max-width: 1130px; margin: 0 auto; padding: 0 16px; }
.to-checkout-header .to-checkout-wrap { height: 138px; display: flex; align-items: center; }
.to-checkout-header .to-logo img { width: 100px; height: auto; }
body.to-checkout-page .to-footer { display: none; }
body.to-checkout-page .content-container, body.to-checkout-page .entry-content-wrap { padding: 0; }
body.to-checkout-page .site-main, body.to-checkout-page .entry { margin: 0; }
body.to-checkout-page .content-area { margin-top: 0; margin-bottom: 0; }

.to-checkout {
  max-width: 1130px; margin: 0 auto; padding: 24px 16px 80px;
  display: grid; grid-template-columns: minmax(0, 603px) 357px; justify-content: space-between; gap: 40px;
  font-family: var(--to-font-body, "Istok Web"), sans-serif; color: #4f4f4f; font-size: 14px;
}
.to-checkout-main { min-width: 0; }
.to-checkout .woocommerce-NoticeGroup, .to-checkout .woocommerce-error, .to-checkout .woocommerce-message, .to-checkout .woocommerce-info { margin: 0 0 16px; }

/* Sections */
.to-step { border-bottom: 1px solid #e5e5e5; padding: 16px 0 28px; }
.to-step:last-of-type { border-bottom: 0; }
.to-step-title {
  font-family: Poppins, sans-serif !important; font-size: 25px !important; font-weight: 400 !important;
  color: #2d2d2d !important; margin: 0 0 18px !important; line-height: 1.25; text-transform: none !important; letter-spacing: 0 !important;
}
.to-sub-title { font-family: Poppins, sans-serif; font-size: 15px; font-weight: 500; color: #2d2d2d; margin: 22px 0 10px; text-transform: none; letter-spacing: 0; }
.to-signin { margin: 6px 0 0; font-size: 14px; color: #4f4f4f; }
.to-signin a, .to-checkout a.showlogin, .to-checkout a.showcoupon, .to-summary-edit { color: #007bff; text-decoration: none; }
.to-signin a:hover, .to-summary-edit:hover, .to-checkout a.showcoupon:hover { text-decoration: underline; }

/* Field grid: two-up rows */
.to-checkout .to-fields, .to-checkout .woocommerce-account-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.to-checkout .form-row { margin: 0 0 14px !important; padding: 0 !important; float: none !important; width: auto !important; }
.to-checkout .form-row-wide, .to-checkout .form-row.notes, .to-checkout .create-account { grid-column: 1 / -1; }
.to-checkout .form-row-first { grid-column: 1; }
.to-checkout .form-row-last { grid-column: 2; }
.to-checkout .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
  display: block; font-family: "Istok Web", sans-serif; font-size: 13px; font-weight: 500; color: #989898; margin: 0 0 4px; line-height: 20px;
}
.to-checkout .form-row .required { color: #989898; border: 0; text-decoration: none; }
.to-checkout .form-row .optional { display: none; }
.to-checkout input.input-text, .to-checkout select, .to-checkout textarea,
.to-checkout .select2-container .select2-selection--single {
  width: 100%; height: 45px; box-sizing: border-box; border: 1px solid #989898 !important; border-radius: 4px !important;
  background: #fff !important; box-shadow: none !important; font-family: "Istok Web", sans-serif; font-size: 13px; color: #333; padding: 9.75px 13px;
}
.to-checkout textarea { height: auto; min-height: 80px; }
.to-checkout .select2-container .select2-selection--single { padding: 0 13px; display: flex; align-items: center; }
.to-checkout .select2-container .select2-selection__rendered { padding: 0 !important; line-height: 43px !important; color: #333; }
.to-checkout .select2-container .select2-selection__arrow { height: 43px !important; right: 8px !important; }
.to-checkout input.input-text:focus, .to-checkout select:focus, .to-checkout textarea:focus { border-color: #007bff !important; outline: 0; box-shadow: 0 0 0 1px #007bff !important; }
.to-checkout .woocommerce-invalid input.input-text, .to-checkout .woocommerce-invalid .select2-selection { border-color: #d14343 !important; }
.to-checkout .checkbox, .to-checkout .woocommerce-form__label-for-checkbox { display: flex !important; align-items: flex-start; gap: 8px; font-size: 14px; color: #4f4f4f; cursor: pointer; font-weight: 400; }
.to-checkout input[type="checkbox"], .to-checkout input[type="radio"] { accent-color: #007bff; width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px; }
.to-billing-same { margin-bottom: 16px !important; }

/* Shipping methods */
.to-ship-list { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid #ddd; border-radius: 4px; }
.to-ship-option { border-top: 1px solid #ddd; margin: 0; }
.to-ship-option:first-child { border-top: 0; }
.to-ship-option input { position: absolute; opacity: 0; pointer-events: none; }
.to-ship-option label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 44px; margin: 0; cursor: pointer;
  position: relative; font-size: 14px; color: #4f4f4f;
}
.to-ship-option label::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1px solid #989898; border-radius: 50%; background: #fff; box-sizing: border-box;
}
.to-ship-option.is-selected { background: #f5f9ff; }
.to-ship-option.is-selected label::before { border: 5px solid #007bff; }
.to-ship-option input:focus-visible + label { outline: 2px solid #007bff; outline-offset: -2px; }
.to-ship-cost { font-weight: 600; white-space: nowrap; }
.to-ship-note { margin: 0 0 16px; padding: 12px 14px; background: #f7f7f7; border-radius: 4px; font-size: 13px; color: #4f4f4f; }

/* Payment */
.to-checkout #payment { background: none !important; border-radius: 0; }
.to-checkout #payment ul.payment_methods { padding: 0 !important; margin: 0 0 18px !important; border: 1px solid #ddd !important; border-radius: 4px; list-style: none; }
.to-checkout #payment ul.payment_methods li { padding: 14px 16px !important; border-top: 1px solid #ddd; margin: 0 !important; line-height: 1.4; }
.to-checkout #payment ul.payment_methods li:first-child { border-top: 0; }
.to-checkout #payment ul.payment_methods li label { font-size: 14px; color: #2d2d2d; font-weight: 500; margin-left: 6px; display: inline; }
.to-checkout #payment div.payment_box { background: #f7f7f7 !important; color: #4f4f4f; font-size: 13px; border-radius: 4px; margin: 10px 0 0 !important; padding: 12px 14px !important; }
.to-checkout #payment div.payment_box::before { display: none !important; }
.to-checkout #payment div.form-row.place-order { padding: 0 !important; margin: 0 !important; display: block; }
.to-checkout .woocommerce-privacy-policy-text { font-size: 12px; color: #777; margin: 0 0 14px; }
.to-checkout #place_order {
  float: none !important; width: 100%; height: 52px; background: #007bff !important; border: 1px solid #007bff !important; border-radius: 3px !important;
  color: #fff !important; font-family: Poppins, sans-serif !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: none !important; cursor: pointer; padding: 0 16px !important;
}
.to-checkout #place_order:hover { background: #0062cc !important; border-color: #0062cc !important; }
.to-checkout form.login { margin: 0 0 16px; padding: 16px; border: 1px solid #e5e5e5; border-radius: 4px; }
.to-checkout form.login .button { background: #007bff; color: #fff; border-radius: 3px; font-family: Poppins, sans-serif; font-weight: 600; text-transform: uppercase; }

/* Order Summary card */
.to-summary { position: relative; }
.to-summary-card { border: 1px solid #ebebeb; border-radius: 4px; background: #fff; position: sticky; top: 24px; }
.to-summary-toggle { display: none; }
.to-summary-header { display: flex; align-items: center; justify-content: space-between; padding: 19.5px; border-bottom: 1px solid #ebebeb; }
.to-summary-title { font-family: Poppins, sans-serif !important; font-size: 15px !important; font-weight: 400 !important; color: #2d2d2d !important; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.to-summary-edit { font-size: 14px; }
.to-summary-section { padding: 19.5px; border-bottom: 1px solid #ebebeb; }
.to-summary-count { margin: 0 0 14px; font-size: 14px; color: #4f4f4f; }
.to-summary-list { list-style: none; margin: 0; padding: 0; }
.to-summary-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; margin: 0 0 16px; align-items: start; }
.to-summary-item:last-child { margin-bottom: 0; }
.to-summary-thumb img { width: 60px; height: auto; display: block; }
.to-summary-name { margin: 0 0 4px; font-size: 14px; color: #4f4f4f; line-height: 1.35; }
.to-summary-price { font-size: 14px; color: #4f4f4f; white-space: nowrap; }
.to-summary .to-item-data { margin: 0; }
.to-summary .to-item-data-row { display: block; font-size: 13px; color: #8a8a8a; line-height: 1.5; margin: 0; }
.to-summary .to-item-data-label { text-decoration: none !important; color: #8a8a8a; }
.to-summary .to-item-data-value { color: #8a8a8a; }
.to-summary-coupon .checkout_coupon { margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; display: flex; gap: 8px; flex-wrap: wrap; }
.to-summary-coupon .checkout_coupon input { min-width: 0; }
.to-summary-coupon .checkout_coupon .button { white-space: nowrap; flex: 0 0 auto; }
/* "Coupon cannot be applied" message goes on its own line under the box, not squeezed beside it */
.to-summary-coupon .checkout_coupon .coupon-error-notice { flex: 0 0 100%; margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #b42318; }
.to-summary-coupon .checkout_coupon input { flex: 1; height: 40px; border: 1px solid #989898; border-radius: 4px; padding: 0 12px; font-size: 13px; }
.to-summary-coupon .checkout_coupon .button { height: 40px; padding: 0 16px; background: #007bff; color: #fff; border: 0; border-radius: 3px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.to-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #4f4f4f; margin: 0 0 10px; }
.to-sum-row:last-child { margin-bottom: 0; }
.to-sum-row strong { font-weight: 600; text-align: right; }
.to-sum-row .woocommerce-remove-coupon { font-size: 12px; margin-left: 4px; color: #007bff; }
.to-sum-total { display: flex; align-items: center; justify-content: space-between; border-bottom: 0; }
.to-sum-total span { font-family: Poppins, sans-serif; font-size: 15px; color: #2d2d2d; }
.to-sum-total-value { font-family: Poppins, sans-serif; font-size: 30px; font-weight: 700; color: #2d2d2d; }
.to-summary .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

@media (max-width: 1000px) {
  .to-checkout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 800px) {
  .to-checkout-header .to-checkout-wrap { height: 84px; justify-content: center; }
  .to-checkout-header .to-logo img { width: 76px; }
  .to-checkout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .to-summary { order: -1; margin: 0 -16px 8px; }
  .to-summary-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
    background: #f7f7f7; border: 0; border-bottom: 1px solid #e5e5e5; color: #007bff; font-family: "Istok Web", sans-serif; font-size: 14px; cursor: pointer; border-radius: 0;
  }
  .to-summary-toggle-label::after { content: " \25BE"; }
  .to-summary.is-open .to-summary-toggle-label::after { content: " \25B4"; }
  .to-summary-toggle-total { font-family: Poppins, sans-serif; font-weight: 700; color: #2d2d2d; font-size: 16px; }
  .to-summary-card { display: none; position: static; border-radius: 0; border-left: 0; border-right: 0; }
  .to-summary.is-open .to-summary-card { display: block; }
  .to-step-title { font-size: 22px !important; }
}
@media (max-width: 480px) {
  .to-checkout .to-fields { grid-template-columns: 1fr; }
  .to-checkout .form-row-first, .to-checkout .form-row-last { grid-column: 1; }
}

/* Checkout fixes */
.to-header.to-checkout-header { background: #f7f7f7 !important; }
.to-checkout .to-billing-fields[hidden] { display: none !important; }
.to-checkout .to-ship-option > label { display: flex !important; width: 100%; box-sizing: border-box; }
.to-checkout .to-summary-name, .to-checkout .to-summary-count, .to-checkout .to-signin, .to-checkout .to-ship-note { margin-top: 0 !important; }
.to-checkout .to-summary-name { margin-bottom: 4px !important; }
.to-checkout .to-summary-count { margin-bottom: 14px !important; }
.to-checkout .to-summary .to-item-data-label { margin-right: 4px; }
.to-checkout .to-step-shipping .notes, .to-checkout #order_comments_field { margin-top: 6px !important; }
.to-checkout #payment ul.payment_methods li label { background: none !important; padding: 0 !important; }
.to-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:only-of-type { margin-right: 4px; }
.admin-bar .to-summary-card { top: 56px; }
@media (max-width: 800px) {
  .to-checkout .to-summary-toggle:hover, .to-checkout .to-summary-toggle:focus, .to-checkout .to-summary-toggle:active,
  .to-checkout .to-summary-toggle[aria-expanded="true"] { background: #f7f7f7 !important; color: #007bff !important; box-shadow: none !important; }
  .to-checkout .to-summary-toggle:focus-visible { outline: 2px solid #007bff; outline-offset: -2px; }
}

/* Order Summary: no list indent, small thumbnail so the options column gets the width */
.to-checkout ul.to-summary-list { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.to-checkout .to-summary-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
.to-checkout .to-summary-thumb img { width: 36px; }

/* Order Summary: price under the product name, in red */
.to-checkout .to-summary-item { grid-template-columns: 36px minmax(0, 1fr); }
/* Items without a photo: no thumbnail, name and price use the full width */
.to-summary-item.to-summary-item--noimg,
.to-checkout .to-summary-item.to-summary-item--noimg { grid-template-columns: minmax(0, 1fr); }
.to-checkout .to-summary-price { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #c62828; }
.to-checkout .to-summary-price .amount, .to-checkout .to-summary-price bdi { color: #c62828; }
.to-checkout .to-summary .to-item-data-label, .to-checkout .to-summary .to-item-data-value { display: inline !important; }
.to-checkout .to-sum-total-value, .to-checkout .to-sum-total-value .amount, .to-checkout .to-sum-total-value bdi { font-family: Poppins, sans-serif !important; font-size: 30px !important; font-weight: 700 !important; color: #2d2d2d !important; line-height: 1.2; }
.to-checkout .to-billing-same label, .to-checkout .to-billing-same span { font-size: 14px !important; font-weight: 400 !important; color: #4f4f4f !important; letter-spacing: 0 !important; text-transform: none !important; }
.to-checkout .to-sum-total-value .woocommerce-Price-currencySymbol { font-size: inherit !important; vertical-align: baseline !important; }
.to-checkout .to-billing-same label, .to-checkout .to-billing-same span { line-height: 1.45 !important; }

/* Order Summary: computers' option lists fold to 4 lines with a fade + "Show all options (N)" */
.to-checkout .to-opts-fold { position: relative; overflow: hidden; max-height: var(--to-fold-h, 84px); transition: max-height .35s ease; }
.to-checkout .to-opts-fold.is-short { max-height: none; }
.to-checkout .to-opts-fold.is-open { max-height: 2000px; }
.to-checkout .to-opts-fold:not(.is-short):not(.is-open)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
}
.to-checkout .to-opts-toggle {
  display: inline-block; margin: 6px 0 0; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important;
  color: #007bff !important; font-family: "Istok Web", sans-serif; font-size: 13px; font-weight: 400; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.to-checkout .to-opts-toggle:hover { text-decoration: underline; }
.to-checkout .to-opts-toggle:focus-visible { outline: 2px solid #007bff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .to-checkout .to-opts-fold { transition: none; } }

/* Address autocomplete dropdown */
.to-ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin: 2px 0 0 !important; padding: 4px 0 !important; list-style: none !important; background: #fff; border: 1px solid #989898; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.to-ac-list li { margin: 0; padding: 9px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.to-ac-list li.is-active, .to-ac-list li:hover { background: #f0f6ff; }
.to-ac-main { font-size: 14px; color: #2d2d2d; }
.to-ac-sub { font-size: 12px; color: #8a8a8a; }
.to-ac-list li.to-ac-credit { cursor: default; font-size: 10px; color: #9a9a9a; text-align: right; padding: 4px 10px 2px; background: none; }

/* Cart: shipping calculator form (Country / State / City / ZIP + Update) in the site's style */
.to-shipping-calc .shipping-calculator-form .form-row { margin: 0 0 10px !important; padding: 0 !important; }
.to-shipping-calc .shipping-calculator-form label { display: block; font-family: "Istok Web", sans-serif !important; font-size: 13px !important; font-weight: 500 !important; color: #989898 !important; margin: 0 0 4px; line-height: 18px; }
.to-shipping-calc .shipping-calculator-form label .required { color: #989898; text-decoration: none; border: 0; }
.to-shipping-calc .shipping-calculator-form input.input-text,
.to-shipping-calc .shipping-calculator-form select,
.to-shipping-calc .shipping-calculator-form .select2-container .select2-selection--single {
  width: 100% !important; height: 40px !important; box-sizing: border-box; border: 1px solid #989898 !important; border-radius: 4px !important;
  background: #fff !important; box-shadow: none !important; font-family: "Istok Web", sans-serif !important; font-size: 13px !important; color: #333 !important; padding: 0 12px !important;
}
.to-shipping-calc .shipping-calculator-form .select2-container .select2-selection__rendered { line-height: 38px !important; padding: 0 !important; font-size: 13px !important; color: #333 !important; }
.to-shipping-calc .shipping-calculator-form .select2-container .select2-selection__arrow { height: 38px !important; }
.to-shipping-calc .shipping-calculator-form input.input-text:focus { border-color: #007bff !important; outline: 0; }
.to-shipping-calc .shipping-calculator-form button[name="calc_shipping"] {
  width: 100%; height: 40px; margin: 4px 0 0; padding: 0 16px !important; background: #007bff !important; border: 1px solid #007bff !important; border-radius: 3px !important;
  color: #fff !important; font-family: Poppins, sans-serif !important; font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .02em; box-shadow: none !important; cursor: pointer;
}
.to-shipping-calc .shipping-calculator-form button[name="calc_shipping"]:hover { background: #0062cc !important; border-color: #0062cc !important; }

/* =====================================================================
   Cart "Change Options" popup (YITH Add-ons edit-in-cart)
   ===================================================================== */
.yith-wapo-popup .yith-wapo-wrapper { width: min(1180px, 94vw) !important; max-width: none !important; max-height: 90vh !important; height: auto !important; top: 5vh !important; left: 50% !important; transform: translateX(-50%) !important; margin: 0 !important; border-radius: 6px !important; overflow: hidden; }
.yith-wapo-popup .yith-wapo-main { display: flex !important; flex-direction: column; max-height: 90vh; height: auto !important; }
.yith-wapo-popup .yith-wapo-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px !important; height: auto !important; border-bottom: 1px solid #e4e4e4; }
.yith-wapo-popup .edit-options-label { font-family: Poppins, sans-serif !important; font-size: 20px !important; font-weight: 600 !important; color: #393939 !important; margin: 0 !important; padding: 0 !important; line-height: 1.3 !important; height: auto !important; }
.yith-wapo-popup .yith-wapo-close { position: static !important; color: #6f6f6f !important; font-size: 24px !important; line-height: 1; }
.yith-wapo-popup .yith-wapo-content { flex: 1 1 auto; overflow-y: auto !important; height: auto !important; max-height: none !important; padding: 20px 28px 28px !important; margin: 0 !important; }
.yith-wapo-popup .yith-wapo-content .to-product, .yith-wapo-popup .yith-wapo-content .entry { padding: 0 !important; margin: 0 !important; box-shadow: none !important; background: none !important; }
.yith-wapo-popup .to-product-title { font-size: 18px !important; margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; }
.yith-wapo-popup .to-product-intro { display: none !important; }
.yith-wapo-popup .to-product-config { padding-top: 12px !important; }
.yith-wapo-popup .to-config-form { grid-template-columns: 170px minmax(0, 1fr) !important; column-gap: 28px !important; }
.yith-wapo-popup .to-buy-col .to-qty-label, .yith-wapo-popup .to-buy-col .quantity, .yith-wapo-popup .to-buy-col .add-request-quote-button, .yith-wapo-popup .to-buy-col .yith-ywraq-add-to-quote { display: none !important; }
.yith-wapo-popup .to-buy-sticky { position: sticky; top: 0; }
body.single-product .yith-wapo-popup div.product .to-buy-col p.price.to-price, .yith-wapo-popup .to-buy-col p.price.to-price,
.yith-wapo-popup .to-buy-col p.price.to-price .amount, .yith-wapo-popup .to-buy-col p.price.to-price bdi { font-family: Poppins, sans-serif !important; font-size: 28px !important; font-weight: 700 !important; color: #4d4d4d !important; line-height: 1.2 !important; margin: 0 !important; }
.yith-wapo-popup #yith-wapo-container { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 32px !important; }
.yith-wapo-popup .yith-wapo-footer { flex: 0 0 auto; display: flex !important; justify-content: flex-end; align-items: center; padding: 14px 28px !important; background: #f7f7f7 !important; border-top: 1px solid #e4e4e4; height: auto !important; position: static !important; }
.yith-wapo-popup .yith-wapo-footer .yith-wapo-add-to-cart { margin: 0 !important; }
.yith-wapo-popup .yith-wapo-footer button.single_add_to_cart_button {
  height: 48px !important; min-width: 220px; padding: 0 28px !important; margin: 0 !important; background: var(--to-blue, #007bff) !important; border: 0 !important; border-radius: 4px !important;
  color: #fff !important; font-family: Poppins, sans-serif !important; font-size: 16px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; line-height: 48px !important;
}
.yith-wapo-popup .yith-wapo-footer button.single_add_to_cart_button:hover { background: var(--to-blue-hover, #0062cc) !important; }
@media (max-width: 1100px) { .yith-wapo-popup #yith-wapo-container { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 800px) {
  .yith-wapo-popup .yith-wapo-wrapper { width: 100vw !important; max-height: 100vh !important; top: 0 !important; border-radius: 0 !important; }
  .yith-wapo-popup .yith-wapo-main { max-height: 100vh; height: 100vh !important; }
  .yith-wapo-popup .to-config-form { grid-template-columns: 1fr !important; }
  .yith-wapo-popup .to-buy-col { grid-row: 1 !important; grid-column: 1 !important; margin-bottom: 12px; }
  .yith-wapo-popup .to-options-col { grid-row: 2 !important; grid-column: 1 !important; }
  .yith-wapo-popup #yith-wapo-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px !important; }
  .yith-wapo-popup .yith-wapo-head, .yith-wapo-popup .yith-wapo-content, .yith-wapo-popup .yith-wapo-footer { padding-left: 16px !important; padding-right: 16px !important; }
  .yith-wapo-popup .yith-wapo-footer button.single_add_to_cart_button { width: 100%; }
}
.yith-wapo-popup .yith-wapo-content > .woocommerce, .yith-wapo-popup .yith-wapo-content .single-product, .yith-wapo-popup .yith-wapo-content .to-product.entry { padding-top: 0 !important; margin-top: 0 !important; }
/* Popup: only the price shows in the buy column (the footer button saves) */
.yith-wapo-popup .to-buy-sticky > *:not(.to-price):not(.to-bulk-wrap) { display: none !important; }
/* Popup: wider price column, with the "Buy more, save more" table under the price */
.yith-wapo-popup .to-config-form { grid-template-columns: 260px minmax(0, 1fr) !important; }
.yith-wapo-popup .to-bulk-wrap .awdr-bulk-customizable-table { margin-top: 20px !important; }
@media (max-width: 800px) { .yith-wapo-popup .to-config-form { grid-template-columns: 1fr !important; } }
@media (max-width: 800px) {
  .yith-wapo-popup .to-buy-col { margin-bottom: 16px !important; }
  .yith-wapo-popup .yith-wapo-footer .yith-wapo-add-to-cart { width: 100%; }
  .yith-wapo-popup .yith-wapo-footer button.single_add_to_cart_button { width: 100% !important; }
}
@media (max-width: 800px) { .yith-wapo-popup .to-config-form { row-gap: 0 !important; } }
body.to-thankyou-page .to-footer { display: none; }
body.to-thankyou-page .content-container, body.to-thankyou-page .entry-content-wrap { padding: 0; }
body.to-thankyou-page .site-main, body.to-thankyou-page .entry { margin: 0; }
body.to-thankyou-page .content-area { margin-top: 0; margin-bottom: 0; }

/* =====================================================================
   Order received ("Thank you") page
   ===================================================================== */
.to-thankyou .to-ty-head { padding-top: 24px; }
.to-ty-check { width: 44px; height: 44px; border-radius: 50%; background: #e8f5ec; color: #2f8a4c; display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.to-thankyou .to-step-title { margin-bottom: 10px !important; }
.to-ty-lead { font-size: 16px; color: #2d2d2d; margin: 0 0 10px !important; }
.to-ty-lead strong { font-weight: 700; }
.to-ty-text { font-size: 14px; color: #4f4f4f; line-height: 1.6; margin: 0 !important; }
.to-ty-text a, .to-ty-box a { color: #007bff; text-decoration: none; }
.to-thankyou .to-sub-title { margin-top: 0; }
.to-ty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.to-ty-box { border: 1px solid #e5e5e5; border-radius: 4px; padding: 14px 16px; }
.to-ty-box h3 { font-family: Poppins, sans-serif !important; font-size: 13px !important; font-weight: 600 !important; color: #2d2d2d !important; text-transform: uppercase; letter-spacing: .04em !important; margin: 0 0 8px !important; }
.to-ty-box address, .to-ty-box p { font-style: normal; font-size: 14px; color: #4f4f4f; line-height: 1.55; margin: 0 !important; }
.to-ty-box .to-ty-muted { color: #8a8a8a; font-size: 13px; margin-top: 4px !important; }
.to-ty-note { margin-top: 14px; }
.to-ty-gateway:empty { display: none; }
.to-ty-gateway { margin: 0 0 8px; font-size: 14px; color: #4f4f4f; }
.to-ty-actions { margin: 20px 0 0 !important; }
.to-btn, a.to-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 32px; background: #007bff; color: #fff !important; border-radius: 3px;
  font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; text-decoration: none !important;
}
.to-btn:hover { background: #0062cc; }
.to-ty-number { font-size: 14px; color: #8a8a8a; }
@media (max-width: 800px) {
  .to-thankyou .to-summary { order: 0; margin: 8px 0 0; }
  .to-thankyou .to-summary-card { display: block; border-radius: 4px; border-left: 1px solid #ebebeb; border-right: 1px solid #ebebeb; }
  .to-ty-grid { grid-template-columns: 1fr; }
  .to-btn, a.to-btn { width: 100%; }
}

/* =====================================================================
   MY ACCOUNT (dashboard, orders, quotes, addresses, settings, sign in)
   ===================================================================== */
.to-account-page .entry-hero, .to-account-page .entry-header, .to-account-page .page-title { display: none !important; }
.to-account-page .content-container.site-container { max-width: var(--to-max); padding-left: var(--to-gutter); padding-right: var(--to-gutter); }
.to-account-page .site-main, .to-account-page .content-wrap, .to-account-page .entry-content-wrap,
.to-account-page article.entry { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.to-account-page .entry-content { margin: 0; }
.to-account-page .woocommerce { padding: 64px 0 60px; display: block !important; }
.to-account-page .kadence-account-avatar { display: none !important; }
.to-account { font-family: var(--to-font-body); color: var(--to-text); font-size: 14px; }
.to-account a { color: var(--to-blue); }

/* Tabs */
.to-account .woocommerce-MyAccount-navigation { float: none !important; width: auto !important; margin: 0 0 28px !important; padding: 0 !important; border: 0 !important; }
.to-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none !important; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--to-line); }
.to-account .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.to-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 10px 0 12px !important; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-family: var(--to-font-heading); font-size: 14px; font-weight: 500; color: var(--to-text) !important; text-decoration: none !important; background: none !important; box-shadow: none !important;
}
.to-account .woocommerce-MyAccount-navigation li a:hover { color: var(--to-blue) !important; }
.to-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--to-blue) !important; border-bottom-color: var(--to-blue); font-weight: 600; }
.to-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto !important; }
.to-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; padding: 0 !important; }

/* Headings and notices */
.to-account h2, .to-account h3 { font-family: var(--to-font-heading) !important; color: var(--to-heading) !important; text-transform: none; letter-spacing: 0; }
.to-account-content > h2, .to-account-content > h3, .to-account .woocommerce-Address-title h2, .to-account .woocommerce-Address-title h3 { font-size: 18px !important; font-weight: 600 !important; margin: 0 0 14px !important; }
.to-account .woocommerce-message, .to-account .woocommerce-info, .to-account .woocommerce-error { border-radius: 4px; font-size: 14px; }

/* Dashboard */
.to-acc-hello { margin: 0 0 24px; }
.to-acc-hello h2 { font-size: 22px !important; font-weight: 600 !important; margin: 0 0 4px !important; }
.to-acc-hello p { margin: 0; color: #8a8a8a; font-size: 13px; }
.to-acc-section { margin: 0 0 28px; }
.to-acc-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.to-acc-section-head h3 { font-size: 16px !important; font-weight: 600 !important; margin: 0 !important; }
.to-acc-section-head a { font-size: 13px; text-decoration: none; }
.to-acc-orders { border: 1px solid #e5e5e5; border-radius: 4px; }
.to-acc-order { display: grid; grid-template-columns: 90px 1fr auto 120px; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid #e5e5e5; color: var(--to-text) !important; text-decoration: none !important; }
.to-acc-order:first-child { border-top: 0; }
.to-acc-order:hover { background: #f7faff; }
.to-acc-order-num { font-weight: 700; color: var(--to-blue); }
.to-acc-order-total { text-align: right; font-weight: 600; color: var(--to-heading); }
.to-acc-empty { padding: 16px; border: 1px dashed #dadada; border-radius: 4px; margin: 0; }
.to-acc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.to-acc-card { display: block; padding: 16px 18px; border: 1px solid #e5e5e5; border-radius: 4px; text-decoration: none !important; transition: border-color .15s; }
.to-acc-card:hover { border-color: var(--to-blue); }
.to-acc-card strong { display: block; font-family: var(--to-font-heading); font-size: 15px; font-weight: 600; color: var(--to-heading); margin: 0 0 4px; }
.to-acc-card span { display: block; font-size: 13px; color: #8a8a8a; line-height: 1.45; }

/* Status badges (dashboard + orders table) */
.to-acc-status, .to-account .woocommerce-orders-table__cell-order-status { font-size: 12px; }
.to-acc-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef1f4; color: #4d4d4d; font-weight: 600; white-space: nowrap; }
.to-acc-status.status-processing, .to-acc-status.status-completed { background: #e8f5ec; color: #2f7d4f; }
.to-acc-status.status-on-hold, .to-acc-status.status-pending { background: #fdf3e1; color: #9a5b00; }
.to-acc-status.status-cancelled, .to-acc-status.status-failed, .to-acc-status.status-refunded { background: #fdecec; color: #b42318; }

/* Tables (orders, quotes, order detail) */
.to-account table.shop_table, .to-account table.woocommerce-orders-table, .to-account table.my_account_orders, .to-account table.woocommerce-table {
  width: 100%; border: 1px solid #e5e5e5 !important; border-radius: 4px; border-collapse: separate !important; border-spacing: 0; margin: 0 0 24px; font-size: 14px;
}
.to-account table th { font-family: var(--to-font-heading); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6f6f6f; background: #f7f7f7; padding: 12px 14px !important; border: 0 !important; text-align: left; }
.to-account table td { padding: 14px !important; border: 0 !important; border-top: 1px solid #e5e5e5 !important; vertical-align: middle; color: var(--to-text); }
.to-account table td a:not(.button) { font-weight: 600; text-decoration: none; }
.to-account table .button, .to-account .woocommerce-button, .to-account a.button {
  display: inline-block; height: auto !important; padding: 7px 14px !important; margin: 2px 4px 2px 0 !important; border-radius: 3px !important; background: #fff !important;
  border: 1px solid var(--to-blue) !important; color: var(--to-blue) !important; font-family: var(--to-font-heading) !important; font-size: 12px !important; font-weight: 600 !important;
  line-height: 1.3 !important; text-transform: uppercase; letter-spacing: .02em; text-decoration: none !important; box-shadow: none !important;
}
.to-account table .button:hover, .to-account a.button:hover { background: var(--to-blue) !important; color: #fff !important; }
.to-account table .button.pay { background: var(--to-blue) !important; color: #fff !important; }
.to-account table .button.cancel { border-color: #dadada !important; color: #6f6f6f !important; }
.to-account .woocommerce-pagination { margin-top: 8px; }

/* Order detail page */
.to-account .woocommerce-order-details, .to-account .woocommerce-customer-details { margin: 0 0 24px; }
.to-account mark { background: none; color: var(--to-heading); font-weight: 600; }
.to-account .woocommerce-customer-details address { border: 1px solid #e5e5e5 !important; border-radius: 4px; padding: 14px 16px !important; font-style: normal; line-height: 1.6; }
.to-account .wc-item-meta { list-style: none; margin: 6px 0 0 !important; padding: 0 !important; font-size: 13px; color: #8a8a8a; }
.to-account .wc-item-meta li { margin: 0 !important; }
.to-account .wc-item-meta p { display: inline; margin: 0; }

/* Addresses */
.to-account .woocommerce-Addresses { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; }
.to-account .woocommerce-Addresses::before, .to-account .woocommerce-Addresses::after { display: none !important; }
.to-account .woocommerce-Address { float: none !important; width: auto !important; max-width: none !important; border: 1px solid #e5e5e5; border-radius: 4px; padding: 16px 18px; margin: 0 !important; }
.to-account .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.to-account .woocommerce-Address-title h2, .to-account .woocommerce-Address-title h3 { font-size: 15px !important; margin: 0 !important; }
.to-account .woocommerce-Address-title a { font-size: 13px; text-decoration: none; }
.to-account .woocommerce-Address address { font-style: normal; line-height: 1.6; }

/* Forms (addresses, account settings, sign in) */
.to-account form .form-row { margin: 0 0 14px !important; padding: 0 !important; }
.to-account form .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) { display: block; font-size: 13px; font-weight: 500; color: #989898; margin: 0 0 4px; line-height: 20px; }
.to-account form .form-row .required { color: #989898; text-decoration: none; border: 0; }
.to-account input.input-text, .to-account select, .to-account textarea, .to-account .select2-container .select2-selection--single {
  width: 100%; height: 45px; box-sizing: border-box; border: 1px solid #989898 !important; border-radius: 4px !important; background: #fff !important;
  box-shadow: none !important; font-family: var(--to-font-body); font-size: 13px; color: #333; padding: 9.75px 13px;
}
.to-account .select2-container .select2-selection--single { padding: 0 13px; display: flex; align-items: center; }
.to-account .select2-container .select2-selection__rendered { padding: 0 !important; line-height: 43px !important; color: #333; }
.to-account .select2-container .select2-selection__arrow { height: 43px !important; }
.to-account input.input-text:focus, .to-account select:focus, .to-account textarea:focus { border-color: var(--to-blue) !important; outline: 0; box-shadow: 0 0 0 1px var(--to-blue) !important; }
.to-account .woocommerce-address-fields__field-wrapper, .to-account .woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; max-width: 760px; }
.to-account .woocommerce-address-fields__field-wrapper .form-row, .to-account .woocommerce-EditAccountForm .form-row { float: none !important; width: auto !important; grid-column: 1 / -1; }
.to-account .woocommerce-address-fields__field-wrapper .form-row-first, .to-account .woocommerce-EditAccountForm .form-row-first { grid-column: 1; }
.to-account .woocommerce-address-fields__field-wrapper .form-row-last, .to-account .woocommerce-EditAccountForm .form-row-last { grid-column: 2; }
.to-account .woocommerce-EditAccountForm fieldset, .to-account .woocommerce-EditAccountForm > p:last-of-type, .to-account .woocommerce-EditAccountForm .clear { grid-column: 1 / -1; }
.to-account fieldset { border: 1px solid #e5e5e5; border-radius: 4px; padding: 16px 18px 4px; margin: 8px 0 18px; }
.to-account fieldset legend { font-family: var(--to-font-heading); font-weight: 600; font-size: 14px; color: var(--to-heading); padding: 0 6px; }
.to-account em { font-size: 12px; color: #8a8a8a; }
.to-account button[type="submit"], .to-account .woocommerce-Button, .to-btn-full {
  height: 48px !important; padding: 0 28px !important; background: var(--to-blue) !important; border: 1px solid var(--to-blue) !important; border-radius: 3px !important;
  color: #fff !important; font-family: var(--to-font-heading) !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: none !important; cursor: pointer; line-height: 46px !important;
}
.to-account button[type="submit"]:hover { background: var(--to-blue-hover, #0062cc) !important; border-color: var(--to-blue-hover, #0062cc) !important; }
.to-btn-full { width: 100%; display: block; }
.to-account .to-btn-dark { background: #000 !important; border-color: #000 !important; }
.to-account .to-btn-dark:hover { background: #393939 !important; border-color: #393939 !important; }

/* Sign in / create account */
.to-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; }
.to-login-grid.is-single { grid-template-columns: minmax(0, 460px); }
.to-login-card { border: 1px solid #e5e5e5; border-radius: 4px; padding: 26px 28px 28px; }
.to-login-card h2 { font-size: 20px !important; font-weight: 600 !important; margin: 0 0 18px !important; }
.to-login-intro, .to-login-note { font-size: 14px; color: var(--to-text); line-height: 1.6; margin: 0 0 16px !important; }
.to-login-note { color: #8a8a8a; font-size: 13px; }
.to-login form.login, .to-login form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.to-login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: 13px; }
.to-login-row .checkbox { display: flex !important; align-items: center; gap: 6px; margin: 0; color: var(--to-text); }
.to-login-forgot { text-decoration: none; }
.to-account input[type="checkbox"] { accent-color: var(--to-blue); width: 16px; height: 16px; }

@media (max-width: 800px) {
  .to-account-page .woocommerce { padding-top: 32px; }
  .to-account .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 22px; scrollbar-width: none; }
  .to-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .to-account .woocommerce-MyAccount-navigation li a { white-space: nowrap; }
  .to-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-left: 0 !important; }
  .to-acc-cards, .to-login-grid, .to-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .to-acc-order { grid-template-columns: auto 1fr auto; }
  .to-acc-order-date { display: none; }
  .to-account .woocommerce-address-fields__field-wrapper, .to-account .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
  .to-account .woocommerce-address-fields__field-wrapper .form-row-first, .to-account .woocommerce-address-fields__field-wrapper .form-row-last,
  .to-account .woocommerce-EditAccountForm .form-row-first, .to-account .woocommerce-EditAccountForm .form-row-last { grid-column: 1; }
  .to-account table.shop_table_responsive thead { display: none; }
  .to-account table.shop_table_responsive tr { display: block; border-top: 1px solid #e5e5e5; }
  .to-account table.shop_table_responsive tr:first-child { border-top: 0; }
  .to-account table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border-top: 0 !important; padding: 8px 14px !important; text-align: right !important; }
  .to-account table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: #6f6f6f; text-align: left; }
  /* WooCommerce hides row headers (the order number) on small screens: show them like the other rows */
  .to-account table.shop_table_responsive tbody th { display: flex !important; justify-content: space-between; gap: 12px; border-top: 0 !important; padding: 8px 14px !important; text-align: right !important; }
  .to-account table.shop_table_responsive tbody th::before { content: attr(data-title); font-weight: 600; color: #6f6f6f; text-align: left; }
}
/* Kadence wraps the account tabs in its own floated sidebar box — flatten it */
.to-account .account-navigation-wrap { float: none !important; width: auto !important; max-width: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; position: static !important; }
.to-account .woocommerce-MyAccount-navigation ul li a, .to-account .woocommerce-MyAccount-navigation ul li { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.to-account .woocommerce-MyAccount-navigation ul li.is-active a { border-bottom: 2px solid var(--to-blue) !important; }
.to-account .woocommerce-MyAccount-navigation ul li:not(.is-active) a { border-bottom: 2px solid transparent !important; }
.to-account .woocommerce-MyAccount-content { margin: 0 !important; }
.to-account .woocommerce-order-details__title, .to-account .woocommerce-column__title, .to-account-content h2, .to-account-content h3 { font-size: 18px !important; font-weight: 600 !important; margin: 0 0 14px !important; text-align: left !important; }
.to-account .woocommerce-Address-title h2, .to-account .woocommerce-Address-title h3 { font-size: 15px !important; margin: 0 !important; }
.to-account-content > p:first-child { margin-top: 0; }
.to-account .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.to-account .woocommerce-columns--addresses .woocommerce-column { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; }
.to-account .woocommerce-columns--addresses::before, .to-account .woocommerce-columns--addresses::after { display: none !important; }
.to-account .woocommerce-table--order-details tfoot th { background: none; text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--to-text); border-top: 1px solid #e5e5e5 !important; }
.to-account .woocommerce-table--order-details tfoot td { font-weight: 600; color: var(--to-heading); }
.to-account .woocommerce-table--order-details .product-name > a { font-weight: 600; }
.to-account .wc-item-meta { font-size: 12.5px; line-height: 1.55; }
.to-account .wc-item-meta strong { font-weight: 500; color: #6f6f6f; }
@media (max-width: 800px) { .to-account .woocommerce-columns--addresses { grid-template-columns: 1fr; } }
.to-account form .form-row .optional { display: none; }
.to-account button.to-btn-dark[type="submit"] { background: #000 !important; border-color: #000 !important; }
.to-account button.to-btn-dark[type="submit"]:hover { background: #393939 !important; border-color: #393939 !important; }
.to-login .woocommerce-privacy-policy-text { font-size: 12px; color: #8a8a8a; margin: 0 0 16px; }
.to-login .woocommerce-privacy-policy-text p { margin: 0; }
/* Lost / reset password pages */
.to-account-page .woocommerce-ResetPassword { max-width: 460px; border: 1px solid #e5e5e5; border-radius: 4px; padding: 24px 26px; }
.to-account-page .woocommerce-ResetPassword .form-row { float: none !important; width: auto !important; margin: 0 0 14px !important; }
.to-account-page .woocommerce-ResetPassword input.input-text { width: 100%; height: 45px; border: 1px solid #989898; border-radius: 4px; padding: 0 13px; font-size: 13px; }
.to-account-page .woocommerce-ResetPassword button[type="submit"] { height: 48px; padding: 0 28px; background: var(--to-blue); color: #fff; border: 0; border-radius: 3px; font-family: var(--to-font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.to-acc-order .to-acc-status { justify-self: start; }
.to-login .woocommerce-ResetPassword { border: 0 !important; padding: 0 !important; max-width: none !important; margin: 0 !important; }
.to-login .woocommerce-ResetPassword > p:first-child { font-size: 14px; line-height: 1.6; color: var(--to-text); margin: 0 0 18px !important; }
.to-login .woocommerce-ResetPassword .form-row-first, .to-login .woocommerce-ResetPassword .form-row-last { float: none !important; width: auto !important; }
.to-login .woocommerce-ResetPassword button[type="submit"] { width: 100%; }
.to-login-back { margin: 16px 0 0 !important; font-size: 13px; }
.to-login-back a { text-decoration: none; }
.to-login .woocommerce-message, .to-login .woocommerce-info { margin-bottom: 16px; }
@media (max-width: 800px) { .to-login-grid.is-single { grid-template-columns: 1fr; } }

/* Footer policy links */
.to-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.to-footer-links { display: flex; gap: 18px; }
.to-footer-links a { color: inherit; text-decoration: none; }
.to-footer-links a:hover { color: var(--to-blue); }

/* 404 */
.to-404 { padding-top: 64px; padding-bottom: 96px; }
.to-404-lead { font-size: 16px; color: var(--to-heading); margin: 0 0 10px; max-width: 640px; }
.to-404-text { font-size: 14px; color: var(--to-text); margin: 0 0 26px; max-width: 640px; line-height: 1.6; }
.to-404-text a { color: var(--to-blue); text-decoration: none; }
.to-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.to-btn-outline, a.to-btn-outline { background: #fff !important; color: var(--to-blue) !important; border: 1px solid var(--to-blue); }
.to-btn-outline:hover { background: var(--to-blue) !important; color: #fff !important; }
.to-checkout .woocommerce-privacy-policy-text a, .to-login .woocommerce-privacy-policy-text a { color: var(--to-blue); }
.to-ty-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.to-account .to-inv-download { margin: 0 0 24px; }
.to-account .to-inv-download .button { display: inline-block; }
.to-account .to-track-box { border: 1px solid #cfe3d6; background: #f3faf5; border-radius: 4px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px; }
.to-account .to-track-box a { color: var(--to-blue); font-weight: 600; text-decoration: none; }

/* Address book (My Account > Addresses, checkout picker) */
.to-ab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.to-ab-head h2 { font-size: 18px !important; font-weight: 600 !important; margin: 0 !important; }
.to-ab-billing-head { margin-top: 34px; }
.to-ab .to-ab-add { padding: 8px 16px !important; font-size: 14px !important; line-height: 1.3 !important; }
.to-ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.to-ab-card { position: relative; border: 1px solid #e5e5e5; border-radius: 4px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.to-ab-card.is-default { border-color: var(--to-blue, #007bff); box-shadow: 0 0 0 1px var(--to-blue, #007bff) inset; }
.to-ab-card address { font-style: normal; line-height: 1.6; margin: 0; flex: 1; }
.to-ab-phone { color: #6f6f6f; }
.to-ab-badge { position: absolute; top: 12px; right: 12px; background: var(--to-blue, #007bff); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 3px; padding: 2px 8px; }
.to-ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border-top: 1px solid #f0f0f0; padding-top: 10px; font-size: 13px; }
.to-ab-inline { display: inline; margin: 0; }
.to-account .to-ab-link, .to-ab-link { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; color: var(--to-blue, #007bff) !important; font: inherit !important; font-size: 13px !important; text-decoration: none; cursor: pointer; box-shadow: none !important; width: auto !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.to-account .to-ab-link:hover, .to-ab-link:hover { text-decoration: underline; background: none !important; }
.to-account .to-ab-link.is-danger { color: #c62828 !important; }
.to-ab-empty { color: #6f6f6f; }
.to-ab-back { margin: 0 0 10px; font-size: 14px; }
.to-ab-back a { text-decoration: none; }
.to-ab-form-wrap > h2 { font-size: 18px !important; font-weight: 600 !important; margin: 0 0 16px !important; }
.to-ab-form { max-width: 640px; }
.to-ab-form .to-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.to-ab-form .to-fields .form-row { width: auto !important; float: none !important; margin: 0 0 14px !important; padding: 0 !important; }
.to-ab-form .to-fields .form-row-wide, .to-ab-form #shipping_country_field, .to-ab-form #shipping_address_1_field, .to-ab-form #shipping_address_2_field, .to-ab-form #shipping_company_field { grid-column: 1 / -1; }
.to-ab-form .to-fields label { display: block; font-size: 14px; margin: 0 0 4px; }
.to-ab-form input.input-text, .to-ab-form select { width: 100%; }
.to-ab-default-row { margin: 4px 0 18px !important; }
.to-ab-default-row label { display: flex !important; align-items: center; gap: 8px; font-size: 14px; }
.to-ab-submit { display: flex; align-items: center; gap: 18px; }
.to-ab-submit .to-btn { width: auto !important; }
.to-ab-pick { margin: 0 0 18px !important; }
.to-ab-pick label { display: block; font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.to-ab-pick select { width: 100%; }
@media (max-width: 600px) {
  .to-ab-form .to-fields { grid-template-columns: 1fr; }
  .to-ab-head { flex-wrap: wrap; }
}
.to-account .to-ab-inline button.to-ab-link[type="submit"], .to-account .to-ab-inline button.to-ab-link[type="submit"]:hover { height: auto !important; line-height: 1.4 !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--to-blue, #007bff) !important; font-family: inherit !important; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.to-account .to-ab-inline button.to-ab-link[type="submit"]:hover { text-decoration: underline; }
.to-account .to-ab-inline button.to-ab-link.is-danger[type="submit"] { color: #c62828 !important; }
.to-ab-actions .to-ab-inline:last-child { margin-left: auto; }
.to-ab-actions { align-items: baseline; }
.to-ab-actions .to-ab-inline { display: inline-flex; }
.to-account .to-ab-inline button.to-ab-link[type="submit"] { display: inline !important; margin: 0 !important; width: auto !important; min-width: 0 !important; vertical-align: baseline; }
.to-ab-card.is-default address { padding-right: 64px; }

/* WooCommerce gives shipping-method list items a bottom margin; it showed as a white strip under the selected option. */
body .to-checkout ul.to-ship-list li.to-ship-option { margin: 0 !important; }

/* ---------- Store notices (added to cart, errors, info): one look everywhere ---------- */
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error {
  display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
  margin: 0 0 22px !important; padding: 14px 18px !important; list-style: none !important;
  background: #fff !important; color: var(--to-text-dark) !important;
  border: 1px solid #e5e5e5 !important; border-left: 4px solid var(--to-blue) !important; border-radius: 4px !important;
  font-family: var(--to-font-body) !important; font-size: 14px !important; line-height: 1.5 !important; box-shadow: none !important;
}
body .woocommerce-message { border-left-color: #2e7d32 !important; }
body .woocommerce-error { border-left-color: #c62828 !important; flex-direction: column; align-items: flex-start; gap: 4px; }
body .woocommerce-error li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body .woocommerce-message::before, body .woocommerce-info::before, body .woocommerce-error::before,
body .woocommerce-message::after, body .woocommerce-info::after, body .woocommerce-error::after { display: none !important; content: none !important; }
body .woocommerce-message a:not(.button), body .woocommerce-info a:not(.button), body .woocommerce-error a:not(.button) { color: var(--to-blue); }
body .woocommerce-message .button, body .woocommerce-info .button, body .woocommerce-error .button {
  order: 2; float: none !important; margin: 0 0 0 auto !important; padding: 9px 18px !important; height: auto !important; line-height: 1.3 !important;
  background: var(--to-blue) !important; border: 1px solid var(--to-blue) !important; border-radius: 3px !important; color: #fff !important;
  font-family: var(--to-font-heading) !important; font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .02em; box-shadow: none !important;
}
body .woocommerce-message .button:hover, body .woocommerce-info .button:hover, body .woocommerce-error .button:hover { background: var(--to-blue-hover) !important; border-color: var(--to-blue-hover) !important; }
@media (max-width: 600px) {
  body .woocommerce-message .button, body .woocommerce-info .button { margin: 0 !important; width: 100%; text-align: center; }
}

/* Stripe card form at checkout: one clean box (no grey panel + inner border). */
body .to-checkout .payment_box.payment_method_stripe { background: #fff !important; padding: 10px 0 0 !important; margin: 0 !important; }
body .to-checkout .payment_box.payment_method_stripe::before { display: none !important; }
body .to-checkout #wc-stripe-upe-form { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
body .to-checkout .wc-stripe-payment-method-instruction { font-size: 13px; color: var(--to-text); margin: 0 0 10px; }

/* Express checkout (Apple Pay, Google Pay, Amazon Pay, Link) at the top of checkout:
   one row on desktop, two per row on phones. Buttons the visitor's device can't use are hidden by Stripe and take no space. */
body #wc-stripe-express-checkout-element { display: flex !important; flex-wrap: nowrap; gap: 10px; align-items: stretch; margin: 0 0 6px !important; }
body #wc-stripe-express-checkout-element > div { flex: 1 1 0; min-width: 0; margin: 0 !important; }
body #wc-stripe-express-checkout-element > div:empty { display: none !important; }
body #wc-stripe-express-checkout-button-separator { margin: 14px 0 0 !important; font-size: 13px; color: var(--to-text); text-align: center; }
@media (max-width: 767px) {
  body #wc-stripe-express-checkout-element { flex-wrap: wrap; gap: 8px; }
  body #wc-stripe-express-checkout-element > div { flex: 1 1 calc(50% - 4px); }
}

/* Shipments on the customer's order page */
.to-ship-account .to-ship-row { padding: 8px 0; border-top: 1px solid #e5e7eb; }
.to-ship-account .to-ship-row:first-child { border-top: 0; padding-top: 0; }
.to-ship-account .to-ship-row:last-child { padding-bottom: 0; }
.to-ship-account .to-ship-items { font-size: 14px; color: var(--to-text, #4b5563); margin-top: 2px; }
.to-ship-account .to-ship-left strong { color: #b45309; }

/* Quantity discount table (Discount Rules plugin) on product pages */
body .awdr-bulk-customizable-table { max-width: none; margin: 18px 0 0; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 14px 6px; background: #fff; }
body .awdr-bulk-customizable-table::before { content: "Buy more, save more"; display: block; font-weight: 700; font-size: 14px; color: var(--to-heading, #393939); margin-bottom: 4px; }
body .awdr-bulk-customizable-table table.wdr_bulk_table_msg { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; }
body .awdr-bulk-customizable-table thead { display: none; }
body .awdr-bulk-customizable-table td.wdr_bulk_range { display: none; }
body .awdr-bulk-customizable-table td { border: 0; border-top: 1px solid #f1f1f1; padding: 6px 0; text-align: left; background: none; }
body .awdr-bulk-customizable-table tr:first-child td { border-top: 0; }
body .awdr-bulk-customizable-table td.wdr_bulk_table_discount { text-align: right; font-weight: 700; color: #15803d; }
body .awdr-bulk-customizable-table td.wdr_bulk_table_discount::after { content: " off each"; font-weight: 400; color: var(--to-text, #6b7280); }
/* Discounted cart / checkout line: original total struck through above the new total */
.to-was-price { display: block; color: #9ca3af; font-size: 0.85em; font-weight: 400; text-decoration: line-through; }
body .to-was-price, body .to-was-price .woocommerce-Price-amount, body .to-was-price bdi { color: #9ca3af !important; font-weight: 400 !important; }
.to-now-price { text-decoration: none; background: none; }

/* Buy box: light grey rounded panel (price, quantity, buttons, quantity-discount table) */
body .to-config-form .to-buy-sticky { background: #f1f1f1; border: 1px solid #e5e4e4; border-radius: 16px; padding: 22px 20px 20px; }
body .to-config-form .to-buy-sticky .to-buy-col .to-price, body .to-config-form .to-buy-sticky .to-price { margin-top: 0; }
body .to-config-form .to-buy-sticky .quantity input.qty { background: #fff; }
body .to-config-form .to-buy-sticky .awdr-bulk-customizable-table { margin-top: 26px; border: 0; border-radius: 10px; padding: 12px 14px 8px; }
body .yith-wapo-popup .to-buy-sticky { background: none; border: 0; border-radius: 0; padding: 0; }

/* Add to cart: small spinner while the cart page loads (inc/product-options.php adds .to-loading). */
body .single_add_to_cart_button.to-loading {
  pointer-events: none;
  cursor: progress;
  opacity: .9;
}
body .single_add_to_cart_button.to-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 0 0 10px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: to-spin .7s linear infinite;
}
@keyframes to-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  body .single_add_to_cart_button.to-loading::after { animation-duration: 2s; }
}

/* Sign In: note for returning customers after the move from BigCommerce */
.to-login-upgrade { max-width: 920px; box-sizing: border-box; margin: 0 0 24px; padding: 16px 20px; border: 1px solid #cfe2ff; border-left: 4px solid var(--to-blue, #007bff); border-radius: 4px; background: #f3f8ff; }
.to-login-upgrade p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #333; }
.to-login-upgrade .to-login-upgrade-title { margin-bottom: 4px; font-weight: 700; font-size: 16px; color: #1f2937; }
.to-login-upgrade-btn { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--to-blue, #007bff); text-decoration: underline; }
.to-login-upgrade-btn:hover { color: var(--to-blue-hover, #0062cc); }

/* Header phone: 15px Poppins on phones too, same as the main site (beats the 13px/12px mobile sizes set in functions.php). */
.to-header-left .to-phone { white-space: nowrap; font-size: 15px; }
@media (max-width: 340px) { .to-header-left .to-phone { font-size: 14px; } } /* smallest phones only, so Account and Cart still fit */
