.at-translate-plate {
    box-sizing: border-box;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 30px;
    background: #ffffff;
    color: #141414;
    border: 2px solid #141414;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    text-align: left;
    line-height: 1.5;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", "Malgun Gothic", "Segoe UI", Arial, sans-serif;
}

button.at-translate-plate {
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

button.at-translate-plate:hover {
    background: #f6f6f1;
}

button.at-translate-plate:focus-visible {
    outline: 3px solid #141414;
    outline-offset: 3px;
}

.at-translate-mark {
    display: flex;
    flex: 0 0 auto;
}

.at-translate-mark-solid {
    width: 36px;
    height: 36px;
    background: #141414;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.at-translate-mark-line {
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border: 2px solid #141414;
    color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    font-family: Georgia, serif;
    margin-left: 6px;
}

.at-translate-main {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.at-translate-cta {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.at-translate-sub {
    display: block;
    font-size: 13.5px;
    color: #575757;
    margin-top: 3px;
}

.at-translate-diag {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 8px;
    border: 1px dashed #b4b4b4;
    background: #f7f7f7;
    color: #141414;
    font-family: Consolas, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    word-break: break-word;
}

.at-translate-chip {
    flex: 0 0 auto;
    border: 1px solid #141414;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 9px;
    white-space: nowrap;
}

.at-translate-toggle {
    flex: 0 0 auto;
    color: #141414;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
}

.at-translate-toggle:hover,
.at-translate-toggle:focus {
    text-decoration: none;
}

.at-translate-toggle:focus-visible {
    outline: 3px solid #141414;
    outline-offset: 3px;
}

.at-translate-go {
    border: 2px solid #141414;
    padding: 8px 16px;
    text-decoration: none;
    background: #141414;
    color: #ffffff;
}

.at-translate-go:hover,
.at-translate-go:focus {
    text-decoration: none;
    background: #ffffff;
    color: #141414;
}

.at-translate-langs {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    order: 9;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid #d9d9d4;
}

.at-translate-lang {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border: 2px solid #141414;
    background: #ffffff;
    color: #141414;
    cursor: pointer;
    line-height: 1;
}

.at-translate-lang:hover {
    background: #f6f6f1;
}

.at-translate-lang:focus-visible {
    outline: 3px solid #141414;
    outline-offset: 3px;
}

.at-translate-lang-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #141414;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}

.at-translate-lang-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.at-translate-lang-on {
    background: #141414;
    color: #ffffff;
}

.at-translate-lang-on:hover {
    background: #141414;
}

.at-translate-lang-on .at-translate-lang-glyph {
    background: #ffffff;
    color: #141414;
}

.at-translate-lang[dir="rtl"] {
    padding: 7px 8px 7px 12px;
}

.at-translate-langs-menu {
    flex: 0 0 auto;
    order: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: block;
}

.at-translate-select {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #141414;
    background-color: #ffffff;
    border: 2px solid #141414;
    border-radius: 0;
    padding: 9px 34px 9px 12px;
    max-width: 220px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #141414 50%), linear-gradient(135deg, #141414 50%, transparent 50%);
    background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.at-translate-select:hover {
    background-color: #f6f6f1;
}

.at-translate-select:focus-visible {
    outline: 3px solid #141414;
    outline-offset: 3px;
}

.at-translate-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #141414;
    border-radius: 50%;
    margin-right: 5px;
    animation: at-translate-pulse 1.1s infinite ease-in-out;
}

.at-translate-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.at-translate-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes at-translate-pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.at-translate-loading {
    opacity: 0.65;
    transition: opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .at-translate-dots span {
        animation: none;
    }
    .at-translate-loading {
        transition: none;
    }
}

@media (max-width: 680px) {
    .at-translate-plate {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }
    .at-translate-cta {
        font-size: 17.5px;
    }
    .at-translate-chip {
        order: 3;
    }
    .at-translate-langs {
        gap: 6px;
        padding-top: 12px;
    }
    .at-translate-lang {
        padding: 6px 10px 6px 6px;
    }
    .at-translate-lang-glyph {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    .at-translate-lang-name {
        font-size: 13px;
    }
    .at-translate-go {
        flex: 1 1 100%;
        order: 10;
        text-align: center;
    }
    .at-translate-langs-menu {
        flex: 1 1 100%;
    }
    .at-translate-select {
        max-width: none;
        width: 100%;
    }
}

.at-machine-notice {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid #d6d6d6;
    border-left: 4px solid #141414;
    background: #f7f7f5;
    color: #141414;
}

.at-machine-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #141414;
}

.at-machine-notice .at-machine-notice-tr {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #e2e2e0;
}

.at-machine-notice .at-machine-notice-tr[dir="rtl"] {
    text-align: right;
}

@media (max-width: 640px) {
    .at-machine-notice {
        padding: 12px 13px;
        margin-bottom: 18px;
    }

    .at-machine-notice p {
        font-size: 14.5px;
    }
}
