.md-parts-finder *, .md-parts-finder *:before {
    box-sizing: border-box;
}

.md-parts-finder .parts-finder-box {
    width: 100%;
    float: left;
}

.md-parts-finder .bike-finder-box {
    width: 100%;
    float: left;
}

.md-parts-finder .parts-finder-box .find-button {
    clear: both;
}

.md-parts-finder .bike-finder-box .find-button {
    clear: both;
}

.md-parts-finder .dropdown {
    padding: 0 0 15px 0;
    clear: both;
    width: 12%;
}

.md-parts-finder .dropdown .dropdown-title {
    padding-bottom: 5px;
}

.md-parts-finder.horizontal-parts-finder .dropdown {
    clear: none;
    float: left;
}

.product_save_selection {
    color: white;
    display: inline-block;
    padding: 0 0 0 1%;
    line-height: 80px;
    margin-left: 1%;
    margin-bottom: 15px;
    border-left: 1px solid #3C3C3C;
}

.product_saved_selection >a {
    font-size: 12px;
    line-height: 20px;
    color: white;
    text-decoration: underline;
}

.product_saved_selection >a:visited {
    color: white;
}

.parts-finder-box {
    padding: 5px 10px 15px 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.bike-finder-box {
    padding: 15px 1% 0px 12%;
    margin-bottom: 0px;
    overflow: hidden;
    background-color: #212121;
}


@media (min-width: 769px), print {
    .nav-sections-item-content > .md-parts-finder {
        display: block;
    }
}

@media (max-width: 1530px) {
    .counterheader {
        font-size: 17px;
    }
}

.bike-finder-box .counterheader {
    float: left;
    text-transform: none;
    color: white;
}

.bike-finder-box .dropdown {
    color: white;
    padding-left: 0.5%;
    margin-left: 0.5%;
    border-left: 1px solid #3C3C3C;
}

.parts-finder-box .dropdown {
    margin-right: 3%;
    margin-top: 15px;
    width: 14%;
}

.bike-finder-box .model_year {
    width: 7%;
}
.bike-finder-box .model_number {
    width: 17%;
}

.parts-finder-box .model_year {
    width: 9%;
}
.parts-finder-box .model_number {
    width: 19%;
}

.bike-finder-box .year {
    width: 7%;
}
.bike-finder-box .number {
    width: 17%;
}

.parts-finder-box .year {
    width: 9%;
}
.parts-finder-box .number {
    width: 19%;
}

.bikeinfo .attributeinfo {
    float: left;
    margin-right: 25px;
}

.bikeinfo {
    background-color: #ecf0f1;
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.bikeinfo label {
    font-weight: bold;
}

.parts-finder-box .product_save_selection {
    display: inline-block;
    padding: 0 0 15px 0;
    line-height: 80px;
}

.bike-finder-box .product_save_selection {
    float: left;
    display: inline-block;
    padding: 0 0 0 0.5%;
    line-height: 80px;
    margin-left: 0.5%;
    margin-bottom: 15px;
    border-left: 1px solid #3C3C3C;
}

.bike-finder-box .product_saved_selection {
    float: left;
    padding: 0 0 0 0.5%;
    line-height: 40px;
    height: 80px;
    margin-left: 0.5%;
    max-width: 17%;
    margin-bottom: 15px;
    border-left: 1px solid #3C3C3C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bike-finder-box #save-selected-motor {
    background-color: #1d6818;
}

#save-selected-motor {
    width: 100%;
    font-size: 16px;
    line-height: 0;
    padding: 21px;
    font-weight: 600;
    height: 2.5rem;
    background-color: #303030;
    color: #fff;
}

.dot-green {
    height: 15px;
    width: 15px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
}

.dot-orange {
    height: 15px;
    width: 15px;
    background-color: orange;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    height: 15px;
    width: 15px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}

.cc-selector input {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cc-selector-2 input {
    position: absolute;
    z-index: 999;
}

.cc-selector-2 input:active + .drinkcard-cc, .cc-selector input:active + .drinkcard-cc {
    opacity: .9;
}

.cc-selector-2 input:checked + .drinkcard-cc, .cc-selector input:checked + .drinkcard-cc {
    -webkit-filter: none;
    -moz-filter: none;
}

.drinkcard-cc {
    position: relative;
    text-align: left;
    border: solid 1px;
    cursor: pointer;
    margin-right: 4%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    display: inline-block;
    width: 110px;
    height: 90px;
    -webkit-transition: all 100ms ease-in;
    -moz-transition: all 100ms ease-in;
    transition: all 100ms ease-in;
    -webkit-filter: opacity(.4);
    -moz-filter: opacity(.4);
    filter: opacity(.4);
}

.drinkcard-cc:hover {
    -webkit-filter: grayscale(.2) opacity(.8);
    -moz-filter: grayscale(.2) opacity(.8);
    filter: grayscale(.2) opacity(.8);
}

table#grouptable {
    border-collapse: collapse;
    width: 100%;
}

table#grouptable tbody {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

table#grouptable tbody tr {
    width: 20%;
}

table#grouptable tbody tr td {
    text-align: center;
    border: 2px solid #e1e8ea;
    font-size: 13px;
    padding: 10px 0;
    width: 1%;
}

table#grouptable tbody tr td a {
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

table#grouptable tbody tr td img {
    margin-bottom: 8px;

}

table.partsfinder-result-table {
    width: 55%;
    font-size: 1.4rem;
}

.partsfinder-result-table-row {
    border-bottom: 1px solid;
}

.partsfinder-result-table-row > td.button > form > button {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: normal;
    height: 32px;
    line-height: 1.42857143;
    padding: 0 9px;
    vertical-align: text-top;
}

