/* MageWorx OptionFeatures fallback */
.mageworx-optionfeatures-fallback{display:none;}

/* Hide native MageWorx select when swatches are enabled */
select.mageworx-swatch.hidden {
    display: none !important;
}
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

.swatch-attribute-label {
    font-weight: bold;
    position: relative;
}

.swatch-attribute-label.required {
    padding-right: 10px;
}

.swatch-attribute-label[data-required="1"]:after {
    content: '*';
    color: red;
    position: absolute;
    right: -11px;
    top: -2px;
    font-weight: bold;
    font-size: 1em;
}

.swatch-attribute-selected-option {
    color: #646464;
    padding-left: 17px;
}

.swatch-attribute-options {
    margin-top: 10px;
}

.mageworx-swatch-container {
    padding: 5px 7px 0 0;
    display: inline-block;
    border: 1px transparent solid;
    vertical-align: top;
    margin-bottom: 3px;
}

.mageworx-swatch-option {
    padding: 1px;
    min-width: 30px;
    text-align: center;
    cursor: pointer;
    position: relative;
    border: 1px solid rgb(218, 218, 218);
    overflow: hidden;
    text-overflow: ellipsis;
}

.mageworx-swatch-info {
    text-align: center;
    margin-top: 5px;
}

.mageworx-swatch-option.text {
    background: #F2F2F2;
    color: #7F7F7F;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    padding: 4px 8px;
    min-width: 22px;
    min-height: 20px;
}

.mageworx-swatch-option.selected {
    outline: 2px solid #FF5100;
    border: 1px solid #fff;
    color: #333;
}

.mageworx-swatch-option.text.selected {
    background-color: #FFF !important;
}

.clearfix:after {
    content: " "; /* Older browser do not support empty content */
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.swatch-attribute.size .mageworx-swatch-option, .swatch-attribute.manufacturer .mageworx-swatch-option {
    background: rgb(240, 240, 240);
    color: rgb(148, 148, 148);
}

.swatch-attribute.size .mageworx-swatch-option.selected, .swatch-attribute.manufacturer .mageworx-swatch-option.selected {
    color: black;
    background: #fff;
    border: 1px solid #fff;
}

.mageworx-swatch-option:not(.disabled):hover {
    outline: 1px solid #999;
    border: 1px solid #fff;
    color: #333;
}

.mageworx-swatch-option.image:not(.disabled):hover,
.mageworx-swatch-option.color:not(.disabled):hover {
    outline: 2px solid #FF5216;
    border: 1px solid #fff;
}

.mageworx-swatch-option.disabled {
    cursor: default;
}

.mageworx-swatch-option.disabled:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: -moz-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(42%, rgba(255, 255, 255, 0)), color-stop(43%, rgba(255, 255, 255, 1)), color-stop(46%, rgba(255, 255, 255, 1)), color-stop(47%, rgba(255, 82, 22, 1)), color-stop(53%, rgba(255, 82, 22, 1)), color-stop(54%, rgba(255, 255, 255, 1)), color-stop(57%, rgba(255, 255, 255, 1)), color-stop(58%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0)));
    background: -webkit-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to left top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 1) 43%, rgba(255, 255, 255, 1) 46%, rgba(255, 82, 22, 1) 47%, rgba(255, 82, 22, 1) 53%, rgba(255, 255, 255, 1) 54%, rgba(255, 255, 255, 1) 57%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#00ffffff', GradientType=1);
}

.qtip-content .image {
    padding: 0 0 5px 0;
    display: block;
    height: 130px;
    width: 130px;
    margin: 0 auto;
}

.qtip-content .title {
    min-height: 20px;
    padding: 3px 0;
    color: rgb(40, 40, 40);
    font-size: 1.5em;
    text-align: center;
    display: block;
    overflow: hidden;
}

.qtip-content .info {
    min-height: 20px;
    padding: 2px 0;
    color: rgb(40, 40, 40);
    font-size: 1.25em;
    text-align: center;
    display: block;
    overflow: hidden;
}

.swatch-opt {
    margin: 20px 0;
}

