/* WoolEstonia — layout adjustments for the Lorex theme. */

body {
  --wool-mobile-text: #252730;
  --wool-mobile-muted: #62646e;
  --wool-mobile-accent: #d4234b;
  --wool-mobile-line: #e7e7ec;
  --wool-mobile-surface: #f6f6f8;
}

@media (max-width: 991px) {
  /* The mobile navigation has z-index: 111. Leave room for the chat launcher. */
  body #toTop {
    bottom: 96px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    right: 28px;
    right: calc(28px + env(safe-area-inset-right, 0px));
    z-index: 100;
  }
}

/* Shared header cart preview. */
#header .shopping_cart .cart_block {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--wool-mobile-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
  color: var(--wool-mobile-text);
  text-align: left;
}

#header .cart_block .cart_block_list > .products {
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

#header .cart_block .cart_block_list > .products > dt:not(.unvisible) {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 10px 0;
  overflow: visible;
  border-bottom: 1px solid var(--wool-mobile-line);
}

#header .cart_block .cart-images {
  display: block;
  width: 64px;
  margin: 0;
  float: none;
}

#header .cart_block .cart-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

#header .cart_block .cart-info {
  min-width: 0;
  padding: 0;
  overflow: visible;
  line-height: 1.4;
  text-align: left;
}

#header .cart_block .cart-info .product-name {
  margin: 0 0 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#header .cart_block .cart-info .product-name a {
  display: inline;
  color: var(--wool-mobile-text);
  font-size: inherit;
  line-height: inherit;
}

#header .cart_block .cart-info .quantity-formated {
  padding: 0;
  color: var(--wool-mobile-muted);
  font-size: 12px;
  white-space: nowrap;
}

#header .cart_block .cart-info .product-atributes,
#header .cart_block .cart-info .product-atributes a {
  margin: 0;
  padding: 0;
  color: var(--wool-mobile-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#header .cart_block .cart-info > .price {
  display: block;
  margin: 6px 0 0;
  float: none;
  color: var(--wool-mobile-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

#header .cart_block .cart_block_list .remove_link {
  position: static;
  width: 34px;
  height: 34px;
  margin: 0;
}

#header .cart_block .cart_block_list .remove_link > a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--wool-mobile-surface);
  line-height: 1;
}

#header .cart_block .cart-prices {
  margin: 8px 0 0;
  padding: 0;
}

#header .cart_block .cart-prices .cart-prices-line:not(.unvisible) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--wool-mobile-line);
}

#header .cart_block .cart-prices .cart-prices-line > span {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  padding: 8px 0;
  float: none;
  color: var(--wool-mobile-muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

#header .cart_block .cart-prices .cart-prices-line > .price {
  grid-column: 2;
  color: var(--wool-mobile-text);
  font-weight: 600;
  text-align: right;
}

/* Lorex supplies a translated shipping label beside the estimated price. */
#header .cart_block .cart-prices .first-line > .ajax_cart_shipping_cost ~ span {
  display: block;
}

#header .cart_block .cart-prices .last-line > span {
  color: var(--wool-mobile-text);
  font-size: 15px;
  font-weight: 700;
}

#header .cart_block .cart-prices .last-line > .price {
  color: var(--wool-mobile-accent);
  font-size: 18px;
}

#header .cart_block .cart-prices > p {
  margin: 7px 0 0;
  padding: 0;
  color: var(--wool-mobile-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

#header .cart_block .cart-buttons {
  margin: 12px 0 0;
  padding: 0;
}

#header .cart_block .cart-buttons #button_order_cart:not(.unvisible) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
  border-radius: 7px;
  background: var(--wool-mobile-accent);
  color: #fff;
}

#header .cart_block .cart-buttons #button_order_cart > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  #header .shopping_cart .cart_block {
    width: 400px;
    max-width: calc(100vw - 32px);
    padding: 14px;
  }

  /* Scroll the product list while the totals and checkout stay below it. */
  #header .shopping_cart .cart_block > .block_content {
    max-height: none;
    overflow: visible;
  }

  #header .cart_block .cart_block_list {
    display: flex;
    flex-direction: column;
    max-height: min(540px, calc(100vh - 152px));
    max-height: min(540px, calc(100dvh - 152px));
    overflow-y: auto;
  }

  #header .cart_block .cart_block_list > .products {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  #header .cart_block .cart_block_list > :not(.products) {
    flex-shrink: 0;
  }

  #header .cart_block .cart_block_list > .products > dt {
    background: none;
  }

  #header .cart_block .cart_block_no_products {
    padding: 8px 0;
  }

  #header .cart_block .cart_block_list .remove_link > a:focus-visible {
    outline: 2px solid var(--wool-mobile-accent);
    outline-offset: -2px;
  }
}

