/* ================================================================
   Sonity Tyre Search — Front-end Styles
   ================================================================ */

.sts-wrapper {
    max-width: 900px;
    margin: 0 auto 30px;
    font-family: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    overflow: hidden;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.sts-tabs {
    display: flex;
    background: #1a1a2e;
}
.sts-tab {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
.sts-tab:hover  { color: #fff; background: rgba(255,255,255,.05); }
.sts-tab.active { color: #fff; background: #e63946; border-bottom: 3px solid #fff; }
.sts-tab-icon   { margin-right: 6px; }

/* ── Panels ───────────────────────────────────────────────────── */
.sts-panel { display: none; padding: 28px 28px 20px; }
.sts-panel.active { display: block; }

/* ── Fields row ───────────────────────────────────────────────── */
.sts-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.sts-field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}
.sts-field-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin-bottom: 6px;
}
.sts-field-group label small { font-size: 11px; color: #888; font-weight: 400; }

.sts-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.sts-select:focus { outline: none; border-color: #e63946; box-shadow: 0 0 0 3px rgba(230,57,70,.15); }
.sts-select:disabled { opacity: .5; cursor: not-allowed; }

/* ── Button ───────────────────────────────────────────────────── */
.sts-btn-group { min-width: 140px; max-width: 180px; }
.sts-btn {
    width: 100%;
    padding: 11px 18px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}
.sts-btn:hover:not(:disabled)  { background: #c1121f; }
.sts-btn:active:not(:disabled) { transform: scale(.97); }
.sts-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hint text ────────────────────────────────────────────────── */
.sts-hint {
    margin: 14px 0 0;
    font-size: 13px;
    color: #888;
}

/* ── Messages ─────────────────────────────────────────────────── */
.sts-message { margin-top: 14px; display: none; }
.sts-msg { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.sts-msg-error   { background: #fff0f0; color: #c1121f; border-left: 4px solid #c1121f; }
.sts-msg-success { background: #f0fff4; color: #1a7c3e; border-left: 4px solid #1a7c3e; }

/* ── Active filter banner on shop page ────────────────────────── */
.sts-active-filter {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}
.sts-active-filter a { margin-left: 10px; color: #888; text-decoration: none; font-weight: 700; }
.sts-active-filter a:hover { color: #c1121f; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sts-tabs { flex-direction: column; }
    .sts-fields { flex-direction: column; }
    .sts-btn-group { max-width: 100%; }
    .sts-panel { padding: 20px 16px; }
}
