/* =========================================================
   QW TYRE FITMENT TABS v2.8.2
   Plain tabs/table layout. Global values can be edited under
   WooCommerce > Fitment Style or overridden in Elementor.
========================================================= */

.qw-fitment-wrap,
.qw-fitment-wrap * {
    box-sizing: border-box;
}

.qw-fitment-wrap {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    overflow: visible;
}

.qw-fitment-heading {
    margin: 0 0 22px;
    padding: 0;
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Rim tabs */
.qw-fitment-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 0 0 38px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 0px solid #999;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.qw-fitment-tab,
.qw-fitment-tab.button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 140px;
    min-height: 54px;
    margin: 0;
    padding: 12px 24px;
    border: 1px solid #111;
    border-radius: 999px;
    background: transparent;
    color: #111;
    box-shadow: none;
    font-family: "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.qw-fitment-tab:hover,
.qw-fitment-tab:focus {
    border-color: #111;
    background: #F5951E;
    color: #111;
}

.qw-fitment-tab.is-active,
.qw-fitment-tab.is-active:hover,
.qw-fitment-tab.is-active:focus {
    border-color: #111;
    background: #F5951E;
    color: #111;
    font-weight: 700;
}

.qw-fitment-tab::before,
.qw-fitment-tab::after {
    content: none !important;
}

.qw-fitment-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.qw-fitment-panel[hidden] {
    display: none !important;
}

.qw-fitment-panel,
.qw-fitment-table-scroll {
    width: 100%;
    margin: 0;
    padding: 0;
}

.qw-fitment-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qw-fitment-table {
    width: 100%;
    min-width: 820px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: transparent;
}

.qw-fitment-table .qw-col-size { width: 20%; }
.qw-fitment-table .qw-col-speed { width: 14%; }
.qw-fitment-table .qw-col-diameter { width: 14%; }
.qw-fitment-table .qw-col-treadwear { width: 16%; }
.qw-fitment-table .qw-col-traction { width: 18%; }
.qw-fitment-table .qw-col-price { width: 10%; }
.qw-fitment-table .qw-col-add { width: 8%; }

.qw-fitment-table th,
.qw-fitment-table td {
    padding: 16px 12px;
    border: 0;
    border-bottom: 1px solid #aaa;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
}

.qw-fitment-table thead th {
    font-weight: 600;
    white-space: nowrap;
}

.qw-fitment-table tbody tr,
.qw-fitment-table tbody tr:hover,
.qw-fitment-table tbody td {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.qw-fitment-price,
.qw-fitment-price .amount,
.qw-fitment-price bdi,
.qw-fitment-price ins {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.qw-fitment-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Add-to-cart */
.qw-fitment-cart-button,
.qw-fitment-cart-button.button,
.qw-fitment-cart-button.button.alt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #F5951E !important;
    border-radius: 0 !important;
    background: #F5951E !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.qw-fitment-cart-button:hover,
.qw-fitment-cart-button:focus,
.qw-fitment-cart-button.button:hover,
.qw-fitment-cart-button.button:focus,
.qw-fitment-cart-button.button.alt:hover,
.qw-fitment-cart-button.button.alt:focus {
    border-color: #F5951E !important;
    background: #F5951E !important;
    color: #fff !important;
}

.qw-fitment-cart-button svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    color: currentColor !important;
}

.qw-fitment-cart-button svg path[fill="none"] {
    stroke: currentColor !important;
    stroke-width: 2.8 !important;
}

.qw-fitment-cart-button svg path:not([fill="none"]) {
    fill: currentColor !important;
}

.qw-fitment-sold-out {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.qw-fitment-notice {
    margin: 10px 0;
}

.qw-min-variation-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 18px;
    color: inherit;
    font-family: inherit;
}

.qw-min-variation-price__amount {
    font-weight: 600;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1024px) {
    .qw-fitment-heading { font-size: 22px; }
    .qw-fitment-tabs { gap: 8px; margin-bottom: 32px; }
    .qw-fitment-tab,
    .qw-fitment-tab.button {
        min-width: 122px;
        min-height: 50px;
        padding: 10px 20px;
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .qw-fitment-wrap { margin: 15px 0 24px; }
    .qw-fitment-heading { font-size: 20px; }
    .qw-fitment-tabs { gap: 7px; margin-bottom: 26px; padding-bottom: 10px; }
    .qw-fitment-tab,
    .qw-fitment-tab.button {
        min-width: 104px;
        min-height: 46px;
        padding: 9px 16px;
        font-size: 17px;
    }
    .qw-fitment-table { min-width: 760px; }
    .qw-fitment-table th,
    .qw-fitment-table td { padding: 14px 10px; font-size: 14px; }
    .qw-fitment-cart-button,
    .qw-fitment-cart-button.button,
    .qw-fitment-cart-button.button.alt {
        width: 58px !important;
        min-width: 58px !important;
        height: 42px !important;
        min-height: 42px !important;
    }
}
