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

.sts-wrapper {
    max-width: 100%;
    margin: 0 auto 30px;
    font-family: 'Montserrat', sans-serif;;
    background: #fff;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 24px rgba(0,0,0,.10); */
    overflow: hidden;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.sts-tabs {
    display: flex;
    background: #1a1a2e;
    border: none;
}
.sts-tab {
    flex: 1;
    padding: 10px 15px;
    background: var(--e-global-color-2b66dd9);
    border: 1px dashed var(--e-global-color-primary) !important;
    border-radius: 0 !important;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
.sts-tab:hover  { color: #fff !important; background:var(--e-global-color-primary); }
.sts-tab.active { color: #fff !important; background:var(--e-global-color-primary); }

/* ── Panels ───────────────────────────────────────────────────── */
.sts-panel { display: none; padding: 28px 28px 20px; border: 1px dashed var(--e-global-color-primary) !important; border-top: none !important; }
.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: 1px dashed var(--e-global-color-primary);
    border-radius: 0px;
    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: var(--e-global-color-primary); box-shadow: 0 0 0 3px rgba(35, 72, 148,0.15)); }
.sts-select:disabled { opacity: .5; cursor: not-allowed; }

/* ── Button ───────────────────────────────────────────────────── */
.sts-btn-group { min-width: 140px; max-width: 180px; justify-content: end; }
.sts-btn {
    width: 100%;
    padding: 10px 15px;
    background: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary) !important;
    color: #fff;
    /* border: none; */
    /* text-align: left; */
    /* border-radius: 8px; */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    /* transition: background .2s, transform .1s; */
    white-space: nowrap;
    /* border-radius: 0 !important; */
}
.sts-btn:hover { background:transparent; }
.sts-btn:active { transform: scale(.97); }
.sts-btn:disabled { opacity: .5; cursor: not-allowed; }

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

/* ── 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 dashed #ffd54f;
    border-radius: 0;
    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; }
}