@media (min-width: 768px) and (max-height: 460px) {
  /* Give the products and totals room to scroll in very short windows. */
  #header .cart_block .cart_block_list > .products {
    flex-shrink: 0;
  }
}

/* Confirmation window shown after adding a product. */
body #layer_cart {
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 10px;
}

body #layer_cart .layer_cart_product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  width: 100%;
  padding: 14px;
  float: none;
  text-align: left;
}

body #layer_cart .layer_cart_product > .title {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0 25px 0 0;
  color: var(--wool-mobile-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

body #layer_cart .layer_cart_product > .title > i {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.35;
}

body #layer_cart .layer_cart_product > .product-image-container {
  width: 72px;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
}

body #layer_cart .layer_cart_product > .product-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

body #layer_cart .layer_cart_product > .layer_cart_product_info {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  color: var(--wool-mobile-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

body #layer_cart .layer_cart_product_info #layer_cart_product_title {
  margin: 0 0 3px;
  padding: 0;
  color: var(--wool-mobile-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body #layer_cart .layer_cart_product .layer_cart_product_info > div {
  margin: 3px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}

body #layer_cart .layer_cart_cart {
  width: 100%;
  min-height: 0;
  padding: 12px 14px 14px;
  float: none;
  border: 0;
  border-top: 1px solid var(--wool-mobile-line);
  background: var(--wool-mobile-surface);
  text-align: left;
}

body #layer_cart .layer_cart_cart > .title {
  margin: 0 0 5px;
  padding: 0;
  color: var(--wool-mobile-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body #layer_cart .layer_cart_cart .layer_cart_row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  margin: 0;
  padding: 0;
}

body #layer_cart .layer_cart_cart .layer_cart_row > strong,
body #layer_cart .layer_cart_cart .layer_cart_row > span {
  grid-row: 1;
  margin: 0;
  padding: 4px 0;
  float: none;
  font-size: 13px;
  line-height: 1.35;
}

body #layer_cart .layer_cart_cart .layer_cart_row > strong {
  grid-column: 1;
  color: var(--wool-mobile-muted);
  font-weight: 400;
}

body #layer_cart .layer_cart_cart .layer_cart_row > span {
  grid-column: 2;
  color: var(--wool-mobile-text);
  font-weight: 600;
  text-align: right;
}

body #layer_cart .layer_cart_cart .layer_cart_row > .ajax_block_cart_total {
  color: var(--wool-mobile-accent);
  font-size: 16px;
  font-weight: 700;
}

body #layer_cart .layer_cart_cart > .button-container {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
}

body #layer_cart .layer_cart_cart > .button-container > .btn.button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--wool-mobile-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

body #layer_cart .layer_cart_cart > .button-container > .btn.button.continue {
  border-color: var(--wool-mobile-line);
  background: #fff;
  color: var(--wool-mobile-text);
}

body #layer_cart .layer_cart_cart > .button-container > .btn.button > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  body #layer_cart {
    position: fixed;
    /* The theme sets its top offset with !important. */
    top: 50% !important;
    right: auto;
    left: 50%;
    width: calc(100vw - 48px);
    max-width: 760px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 20%);
  }

  body #layer_cart > .clearfix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body #layer_cart > .clearfix::before,
  body #layer_cart > .clearfix::after {
    content: none;
  }

  body #layer_cart .layer_cart_product {
    grid-template-columns: 88px minmax(0, 1fr);
    align-content: start;
    gap: 12px 14px;
    padding: 20px 22px;
  }

  body #layer_cart .layer_cart_product > .title {
    padding: 0;
  }

  body #layer_cart .layer_cart_product > .product-image-container {
    width: 88px;
  }

  body #layer_cart .layer_cart_product_info #layer_cart_product_title {
    font-size: 16px;
  }

  body #layer_cart .layer_cart_cart {
    padding: 20px 22px 22px;
    border-top: 0;
    border-left: 1px solid var(--wool-mobile-line);
    border-radius: 0;
  }

  body #layer_cart .layer_cart_cart > .title {
    margin-bottom: 8px;
    padding-right: 30px;
  }

  body #layer_cart .layer_cart_cart .layer_cart_row > .ajax_block_cart_total {
    font-size: 18px;
  }

  body #layer_cart .layer_cart_cart > .button-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }

  body #layer_cart .layer_cart_cart > .button-container > .btn.button {
    display: flex;
    align-items: center;
  }

  body #layer_cart .cross {
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
  }

  body #layer_cart .cross::before {
    font-size: 20px;
    line-height: 1;
  }
}

