/* ==========================================================================
   Buscador de información de producto (/es/informacion-producto)
   CSS autónomo: reemplaza a Tailwind y gana especificidad contra Salient.
   ========================================================================== */

.ns-productcert {
    max-width: 768px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
    font-family: inherit;
    color: #334155;
}

/* ---- Tipografía -------------------------------------------------------- */

.ns-productcert h1 {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #963333 !important;
    margin: 0 0 1.5rem !important;
    text-transform: none !important;
}

.ns-productcert h2 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #963333 !important;
    margin: 0 0 0.75rem !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
}

.ns-productcert p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    color: #475569 !important;
    margin: 0 0 1.25rem !important;
    max-width: 42rem;
    letter-spacing: normal !important;
}

.ns-productcert p:last-of-type {
    margin-bottom: 0 !important;
}

/* ---- Enlace de certificados de pilas ----------------------------------- */

.ns-productcert #battery-certificates-link {
    color: #963333 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    font-size: inherit !important;
}

.ns-productcert #battery-certificates-link:hover {
    color: #7d2929 !important;
}

/* ---- Formulario -------------------------------------------------------- */

.ns-productcert form {
    margin-top: 2rem !important;
}

.ns-productcert label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ns-productcert .ns-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .ns-productcert .ns-field {
        flex-direction: row;
    }
}

.ns-productcert input[type="text"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin: 0 !important;
}

.ns-productcert input[type="text"]::placeholder {
    color: #94a3b8 !important;
}

.ns-productcert input[type="text"]:focus {
    border-color: #963333 !important;
    box-shadow: 0 0 0 4px rgba(231, 201, 201, 0.6) !important;
}

.ns-productcert button[type="submit"] {
    flex: 0 0 auto !important;
    min-width: 126px !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    background: #963333 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin: 0 !important;
}

.ns-productcert button[type="submit"]:hover {
    background: #7d2929 !important;
}

.ns-productcert button[type="submit"]:disabled {
    background: #bd8585 !important;
    cursor: not-allowed;
}

/* ---- Mensajes de estado ------------------------------------------------ */

.ns-productcert #search-message {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

/* app.js reescribe className con estas clases al mostrar un error. */
.ns-productcert #search-message.text-red-700 {
    color: #b91c1c !important;
}

/* ---- Resultados -------------------------------------------------------- */

.ns-productcert #results {
    margin-top: 1.5rem !important;
}

.ns-productcert #results-list {
    list-style: none !important;
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.ns-productcert #results-list li {
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    list-style: none !important;
    border-bottom: 1px solid #e2e8f0;
}

.ns-productcert #results-list li:last-child {
    border-bottom: none;
}

.ns-productcert #results-list li::before,
.ns-productcert #results-list li::marker {
    content: none !important;
    display: none !important;
}

.ns-productcert #results-list a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #963333 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    letter-spacing: normal !important;
}

.ns-productcert #results-list a:hover {
    color: #7d2929 !important;
}

/* ---- Utilidad ---------------------------------------------------------- */

.ns-productcert .hidden {
    display: none !important;
}
