#par-reader.par-reader {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
}

#par-reader .par-button {
    min-height: 48px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #075f56;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

#par-reader .par-button:hover,
#par-reader .par-button:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

#par-reader .par-toggle.is-active {
    background: #003f78;
}

#par-reader .par-stop {
    min-width: 48px;
    padding-left: 14px;
    padding-right: 14px;
}

#par-reader .par-icon {
    margin-right: 5px;
}

.par-speaking {
    outline: 4px solid #ffbf47 !important;
    outline-offset: 4px !important;
    border-radius: 4px;
    background-color: #fff4b8 !important;
    color: #111111 !important;
}

.par-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    #par-reader.par-reader {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    #par-reader .par-button {
        min-height: 52px;
        font-size: 14px;
    }

    #par-reader .par-stop-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #par-reader *,
    .par-speaking {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* === PAR 0.1.2 STATUS === */

#par-reader .par-status-message {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 220px;
    max-width: 320px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #cccccc;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

#par-reader .par-status-message.is-speaking {
    border-width: 2px;
}

#par-reader .par-status-message.is-error {
    font-weight: 700;
}

#par-reader .par-status-message.is-success {
    font-weight: 700;
}

@media (max-width: 600px) {
    #par-reader .par-status-message {
        right: 0;
        min-width: 200px;
        max-width: calc(100vw - 24px);
    }
}