.swatch-more {
    display: inline-block;
    margin: 2px 0;
    text-decoration: none !important;
    position: static;
    z-index: 1;
}

/* Layered Features */
.swatch-option-link-layered {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.swatch-option-tooltip-layered {
    width: 140px;
    position: absolute;
    background: #fff;
    color: rgb(148, 148, 148);
    border: 1px solid #adadad;
    display: none;
    z-index: 999;
    left: -47px;
}

.swatch-visual-tooltip-layered {
    height: 160px;
    top: -170px;
}

.swatch-textual-tooltip-layered {
    height: 30px;
    top: -40px;
}

.swatch-option-link-layered:hover > .swatch-option-tooltip-layered {
    display: block;
}

.swatch-attribute-options .swatch-option-tooltip-layered .title {
    width: 100%;
    height: 20px;
    position: absolute;
    bottom: -5px;
    left: 0;
    color: rgb(40, 40, 40);
    text-align: center;
    margin-bottom: 10px;
}

.swatch-option-disabled:after {
    content: '';
    position: absolute;
    width: 42px;
    height: 2px;
    background: red;
    transform: rotate(-30deg);
    -o-transform: rotate(-30deg);
    -moz-transform: rotate(-30deg);
    -ms-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    z-index: 995;
    left: -4px;
    top: 10px;
}

.swatch-option-disabled {
    outline: none !important;
    cursor: default;
    border: 0;
}

.hidden {
    display: none !important;
}

/* Bugfix for Add To Cart button */
.swatch-opt-listing {
    margin-bottom: 10px;
}

.mageworx-optionswatches-option-gallery_image_selected {
    -webkit-transition: all 0.30s ease-in-out;
    -moz-transition: all 0.30s ease-in-out;
    -ms-transition: all 0.30s ease-in-out;
    -o-transition: all 0.30s ease-in-out;
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    border: 1px solid rgba(81, 203, 238, 1);
}

.mageworx-optionswatches-option-gallery {
    display: block;
    clear: both;
    margin-top:3px;
}

/* LEADERFINS ELEGANT FOOT POCKET CONFIGURATOR */

/* Remove duplicate selected label */
.field[data-option_id="7571"] > span#value {
    display: none !important;
}

/* Reorder gallery and swatches visually */
.field[data-option_id="7571"] .control {
    display: flex;
    flex-direction: column;
}

.field[data-option_id="7571"] .swatch-attribute {
    display: contents;
}

.field[data-option_id="7571"] .option_images_gallery {
    order: -1;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 18px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
}

