.wapt-page-translator {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171717;
}

.wapt-page-translator[hidden],
.wapt-page-translator__panel[hidden] {
    display: none;
}

.wapt-page-translator__launcher,
.wapt-page-translator__primary,
.wapt-page-translator__secondary,
.wapt-page-translator__icon {
    font: inherit;
}

.wapt-page-translator__launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px 0 10px;
    border: 1px solid rgba(18, 18, 18, .12);
    border-radius: 999px;
    background: #111;
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    cursor: pointer;
}

.wapt-page-translator__launcher span:first-child {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-weight: 800;
}

.wapt-page-translator__panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(360px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid rgba(20, 20, 20, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.wapt-page-translator__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.wapt-page-translator__head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 750;
}

.wapt-page-translator__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wapt-page-translator__icon:hover,
.wapt-page-translator__icon:focus-visible {
    background: #f1f1f1;
    outline: none;
}

.wapt-page-translator__field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 15px;
}

.wapt-page-translator__field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #f7f7f7;
    color: #202020;
    font: inherit;
}

.wapt-page-translator__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
    color: #232323;
    font-size: 15px;
}

.wapt-page-translator__remember input {
    width: 20px;
    height: 20px;
    accent-color: #111;
}

.wapt-page-translator__status {
    min-height: 20px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.wapt-page-translator__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.wapt-page-translator__primary,
.wapt-page-translator__secondary {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    cursor: pointer;
}

.wapt-page-translator__primary {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.wapt-page-translator__secondary {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
}

.wapt-page-translator__primary:disabled,
.wapt-page-translator__secondary:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.wapt-page-translator__launcher:focus-visible,
.wapt-page-translator__primary:focus-visible,
.wapt-page-translator__secondary:focus-visible,
.wapt-page-translator__field select:focus-visible {
    outline: 3px solid rgba(17, 17, 17, .24);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .wapt-page-translator {
        right: 14px;
        bottom: 14px;
    }

    .wapt-page-translator__panel {
        right: -2px;
        bottom: 56px;
        padding: 18px;
    }
}