@media (max-width: 767px) {
  /* Keep the language choices next to the flag that opens them. */
  #header #languages-block-top {
    position: relative;
  }

  #header #languages-block-top ul#first-languages {
    top: calc(100% + 10px);
    right: -8px;
    left: auto;
    z-index: 990;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 4px;
    border: 1px solid var(--wool-mobile-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgb(0 0 0 / 14%);
    text-align: center;
  }

  #header #languages-block-top #first-languages > li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 38px;
    padding: 0;
    float: none;
    vertical-align: middle;
  }

  #header #languages-block-top #first-languages > li > a,
  #header #languages-block-top #first-languages > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 3px;
  }

  /* Mobile header cart counter and dropdown bounds. */
  #header .shopping_cart > a > .ajax_cart_quantity {
    position: absolute;
    top: -4px;
    right: -5px;
    bottom: auto;
    left: auto;
    box-sizing: border-box;
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--wool-mobile-accent);
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
  }

  #header .shopping_cart .cart_block {
    right: 0;
    left: auto;
    width: calc(100vw - 40px);
    max-width: 380px;
    max-height: calc(100vh - 192px);
    max-height: calc(100dvh - 192px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Mobile confirmation window bounds. */
  body #layer_cart {
    width: calc(100% - 24px);
    max-width: 440px;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px - env(safe-area-inset-bottom, 0px));
  }

  /* Service pages have a content nav as well as the header navigation. */
  body#cms.wc-modern-cms #columns {
    padding-bottom: 24px;
  }

  body#cms #center_column .wc-services.wc-modern > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0 0;
    padding: 12px 0;
  }

  body#cms #center_column .wc-services.wc-modern > nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px;
    border: 1px solid #dce2d9;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Checkout spacing and the optional account checkbox. */
  body#order-opc .wco-checkout .wco-title {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
  }

  body#order-opc .wco-checkout .wco-intro {
    margin: 0 0 14px;
  }

  body#order-opc .wco-checkout .wco-layout {
    gap: 12px;
  }

  body#order-opc .wco-checkout .wco-summary summary {
    min-height: 48px;
    padding: 10px 12px;
  }

  body#order-opc .wco-checkout .wco-summary .wco-help {
    padding: 10px 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body#order-opc .wco-checkout .wco-panel {
    margin: 0 0 12px;
    padding: 14px 12px;
  }

  body#order-opc .wco-checkout .wco-panel .page-heading.step-num {
    margin-bottom: 13px;
    line-height: 1.4;
  }

  body#order-opc .wco-checkout #new_account_title,
  body#order-opc .wco-checkout #opc_account_form .wco-column-title {
    margin: 0 0 10px;
    line-height: 1.4;
  }

  body#order-opc .wco-checkout #opc_account_form > p.required {
    margin: 4px 0 9px;
    font-size: 12px;
    line-height: 1.4;
  }

  body#order-opc .wco-checkout #opc_account_form > .wco-account-choice {
    margin-bottom: 12px !important;
    padding: 0;
  }

  body#order-opc .wco-checkout .wco-account-choice > label {
    min-height: 44px;
    padding: 8px 10px !important;
    line-height: 1.4;
  }

  body#order-opc .wco-checkout .wco-account-choice .checker,
  body#order-opc .wco-checkout .wco-account-choice .checker > span {
    background: none;
  }

  body#order-opc .wco-checkout #wco_create_account {
    appearance: auto;
    opacity: 1;
    accent-color: var(--wool-mobile-accent);
  }

  body#order-opc .wco-checkout .wco-panel .form-group {
    margin-bottom: 13px;
  }

  body#order-opc .wco-checkout .wco-panel .form-group > label {
    margin-bottom: 5px;
  }

  /* The chat launcher and cookie shortcut yield space during field entry. */
  body#order-opc:has(.wco-checkout .form-control:focus) > jdiv,
  body#order-opc:has(.wco-checkout .form-control:focus) #lgcookieslaw_fixed_button {
    display: none;
  }

  /* Category heading and description share the column gutter. */
  #category #center_column > .page-heading.product-listing {
    margin: 14px 0 12px;
    padding: 0;
    line-height: 1.25;
  }

  #category #center_column .content_scene_cat {
    margin: 0 0 16px;
    line-height: 1.5;
  }

  #category #center_column .content_scene_cat .content_scene_cat_bg {
    padding: 0;
  }

  #category #center_column .cat_desc p {
    margin: 0 0 8px;
    color: var(--wool-mobile-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  #category #center_column .cat_desc > .lnk_more {
    display: inline-block;
    color: var(--wool-mobile-accent);
    font-size: 14px;
    font-weight: 600;
  }

  /* Product heading, prices, SKU and description. */
  #product:not(.content_only) .pb-center-column > .comments_note {
    margin: 0 0 8px;
  }

  #product:not(.content_only) .pb-center-column > h1 {
    margin: 0 0 12px;
    padding: 0;
    color: var(--wool-mobile-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  #product:not(.content_only) .pb-center-column .content_prices {
    margin: 0 0 12px;
    padding: 0;
  }

  #product:not(.content_only) .pb-center-column .content_prices > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    width: 100%;
  }

  #product:not(.content_only) .content_prices .our_price_display,
  #product:not(.content_only) .content_prices #old_price,
  #product:not(.content_only) .content_prices #reduction_percent,
  #product:not(.content_only) .content_prices #reduction_amount {
    position: static;
    margin: 0;
    padding: 0;
    float: none;
    line-height: 1.2;
  }

  #product:not(.content_only) .content_prices #our_price_display {
    color: var(--wool-mobile-accent);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
  }

  #product:not(.content_only) .content_prices #old_price {
    order: 1;
  }

  #product:not(.content_only) .content_prices #old_price_display .price {
    color: var(--wool-mobile-muted);
    font-size: 14px;
    line-height: 1.2;
  }

  #product:not(.content_only) .content_prices #reduction_percent,
  #product:not(.content_only) .content_prices #reduction_amount {
    order: 2;
  }

  #product:not(.content_only) .content_prices #reduction_percent_display,
  #product:not(.content_only) .content_prices #reduction_amount_display {
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  #product:not(.content_only) .content_prices .estomonthly:not(.unvisible) {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--wool-mobile-muted);
    font-size: 13px;
    line-height: 1.35;
  }

  #product:not(.content_only) .content_prices > div:first-child > p:empty {
    display: none;
  }

  #product:not(.content_only) .pb-center-column #product_reference {
    margin: 0 0 6px;
    color: var(--wool-mobile-muted);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  #product:not(.content_only) .pb-center-column #iqitsizeguide-show {
    margin: 0 0 12px;
    line-height: 1.4;
  }

  #product:not(.content_only) .pb-center-column #short_description_block {
    margin: 0 0 14px;
    padding: 10px 0;
    border-top: 1px solid var(--wool-mobile-line);
    border-bottom: 1px solid var(--wool-mobile-line);
  }

  #product:not(.content_only) .pb-center-column #short_description_block::before,
  #product:not(.content_only) .pb-center-column #short_description_block::after {
    content: none;
  }

  #product:not(.content_only) #short_description_content {
    color: var(--wool-mobile-text);
    line-height: 1.5;
    text-align: left;
  }

  #product:not(.content_only) #short_description_content p {
    margin: 0 0 4px;
    line-height: 1.5;
  }

  #product:not(.content_only) #short_description_content p:last-child {
    margin-bottom: 0;
  }

  /* Quantity, options and purchase controls. */
  #product:not(.content_only) #buy_block .product_attributes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 12px;
  }

  #product:not(.content_only) #buy_block .product_attributes::before,
  #product:not(.content_only) #buy_block .product_attributes::after,
  #product:not(.content_only) #attributes #color_to_pick_list::before,
  #product:not(.content_only) #attributes #color_to_pick_list::after {
    content: none;
  }

  #product:not(.content_only) #buy_block #quantity_wanted_p {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
  }

  #product:not(.content_only) #buy_block #quantity_wanted_p .btn,
  #product:not(.content_only) #buy_block #quantity_wanted_p input {
    margin: 0;
    float: none;
  }

  #product:not(.content_only) #buy_block #attributes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  #product:not(.content_only) #attributes .attribute_fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
  }

  #product:not(.content_only) #attributes .selector {
    margin-left: 0;
  }

  #product:not(.content_only) #attributes #color_to_pick_list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }

  #product:not(.content_only) #attributes #color_to_pick_list li {
    margin: 0;
    float: none;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom > div {
    flex: 0 0 auto;
    width: auto;
    float: none;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom .buttons_bottom_block,
  #product:not(.content_only) #buy_block .box-cart-bottom > div > p:empty {
    margin: 0;
  }

  #product:not(.content_only) #buy_block #add_to_cart button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
  }

  /* Match the wishlist button to the cart button and keep its text label accessible. */
  #product:not(.content_only) #buy_block .box-cart-bottom :is(#wishlist_button, #wishlist_button_nopop) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border: 1px solid var(--wool-mobile-line) !important;
    border-radius: 7px;
    background: #fff !important;
    color: transparent !important;
    font-size: 0 !important;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom :is(#wishlist_button, #wishlist_button_nopop)::before {
    position: static !important;
    display: block !important;
    content: "\f004" !important;
    color: var(--wool-mobile-accent) !important;
    font: normal 22px/1 FontAwesome !important;
    pointer-events: none;
  }

  #product:not(.content_only) #buy_block .box-cart-bottom :is(#wishlist_button, #wishlist_button_nopop):focus-visible {
    outline: 2px solid var(--wool-mobile-accent);
    outline-offset: 2px;
  }

  #product:not(.content_only) #product_comments_block_extra {
    margin: 0 0 16px;
    padding: 0;
  }

  #product:not(.content_only) #product_comments_block_extra .comments_advices {
    margin: 0;
  }

  /* Keep the theme's tab links, with a compact mobile row and aligned reviews. */
  #product:not(.content_only) .product-collateral > .nav-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: stretch;
    margin: 0 0 12px;
    padding: 4px;
    border: 0;
    border-radius: 9px;
    background: var(--wool-mobile-surface);
  }

  #product:not(.content_only) .product-collateral > .nav-tabs::before,
  #product:not(.content_only) .product-collateral > .nav-tabs::after,
  #product:not(.content_only) .product-collateral > .nav-tabs > li > h3::after {
    content: none;
  }

  #product:not(.content_only) .product-collateral > .nav-tabs > li {
    flex: 1 1 76px;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
  }

  #product:not(.content_only) .product-collateral > .nav-tabs > li > h3 {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.25;
  }

  #product:not(.content_only) .product-collateral > .nav-tabs > li.active > h3 {
    border-color: var(--wool-mobile-line);
    background: #fff;
  }

  #product:not(.content_only) .product-collateral > .nav-tabs .page-product-heading {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 6px;
    color: var(--wool-mobile-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #product:not(.content_only) .product-collateral > .nav-tabs > li.active .page-product-heading {
    color: var(--wool-mobile-accent);
  }

  #product:not(.content_only) .product-collateral > .nav-tabs > li > h3 > sup {
    position: static;
    margin-right: 5px;
    color: var(--wool-mobile-muted);
    font-size: 11px;
    line-height: 1;
  }

  #product:not(.content_only) #product_comments_block_tab .comment.row {
    display: block;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--wool-mobile-line);
    border-radius: 8px;
  }

  #product:not(.content_only) #product_comments_block_tab .comment_author,
  #product:not(.content_only) #product_comments_block_tab .comment_details {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
  }

  #product:not(.content_only) #product_comments_block_tab .comment_details::after {
    content: none;
  }

  #product:not(.content_only) #product_comments_block_tab .comment_details p {
    margin: 7px 0 0;
    line-height: 1.5;
  }

  #product:not(.content_only) #product_comments_block_tab > p.align_center {
    margin: 12px 0 0;
    text-align: left;
  }
}
