.tyre-spec-search-container {
    max-width: 100%;
    font-family: 'Nunito Sans', sans-serif;
}

.tyre-search-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    background: #fff;
}

.tab-button {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #16191d;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #c52d2d;
}

.tab-button.active {
    background: #16181d;
    color: #ffffff;
}

.tab-content {
    padding-top: 32px;
    background: #fff;
}

.tab-panel {
    display: none;
    padding: 0;
}

.tab-panel.active {
    display: block;
}

.tyre-spec-search-form {
    padding: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f6f7f9;
}

.tyre-spec-search-form-sep {
    width: 100%;
    height: 1px;
    background-color: #d5d9dd;
}

.tyre-specifications-section,
.vehicle-type-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdance .vehicle-type-section h3,
.breakdance .tyre-specifications-section h3 {
    color: #16191d;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.vehicle-type-options,
.season-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.vehicle-type-option,
.season-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    position: relative;
}

.checkbox-custom {
    border: 1px solid #a7b2be;
    border-radius: 3px;
}

.radio-custom {
    border-radius: 50%;
    border: 1px solid #a7b2be;
}

.vehicle-type-option input[type='radio']:checked + .radio-custom {
    border: 1px solid #c52d2d;
}

.vehicle-type-option input[type='radio']:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #c52d2d;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.season-option input[type='checkbox']:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 21px;
    height: 21px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3Ljc1IDBDMTkuMjY4OCAwIDIwLjUgMS4yMzEyMiAyMC41IDIuNzVWMTcuNzVDMjAuNSAxOS4yNjg4IDE5LjI2ODggMjAuNSAxNy43NSAyMC41SDIuNzVDMS4yMzEyMiAyMC41IDAgMTkuMjY4OCAwIDE3Ljc1VjIuNzVDMS4yODg1M2UtMDcgMS4yMzEyMiAxLjIzMTIyIDEuMjg4NTFlLTA3IDIuNzUgMEgxNy43NVpNMTQuODkwNiA2LjQ4MTQ1QzE0LjQ2NjQgNi4xMjc5MSAxMy44MzUgNi4xODUxOCAxMy40ODE0IDYuNjA5MzhMOS4xODI2MiAxMS43Njg2TDcuNDU3MDMgMTAuMDQzQzcuMDY2NTEgOS42NTI0NCA2LjQzMzQ5IDkuNjUyNDQgNi4wNDI5NyAxMC4wNDNDNS42NTI0NSAxMC40MzM1IDUuNjUyNDUgMTEuMDY2NSA2LjA0Mjk3IDExLjQ1N0w4LjU0Mjk3IDEzLjk1N0M4Ljc0MTU0IDE0LjE1NTYgOS4wMTQzOSAxNC4yNjE2IDkuMjk0OTIgMTQuMjQ5QzkuNTc1NTUgMTQuMjM2MyA5LjgzODY5IDE0LjEwNjQgMTAuMDE4NiAxMy44OTA2TDE1LjAxODYgNy44OTA2MkMxNS4zNzIxIDcuNDY2MzggMTUuMzE0OCA2LjgzNTAyIDE0Ljg5MDYgNi40ODE0NVoiIGZpbGw9IiNDNTJEMkQiLz4KPC9zdmc+Cg==');
}

.vehicle-type-option input,
.season-option input {
    display: none;
}

.tyre-specs-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-dropdown label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.spec-dropdown select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.reset-btn,
.search-btn {
    padding: 14px 32px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: transparent;
    text-decoration: none;
    color: #16181d;
}
.reset-btn[disabled] {
    color: #a7b2be;
}

.search-btn {
    background: #16181d;
    color: #fff;
}

.search-btn:hover {
    background: #555;
}

.tyre-search-results {
    margin-top: 30px;
}

.tyre-search-results h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.results-table-container {
    overflow-x: auto;
}

.tyre-results-table {
    width: 100%;
    overflow: hidden;
    border-spacing: initial;
    border-collapse: collapse;
}

.tyre-results-table th,
.tyre-results-table td {
    padding: 12px;
    text-align: center;
    border-color: #e7ebef;
    border-width: 1px;
    border-style: solid;
}

.tyre-results-table th {
    background: #f6f7f9;
    color: #16191d;
}

.fuel-icon,
.wet-icon,
.noise-icon,
.snow-icon,
.severe-snow-icon {
    text-align: center;
    font-size: 16px;
}

.tyre-search-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tyre-search-form-loading {
    position: relative;
    pointer-events: none;
}

.tyre-search-form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -8px 0 0 -8px;
    border: 2px solid #c52d2d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
    z-index: 1000;

    animation: spin 0.3s linear infinite, fadeIn 0s linear 0.4s forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* EAN SEACRH */