.field[data-option_id="7571"] .mageworx-optionswatches-option-gallery_image {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Swatch grid */
.field[data-option_id="7571"] .swatch-attribute-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

/* Cards */
.field[data-option_id="7571"] .mageworx-swatch-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Consistent borders - no jumping */
.field[data-option_id="7571"] .mageworx-swatch-option.text {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none !important;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px;
    outline: none !important;
    background: #fff !important;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    transition: background .18s ease, border-color .18s ease;
}

.field[data-option_id="7571"] .mageworx-swatch-option.text:hover:not(.disabled) {
    background: #f8f8f8 !important;
    border-color: #aaa !important;
    outline: none !important;
}

.field[data-option_id="7571"] .mageworx-swatch-option.text.selected {
    background: #f6f6f6 !important;
    border-color: #222 !important;
    color: #111 !important;
    font-weight: 600;
    outline: none !important;
}

/* Hide original select */
.field[data-option_id="7571"] select.mageworx-swatch.hidden {
    display: none !important;
}

@media (max-width: 380px) {
    .field[data-option_id="7571"] .swatch-attribute-options {
        gap: 8px;
    }

    .field[data-option_id="7571"] .mageworx-swatch-option.text {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* LEADERFINS - GALLERY ABOVE SWATCH BUTTONS */

.field[data-option_id="7571"] .swatch-attribute {
    display: block !important;
    width: 100%;
}

.field[data-option_id="7571"] .swatch-attribute-options {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

/* Gallery occupies full width and appears first */
.field[data-option_id="7571"] .option_images_gallery {
    grid-column: 1 / -1;
    grid-row: 1;
    order: -1;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px;
    box-sizing: border-box;
}

/* Keep swatches in their own grid cells */
.field[data-option_id="7571"] .mageworx-swatch-container {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Equal card heights */
.field[data-option_id="7571"] .mageworx-swatch-option.text {
    min-height: 76px;
}

/* Hide native select */
.field[data-option_id="7571"] select.mageworx-swatch.hidden {
    display: none !important;
}


/* LEADERFINS PREMIUM CONFIGURATOR V1 */

/* Hide original dropdown for swatches */
.product-options-wrapper select.mageworx-swatch.hidden {
    display: none !important;
}

/* Remove duplicate selected value */
.product-options-wrapper .field:has(.swatch-attribute-options) > #value {
    display: none !important;
}

/* Compact option spacing */
.product-options-wrapper .field:has(.swatch-attribute-options) {
    margin-bottom: 18px;
}

/* All swatch groups */
.product-options-wrapper .swatch-attribute-options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin: 8px 0 0;
}

/* Reset old MageWorx spacing */
.product-options-wrapper .mageworx-swatch-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
}

/* Compact premium buttons */
.product-options-wrapper .mageworx-swatch-option.text {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none !important;
    min-width: 48px;
    min-height: 40px;
    height: auto;
    padding: 9px 12px;
    margin: 0;
    border: 1px solid #dedede;
    border-radius: 5px;
    outline: none !important;
    background: #fff !important;
    color: #252525;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    transition: background-color .15s ease,
                border-color .15s ease;
}

/* Hover without layout jumps */
.product-options-wrapper .mageworx-swatch-option.text:not(.disabled):hover {
    border: 1px solid #777;
    background: #fafafa !important;
    outline: none !important;
}

/* Selected */
.product-options-wrapper .mageworx-swatch-option.text.selected,
.product-options-wrapper .mageworx-swatch-option.text.selected:hover {
    border: 1px solid #171717;
    background: #f3f3f3 !important;
    color: #111;
    font-weight: 600;
    outline: none !important;
}

/* Disabled */
.product-options-wrapper .mageworx-swatch-option.text.disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Foot pockets: compact two-column grid */
.product-options-wrapper .field[data-option_id="7571"] .swatch-attribute-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-container {
    width: 100%;
}

.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-option.text {
    width: 100%;
    min-height: 44px;
    padding: 9px 8px;
}

/* Price below swatch: compact */
.product-options-wrapper .mageworx-swatch-info {
    max-width: none !important;
    margin: 3px 0 0;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #555;
}

/* Foot pocket gallery above buttons */
.product-options-wrapper .field[data-option_id="7571"] .swatch-attribute-options {
    position: relative;
}

.product-options-wrapper .field[data-option_id="7571"] .option_images_gallery {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    padding: 10px;
    margin-bottom: 3px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

.product-options-wrapper .field[data-option_id="7571"] .option_images_gallery img {
    display: block;
    max-width: 100%;
    max-height: 155px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

/* Place buttons after gallery */
.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-container {
    grid-row: auto;
}

/* Mobile */
@media (max-width: 480px) {
    .product-options-wrapper .mageworx-swatch-option.text {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-option.text {
        min-height: 42px;
    }
}

/* LEADERFINS - CLEAN PREMIUM OPTION HEADINGS */

.product-options-wrapper .field > .label {
    display: block;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e9e9e9 !important;
    padding: 0 0 9px !important;
    margin: 0 0 8px !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

.product-options-wrapper .field > .label span {
    color: #202020 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .045em;
    text-transform: uppercase;
}

/* Compact spacing between option groups */
.product-options-wrapper .field {
    margin-bottom: 20px !important;
}

/* Foot pocket gallery: small and clean */
.product-options-wrapper
.field[data-option_id="7571"]
.option_images_gallery {
    padding: 4px !important;
    margin: 0 0 5px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

.product-options-wrapper
.field[data-option_id="7571"]
.option_images_gallery img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 110px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Remove unnecessary gallery spacing */
.product-options-wrapper
.field[data-option_id="7571"]
.mageworx-optionswatches-option-gallery {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* No orange outline */
.product-options-wrapper .mageworx-swatch-option.selected {
    outline: none !important;
    box-shadow: none !important;
}


/* LEADERFINS - UNIFIED RADIO OPTIONS */
.product-options-wrapper .options-list .field.choice {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #eee;
}

.product-options-wrapper .options-list .field.choice > input[type="radio"] {
    position: static !important;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0 !important;
    opacity: 1 !important;
}

.product-options-wrapper .options-list .field.choice > label {
    display: inline-block !important;
    flex: 1;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.product-options-wrapper .options-list .field.choice .price-notice {
    display: inline !important;
    margin: 0 0 0 4px !important;
}

/* LEADERFINS - CONSISTENT SWATCH ALIGNMENT */
.product-options-wrapper .swatch-attribute-options .mageworx-swatch-container {
    justify-content: flex-start !important;
    align-self: start !important;
}

.product-options-wrapper .swatch-attribute-options .mageworx-swatch-option.text,
.product-options-wrapper .swatch-attribute-options .mageworx-swatch-option.text.selected,
.product-options-wrapper .swatch-attribute-options .mageworx-swatch-option.text:hover {
    box-sizing: border-box !important;
    border-width: 1px !important;
    border-style: solid !important;
    outline: none !important;
    transform: none !important;
}

.product-options-wrapper .swatch-attribute-options .mageworx-swatch-info {
    position: static !important;
    margin: 4px 0 0 !important;
    width: 100%;
    text-align: center;
}

/* LEADERFINS - FOOT POCKETS FIX */
.product-options-wrapper .field[data-option_id="7571"] .swatch-attribute-options {
    align-items: start !important;
}

.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-container {
    align-self: start !important;
    justify-content: flex-start !important;
}

.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-option.text,
.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-option.text.selected,
.product-options-wrapper .field[data-option_id="7571"] .mageworx-swatch-option.text:hover {
    box-sizing: border-box !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    border-width: 1px !important;
    margin: 0 !important;
    transform: none !important;
}

/* LEADERFINS - ROUND IMAGE AND COLOR SWATCHES */
.product-add-form .mageworx-swatch-option.image {
    border-radius: 50% !important;
    overflow: hidden;
}

/* LEADERFINS - SELECTED COLOR SWATCH */
.product-add-form .mageworx-swatch-option.image.selected {
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 2px #171717 !important;
    box-sizing: border-box !important;
}

/* LF_UNIVERSAL_CARDS_V12 */

html body .product-options-wrapper .field .swatch-attribute:has(.lf-unified-card) {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    container-type:inline-size;
}

html body .product-options-wrapper .field .swatch-attribute[style*="display:none"],
html body .product-options-wrapper .field .swatch-attribute[style*="display: none"] {
    display:none!important;
}

/* Universal grid */
html body .product-options-wrapper .field .swatch-attribute-options:has(.lf-unified-card) {
    display:grid!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    grid-template-rows:none!important;
    gap:9px!important;
    align-items:stretch!important;
    align-content:start!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:9px 0 0!important;
    padding:0!important;
}

/* Photo grid */
html body .product-options-wrapper .field .swatch-attribute-options:has(.lf-photo-card) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

@container (min-width:360px) {
    html body .product-options-wrapper .field .swatch-attribute-options:has(.lf-photo-card) {
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}

@container (min-width:490px) {
    html body .product-options-wrapper .field .swatch-attribute-options:has(.lf-photo-card) {
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
}

/* Exactly two photo choices */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(2)):not(:has(> .mageworx-swatch-container:nth-child(3))) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* Exactly three photo choices */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4))) {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* Text-only options */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,105px),1fr))!important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(2)):not(:has(> .mageworx-swatch-container:nth-child(3))) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4))) {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* Preserve MageWorx dependency visibility */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-unified-card) .mageworx-swatch-container {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    grid-row:auto!important;
    grid-column:auto!important;
}

html body .product-options-wrapper .field .mageworx-swatch-container[style*="display:none"],
html body .product-options-wrapper .field .mageworx-swatch-container[style*="display: none"] {
    display:none!important;
}

/* Common cards */
html body .product-options-wrapper .field .mageworx-swatch-option.lf-unified-card {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:56px!important;
    max-height:none!important;
    margin:0!important;
    padding:9px 7px!important;
    border:1px solid #dbe2eb!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#142033!important;
    text-align:center!important;
    white-space:normal!important;
    box-shadow:0 2px 7px rgba(20,35,55,.06)!important;
    overflow:hidden!important;
    cursor:pointer!important;
}

/* Compact horizontal photos */
html body .product-options-wrapper .field .mageworx-swatch-option.lf-photo-card {
    min-height:132px!important;
    height:100%!important;
    max-height:none!important;
    padding:7px 5px!important;
}

html body .product-options-wrapper .field .lf-photo-card > .lf-picture {
    display:flex!important;
    flex:0 0 66px!important;
    height:66px!important;
    min-height:0!important;
    max-height:66px!important;
    width:100%!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 0 3px!important;
    padding:0!important;
}

html body .product-options-wrapper .field .lf-photo-card > .lf-picture img {
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:65px!important;
    object-fit:contain!important;
}

/* Titles */
html body .product-options-wrapper .field .lf-unified-card > .lf-title {
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    font-size:12px!important;
    font-weight:650!important;
    line-height:1.2!important;
    text-align:center!important;
    overflow-wrap:break-word!important;
}

/* Prices remain inside; rows grow when required */
html body .product-options-wrapper .field .lf-unified-card > .lf-price {
    display:inline-block!important;
    flex:0 0 auto!important;
    margin:4px 0 0!important;
    padding:3px 6px!important;
    border-radius:6px!important;
    background:#f0f2f5!important;
    color:#10213a!important;
    font-size:11px!important;
    line-height:1.15!important;
    font-weight:700!important;
    white-space:nowrap!important;
}

/* Text choices */
html body .product-options-wrapper .field .mageworx-swatch-option.lf-text-card {
    min-height:56px!important;
    height:100%!important;
    max-height:none!important;
    padding:10px 7px!important;
}

/* Selected */
html body .product-options-wrapper .field .mageworx-swatch-option.lf-unified-card.selected {
    border:2px solid #12243e!important;
}

html body .product-options-wrapper .field .lf-text-card.selected:before {
    display:none!important;
}

html body .product-options-wrapper .field .lf-photo-card.selected:before {
    content:'✓'!important;
    display:block!important;
    position:absolute!important;
    top:5px!important;
    right:5px!important;
    width:20px!important;
    height:20px!important;
    border-radius:50%!important;
    background:#12243e!important;
    color:#fff!important;
    font-size:12px!important;
    line-height:20px!important;
    z-index:2!important;
}

/* Section spacing */
html body .product-options-wrapper .field:has(.lf-unified-card) {
    height:auto!important;
    min-height:0!important;
    margin-bottom:17px!important;
    padding-bottom:8px!important;
}

/* No duplicated gallery */
html body .product-options-wrapper .field:has(.lf-photo-card) .option_images_gallery {
    display:none!important;
}

/* Keep color circles */
html body .product-options-wrapper .mageworx-swatch-option.mw-type-color {
    border-radius:50%!important;
}

/* LF_LAYOUT_BALANCE_V13 */

/* PHOTO OPTIONS: 4+ values — full pictures and labels */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(n+4)) {
    grid-auto-rows: max-content !important;
    grid-template-rows: none !important;
    row-gap: 10px !important;
    align-items: stretch !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(n+4))
