/* ============================================================
   Tyre Filter – styles
   ============================================================ */

.tyre-filter-wrap {
    padding: 0;
}

.tyre-filter-title {
    margin: 0 0 12px;
    font-size: 1.1em;
    font-weight: 700;
}

/* Form layout ------------------------------------------------ */
.tyre-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Field row -------------------------------------------------- */
.tyre-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tyre-filter-field label {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin: 0;
}

/* Select ----------------------------------------------------- */
.tyre-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 0.95em;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}

.tyre-filter-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Loading state on a select ---------------------------------- */
.tyre-filter-select.tf-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Actions row ------------------------------------------------ */
.tyre-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

/* Buttons ---------------------------------------------------- */
.tyre-filter-btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.tyre-filter-btn--submit {
    background: #2271b1;
    color: #fff;
    flex: 1;
}

.tyre-filter-btn--submit:hover,
.tyre-filter-btn--submit:focus {
    background: #135e96;
    color: #fff;
}

.tyre-filter-btn--reset {
    background: #f0f0f0;
    color: #333;
}

.tyre-filter-btn--reset:hover,
.tyre-filter-btn--reset:focus {
    background: #ddd;
    color: #111;
}

/* Shortcode – horizontal layout on wide screens -------------- */
@media (min-width: 769px) {
    /* Shortcode wrapper on homepage can go horizontal */
    .tyre-filter-wrap.tyre-filter-horizontal .tyre-filter-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .tyre-filter-wrap.tyre-filter-horizontal .tyre-filter-field {
        flex: 1 1 140px;
    }

    .tyre-filter-wrap.tyre-filter-horizontal .tyre-filter-actions {
        flex: 0 0 auto;
        margin-top: 0;
        align-items: flex-end;
    }
}
