 /* =========================================
           디자인 1: 국기 + 한글 텍스트 형태
           ========================================= */
        .transl-d1-wrapper {
            position: relative;
            user-select: none;
        }

        .transl-d1-btn {
            background-color: #ffffff;
            color: #334155;
            font-size: 15px;
            font-weight: 600;
            padding: 10px 20px;
            border: 1px solid #cbd5e1;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            transition: all 0.2s ease;
        }

        .transl-d1-btn:hover {
            border-color: #94a3b8;
            box-shadow: 0 4px 6px rgba(0,0,0,0.04);
        }

        .transl-d1-content {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .transl-d1-flag {
            width: 20px;
            height: 14px;
            object-fit: cover;
            border-radius: 2px;
            box-shadow: 0 0 3px rgba(0,0,0,0.15);
        }

        .transl-d1-btn svg {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        .transl-d1-wrapper.open .transl-d1-btn svg {
            transform: rotate(180deg);
        }

        .transl-d1-list {
            position: absolute;
            top: 120%;
            right: 0;
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            width: 165px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1001;
            padding: 8px 0;
            list-style: none;
            margin: 0;
        }

        .transl-d1-wrapper.open .transl-d1-list {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .transl-d1-list li {
            padding: 12px 20px;
            font-size: 15px;
            color: #475569;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .transl-d1-list li:hover {
            background-color: #f1f5f9;
            font-weight: 600;
        }


        /* =========================================
           디자인 2: 심플 국기 형태 (가로 정렬)
           ========================================= */
        .transl-d2-wrapper {
            position: relative;
            user-select: none;
            display: inline-block;
        }

        .transl-d2-btn {
            background: transparent;
            border: none;
            padding: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background-color 0.2s ease;
            outline: none;
        }



        .transl-d2-flag {
            width: 28px;
            height: 20px;
            object-fit: cover;
            border-radius: 3px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
            display: block;
            transition: transform 0.2s ease;
        }

        .transl-d2-btn:active .transl-d2-flag {
            transform: scale(0.95);
        }

        .transl-d2-list {
            position: absolute;
            top: 130%; 
            right: 0; 
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            width: max-content; 
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1001;
            padding: 8px; 
            list-style: none;
            margin: 0;
            display: flex;
            flex-direction: row; 
            gap: 8px; 
        }

        .transl-d2-wrapper.open .transl-d2-list {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .transl-d2-list li {
            padding: 6px;
            cursor: pointer;
            border-radius: 6px;
            transition: background-color 0.2s;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .transl-d2-list li:hover {
            background-color: #f1f5f9;
        }


        /* =========================================
           반응형 (Media Queries) 적용: 화면 크기에 따른 UI 전환
           ========================================= */
        
        @media (min-width: 1000px) {
            .transl-d1-wrapper { display: block; }
            .transl-d2-wrapper { display: none !important; }
        }

        @media (max-width: 999px) {
            .transl-d1-wrapper { display: none !important; }
            .transl-d2-wrapper { display: inline-block; }
        }


        /* =========================================
           구글 번역기 숨김 처리 및 초기화 영역
           ========================================= */
        .google-core-hidden-container {
            position: absolute;
            top: 0;
            left: 0;
            z-index: -999;
            opacity: 0.0001;
            pointer-events: none;
        }

        .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
   
        .VIpgJd-ZVi9od-l4eHX-hSRGPd { display: none !important; }
        
        /* 캔버스 확인용 임시 컨테이너 */
        .transl-widget-container {
            padding: 20px;
            display: flex;
            justify-content: flex-end;
            font-family: sans-serif;
        }