/*
 * Лаборатория Кошмарского — uac.css
 * Окно «Контроль учетных записей» в духе Windows 10. Работает в паре с js/uac.js.
 */

.uac-open,
.uac-open body {
    overflow: hidden;
}

/* Затемненный экран под окном, как «безопасный рабочий стол» Windows */
.uac {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    opacity: 0;
    transition: opacity .25s;
}

.uac.is-shown {
    opacity: 1;
}

.uac__box {
    width: 456px;
    max-width: calc(100% - 32px);
    background: #F2F2F2;
    border: 1px solid #0063B1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
    color: #000000;
}

.uac__head {
    padding: 10px 22px 20px;
    background: #0063B1;
    color: #ffffff;
}

.uac__title {
    margin-bottom: 12px;
    font-size: 13px;
}

.uac__question {
    font-size: 21px;
    font-weight: 300;
    line-height: 1.25;
}

.uac__body {
    padding: 18px 22px 16px;
    background: #ffffff;
    font-size: 14px;
}

.uac__app {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.uac__icon {
    width: 29px;
    height: 32px;
    margin-right: 12px;
    filter: none;
}

.uac__name {
    font-size: 17px;
    font-weight: 600;
}

.uac__line {
    margin-bottom: 4px;
}

/* Длинный путь к файлу переносим в любом месте, иначе он вылезет за окно */
.uac__path {
    word-break: break-all;
}

.uac__more,
.uac__link {
    display: inline-block;
    margin-top: 10px;
    color: #0066CC;
    font-size: 13px;
}

.uac__details {
    display: none;
    margin-top: 6px;
}

.uac.is-more .uac__details {
    display: block;
}

.uac__buttons {
    display: flex;
    padding: 16px 22px 18px;
    background: #F2F2F2;
}

.uac__btn {
    flex: 1;
    height: 33px;
    margin-left: 8px;
    padding: 0;
    background: #CCCCCC;
    border: 2px solid #CCCCCC;
    color: #000000;
    font: 15px 'Segoe UI', Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.uac__btn:first-child {
    margin-left: 0;
}

.uac__btn:hover {
    border-color: #7A7A7A;
}

.uac__btn:focus {
    outline: 1px dotted #000000;
    outline-offset: -5px;
}

/* Окно дергается после «Нет» */
.uac.is-shake .uac__box {
    animation: uac-shake .4s;
}

@keyframes uac-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-9px); }
    40% { transform: translateX(9px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
    .uac,
    .uac.is-shake .uac__box {
        transition: none;
        animation: none;
    }
}
