/* =========================================================
   Sempre HSC – Parceiros  |  Frontend Widget Styles
   All rules scoped under #shsp-widget for specificity over Elementor.
   ========================================================= */

/* ── Root ── */
#shsp-widget {
    font-family: 'Mulish', sans-serif;
    background: #DCF343;
    padding: 24px 28px 32px;
    box-sizing: border-box;
}

/* ── Top bar ── */
#shsp-widget .shsp-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* ── Toggle bar ── */
#shsp-widget .shsp-toggle-bar {
    align-items: center;
    background-color: #C8DF33;
    display: flex;
    gap: 0;
    flex-shrink: 0;
    justify-content: center;
    border-radius: 20rem;
    padding: 4px;
    width: 100%;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-toggle-bar {
        gap: 8px;
        width: unset;
    }
}

#shsp-widget .shsp-toggle-btn {
    padding: 6px 11px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #0b2428;
    border-radius: 999px;
    transition: background .18s, color .18s;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: none;
    text-decoration: none;
    margin: 0;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-toggle-btn {
        font-size: 14px;
        padding: 6px 22px;
    }
}

#shsp-widget .shsp-toggle-btn.is-active {
    background: #fff;
    color: #0b2428;
}

#shsp-widget .shsp-toggle-btn:not(.is-active):hover {
    background: rgba(255,255,255,.35);
}

#shsp-widget .shsp-toggle-btn:focus-visible {
    outline: 2px solid #0b2428;
    outline-offset: 2px;
}

/* ── Controls bar ── */
#shsp-widget .shsp-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-controls {
        flex-wrap: nowrap;
    }
}

#shsp-widget .shsp-controls.is-hidden {
    display: none;
}

/* ── Search wrapper ── */
#shsp-widget .shsp-search-wrap {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-search-wrap {
        width: unset;
    }
}

#shsp-widget .shsp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    pointer-events: none;
    color: #555;
}

#shsp-widget .shsp-search-input {
    padding: 9px 18px 9px 38px;
    border: none;
    border-radius: 999px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #0b2428;
    box-sizing: border-box;
    width: 100%;
    transition: box-shadow .15s;
    box-shadow: none;
    outline: none;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-search-input {
        width: 320px;
    }
}

#shsp-widget .shsp-search-input::placeholder {
    color: #888;
    opacity: 1;
}

#shsp-widget .shsp-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}

/* ── Specialty filter ── */
#shsp-widget .shsp-filter-select {
    padding: 9px 36px 9px 18px;
    border: none;
    border-radius: 999px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #0b2428;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    transition: box-shadow .15s;
    box-shadow: none;
    outline: none;
    line-height: 1.4;
}

@media (min-width: 768px) {
    #shsp-widget .shsp-filter-select {
        min-width: 0;
        max-width: 280px;
        width: unset;
    }
}

#shsp-widget .shsp-filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}

/* ── Section panels ── */
#shsp-widget .shsp-panel {
    display: none;
}

#shsp-widget .shsp-panel.is-active {
    display: block;
}

/* ── Results area ── */
#shsp-widget .shsp-results {
    min-height: 40px;
}

/* ── Empty / prompt state ── */
#shsp-widget .shsp-state-msg {
    padding: 32px 0;
    text-align: center;
    color: rgba(0,0,0,.45);
    font-size: 14px;
    font-family: 'Mulish', sans-serif;
    margin: 0;
}

/* ── Cards grid ── */
#shsp-widget .shsp-cards-grid {
    display: grid;
    grid-template-columns: repeat( var(--shsp-cols, 3), 1fr );
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 900px) {
    #shsp-widget .shsp-cards-grid {
        grid-template-columns: repeat( min( var(--shsp-cols, 3), 2 ), 1fr );
    }
}

@media (max-width: 540px) {
    #shsp-widget .shsp-top-bar     { flex-direction: column; align-items: flex-start; }
    #shsp-widget .shsp-controls    { margin-left: 0; width: 100%; }
    #shsp-widget .shsp-cards-grid  { grid-template-columns: 1fr; }
}

/* ── Phone links ── */
#shsp-widget .shsp-card-field a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    /* border-bottom: 1px solid rgba(0,0,0,.12); */
}

#shsp-widget .shsp-card-field a[href^="tel"]:hover {
    opacity: .75;
}

/* ── Médico card ── */
#shsp-widget .shsp-medico-card {
    background: var(--shsp-card-bg, #fff);
    border-radius: var(--shsp-card-radius, 12px);
    padding: var(--shsp-card-padding, 16px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* box-shadow: 0 1px 4px rgba(0,0,0,.06); */
    transition: box-shadow .2s;
    border: none;
    margin: 0;
}

/* #shsp-widget .shsp-medico-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
} */

#shsp-widget .shsp-card-field {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    padding: 0;
}

#shsp-widget .shsp-field-value {
    color: #0b2428;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

/* Nome – prominent */
#shsp-widget .shsp-field--nome .shsp-field-value {
    font-size: 15px;
    font-weight: 800;
    color: #0b2428;
    line-height: 1.3;
}

/* Observações – smaller, muted */
#shsp-widget .shsp-field--obs .shsp-field-value {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin-top: 2px;
    font-weight: 400;
}

/* ── Search highlight ── */
#shsp-widget mark.shsp-hl {
    background: rgb(232 242 68 / 40%);
    border-radius: 2px;
    padding: 0 1px;
    color: inherit;
}

/* ── Benefício card ── */
#shsp-widget .shsp-beneficio-card {
    background: var(--shsp-benef-bg, #fff);
    border-radius: var(--shsp-benef-radius, 12px);
    padding: var(--shsp-benef-padding, 16px);
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--shsp-benef-color, #0b2428);
    /* box-shadow: 0 1px 4px rgba(0,0,0,.06); */
    transition: box-shadow .2s;
    border: none;
    margin: 0;
}

/* #shsp-widget .shsp-beneficio-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
} */

#shsp-widget .shsp-beneficio-card p            { line-height: 1.4em; margin: 0 0 .5em; }
#shsp-widget .shsp-beneficio-card p:last-child  { margin-bottom: 0; }
#shsp-widget .shsp-beneficio-card ul,
#shsp-widget .shsp-beneficio-card ol           { margin: 0 0 .5em 1.4em; padding: 0; }
#shsp-widget .shsp-beneficio-card a            { color: inherit; }

#shsp-widget .shsp-beneficio-card .shsp-field--nome {
    margin-bottom: 0.5rem;
}

/* ── Preview wrap + fade ── */
#shsp-widget .shsp-preview-wrap {
    position: relative;
}

#shsp-widget .shsp-preview-wrap--faded::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #DCF343);
    pointer-events: none;
}

/* ── "Ver mais" button ── */
#shsp-widget .shsp-ver-mais-btn {
    display: block;
    margin: -24px auto 0;
    position: relative;
    z-index: 1;
    padding: 11px 32px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0b2428;
    background: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: box-shadow .18s, transform .18s;
}

#shsp-widget .shsp-ver-mais-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    transform: translateY(-1px);
}

/* ── Results count ── */
#shsp-widget .shsp-count {
    font-size: 12px;
    color: rgba(0,0,0,.45);
    margin-bottom: 12px;
    margin-top: 0;
    font-family: 'Mulish', sans-serif;
}

/* ── Download bar ── */
#shsp-widget .shsp-download-bar {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.1);
}

#shsp-widget .shsp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: #0b2428;
    color: #ffffff;
    border-radius: 999px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .18s, transform .18s;
    cursor: pointer;
    line-height: 1.4;
}

#shsp-widget .shsp-download-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

#shsp-widget .shsp-download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