.ean-search-container {
    background: #f6f7f9;
    padding: 40px;
}

.ean-search-content {
    max-width: 635px;
}

.ean-search-description {
    color: #16191d;
    font-size: 18px;
    line-height: 30px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.ean-search-form {
    display: flex;
    gap: 20px;
}

.ean-search-input-wrapper {
    position: relative;
    width: 500px;
    max-width: 100%;
}

.ean-search-input-wrapper .search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

#ean-search-input {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px 16px 14px 32px;
    border-bottom: 1px solid #d5d9dd;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    font-size: 16px;
    line-height: 24px;
    background: transparent;
    color: #16191d;
}

#ean-search-input:focus {
    outline: none;
    border-color: #16191d;
}

#ean-search-input::placeholder {
    color: #4c5967;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.ean-search-btn {
    padding: 16px 32px;
    background: #16191d;
    color: #ffffff;
    border: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.ean-search-btn:hover {
    background: #374151;
}

/* TYRE NAME */
#tyre-search-by-name-container {
    background: #f6f7f9;
    padding: 40px;
}

.tyre-search-by-name-container-inner {
    max-width: 635px;
}

.tyre-name-search-description {
    color: #16191d;
    font-size: 18px;
    line-height: 30px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.tyre-name-search-form {
    display: flex;
    gap: 20px;
}

/* .tyre-name-select {
    width: 500px;
    max-width: 100%;
    padding: 14px 36px 0 0;
    border-bottom: 1px solid #D5D9DD;
    border-top: 0;
    border-right:0;
    border-left:0; 
    font-size: 16px;
    line-height: 24px;
    background: transparent;
    color: #16191D;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgNy40OTk5MkwxMCAxMi40OTk5TDE1IDcuNDk5ODgiIHN0cm9rZT0iIzE2MTkxRCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 20px 20px;
}

.tyre-name-select:focus {
    outline: none;
    border-color: #16191D;
}

.tyre-name-select option {
    padding: 8px;
    color: #16191D;
} */

.tyre-name-search-btn {
    padding: 16px 32px;
    background: #16191d;
    color: #ffffff;
    border: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.tyre-name-search-btn:hover {
    background: #374151;
}

.tyre-name-search-form_contaner,
.spec-dropdown-container {
    position: relative;
    display: flex;
    width: 100%;
}

.tyre-name-search-form_contaner label,
.spec-dropdown-container label {
    display: none;
    position: absolute;
    top: -8px;
    color: #4c5967;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
}

.tyre-name-search-form_contaner label.show {
    display: block;
}

/* DEFAULT SELECT CUCTOMIZATION */

#tyre-spec-search-form .spec-dropdown select {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
    border-radius: 1px;
    border-bottom: 1px solid #d5d9dd;
    min-height: 52px;
    color: #16191d;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

#tyre-spec-search-form .spec-dropdown select:open {
    border-bottom: 1px solid #16191d;
}

#tyre_width option,
#aspect_ratio option,
#rim_diameter option,
#load_speed_index option {
    padding: 16px 28px;
    color: #16191d;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

/* Placeholder state (empty value selected) should display muted color */
#tyre_width:has(option:checked[value='']),
#aspect_ratio:has(option:checked[value='']),
#rim_diameter:has(option:checked[value='']),
#load_speed_index:has(option:checked[value='']) {
    color: #4c5967;
}

#tyre_width option::checkmark,
#aspect_ratio option::checkmark,
#rim_diameter option::checkmark,
#load_speed_index option::checkmark {
    display: none;
}

#tyre_width,
#aspect_ratio,
#rim_diameter,
#load_speed_index,
#tyre_width::picker(select),
#aspect_ratio::picker(select),
#rim_diameter::picker(select),
#load_speed_index::picker(select) {
    appearance: base-select;
}

#tyre_width::picker(select),
#aspect_ratio::picker(select),
#rim_diameter::picker(select),
#load_speed_index::picker(select) {
    max-height: 200px;
    overflow: hidden auto;
    scroll-behavior: smooth;
    border: none;
    box-shadow: 0px 8px 16px 0px #16191d14;
    border-radius: 0;

    top: calc(anchor(bottom) + 1px);
    left: 0;
}

#tyre_width::picker-icon,
#aspect_ratio::picker-icon,
#rim_diameter::picker-icon,
#load_speed_index::picker-icon {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgNy40OTk5MkwxMCAxMi40OTk5TDE1IDcuNDk5ODgiIHN0cm9rZT0iIzE2MTkxRCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=');
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

