.cg-validator-wrap {
    width: 100%;
    max-width: 343px;
    margin: 0;
}

.cg-validator-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 343px;
    height: 52px;
    padding: 6px 6px 6px 14px;
    border: 1px solid #0b1b4f;
    border-radius: 7px;
    background: #ffffff;
    opacity: 1;
    box-sizing: border-box;
}

.cg-validator-input {
    flex: 1;
    height: 40px;
    border: 0;
    outline: none;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: #59698a;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.cg-validator-input::placeholder {
    color: #617193;
    opacity: 1;
}

.cg-validator-button {
    height: 40px;
    min-width: 90px;
    border: 0;
    border-radius: 7px;
    background: #001f33;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    padding: 0 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cg-validator-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.cg-validator-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
}

.cg-validator-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-validator-modal-content {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    padding: 26px 22px 22px;
    position: relative;
}

.cg-validator-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #5c5c5c;
}

.cg-validator-result-box {
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.cg-validator-result-box.valid {
    background: #1f9d44;
}

.cg-validator-result-box.invalid {
    background: #d83434;
}

.cg-validator-details {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.cg-validator-detail {
    margin: 8px 0;
    font-size: 16px;
    color: #20304f;
}

@media (max-width: 768px) {
    .cg-validator-wrap {
        max-width: 100%;
    }

    .cg-validator-form {
        width: 100%;
    }

    .cg-validator-input {
        font-size: 14px;
    }

    .cg-validator-button {
        font-size: 16px;
    }
}
