/* Fitmaster Page Styles */
:root {
    --brand-red: var(--primary-color);
    --border-gray: var(--border-color-light);
    --background-light: var(--background-color-light);
    --background-white: var(--background-color-white);
    --background-gray: var(--background-color-gray-light);
    --text-gray: var(--text-color-gray);
    --text-dark: var(--secondary-color-light);
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 18px;
    --border-radius-round: 50px;
}

/* Homepage Container Structure */
.content-container.homepage {
    background: var(--background-light);
    min-height: 100vh;
}

#hpcontainer {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Homepage Styles */
div#homepage {
    background: transparent;
    padding: 0;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

#homepage h1 {
    color: var(--text-dark);
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-xxl);
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

/* Search Boxes Grid */
#searchboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.searchbox {
    background: var(--glass-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    text-align: center;
    min-height: 280px;
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.searchbox:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.searchbox-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.searchbox h2 {
    color: var(--brand-red);
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-xxl);
    font-weight: bold;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.searchbox p {
    color: var(--text-dark);
    font-size: var(--font-size-medium);
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex: 1;
}

.searchbox-button {
    margin-top: auto;
    text-align: center;
}

/* Red Button Styles */
.redbutton {
    position: relative;
    background: var(--primary-gradient) !important;
    color: var(--text-color-light) !important;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-large);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(198, 0, 0, 0.10);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}

.redbutton::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--primary-gradient-hover);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s linear;
    pointer-events: none;
    border-radius: inherit;
}

.redbutton:hover::before {
    opacity: 1;
}

.redbutton:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(198, 0, 0, 0.20);
    text-decoration: none;
}

.redbutton i {
    margin-left: 8px;
}

/* Homepage Actions */
.homepage-actions {
    margin-top: 60px;
    text-align: center;
}

p#hp-fitinfo {
    padding: 20px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    background: var(--glass-bg-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.homepage-nav .greybtn {
    margin: 20px;
    padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 900px) {
    #hpcontainer {
        padding: 40px 15px;
    }
    
    #searchboxes {
        gap: 20px;
        padding: 0;
    }
    
    .searchbox {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .searchbox {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .searchbox h2 {
        font-size: var(--font-size-xxl);
    }
    
    #homepage h1 {
        font-size: var(--font-size-xxl);
        margin-bottom: 30px;
    }
    
    .homepage-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .homepage-nav .greybtn {
        max-width: 300px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #hpcontainer {
        padding: 20px 10px;
    }
    
    .searchbox {
        padding: 25px 15px;
    }
    
    #homepage h1 {
        font-size: var(--font-size-xxl);
    }
    
    .searchbox h2 {
        font-size: var(--font-size-xl);
    }
}

/* Legacy Homepage Styles (for backward compatibility) */

/* Homepage Styles */
div#homepage {
    background: var(--background-light);
    padding-top: 1px;
    padding-bottom: 150px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

#homepage > a {
    color: var(--text-color-dark);
    background: transparent;
    border-radius: var(--border-radius-round);
    height: 40px;
    display: block;
    line-height: 41px;
    font-size: var(--font-size-medium);
    text-decoration: none;
    max-width: 250px;
    margin: auto;
    margin-bottom: 40px;
    border: 2px var(--border-color-black) solid;
}

#homepage a.greybtn {
    margin-left: auto;
    margin-right: auto;
}

p#hp-fitinfo {
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: var(--font-size-xl);
}

/* Container and Entry Content */
.container {
    margin: 0 auto;
    min-height: 200px;
    height: 100%;
}

#hpcontainer .container {
    padding: 0;
    max-width: none;
}

.entry-content {
    padding: 20px;
    margin: 0 auto;
    min-height: 600px;
    max-width: 1400px;
}

.searchpage .entry-content {
    padding: 20px;
    margin: 0 auto;
    min-height: 600px;
    max-width: 100%;
}

/* Form and Input Styles */
.et_pb_column.et_pb_column_3_4 input,
.fm-col-9 input,
.fm-col-3-4 input {
    border-radius: var(--border-radius-small);
    display: block;
    margin-bottom: 12px;
    font-size: var(--font-size-xl);
    padding: 10px;
    background: var(--background-white);
    border: 1px var(--border-gray) solid;
    margin-top: 5px;
    width: calc(100% - 40px);
    max-width: 320px;
    margin: auto;
    box-sizing: border-box;
}

/* Table Styles */
table.part_lookup_results {
    width: 100%;
}

table.part_lookup_results th {
    text-align: left;
    padding: 9px 10px 10px 9px;
    vertical-align: top;
    width: 110px;
}

@media only screen and (min-width: 768px) {
    table.part_lookup_results th {
        width: 200px;
    }
}

.part_lookup_results td {
    padding: 10px;
    vertical-align: top;
    border: 1px var(--border-color-light) solid;
    border-bottom: none;
}

.part_lookup_results tr:nth-child(even) {
    background: #EFEFEF;
}

.part_lookup_results tr:nth-child(odd) {
    background: var(--background-color-white);
}

table.part_lookup_results tr:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

table.part_lookup_results tr:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

table.part_lookup_results tr:last-child td {
    border-bottom: 1px var(--border-color-light) solid;
}

table.part_lookup_results thead td {
    background: var(--background-color-dark);
    color: var(--text-color-light);
}

/* Content and Layout Styles */
.inner {
    padding: 15px;
    padding-top: 0px;
    padding-bottom: 0px;
}

article.page.type-page.fitmaster_results {
    padding: 10px;
    width: calc(100% - 20px);
}