#tyre_width:open::picker-icon,
#aspect_ratio:open::picker-icon,
#rim_diameter:open::picker-icon,
#load_speed_index:open::picker-icon {
    transform: translateY(-50%) rotate(-180deg);
}

/* Select Customization */

.ts-wrapper {
    z-index: auto;
    width: 100%;
    min-height: 52px;
}

.ts-control {
    cursor: pointer !important;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 0;
    border-bottom: 1px solid #d5d9dd;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    background: transparent !important;
    appearance: none;
    position: relative;
    box-shadow: none !important;
}

.ts-control input {
    font-size: 16px;
    line-height: 24px;
    color: #16191d;
}

.ts-dropdown .active {
    background-color: color-mix(in lab, currentcolor 10%, transparent);
}

.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.single.input-active .ts-control input {
    border-color: #16191d;
}

.ts-control input::placeholder {
    color: #4c5967;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.ts-control::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgNy40OTk5MkwxMCAxMi40OTk5TDE1IDcuNDk5ODgiIHN0cm9rZT0iIzE2MTkxRCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=');
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.ts-dropdown {
    margin-top: 0 !important;
    border: none !important;
    box-shadow: 0px 8px 16px 0px #16191d14;
    border-radius: 0 !important;
}

.ts-dropdown-content::-webkit-scrollbar {
    width: 2px;
}

.ts-dropdown-content::-webkit-scrollbar-track {
    background-color: #e7ebef;
}

.ts-dropdown-content::-webkit-scrollbar-thumb {
    background-color: #16181d;
}

.ts-dropdown .create,
.ts-dropdown .no-results,
.ts-dropdown .optgroup-header,
.ts-dropdown .option {
    padding: 16px 28px;
    color: #16191d;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.ts-wrapper.single .ts-control:after {
    display: none;
}

.ts-wrapper.dropdown-active .ts-control::before {
    transform: translateY(-50%) rotate(-180deg);
}

.tyre-specifications_headtext_info {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
}

.tyre-info_icon {
    display: flex;
    width: 20px;
    height: 20px;
    background-color: #4c5967;
    mask-position: center center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4LjMzMDcgMTAuMDAwMUMxOC4zMzA3IDUuMzk3NzEgMTQuNTk5NyAxLjY2Njc1IDkuOTk3NCAxLjY2Njc1QzUuMzk1MDIgMS42NjY3NSAxLjY2NDA2IDUuMzk3NzEgMS42NjQwNiAxMC4wMDAxQzEuNjY0MDYgMTQuNjAyNCA1LjM5NTAyIDE4LjMzMzQgOS45OTc0IDE4LjMzMzRDMTQuNTk5NyAxOC4zMzM0IDE4LjMzMDcgMTQuNjAyNCAxOC4zMzA3IDEwLjAwMDFaIiBzdHJva2U9IiM0QzU5NjciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTAuNDE5MyAxMy43NTAxVjEwLjA4MzRDMTAuNDE5MyA5LjY1MTI5IDEwLjQxOTMgOS40MzUyMyAxMC4yOTcyIDkuMzAwOTlDMTAuMTc1MiA5LjE2Njc1IDkuOTc4NzcgOS4xNjY3NSA5LjU4NTk0IDkuMTY2NzUiIHN0cm9rZT0iIzRDNTk2NyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEwIDYuNjY2NzVIMTAuMDAwMSIgc3Ryb2tlPSIjNEM1OTY3IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K');
    transition: all 0.3s ease;
}

.tyre-info_icon:hover {
    background-color: #c52d2d;
}

/* TYRE SIZE MODAL */
body.modal-open {
    overflow: hidden;
}

.tyre-size-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.tyre-size-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    max-width: 600px;
    padding: 24px 40px 0 40px;
    width: 45%;
    height: 100%;
    overflow-y: auto;
    z-index: 10001;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: none;
}

.breakdance h2.modal-title {
    font-size: 28px;
    line-height: 36px;
    font-weight: 800;
    color: #16181d;
    margin: 0;
    margin-bottom: 8px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #f6f7f9;
}

.modal-description {
    font-size: 16px;
    line-height: 24px;
    color: #16181d;
    margin: 0 0 20px 0;
}

.tyre-image-container {
    margin: 0 0 20px 0;
}

.tyre-image-container svg {
    max-width: 100%;
    height: auto;
}

