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

@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;
  }
}

@media (max-width: 767px) {
  body {
    --wool-mobile-text: #252730;
    --wool-mobile-muted: #62646e;
    --wool-mobile-accent: #d4234b;
    --wool-mobile-line: #e7e7ec;
    --wool-mobile-surface: #f6f6f8;
  }

  /* 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;
  }

  /* Header cart counter and its AJAX preview. */
  #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;
    box-sizing: border-box;
    width: calc(100vw - 40px);
    max-width: 380px;
    max-height: calc(100vh - 192px);
    max-height: calc(100dvh - 192px - env(safe-area-inset-bottom, 0px));
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    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;
  }

  /* The separate confirmation window opened after adding a product. */
  body #layer_cart {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 440px;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px - env(safe-area-inset-bottom, 0px));
    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;
  }

  /* 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;
  }
}