.et_pb_column.et_pb_column_1_2 > ul,
.fm-col-6 > ul,
.fm-col-1-2 > ul {
    padding-left: 15px;
}

.wrongstyle a {
    text-decoration: underline;
}

div.baseplate-type svg {
    color: #aaa;
    font-size: var(--font-size-large);
}

h2.results-title {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-weight: 700;
    font-size: var(--font-size-xxl);
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0px;
    text-align: left;
}

#clickbelow {
    font-family: var(--font-family-primary);
    font-style: italic;
    font-weight: 400;
}

span.step {
    background: var(--brand-red);
    color: var(--background-white);
    width: 30px;
    height: 30px;
    text-align: center;
    display: inline-block;
    line-height: 30px;
    border-radius: var(--border-radius-round);
    margin-right: 7px;
    position: relative;
    top: -1px;
}

/* List and toggle content styles from style.css */
h4 a {
    text-decoration: none;
}

ol li {
    border: 1px var(--border-color-light) solid;
    padding: 15px 10px;
    background: #fafafa;
    margin-bottom: -1px;
    font-size: var(--font-size-medium);
    font-weight: bold;
    text-decoration: none;
    float: left;
    width: calc(100% - 20px);
}

ol li:first-child {
    border-top-left-radius: var(--border-radius-small);
    border-top-right-radius: var(--border-radius-small);
}

ol li:last-child {
    border-bottom-left-radius: var(--border-radius-small);
    border-bottom-right-radius: var(--border-radius-small);
}

ol li > strong {
    float: right;
    font-weight: normal;
    margin-bottom: 5px;
}

ol li .stepload.bc-prouduct-main-load {
    border-top: 1px var(--border-color-light) solid;
    background: var(--background-color-white);
    margin: 10px -10px -15px -10px;
    padding: 15px;
}

ol li.YES {
    background: var(--background-color-white);
}

ol li.YES strong {
    color: #00742E;
    font-weight: bold;
}

ol li.YES svg {
    display: inline-block;
    position: relative;
    top: 1px;
}

.et_pb_toggle_content.clearfix a, 
.fm-accordion-content.clearfix a, 
#singleentry a {
    color: var(--brand-red);
    text-decoration: underline dotted;
    font-size: var(--font-size-xxl);
}

.innerFMlink {
    text-decoration: underline dotted;
    transition: text-decoration 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.innerFMlink:hover {
    text-decoration: underline solid;
    transition: text-decoration 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

a.view_photos_link svg {
    display: none;
}

.et_pb_toggle_content.clearfix a svg, 
.fm-accordion-content.clearfix a svg, 
#singleentry a svg {
    margin-right: 5px;
    font-size: var(--font-size-base);
}

.et_pb_toggle_content.clearfix h4 a, 
.fm-accordion-content.clearfix h4 a, 
#singleentry h4 a {
    color: var(--secondary-color-light);
}

.et_pb_toggle_content.clearfix ol li a, 
.fm-accordion-content.clearfix ol li a, 
#singleentry ol li a {
    font-size: var(--font-size-medium);
}

/* Product and quick menu styles from style.css */
.product-name {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 10px;
}

.addtocart {
    color: var(--text-color-light);
    background: var(--primary-color);
    max-width: 320px;
    border-radius: 50px;
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: bold;
    padding: 9px 0px;
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.datastep a {
    font-size: var(--font-size-xxl);
}

.product-price {
    font-size: var(--font-size-xl);
}

#targetframe {
    display: none;
}

.qm-item span {
    background: #E9E9E9;
    color: #717171;
    width: 30px;
    height: 30px;
    text-align: center;
    display: inline-block;
    line-height: 30px;
    border-radius: var(--border-radius-round);
    margin-right: 7px;
    position: relative;
    top: -1px;
}

div#br_vehicle_type_field, div#rss_vehicle_type_field {
    display: none;
}

/* Remaining content migrated from style.css */
#clickbelow {
    font-family: var(--font-family-primary);
    font-style: italic;
    font-weight: 400;
}

.sidearms .product-name {
    font-size: var(--font-size-medium);
}

.sidearms .span.itemsku {
    display: block;
}

.product-info {
    margin-bottom: 12px;
}

body .product-info span.itembrand {
    display: none;
}

span.itemsku {
    margin-right: 10px;
}

p.notes.before_ul_label strong {
    font-size: var(--font-size-large);
    text-transform: uppercase;
}

p.notes.before_ul_label {
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: var(--background-color-gray-light);
    border-bottom: 2px solid var(--border-color-medium);
}

p.installtime {
    font-weight: bold;
}

p.before_ul_label {
    font-size: var(--font-size-medium);
    font-weight: bold;
}

ol li .product-info {
    font-weight: normal;
    font-size: var(--font-size-medium);
}

ol li .itemsku {
    display: block;
}

.stepload.bc-prouduct-main-load.itemframe.newwire {
    width: 100%;
    margin-top: 10px;
    padding: 4px;
    clear: both;
    float: left;
}

.brakestep .more_info {
    display: block;
    margin-bottom: 10px;
}

.sidearms {
    display: flex;
    justify-content: space-between;
}

.sidearm {
    width: calc(50% - 5px);
}