/* Legend */
.modal-legend {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.legend-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-number {
    width: 24px;
    height: 24px;
    background: #e7ebef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #4c5967;
    flex-shrink: 0;
}

.legend-text {
    font-size: 16px;
    color: #16181d;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .breakdance h2.modal-title {
        font-size: 20px;
    }

    .modal-legend {
        flex-direction: column;
        gap: 12px;
    }

    .legend-column {
        gap: 12px;
    }

    /* Tabs */

    .tyre-search-tabs .tab-button {
        width: 100%;
    }

    /* Search*/

    .tyre-name-search-form,
    .ean-search-form {
        flex-wrap: wrap;
    }

    .ts-control,
    .ean-search-input-wrapper {
        height: 52px;
    }

    .tyre-name-search-btn,
    .ean-search-btn {
        width: 100%;
    }

    .tyre-spec-search-form {
        padding: 30px;
        gap: 15px;
    }
}

/* Clear icon */
.ean-search-input-wrapper .clear-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.ean-search-input-wrapper .clear-icon:hover {
    opacity: 0.7;
}

/* Adjust input padding to make room for clear icon */
#ean-search-input {
    padding: 14px 50px 14px 32px; /* increased right padding */
}

/* Dropdown */

#tyre-spec-search-form .spec-dropdown label {
    display: none;
    position: absolute;
    margin: 0px;
    top: -8px;
    font-size: 12px;
}
#tyre-spec-search-form .spec-dropdown {
    position: relative;
}
.ts-dropdown.single {
    z-index: 99;
}

#tyre-spec-search-form .spec-dropdown select:disabled {
    cursor: not-allowed;
    color: #aaaeb3;
}
#tyre-specification-search .ts-dropdown-content {
    max-height: 220px;
}
#tyre-specification-search {
    min-height: 600px;
}
#tyre-specification-search .generate-tire-pdf-btn {
    color: #c52d2d;
    cursor: pointer;
    text-transform: uppercase;
}
#tyre-specification-search h3 {
    font-size: 24px;
    font-weight: 800;
}
#tyre-specification-search .tyre-results-table {
    font-size: 14px;
}

/* Pagination Styles */
.pagination-row td {
    padding: 20px;
    border: none;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-per-page span {
    font-weight: 600;
    white-space: nowrap;
}

.pagination-showing {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.pagination-controls {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
}
.pagination-wrapper .ts-wrapper {
    min-height: 18px;
}
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ts-dropdown.tyres-search-per-page-dd .option {
    padding: 7px 5px;
    color: #16191d;
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
}
.pagination-btn,
.pagination-ellipsis {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    color: #16191d;
    margin: 0;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    color: #c52d2d;
}

.pagination-btn.active {
    background: #c52d2d;
    color: #ffffff;
    font-weight: bold;
}

.pagination-ellipsis {
    cursor: default;
    font-weight: normal;
}

.pagination-prev,
.pagination-next {
    font-size: 0rem;
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.00005 6L15 12L9 18' stroke='%2316191D' stroke-width='1.5' stroke-miterlimit='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: transparent;
}

.pagination-prev:hover:not(:disabled),
.pagination-next:hover:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.00005 6L15 12L9 18' stroke='%23C52D2D' stroke-width='1.5' stroke-miterlimit='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.pagination-prev:disabled,
.pagination-next:disabled {
    cursor: default;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.00005 6L15 12L9 18' stroke='%23A7B2BE' stroke-width='1.5' stroke-miterlimit='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    pointer-events: none;
    opacity: 0.6;
}

.pagination-prev {
    transform: scale(-1, 1);
}

.pagination-prev *,
.pagination-next * {
    display: none;
}

@media (max-width: 992px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-info {
        width: 100%;
        justify-content: center;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
}
.dropdown-up .ts-dropdown {
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 5px;
    margin-top: 0;
}
.items-per-page .items-per-page-select .ts-control {
    font-size: 14px;

    color: #6d6d6d;
}
.dropdown-up .ts-dropdown {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Font size for small screens */
@media (max-width: 768px) {
    body .breakdance h1.bde-heading {
        font-size: 36px;
    }
    .ean-search-description {
        font-size: 16px;
    }
    .tyre-name-search-description {
        font-size: 16px;
    }
    #tyre-spec-search-form h3 {
        font-size: 20px;
    }
}
.breakdance .tyres-search-per-page-dd .ts-dropdown-content .selected {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 13.4998L8.5 17.9998L19.5 5.99982' stroke='%23C52D2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-position: calc(100% - 0.5rem) 50%;
    background-size: 1rem;
    background-repeat: no-repeat;
}
.ts-dropdown.tyres-search-per-page-dd .active {
    background-color: #f7f7f7;
}
.breakdance .tyres-search-per-page-dd .ts-dropdown-content {
    font-weight: 600;
}
.items-per-page-select.ts-wrapper.single .ts-control {
    --ts-pr-caret: 2.8rem;
    padding: 7px;
}