/* Estilo WhatsApp para el reproductor de audio PERSONALIZADO */

.rga-whatsapp-player {
    background-color: #e7ffdb; /* Verde de WhatsApp */
    max-width: 500px;
    padding: 8px 12px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Ocultamos el reproductor de audio real */
.rga-whatsapp-player audio {
    display: none;
}

/* Botón de Play/Pausa */
.rga-whatsapp-player .play-pause-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5cb347;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.rga-whatsapp-player .play-pause-btn:hover {
    background-color: #52a03f;
}

/* Icono de Play (triángulo) */
.rga-whatsapp-player .play-pause-btn .play-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid white;
    margin-left: 3px;
}

/* Icono de Pausa (dos barras) */
.rga-whatsapp-player .play-pause-btn .pause-icon {
    display: none;
    width: 12px;
    height: 12px;
}
.rga-whatsapp-player .play-pause-btn .pause-icon::before,
.rga-whatsapp-player .play-pause-btn .pause-icon::after {
    content: '';
    display: block;
    width: 4px;
    height: 12px;
    background-color: white;
    position: absolute;
}
/* ---- AJUSTE PARA CENTRAR LA PAUSA ---- */
.rga-whatsapp-player .play-pause-btn .pause-icon::before {
    transform: translateX(-3px);
}
.rga-whatsapp-player .play-pause-btn .pause-icon::after {
    transform: translateX(3px);
}
/* ------------------------------------ */


/* Mostrar/ocultar iconos según el estado */
.rga-whatsapp-player .play-pause-btn.playing .play-icon {
    display: none;
}
.rga-whatsapp-player .play-pause-btn.playing .pause-icon {
    display: block;
}

/* Contenedor de la barra de progreso y tiempos */
.rga-whatsapp-player .progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Barra de progreso */
.rga-whatsapp-player .progress {
    width: 100%;
    height: 4px;
    background-color: #b3d9a9;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.rga-whatsapp-player .progress-filled {
    width: 0;
    height: 100%;
    background-color: #5cb347;
    border-radius: 2px;
    position: relative;
}

/* Punto (thumb) en la barra de progreso */
.rga-whatsapp-player .thumb {
    width: 12px;
    height: 12px;
    background-color: #5cb347;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Para que no interfiera con el clic */
}

/* Contenedor de los tiempos y la nota de IA */
.rga-whatsapp-player .time-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #667781;
}

.rga-whatsapp-player .rga-meta {
    font-style: italic;
}