.et_pb_row,
.fm-row {
    border-bottom: 5px var(--border-color-extra-light) solid;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.fm-accordion-content .fm-row,
.fm-accordion-content .et_pb_row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notapp {
    list-style: none;
    margin-left: 0;
    background: var(--background-color-gray-medium);
    border: 1px solid var(--border-color-medium);
    border-radius: var(--border-radius-medium);
    padding: 15px 20px;
    color: var(--text-color-gray);
}

.qm-item {
    border-right: 4px var(--background-light) solid;
}

.qm-item.active {
    background: var(--background-white);
    border-right: var(--brand-red) 4px solid;
}

.qm-item.active span {
    background-color: var(--brand-red);
    color: var(--background-white);
}

body.page-template-reverse-lookup {
    background: var(--background-white);
}

body.page-template-reverse-lookup span.et-pb-icon,
body.page-template-reverse-lookup span.fm-icon {
    font-size: calc(var(--font-size-small) * 0);
}

.page-template-reverse-lookup .entry-content {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background: var(--background-white);
}

.page-template-reverse-lookup .et_pb_section.et_section_regular,
.page-template-reverse-lookup .fm-section {
    background: var(--background-white) !important;
    margin-bottom: 0px;
    padding: 0px;
}

span.et-pb-icon,
span.fm-icon {
    font-size: calc(var(--font-size-small) * 0);
}

.part_lookup_results span.et-pb-icon:before,
.part_lookup_results span.fm-icon:before {
    display: inline-block;
    background-repeat: no-repeat;
}

.comments span.et-pb-icon:before,
.comments span.fm-icon:before {
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 100%;
    margin-left: 5px;
    position: relative;
    top: 3px;
    margin-right: 2px;
}

.footnotes span.et-pb-icon:before,
.footnotes span.fm-icon:before {
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 100%;
    margin-left: 5px;
    position: relative;
    top: 3px;
    margin-right: 2px;
}

svg.svg-inline--fa.fa-file-alt {
    font-size: var(--font-size-base);
    position: relative;
    top: -1px;
}



div#topcard {
    background: var(--glass-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0px -10px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 160px;
}
div.baseplate-type {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-weight: 700;
    font-size: var(--font-size-xl);
    line-height: 38px;
    text-transform: capitalize;
    color: var(--primary-color);
    margin-top: 8px;
}
.top_comments {
    margin-top: 12px;
    margin-bottom: 20px;
    background: var(--background-color-gray-medium);
    border: 1px var(--border-color-light) solid;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
.top_comments .comment-title {
    background: #e9e900;
    color: var(--text-color-dark);
    border-bottom: 1px var(--border-color-light) solid;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 2px 15px 2px 15px;
}
.top_comments .comment-text {
    margin-top: 8px;
    padding: 8px 15px 0 0;
    display: block;
    color: var(--text-color-dark);
}
.searchbox h2 {
    font-family: var(--font-family-primary);
    margin-top: 0px;
}

/* Button Styles */
.searchbox a,
.addtocart,
.showresults,
button#br_submit,
button.et_pb_button,
button.fm-button {
    color: var(--background-white);
    background: var(--brand-red);
    border-radius: var(--border-radius-round);
    height: 50px;
    display: block;
    line-height: 50px;
    font-size: var(--font-size-large);
    text-decoration: none;
    max-width: 320px;
    margin: auto;
    margin-bottom: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
}

.addtocart {
    font-size: var(--font-size-xl);
    padding: 9px 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.showresults {
    margin-top: 20px;
    line-height: 49px;
}

button.et_pb_button.et_pb_custom_button_icon.et_pb_bg_layout_dark,
button.fm-button--dark {
    margin-top: 20px !important;
    width: 100%;
    z-index: 1000;
}

.searchbox a:hover,
.addtocart:hover,
.showresults:hover,
button#br_submit:hover,
button.et_pb_button:hover,
button.fm-button:hover {
    text-decoration: underline;
}

.inner {
    padding: 15px;
    padding-top: 0px;
    padding-bottom: 0px;
}
article.page.type-page.fitmaster_results {
    padding: 10px;
    width: calc(100% - 20px);
}
.et_pb_column.et_pb_column_1_2 > ul {
    padding-left: 15px;
}
.wrongstyle a {
    text-decoration: underline;
}
div.baseplate-type svg {
    color: #aaa;
    font-size: var(--font-size-large);
}
/* Results and Toggle Styles */
h2.results-title {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-weight: 700;
    font-size: var(--font-size-xxl);
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
}

#clickbelow {
    font-family: var(--font-family-primary);
    font-style: italic;
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: 24px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.et_pb_toggle_title,
.fm-accordion-header {
    display: block;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-medium);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.et_pb_toggle_title .part-status,
.fm-accordion-header .part-status {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 7.5px;
}

.et_pb_toggle_title .title-comment,
.fm-accordion-header .title-comment {
    background: rgba(243, 243, 243, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin: 0 0 7.5px 8px;
    padding: 8px 6px;
    font-size: var(--font-size-medium);
}

.et_pb_toggle_title .part-status .status-available,
.fm-accordion-header .part-status .status-available {
    color: #33ff63;
    background: rgba(40,167,69,0.5);
    padding: 8px 4px;
    font-size: var(--font-size-base);
}

.et_pb_toggle_title .part-status .status-obsolete,
.fm-accordion-header .part-status .status-obsolete {
    color: #ffc107;
    background: rgba(255,193,7,0.5);
    padding: 8px 4px;
    font-size: var(--font-size-base);
}

.et_pb_toggle_title.archived,
.fm-accordion-header.archived {
    background: rgba(240, 240, 240, 0.8);
}

.et_pb_toggle_title.archived .showresults,
.fm-accordion-header.archived .showresults {
    background: #943a3a;
}


.ttitle {
    font-weight: bold;
    font-size: var(--font-size-xxl);
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.et_pb_toggle_title.active,
.fm-accordion-header.active {
    border-color: var(--text-color-dark);
    position: relative;
    z-index: 2;
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
}

.et_pb_toggle_content.clearfix,
.fm-accordion-content.clearfix {
    border: 3px var(--border-color-black) solid;
    padding: 15px;
    background: var(--background-color-white);
    z-index: 1;
    position: relative;
    margin-top: -30px;
    padding-top: 35px;
    margin-bottom: 30px;
    display: none;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    max-height: none;
    overflow: visible;
    transition: none;
}

.et_pb_toggle_content.clearfix::after,
.fm-accordion-content.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.active .showresults {
    background: var(--background-color-dark);
}

.fa-minus-circle {
    display: none;
}

.et_pb_toggle_title.active .fa-minus-circle,
.fm-accordion-header.active .fa-minus-circle {
    display: inline-block;
}

.et_pb_toggle_title.active .fa-plus-circle,
.fm-accordion-header.active .fa-plus-circle {
    display: none;
}

.hidefull {
    display: none;
}

.et_pb_toggle_title.active .showfull,
.fm-accordion-header.active .showfull {
    display: none;
}

.et_pb_toggle_title.active .hidefull,
.fm-accordion-header.active .hidefull {
    display: inline-block;
}

.showresults svg {
    margin-right: 3px;
    position: relative;
    top: 1px;
}

/* Product and Step Styles */
.product-name {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 10px;
}

.product-price {
    font-size: var(--font-size-xl);
}

.product-info {
    margin-bottom: 12px;
}

body .product-info span.itembrand {
    display: none;
}

span.itemsku {
    margin-right: 10px;
}

/* Lists and Steps */
ol li {
    border: 1px var(--border-color-light) solid;
    padding: 15px 10px;
    background: var(--background-color-gray-light);
    margin-bottom: -1px;
    font-size: var(--font-size-medium);
    font-weight: bold;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Link Styles */
h4 a {
    text-decoration: none;
}

.et_pb_toggle_content.clearfix a, 
.fm-accordion-content.clearfix a, 
#singleentry a {
    color: var(--primary-color);
    text-decoration: underline dotted;
    font-size: var(--font-size-xl);
}

.innerFMlink {
    text-decoration: underline dotted;
    transition: text-decoration 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.innerFMlink:hover {
    text-decoration: underline solid;
    transition: text-decoration 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

a.view_photos_link svg {
    display: none;
}

.et_pb_toggle_content.clearfix a svg, 
.fm-accordion-content.clearfix a svg, 
#singleentry a svg {
    margin-right: 5px;
    font-size: var(--font-size-base);
}

.et_pb_toggle_content.clearfix h4 a, 
.fm-accordion-content.clearfix h4 a, 
#singleentry h4 a {
    color: var(--secondary-color-light);
}

.et_pb_toggle_content.clearfix ol li a, 
.fm-accordion-content.clearfix ol li a, 
#singleentry ol li a {
    font-size: var(--font-size-medium);
}
/* Quick Menu and Widget Styles */
#targetframe {
    display: none;
}

.qm-item {
    border-bottom: 1px var(--border-color-light) solid;
    border-right: 4px var(--background-color-light) solid;
    height: 50px;
    line-height: 50px;
    padding-left: 12px;
    color: var(--text-color-gray);
    font-weight: bold;
    cursor: pointer;
}

.qm-item:last-child {
    border-bottom: 0;
}

.qm-item.active {
    background: var(--background-color-white);
    border-right: var(--border-color-primary) 4px solid;
}

.qm-item.active span {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.qm-item span {
    background: #e9e9e9;
    color: #717171;
    width: 30px;
    height: 30px;
    text-align: center;
    display: inline-block;
    line-height: 30px;
    border-radius: 100px;
    margin-right: 7px;
    position: relative;
    top: -1px;
}

.quickmenu {
    background: var(--background-color-light);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
}

.quicktitle {
    text-align: center;
    font-weight: bold;
    font-size: var(--font-size-xl);
    margin-top: 10px;
}

.quickmenu-tag {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    color: #999;
}

.optionlinks {
    border: 1px var(--border-color-light) solid;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.directplate, 
.sidearms strong {
    font-size: var(--font-size-medium);
    font-weight: bold;
}

div#singleentry {
    background: var(--background-color-white);
    padding: 15px;
    border-radius: 5px;
    float: left;
    margin-bottom: 20px;
}

#singleentry.et_pb_toggle_content,
#singleentry.fm-accordion-content {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 15px;
    transition: none;
}

#singleentry.fm-accordion-content.active {
    display: block;
    max-height: none;
    overflow: visible;
}

.stepload.bc-prouduct-main-load.itemframe:empty {
    display: none;
}

.crossbart {
    display: none;
}

.crossbaractive .crossbart {
    display: block;
}

.crossbaractive .directt {
    display: none;
}

/* Wire/RSS Image Styles */
img.wireimg,
img.rssimg {
    max-width: 50%;
    height: auto;
    border-radius: var(--border-radius-medium, 10px);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    float: right;
}

img.wireimg:hover,
img.rssimg:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

img.rssimg {
    display: block;
    margin-bottom: 15px;
}

.producttext {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 20px;
}

/* Shared desktop image rendering */
.product-img img,
.product-img-rs img,
.enlargeable-img,
.tow-thumbnail,
img.wireimg,
img.rssimg {
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    object-fit: contain;
    border: 0px solid transparent;
    border-radius: 8px;
    padding: 4px;
}

.product-img,
.product-img-rs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 33.33%;
    flex: 0 0 33.33%;
    position: relative;
}

.bc-prouduct-main-load.itemframe {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Make only the main baseplate card image larger than supplemental cards */
.bc-prouduct-main-load.mainproduct.itemframe .product-img {
    max-width: 42%;
    flex-basis: 42%;
}

.bc-prouduct-main-load.mainproduct.itemframe .product-img img {
    max-height: 340px;
}

/* Tow Images Grid Styles */
.tow_images {
    border: 1px var(--border-color-light, #ccc) solid;
    border-radius: 10px;
    padding: 20px !important;
    margin-bottom: 20px;
    display: none;
    width: calc(100% - 40px) !important;
    background: var(--glass-bg, rgba(255,255,255,0.7));
}

.tow-images-section {
    margin-bottom: 20px;
}

.tow-images-heading {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color-light, #333);
}

.tow-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tow-image-item {
    text-align: center;
    background: var(--background-color-white, #fff);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color-light, #eee);
    transition: all 0.2s ease;
    position: relative;
}

.tow-image-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tow-image-item.no-image {
    background: var(--background-color-gray-light, #f5f5f5);
    color: var(--text-color-muted, #999);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.tow-thumbnail {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tow-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tow-image-label {
    display: block;
    margin-top: 8px;
    font-size: var(--font-size-small);
    color: var(--text-color-dark, #333);
    font-weight: 500;
}

.tow-images-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color-light, #eee);
    font-size: var(--font-size-base);
}

.tow-images-note {
    font-size: var(--font-size-small);
    color: var(--text-color-muted, #666);
    margin-top: 8px;
}

/* Enlargeable Image Styles */
.enlargeable-img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    padding: 4px;
}

.enlargeable-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Pseudo-elements do not render on img reliably; render overlay on container instead */
.product-img::after,
.product-img-rs::after,
.tow-image-item::after,
article.towbar-results .fm-module.fm-image::after {
    content: "Click to enlarge";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--text-color-light);
    padding: 4px 8px;
    font-size: var(--font-size-small);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}

.product-img:hover::after,
.product-img-rs:hover::after,
.tow-image-item:hover::after,
article.towbar-results .fm-module.fm-image:hover::after {
    content: "Click to enlarge";
    opacity: 1;
}

@media (max-width: 600px) {
    .tow-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tow-images-meta {
        flex-direction: column;
        gap: 8px;
    }
}

.step1-sectionwrap {
    border: 1px var(--border-color-light) solid;
    padding: 20px;
    border-radius: 10px;
    margin-top: 12px;
}

.step1-sectionwrap ul {
    padding-left: 20px;
}

.et_pb_toggle_content.clearfix.open,
.fm-accordion-content.clearfix.open {
    display: block !important;
    float: none;
    width: 100%;
}

div#st-wrap a {
    margin-bottom: 12px;
}

.bc-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.bc-productwrap {
    background-color: var(--background-color-gray-light);
    border-radius: 10px;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 8px);
    min-width: 300px;
}

.bc-product-grid > .bc-productwrap:only-child {
    flex-basis: 100%;
}

.bc-product-grid > .bc-productwrap {
    display: block;
    width: auto;
    flex: 1 1 calc(50% - 16px);
}

/* Mobile: single column for bc-product-grid */
@media only screen and (max-width: 767px) {
    .bc-product-grid {
        flex-direction: column;
    }
    
    .bc-product-grid > .bc-productwrap {
        flex: 0 0 100%;
        width: 100%;
    }
}

ol .bc-productwrap {
    border: 0 #DDDDDD solid;
    margin-bottom: 10px;
    padding: 0;
}

.wiringstep ol li svg {
    display: none;
}

.wiringstep ol {
    border-radius: 5px;
}

.noimage {
    max-width: 200px;
    margin: auto;
}

.noproduct #showfull {
    display: none;
}

/* RSS Template Styles */
.rsstemp div.baseplate-type {
    font-family: var(--font-family-primary);
    font-style: normal;
    font-weight: 700;
    font-size: var(--font-size-xl);
    line-height: 22px;
    text-transform: capitalize;
    color: var(--primary-color);
    margin-top: 8px;
    margin-bottom: 10px;
}

.rsstemp #topcard img.wireimg {
    display: none;
}

.rsstemp .et_pb_row,
.rsstemp .fm-row {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =================================================================
   RSS Product Grid - Using Flexbox (matches baseplate pattern)
   ================================================================= */

/* Section container */
.rss-col {
    margin-top: 16px;
    margin-bottom: 32px;
}

/* Section header */
.rss-col > h5.rssstrong {
    font-size: var(--font-size-large);
    font-weight: 700;
    margin: 0 0 16px 0;
    padding: 8px 0;
    text-align: left;
    color: var(--text-color-dark);
    border-bottom: 2px solid var(--primary-color);
}

/* Product Grid Container - CSS Grid max 2 columns */
.rss-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Force max 2 columns on desktop */
@media only screen and (min-width: 768px) {
    .rss-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Individual Product Card */
.rss-product-grid > .fm-accordion,
.rss-product-grid > .fm-accordion.fm-accordion--closed,
.rss-product-grid > .fm-accordion.snug {
    display: flex !important;
    flex-direction: column;
    height: 620px;
    margin: 0 !important;
    background-color: var(--background-color-gray-light) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-small) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color-light) !important;
    transition: all 0.2s ease;
    backdrop-filter: none !important;
}

/* Expand only when details are opened via .showrssdetails */
.rss-product-grid > .fm-accordion.rss-details-open {
    height: auto !important;
    min-height: 620px;
    overflow: visible !important;
}

/* Single card takes full width */
.rss-product-grid > .fm-accordion:only-child {
    grid-column: 1 / -1;
}

.rss-product-grid > .fm-accordion:hover {
    box-shadow: var(--shadow-medium) !important;
    transform: translateY(-2px);
}

/* Card Header - Title on top */
.rss-product-grid .fm-accordion-header {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
    background: var(--background-color-gray-light) !important;
    border: 0 !important;
    cursor: default !important;
    border-bottom: 1px solid var(--border-color-light) !important;
}

/* Product title wrapper */
.rss-product-grid .fm-accordion-header .rssItemTitle {
    background: transparent;
    padding: 14px 16px;
}

.rss-product-grid .fm-accordion-header .rssItemTitle h5.rssitemnum {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-medium);
    font-weight: 700;
    line-height: 1.3;
}

