/* 1. 사이트 전체 버튼 스타일 (기존대로 유지) */
body:not(.mce-tinymce) button:focus,
body:not(.mce-tinymce) button:hover,
body:not(.mce-tinymce) .ast-button:hover,
body:not(.mce-tinymce) .ast-custom-button:hover,
body:not(.mce-tinymce) .button:hover,
body:not(.mce-tinymce) input[type=reset]:hover,
body:not(.mce-tinymce) input[type=reset]:focus,
body:not(.mce-tinymce) input#submit:hover,
body:not(.mce-tinymce) input#submit:focus,
body:not(.mce-tinymce) input[type="button"]:hover,
body:not(.mce-tinymce) input[type="button"]:focus,
body:not(.mce-tinymce) input[type="submit"]:hover,
body:not(.mce-tinymce) input[type="submit"]:focus {
    color: #fff;
    background-color: #653366;
    border-color: #653366;
}

/* 2. 에디터 내부 버튼 스타일 예외 (사이트 버튼 스타일 덮어쓰기!) */
.wp-core-ui.wp-editor-wrap.tmce-active button,
.wp-core-ui.wp-editor-wrap.tmce-active input[type="button"],
.wp-core-ui.wp-editor-wrap.tmce-active input[type="submit"],
.wp-core-ui.wp-editor-wrap.tmce-active .button {
    color: inherit !important;
    background: inherit !important;
    border-color: inherit !important;
    /* 필요시, WordPress 기본 버튼 색상/스타일 명시해도 OK */
}
/* 에디터 내부 버튼 예외 전체 */
.wp-core-ui.wp-editor-wrap.tmce-active button,
.wp-core-ui.wp-editor-wrap.tmce-active input[type="button"],
.wp-core-ui.wp-editor-wrap.tmce-active input[type="submit"],
.wp-core-ui.wp-editor-wrap.tmce-active .button,
.wp-core-ui.wp-editor-wrap.tmce-active .wp-switch-editor {
    color: inherit !important;
    background: inherit !important;
    border-color: inherit !important;
    border-radius: initial !important;
    text-transform: none !important;
}


.media-modal-content .ast-button:hover,
.media-modal-content .ast-button:focus,
.media-modal-content .ast-custom-button:hover,
.media-modal-content .ast-custom-button:focus,
.media-modal-content .button:hover,
.media-modal-content .button:focus,
.media-modal-content button:hover,
.media-modal-content button:focus,
.media-modal-content input[type="reset"]:hover,
.media-modal-content input[type="reset"]:focus,
.media-modal-content input#submit:hover,
.media-modal-content input#submit:focus,
.media-modal-content input[type="button"]:hover,
.media-modal-content input[type="button"]:focus,
.media-modal-content input[type="submit"]:hover,
.media-modal-content input[type="submit"]:focus,
button.media-modal-close:focus,
button.media-modal-close:hover{
    color: inherit !important;
    background: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
    outline: revert !important;  /* 원래 브라우저 기본 outline 사용 */
    /* 필요시 border: none !important; 도 추가 가능 */
 border-radius: 0 !important;        /* 타원형 둥글기 막음 */
	
}



.media-modal-content .menu-toggle,
.media-modal-content button,
.media-modal-content .ast-button,
.media-modal-content .ast-custom-button,
.media-modal-content .button,
.media-modal-content input#submit,
.media-modal-content input[type="button"],
.media-modal-content input[type="submit"],
.media-modal-content input[type="reset"],
.media-modal-content form[class*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button,
.media-modal-content .wp-block-file .wp-block-file__button {
    text-transform: none !important;    /* 대문자 변환 막음 */
    border-radius: 0 !important;        /* 타원형 둥글기 막음 */
    color: inherit !important;          /* 글로벌 컬러 스타일 막음 */
    /* 필요하다면 아래도 추가 가능 */
    /* color: initial !important;   // inherit과 비슷하지만, 상속 원하지 않으면 사용 */
	  background: inherit !important;
    border-color: inherit !important;
}

.media-modal-content .button-primary {
    background: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
    text-decoration: inherit !important;
    text-shadow: inherit !important;
}
.mce-container, .mce-container *, .mce-widget, .mce-widget *, .mce-reset
{
   text-transform: none !important;    /* 대문자 변환 막음 */
    border-radius: 0 !important;        /* 타원형 둥글기 막음 */
    color: inherit !important;    
}