.mageworx-swatch-container {
    height: auto !important;
    min-height: 162px !important;
    max-height: none !important;
    align-self: stretch !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(n+4))
.mageworx-swatch-option.lf-photo-card {
    height: 162px !important;
    min-height: 162px !important;
    max-height: none !important;
    padding: 8px 6px !important;
    justify-content: center !important;
    overflow: hidden !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(n+4))
.lf-picture {
    flex: 0 0 88px !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    margin: 0 0 4px !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(n+4))
.lf-picture img {
    max-width: 100% !important;
    max-height: 86px !important;
    object-fit: contain !important;
}

/* PHOTO OPTIONS: exactly 3 values — larger blade illustrations */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card)
:has(> .mageworx-swatch-container:nth-child(3))
:not(:has(> .mageworx-swatch-container:nth-child(4))) {
    grid-auto-rows: max-content !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4)))
.mageworx-swatch-container {
    height: auto !important;
    max-height: none !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4)))
.mageworx-swatch-option.lf-photo-card {
    height: 190px !important;
    min-height: 190px !important;
    max-height: none !important;
    padding: 10px 7px !important;
    justify-content: center !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4)))
.lf-picture {
    flex: 0 0 100px !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    margin-bottom: 5px !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card):has(> .mageworx-swatch-container:nth-child(3)):not(:has(> .mageworx-swatch-container:nth-child(4)))