.rss-product-grid .fm-accordion-header .rssItemTitle h5.rssitemnum a {
    color: var(--primary-color);
    text-decoration: none;
}

.rss-product-grid .fm-accordion-header .rssItemTitle h5.rssitemnum a:hover {
    text-decoration: underline;
}

/* Secondary link under RSS item title (e.g. "See Other Vehicle Fits") */
.rss-product-grid .fm-accordion-header .rssItemTitle p a {
    font-size: var(--font-size-small);
    font-weight: 500;
    line-height: 1.2;
}

/* Comments below title */
.rss-product-grid .fm-accordion-header span.rsscomments {
    font-size: var(--font-size-small);
    color: var(--text-color-gray);
    background: var(--background-color-white);
    padding: 10px 16px;
    margin: 0;
    display: block;
    line-height: 1.5;
}

/* Card Content Area */
.rss-product-grid .fm-accordion-content.clearfix,
.rss-product-grid .fm-accordion-content,
.rss-product-grid .fm-accordion--closed .fm-accordion-content {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    max-height: none !important;
    overflow: hidden;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    border: 0;
    background: var(--background-color-white);
}

/* Product image and text layout */
.rss-product-grid .rssitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 1 1 auto;
    width: 100%;
}

.rss-product-grid .rssitem .product-img {
    width: 320px;
    max-width: 320px;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color-white);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.rss-product-grid .rssitem .product-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rss-product-grid .rssitem .product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.rss-product-grid .rssitem .producttext {
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.rss-product-grid .rssitem .producttext .product-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.rss-product-grid .rssitem .producttext .product-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.rss-product-grid .rssitem .producttext .product-name a:hover {
    text-decoration: underline;
}

.rss-product-grid .rssitem .producttext .showrssdetails {
    padding: 10px 20px;
    max-width: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 6px;
    align-self: center;
}

.rss-product-grid .rssitem .producttext .showrssdetails:hover {
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, #8B0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rss-product-grid .rssitem .producttext .showrssdetails i,
.rss-product-grid .rssitem .producttext .showrssdetails svg {
    color: #fff;
}

/* Plus span in show details button - darker */
.rss-product-grid .rssitem .producttext .showrssdetails span,
.rss-product-grid .showrssdetails span {
    font-weight: 700;
    font-size: var(--font-size-large);
}

/* Mobile: stack cards single column */
@media only screen and (max-width: 767px) {
    .rss-col {
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;
        box-sizing: border-box;
        width: 100%;
    }

    .rss-product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .rss-product-grid > .fm-accordion,
    .rss-product-grid > .fm-accordion.fm-accordion--closed,
    .rss-product-grid > .fm-accordion.snug {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 400px;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .rss-product-grid .rssitem {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px;
        box-sizing: border-box;
    }

    .rss-product-grid .rssitem .product-img {
        width: 100%;
        max-width: 250px;
        min-width: auto;
        height: auto;
        min-height: 200px;
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .rss-product-grid .rssitem .producttext {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .rss-product-grid .fm-accordion-header .rssItemTitle {
        padding: 12px 14px;
    }
    
    .rss-product-grid .fm-accordion-content.clearfix,
    .rss-product-grid .fm-accordion-content {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Legacy rssstrong outside grid context */
h5.rssstrong {
    font-size: var(--font-size-xl);
    margin-bottom: 16px;
    margin-top: 0;
    text-align: left;
    font-weight: 700;
    color: var(--text-color-dark);
}

/* Reset conflicting accordion header styles in rss-col */
.rss-col .fm-accordion-header {
    float: none;
    box-shadow: none;
}

/* Legacy rssitemnum styling for non-grid contexts */
h5.rssitemnum {
    background: var(--background-color-gray-light, #F7F7F7);
    margin: 0;
    padding: 12px 16px;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h5.rssitemnum a {
    color: var(--text-color-dark);
    text-decoration: none;
}

h5.rssitemnum a:hover {
    color: var(--primary-color);
}

span.rsscomments {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    margin-top: 15px;
    display: block;
}

div#showfull {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-medium);
    cursor: pointer;
}

.rss-col .et_pb_module.et_pb_toggle.snug.et_pb_toggle_open #showfull svg,
.rss-col .fm-accordion.snug.fm-accordion--open #showfull svg {
    transform: rotate(45deg);
}

#showfull svg {
    font-size: var(--font-size-xl);
    margin-left: 4px;
    position: relative;
    top: 3px;
}

.rss-col .et_pb_toggle_content {
    border: 1px #eee solid;
    border-top: 1px var(--text-color-light) solid;
}

.rss-product-grid .itemnotes {
    display: none;
    width: 100%;
}

.rss-product-grid .itemnotes table {
    box-sizing: border-box;
    table-layout: auto;
    width: 100%;
}

.rss-product-grid .itemnotes td {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.showrssdetails {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    max-width: 320px;
    border-radius: 50px;
    text-align: center;
    font-size: var(--font-size-medium);
    font-weight: bold;
    padding: 12px 24px;
    margin-top: 0;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.showrssdetails:hover {
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, #8B0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Plus icon/svg in showrssdetails - darker appearance */
.showrssdetails svg,
.showrssdetails .fa-plus-circle {
    font-size: var(--font-size-xl);
    position: relative;
    top: 1px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.showrssdetails.active svg,
.showrssdetails.active .fa-plus-circle {
    transform: rotate(45deg);
    color: rgba(255, 255, 255, 0.9);
}

.itemnotes table {
    border-spacing: 0;
    border-bottom: 1px var(--border-color-light) solid;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 25px;
}

.itemnotes td {
    border-top: 1px var(--border-color-light) solid;
    padding: 6px 2px;
}

#singleentry .itemnotes a {
    font-size: var(--font-size-base);
}

#singleentry .itemnotes a svg {
    font-size: var(--font-size-medium);
}

.showrssdetails.active span.sd-toggletext {
    font-size: calc(var(--font-size-small) * 0);
}

.itemnotes ul {
    padding-left: 20px;
}

#singleentry .rsscomments a font {
    color: var(--text-color-dark);
    text-decoration: underline;
    font-size: var(--font-size-base);
}

.rsstemp .rssitem .product-name {
    display: block;
}

a.et_pb_button.et_pb_custom_button_icon.et_pb_button_0.et_hover_enabled.et_pb_bg_layout_light:before,
a.fm-button.fm-button--custom:before {
    display: none !important;
}

.page-template-reverse-lookup-ph button.et_pb_button.et_pb_custom_button_icon.et_pb_bg_layout_dark,
.page-template-reverse-lookup-ph button.fm-button--dark {
    margin-top: 20px;
}

/* Cart and Display Controls */
.addtocart, 
.product-price, 
.cartlink, 
.outofstock {
    display: none !important;
}

/* Media Queries */
@media only screen and (min-width: 980px) {
    .page-template-reverse-lookup .et_pb_section.et_section_regular,
    .page-template-reverse-lookup .fm-section {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .page-template-reverse-lookup .et_pb_row,
    .page-template-reverse-lookup .fm-row {
        float: none;
        width: 100%;
        border: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .page-template-reverse-lookup .et_pb_column.et_pb_column_1_2,
    .page-template-reverse-lookup .fm-col-6,
    .page-template-reverse-lookup .fm-col-1-2 {
        width: calc(50% - 10px);
        display: inline-block;
        margin-right: 10px;
        vertical-align: top;
    }
    
    .page-template-reverse-lookup .et_pb_column.et_pb_column_1_2.part_lookup_form,
    .page-template-reverse-lookup .fm-col-6.part_lookup_form,
    .page-template-reverse-lookup .fm-col-1-2.part_lookup_form {
        margin-right: 0;
    }
    
    .ttitle {
        font-size: var(--font-size-xxl);
    }
    
    .et_pb_toggle_title,
    .fm-accordion-header {
        font-size: var(--font-size-large);
    }
    
    .showresults {
        margin-left: 0;
    }
    
    .et_pb_toggle_content.clearfix, 
    .fm-accordion-content.clearfix, 
    #singleentry {
        font-size: var(--font-size-medium);
    }
    
    /* Desktop Layout Adjustments */
    div#topcard {
        border-radius: 18px;
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    div#topcard-right {
        padding-left: 20px;
        margin-top: -30px;
    }
    
    img.wireimg {
        border-radius: 18px;
        order: 2;
        height: 292px;
        width: auto;
    }
    
    div.baseplate-type {
        font-size: var(--font-size-xxl);
    }
    
    h2.results-title {
        font-size: var(--font-size-xxl);
    }
    
    .wrongstyle {
        font-size: var(--font-size-medium);
    }
    
    /* Sidebar Layout */
    div#detail-lcol {
        width: 300px;
        position: sticky;
        left: 0;
        top: 15px;
        float: left;
        border-radius: 5px;
        border: 1px var(--border-color-light) solid;
        overflow: hidden;
    }
    
    div#detail-lcol img {
        padding: 10px;
        max-width: calc(100% - 20px);
    }
    
    .quickmenu {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        background: #F7F7F7;
        border: 0 solid #E1E1E1;
        border-radius: 0;
    }
    
    .quicktitle {
        display: none;
    }
    
    .qm-item {
        border-top: 1px var(--border-color-light) solid;
        border-bottom: 0;
    }
    
    .page-template-reverse-lookup .et_pb_row,
    .page-template-reverse-lookup .fm-row,
    .page-template-reverse-lookup-ph .et_pb_row,
    .page-template-reverse-lookup-ph .fm-row {
        float: right;
        width: calc(100% - 340px);
        margin-top: 0;
        padding-top: 0;
    }

    /* Keep all first-level sections clear of the sticky sidebar */
    #singleentry > .fm-row,
    #singleentry > .et_pb_row {
        float: right;
        width: calc(100% - 340px);
        clear: right;
    }
    
    /* Typography Adjustments */
    .et_pb_toggle_content h4, 
    .fm-accordion-content h4, 
    #singleentry h4 {
        font-size: var(--font-size-xxl);
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .et_pb_toggle_content h4 span, 
    .fm-accordion-content h4 span, 
    #singleentry h4 span {
        font-size: var(--font-size-xl);
    }
    
    ol li > strong {
        float: right;
        font-weight: normal;
        width: 50%;
    }
    
    /* Product Layout Adjustments */
    .fusestep .stepload.bc-prouduct-main-load, 
    .hashproducts .stepload.bc-prouduct-main-load, 
    .wiringstep .stepload.bc-prouduct-main-load, 
    .seatstep .stepload.bc-prouduct-main-load, 
    .brakelights .stepload.bc-prouduct-main-load {
        justify-content: space-between;
        align-items: center;
    }
    
    .wiringstep .stepload.bc-prouduct-main-load, 
    .hashproducts .stepload.bc-prouduct-main-load {
        border: 1px var(--border-color-light) solid;
        border-radius: 5px;
        margin: 15px 2px 2px 2px;
    }

}

/* Towbar results should render as single-column */
article.towbar-results .fm-row {
    float: none;
    width: 100%;
    clear: both;
}

@media only screen and (min-width: 980px) {
    article.towbar-results .fm-accordion-content .fm-row,
    article.towbar-results #singleentry .fm-row {
        float: right;
        width: calc(100% - 340px);
        clear: right;
    }
}

article.towbar-results .fm-col-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Keep towbar images professional in-page (full size only in lightbox) */
article.towbar-results .fm-module.fm-image .enlargeable-img,
article.towbar-results #topcard .enlargeable-img {
    display: block;
    max-height: 220px;
    object-fit: contain;
    float:right;
}

article.towbar-results .fm-module.fm-image {
    position: relative;
}

article.towbar-results .tow-thumbnail {
    max-width: 120px;
}

/* Desktop streamlining */
@media only screen and (min-width: 980px) {
    .results-container {
        margin: 12px auto;
        max-width: 1400px;
    }

    .part_lookup_results {
        table-layout: auto;
        border-collapse: collapse;
    }

    .part_lookup_results th,
    .part_lookup_results td {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .tow-images-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

/* --- Mobile usability improvements --- */
@media only screen and (max-width: 980px) {
    div#detail-lcol {
        position: static;
        width: 100%;
        float: none;
        margin-bottom: 16px;
    }

    .et_pb_row,
    .fm-row {
        float: none;
        width: 100%;
    }

    .bc-productwrap {
        width: 100%;
        flex-basis: 100%;
        min-width: 0;
    }

    .bc-prouduct-main-load.itemframe {
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .product-img,
    .product-img-rs {
        max-width: 100%;
        flex-basis: 100%;
    }

    .bc-prouduct-main-load.mainproduct.itemframe .product-img img {
        max-height: 260px;
    }

    .quickmenu {
        border-radius: 8px;
    }
}

@media only screen and (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    #singleentry,
    #singleentry * {
        box-sizing: border-box;
    }

    .fm-accordion-header,
    .et_pb_toggle_title {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }

    .fm-accordion-content.clearfix,
    .et_pb_toggle_content.clearfix {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .fm-accordion-content .fm-row,
    .fm-accordion-content .et_pb_row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .top_comments {
        width: 100%;
        box-sizing: border-box;
    }

    table.part_lookup_results {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.part_lookup_results th,
    table.part_lookup_results td {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #singleentry > .fm-row,
    #singleentry > .et_pb_row {
        float: none;
        width: 100%;
        max-width: 100%;
    }

    .page-template-reverse-lookup .et_pb_row,
    .page-template-reverse-lookup .fm-row,
    .page-template-reverse-lookup-ph .et_pb_row,
    .page-template-reverse-lookup-ph .fm-row,
    article.towbar-results .fm-row {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        margin-left: 0;
        margin-right: 0;
    }

    .step1-sectionwrap,
    .optionlinks,
    .tow_images {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .searchbox a,
    .addtocart,
    .showresults,
    button#br_submit,
    button.et_pb_button,
    button.fm-button {
        max-width: 100%;
        min-height: 48px;
        line-height: 48px;
    }

    /* Prevent RSS cards from pushing viewport width */
    .rss-product-grid > .fm-accordion,
    .rss-product-grid > .fm-accordion.fm-accordion--closed,
    .rss-product-grid > .fm-accordion.snug {
        width: 100% !important;
        min-width: 0 !important;
    }

    .rss-product-grid .rssitem,
    .rss-product-grid .itemframe,
    .rss-product-grid .producttext,
    .rss-product-grid .itemnotes,
    .rss-product-grid .itemnotes table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .rss-product-grid .itemnotes td {
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .rss-product-grid .showrssdetails {
        max-width: 100%;
        white-space: normal;
    }
}

@media only screen and (max-width: 900px) {
    li.notapp {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    div#topcard {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #searchtop {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove side padding in mobile/tablet breakpoints to stop right cutoff */
    .inner,
    article.page.type-page.fitmaster_results,
    .page.container.has-results,
    .content-container.searchpage {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 480px) {
    .inner,
    article.page.type-page.fitmaster_results {
        padding-left: 8px;
        padding-right: 8px;
    }

    h2.results-title {
        font-size: var(--font-size-xxl);
        line-height: 1.2;
    }
}
