/* profi-cpr.ru UX fixes — MINIMAL safe version (2026-05-28)
 * Only disabled-submit-until-agreement styles. No layout changes elsewhere.
 */

button.is-disabled-by-agreement,
input.is-disabled-by-agreement {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #aaaaaa !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}

button.is-disabled-by-agreement:hover,
input.is-disabled-by-agreement:hover,
button.is-disabled-by-agreement:focus,
input.is-disabled-by-agreement:focus {
    background: #cccccc !important;
    color: #888888 !important;
    transform: none !important;
}

button.is-disabled-by-agreement::before,
input.is-disabled-by-agreement::before {
    content: "✕";
    display: inline-block;
    font-weight: bold;
    color: #b00020;
    margin-right: 6px;
}

/* UX-JGROWL-START 2026-05-28 — bottom-center on mobile */
@media (max-width: 640px) {
    #jGrowl,
    #jGrowl.top-right,
    #jGrowl.jGrowl--custom,
    .jGrowl.top-right,
    .top-right.jGrowl {
        position: fixed !important;
        top: auto !important;
        right: auto !important;
        left: 50% !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 80px) !important;
        transform: translateX(-50%) !important;
        width: 92vw !important;
        max-width: 380px !important;
        z-index: 100001 !important;
    }
    #jGrowl .jGrowl-notification,
    .jGrowl .jGrowl-notification {
        max-width: none !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        text-align: center;
    }
}
/* UX-JGROWL-END */

/* UX-CONTRAST-START 2026-05-28 — WCAG AAA contrast for disabled-submit */
button.is-disabled-by-agreement,
input.is-disabled-by-agreement {
    background: #e8e8e8 !important;
    color: #595959 !important;
    border-color: #999999 !important;
    opacity: 1 !important;
}
button.is-disabled-by-agreement::before,
input.is-disabled-by-agreement::before {
    color: #b00020 !important;
}
/* UX-CONTRAST-END */