.lf-picture img {
    max-width: 100% !important;
    max-height: 98px !important;
    object-fit: contain !important;
}

/* TEXT OPTIONS: 9+ values — compact responsive size chart */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(n+9)) {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,86px),1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 8px !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(n+9))
.mageworx-swatch-option.lf-text-card {
    min-height: 46px !important;
    height: 100% !important;
    padding: 7px 4px !important;
    font-size: 13px !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(n+9))
.lf-title {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-text-card):not(:has(.lf-photo-card)):has(> .mageworx-swatch-container:nth-child(n+9))
.lf-price {
    margin-top: 3px !important;
    font-size: 11px !important;
}

/* Keep all cards clickable; do not override dependency visibility */
/* LF_CARD_ALIGNMENT_V14 */

/* Белый фон всегда, включая hover и selected */
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card,
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card:hover,
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card.selected,
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card:focus {
    background: #fff !important;
    background-image: none !important;
}

/* Одинаковая вертикальная структура */
html body .product-options-wrapper .field
.swatch-attribute-options:has(.lf-photo-card)
.mageworx-swatch-container > .mageworx-swatch-option.lf-photo-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 165px !important;
    min-height: 165px !important;
    max-height: none !important;
    padding: 9px 7px !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

/* Картинки на одной высоте */
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card > .lf-picture {
    display: flex !important;
    flex: 0 0 86px !important;
    align-items: center !important;
    justify-content: center !important;
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    width: 100% !important;
    margin: 0 0 5px !important;
}