.partsfinder-result-table-row > td.button > form > input.qty{
    vertical-align: text-top;
}

.partsfinder-result-image {
    display: block;
    float: right;
    margin: 40px 0;
    width: 600px;
}

@media screen and (max-width: 1024px) {
    .partsfinder-result-image {
        float: none;
        width: 100%;
    }

    table.partsfinder-result-table {
        width: 100%;
    }

    tr.partsfinder-result-table-row td.stock {
        text-align: center;
    }
}

@media screen and (max-width: 700px) {
    table#grouptable tbody tr {
        width: 50%;
    }

    .parts-finder-box .dropdown {
        width: 100%;
    }

    .drinkcard-cc {
        margin-right: 70px;
        width: 70px;
        height: 70px;
    }

    .partsfinder-result-image {
        float: none;
    }

    table.partsfinder-result-table {
        width: 100%;
        font-size: 1.2rem;
    }


    .partsfinder-result-header > th.sku {
        display: none;
    }
    .partsfinder-result-header > th.styk-price {
        display: none;
    }
    .partsfinder-result-header > th.quantity {
        display: none;
    }


    /* Hide table header, but keep it accessible */
    .partsfinder-result-table .partsfinder-result-header {
        background-color: #c6c6c6;
    }

    .partsfinder-result-table tr {
        display: grid;
        grid-template-columns: auto auto auto auto auto auto auto 45px 40px;
        grid-template-rows: 40px auto; /* Define 2 rows */

        margin-bottom: 10px; /* Space between logical rows */
        border-top: none; /* Remove default border */
        border-left: none;
        border-right: none;
    }

    .partsfinder-result-table td {
        border: none; /* Remove default cell borders */
        padding: 2px; /* Adjust padding */
        display: flex; /* Use flex for alignment within the cell if needed */
        align-items: center; /* Vertically center content in grid cell */
        min-width: 0; /* Prevent content overflow issues */
    }

    /* --- Cell Placement --- */

    /* Top Row */
    .partsfinder-result-table .order { grid-column: 1; grid-row: 1; font-weight: bold; }
    .partsfinder-result-table .ref { grid-column: 1; grid-row: 1; font-weight: bold; padding-left: 2px;}
    .partsfinder-result-table .title { grid-column: 2/span 5; grid-row: 1;  width: 220px; font-weight: bold;}
    .partsfinder-result-table .name { grid-column: 2/span 5; grid-row: 1;   width: 210px; }
    .partsfinder-result-table .quantity { grid-column: 7; grid-row: 1; font-size: 0.9rem;}
    .partsfinder-result-table .std-antal { grid-column: 7; grid-row: 1; width: 45px;}
    .partsfinder-result-table .standard { grid-column: 8; grid-row: 1; justify-self: center; font-size: 0.9rem;}
    .partsfinder-result-table .stock { grid-column: 9; grid-row: 1; justify-self: end; /* Align cell content to the right */ /*! width: 20px; */}
    .partsfinder-result-table .stock-status { grid-column: 9; grid-row: 1; justify-self: end; /* Align cell content to the right */ /*! width: 20px; */padding-left: 1px;}

    /* Bottom Row */
    .partsfinder-result-table .number { grid-column: 2 /span 3; grid-row: 2; font-weight: bold;width: 150px;} /* Span across first 2 columns */
    .partsfinder-result-table .price { grid-column: 4 /span 3; grid-row: 2; min-width: 50px;/*! width: 100%; *//*! overflow: ; */} /* Place below std-antal */
    .partsfinder-result-table .button { grid-column: 5 /span 5; grid-row: 2; justify-self: end; padding-left: 30px;} /* Span last 2 columns */

    .partsfinder-result-table a.product-item-link {
        display: -webkit-box;        /* Required for line-clamp to work */
        -webkit-box-orient: vertical; /* Required for line-clamp to work */
        -webkit-line-clamp: 1;        /* Maximum number of lines to show */
        overflow: hidden;             /* Hides the text that overflows the box */
        text-overflow: ellipsis;      /* Adds "..." to indicate truncated text */
    }
    .partsfinder-result-table-row > td.button > form > button {
        border-radius: 10px !important;
    }
    .partsfinder-result-header th{
        padding-right: 1px;
        font-size: 0.9rem;
    }
    .partsfinder-result-header th.standard{
        padding-left: 1px;
        /*! padding-right: 1px; */
    }

}

@media (max-width: 1281px), print {
    .bike-finder-box {
        padding: 15px 1% 0px 15px;
        margin-bottom: 0px;
        background-color: #DFDFDFFF;
    }

    .bike-finder-box .counterheader {
        float: none;
        text-transform: none;
        color: black;
        font-size: 2.8rem;
    }

    .bike-finder-box .dropdown {
        color: black;
        border-left: none;
    }

    .md-parts-finder.horizontal-parts-finder .dropdown {
        float: none;
    }

    .bike-finder-box .trademark {
        width: 50%;
    }

    .bike-finder-box .model_year {
        width: 50%;
    }

    .bike-finder-box .model_number {
        width: 50%;
    }

    .bike-finder-box .model_type {
        width: 50%;
    }

    .bike-finder-box .year {
        width: 50%;
    }

    .bike-finder-box .number {
        width: 50%;
    }

    .bike-finder-box .type {
        width: 50%;
    }

    .bike-finder-box .product_save_selection {
        float: none;
        border-left: none;
    }

    .bike-finder-box .product_saved_selection {
        float: none;
        max-width: 75%;
        color: black;
        border-left: none;
    }

    .product_saved_selection > a {
        font-size: 17px;
        line-height: 40px;
        color: white;
        text-decoration: underline;
    }

    .product_saved_selection > a:visited {
        color: black;
    }

}
