/**
 * Estilos del módulo dbproductinfo — Recursos informativos en ficha de producto.
 * Avisos legales por categoría + enlace de descarga COA.
 *
 * Todo el CSS del módulo vive aquí (no se reparte en el child theme).
 *
 * @module dbproductinfo
 * @author Blinders Group
 */

/* =============================================
   Aviso legal por categoría — Figma node 6165:88
   "advertencia-legal-producto"
   Mismo diseño para flores y vapers.
   ============================================= */

.db-legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 12px 8px;
    background-color: #E7EBEE;
    color: #27403D;
    /* Figma: Poppins 12/18 Regular — se hereda la tipografía del theme */
    font-size: 12px;
    line-height: 18px;
}

.db-legal-notice__icon {
    flex-shrink: 0;
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.db-legal-notice__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.db-legal-notice__text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #27403D;
}

.db-legal-notice__text strong {
    font-weight: 600;
}

/* =============================================
   Enlace descarga COA — Figma node 6132:82597
   "Descargar analítica COA"
   ============================================= */

.db-coa-link {
    margin-top: 12px;
    margin-bottom: 4px;
}

.db-coa-link__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    color: #27403D;
    /* Figma: Poppins 14/20 Regular — se hereda la tipografía del theme */
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.db-coa-link__link:hover,
.db-coa-link__link:focus {
    color: #27403D;
    text-decoration: underline;
    opacity: 0.7;
    outline: none;
}

.db-coa-link__link:focus-visible {
    outline: 2px solid #27403D;
    outline-offset: 2px;
}

/* Icono descarga (SVG inline 16x16) */
.db-coa-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.db-coa-link__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.db-coa-link__text {
    text-decoration: underline;
}