html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card > .lf-picture img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 84px !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* Названия на одном уровне */
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card > .lf-title {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* Цена под названием, не сдвигает картинку */
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-photo-card > .lf-price {
    position: static !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 3px 0 0 !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    font-size: 11px !important;
}

/* Убираем фоновую заливку текстовых вариантов */
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-text-card:hover,
html body .product-options-wrapper .field
.mageworx-swatch-option.lf-text-card.selected {
    background: #fff !important;
}

/* LF NORMAL TEXT CASE */
body .product-options-wrapper,
body .product-options-wrapper * {
    text-transform: none !important;
    font-variant-caps: normal !important;
}


/* LF_BUY_UI_20261103 */

/* Natural text case */
body .product-options-wrapper .field label,
body .product-options-wrapper .field .label,
body .product-options-wrapper .mageworx-swatch-option,
body .product-options-wrapper .options-list {
    text-transform: none !important;
    font-variant-caps: normal !important;
}

/* Total price above quantity and Add to Cart */
body .product-add-form .box-tocart:has(.lf-qty-control) {
    display: grid !important;
    grid-template-columns: minmax(116px,150px) minmax(0,1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
    align-items: end !important;
    width: 100% !important;
    margin: 14px 0 22px !important;
}

body .box-tocart:has(.lf-qty-control) > .fieldset {
    display: contents !important;
}

body .box-tocart:has(.lf-qty-control) .mageworx-product-final-price {
    grid-column: 1/-1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #dce1e9 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
}

body .box-tocart:has(.lf-qty-control)
.mageworx-product-final-price .price-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
}

body .box-tocart:has(.lf-qty-control)
.mageworx-product-final-price .price {
    font-size: 24px !important;
    font-weight: 750 !important;
    color: #14243c !important;
}

/* Quantity on left */
body .box-tocart:has(.lf-qty-control) .field.qty {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body .box-tocart:has(.lf-qty-control) .field.qty > label.label {
    display: none !important;
}

body .box-tocart:has(.lf-qty-control) .lf-qty-control {
    display: grid !important;
    grid-template-columns: 38px minmax(0,1fr) 38px !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    gap: 0 !important;
    border: 1px solid #dce1e9 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

body .box-tocart:has(.lf-qty-control) .lf-qty-control input.qty {
    width: 100% !important;
    height: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

body .lf-qty-control input::-webkit-inner-spin-button,
body .lf-qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body .box-tocart:has(.lf-qty-control) .lf-qty-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: #f1f3f6 !important;
    color: #14243c !important;
    font-size: 22px !important;
    cursor: pointer !important;
}

body .box-tocart:has(.lf-qty-control) .lf-qty-button:hover {
    background: #e5eaf1 !important;
}

/* Add to Cart on right */
body .box-tocart:has(.lf-qty-control) > .actions {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body .box-tocart:has(.lf-qty-control)
#product-addtocart-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    text-transform: none !important;
}

@media (max-width:380px) {
    body .product-add-form .box-tocart:has(.lf-qty-control) {
        grid-template-columns: 112px minmax(0,1fr) !important;
        column-gap: 8px !important;
    }
}

/* LF_QTY_ALIGNMENT_FIX */

body .product-add-form .box-tocart:has(.lf-qty-control) {
    align-items: start !important;
}

body .product-add-form .box-tocart:has(.lf-qty-control) .field.qty,
body .product-add-form .box-tocart:has(.lf-qty-control) > .actions {
    align-self: start !important;
    margin-top: 0 !important;
    vertical-align: top !important;
}

body .product-add-form .box-tocart:has(.lf-qty-control) .lf-qty-control,
body .product-add-form .box-tocart:has(.lf-qty-control) #product-addtocart-button {
    height: 54px !important;
    margin-top: 0 !important;
}

/* LF_HIDE_WISHLIST_SHARE_V1 */
body.catalog-product-view .product-info-main .product-social-links,
body.catalog-product-view .product-info-main .product-addto-links {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* LF REQUIRED ERROR FIX */
body .product-options-wrapper .field .swatch-attribute-options > .mage-error {
    grid-column: 1 / -1 !important;
    width: fit-content !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 6px 10px !important;
    background: #fff3f2 !important;
    color: #b42318 !important;
    border: 1px solid #f4c7c3 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
/* LF_FOOT_WHITE_HOVER */
html body .product-options-wrapper .field[data-option_id="7571"]
.mageworx-swatch-option.lf-photo-card,
html body .product-options-wrapper .field[data-option_id="7571"]
.mageworx-swatch-option.lf-photo-card:hover,
html body .product-options-wrapper .field[data-option_id="7571"]
.mageworx-swatch-option.lf-photo-card.selected,
html body .product-options-wrapper .field[data-option_id="7571"]
.mageworx-swatch-option.lf-photo-card:focus {
    background-color: #fff !important;
    background-image: none !important;
}

/* LF_FOOT_HOVER_FIX_V2 */
html body .product-options-wrapper .field:has(img[alt="Forza Black"])
.mageworx-swatch-container:hover,
html body .product-options-wrapper .field:has(img[alt="Forza Black"])
.mageworx-swatch-option.lf-photo-card,
html body .product-options-wrapper .field:has(img[alt="Forza Black"])
.mageworx-swatch-option.lf-photo-card:hover,
html body .product-options-wrapper .field:has(img[alt="Forza Black"])
.mageworx-swatch-option.lf-photo-card.selected,
html body .product-options-wrapper .field:has(img[alt="Forza Black"])
.mageworx-swatch-option.lf-photo-card:focus {
    background-color: #ffffff !important;
    background-image: none !important;
}
