.ncaptcha-container {
    width: 300px;
    height: 80px;

    position: relative;

    border: 1px solid #d3d3d3;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08);
    background: #f9f9f9;

    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 12px;

    display: flex;
    align-items: center;
    flex-direction: row;
}

.ncaptcha-error {
    position: absolute;
    color: red;
    left: 0;
    top: 0;
    font-family: Roboto, arial, sans-serif;
}

.ncaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background-color: #fff;
}

.ncaptcha-spinner {
    width: 24px;
    height: 24px;
    border: 5px solid #4d90fe;
    border-radius: 24px;
    border-bottom-color: transparent;
    border-left-color: transparent;

    animation: spinner-spin linear 2.5s infinite;
}

.ncaptcha-checkmark>img {
    width: 38px;
    height: 38px;
    margin-right: -8px;
}

.ncaptcha-text {
    margin-left: 12px;
    font-size: 16px;
    font-family: Roboto, arial, sans-serif;
}

.ncaptcha-info {
    margin-left: auto;
    margin-right: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: Roboto, arial, sans-serif;
    font-size: 10px;
    color: #555;
}

.ncaptcha-info>div {
    font-weight: 400;
    margin-top: 2px;
}

@keyframes spinner-spin {
    0% {
        transform: rotateZ(0deg)
    }

    10% {
        transform: rotateZ(135deg)
    }

    25% {
        transform: rotateZ(245deg)
    }

    60% {
        transform: rotateZ(700deg)
    }

    75% {
        transform: rotateZ(810deg)
    }

    to {
        transform: rotateZ(1080deg)
    }
}

/* Popup window */

.ncaptcha-dialog::backdrop {
    background: rgb(255, 255, 255);
    opacity: 0.5;
}

.ncaptcha-dialog {
    border: 0px;
    padding: 0px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
    /* 居中弹窗 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* 防止默认margin影响 */
    z-index: 1001; /* 保证在遮罩层之上 */
}

.ncaptcha-dialog[open] {
    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ncaptcha-question {
    width: fit-content;
    border: 1px solid rgb(204, 204, 204);
    padding: 7px;
}

.ncaptcha-actions {
    border: 1px solid rgb(204, 204, 204);
    border-top: 0px;
    padding: 7px;

    display: flex;
}

.ncaptcha-title {
    width: 352px;
    height: 100px;
    background-color: #1a73e8;

    font-family: Roboto, arial, sans-serif;
    color: white;

    display: flex;
    flex-direction: column;

    padding-left: 24px;
    padding-right: 24px;
    padding-top: 24px;
}

.ncaptcha-title>strong {
    font-size: 28px;
}

.ncaptcha-images {
    margin-top: 7px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 100%;
}

.ncaptcha-image {
    flex: auto;
    min-width: 30%;
    aspect-ratio: 1 / 1;

    background-size: 100% 100%;

    transition: all 0.1s ease;
}

.ncaptcha-verify-btn {
    cursor: pointer;
    height: 42px;
    min-width: 100px;
    margin-left: auto;
    border: 0;
    background: #1a73e8;
    color: white;
    font-family: Roboto, arial, sans-serif;
    font-size: 14px;
    border-radius: 2px;
    padding-right: 10px;
    padding-left: 10px;
}

.ncaptcha-verify-btn:disabled {
    background-color: rgba(73, 143, 225, 0.50);
    cursor: default;
}

.ncaptcha-select {
    width: 32px;
    height: 32px;
    background-color: rgb(0, 0, 0);
    position: absolute;
    top: -16px;
    left: -16px;
    border-radius: 32px;
}