/*
Theme Name: GreenFood
Theme URI: http://localhost/7000word01/
Author: GreenFood
Description: 그린푸드 기업형 푸드서비스 반응형 테마 (오리지널). 2차 드롭다운 메뉴, 모바일 햄버거, 반응형 레이아웃, 하단 카피라이트.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: greenfood
*/

:root{
  --gf-green:#2e7d32; --gf-green-d:#1b5e20; --gf-green-l:#43a047;
  --gf-lime:#8bc34a; --gf-bg:#f6f9f4; --gf-text:#26312a; --gf-muted:#5c6b60;
  --gf-line:#e2e9de; --gf-white:#fff; --gf-max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;font-family:'Pretendard','Pretendard Variable','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  color:var(--gf-text);background:var(--gf-bg);line-height:1.7;font-size:16px;
  word-break:keep-all;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--gf-green);text-decoration:none}
a:hover{color:var(--gf-green-d)}
h1,h2,h3,h4{line-height:1.32;margin:0 0 .5em;color:var(--gf-text);letter-spacing:-.03em;font-weight:800}
.eng,.gf-badge{font-family:'Montserrat','Pretendard',sans-serif}
.gf-container{max-width:var(--gf-max);margin:0 auto;padding:0 20px;width:100%}

/* ===== Header ===== */
.gf-header{position:sticky;top:0;z-index:1000;background:var(--gf-white);border-bottom:1px solid var(--gf-line);
  box-shadow:0 2px 12px rgba(0,0,0,.04)}
.gf-header-inner{display:flex;align-items:center;justify-content:space-between;height:90px}
.gf-logo{display:flex;align-items:center;gap:10px;font-size:1.45rem;font-weight:800;color:var(--gf-green-d)}
.gf-logo .leaf{width:34px;height:34px;background:linear-gradient(135deg,var(--gf-green-l),var(--gf-lime));
  border-radius:50% 50% 50% 0;transform:rotate(45deg);display:inline-block}
.gf-logo b{color:var(--gf-lime)}
.gf-logo-img{width:200px;height:auto;display:block}
/* 맨 위로(TOP) 버튼 — 챗봇 버튼 아래(코너), 챗봇과 동일 폭·알약·흰배경 */
.gf-top{position:fixed;right:24px;bottom:24px;z-index:99998;width:62px;height:40px;border:1px solid #cdd3ca;
  border-radius:20px;background:#fff;color:#555;font-weight:700;font-size:.72rem;letter-spacing:.02em;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.1);opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease,background .2s ease,border-color .2s ease}
.gf-top.show{opacity:1;visibility:visible;transform:none}
.gf-top:hover{background:#f4f6f2;border-color:#a9b3a4;color:#2f3a30;transform:translateY(-3px)}
@media (max-width:480px){ .gf-top{right:16px;bottom:16px} }
@media (max-width:560px){ .gf-logo-img{width:160px} }

/* Nav (desktop) */
.gf-nav>ul{display:flex;list-style:none;margin:0;padding:0;gap:4px}
.gf-nav>ul>li{position:relative}
.gf-nav>ul>li>a{display:block;padding:26px 18px;font-weight:700;color:var(--gf-text)}
.gf-nav>ul>li:hover>a{color:var(--gf-green)}
.gf-nav .sub-menu{position:absolute;top:100%;left:0;min-width:190px;background:var(--gf-white);
  border:1px solid var(--gf-line);border-radius:0 0 10px 10px;box-shadow:0 12px 28px rgba(0,0,0,.1);
  list-style:none;margin:0;padding:8px 0;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:.18s ease}
.gf-nav>ul>li:hover .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.gf-nav .sub-menu li a{display:block;padding:11px 20px;color:var(--gf-muted);font-size:.95rem;font-weight:600}
.gf-nav .sub-menu li a:hover{background:var(--gf-bg);color:var(--gf-green)}

/* Hamburger */
.gf-burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:10px}
.gf-burger span{width:26px;height:3px;background:var(--gf-green-d);border-radius:3px;transition:.25s}
.gf-burger.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.gf-burger.open span:nth-child(2){opacity:0}
.gf-burger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* ===== Page hero ===== */
.gf-hero{position:relative;min-height:340px;display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff;background-size:cover;background-position:center}
.gf-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.44))}
.gf-hero-in{position:relative;z-index:2;padding:40px 20px}
.gf-hero h1{color:#fff;font-size:2.4rem;margin:0 0 10px;text-shadow:0 2px 10px rgba(0,0,0,.3)}
.gf-hero .crumb{font-size:.9rem;opacity:.9}
.gf-hero .crumb a{color:#dff0d8}

/* ===== Sections / content ===== */
.gf-page{padding:80px 0 100px}
.gf-kb{font-size:1.06rem;line-height:1.85;color:var(--gf-text);max-width:820px}
.gf-kb p{margin:0 0 1.1em}
.gf-kb h2,.gf-kb h3{margin:1.4em 0 .5em}
.gf-kb ul,.gf-kb ol{margin:0 0 1.1em;padding-left:1.4em}
.gf-kb li{margin:.3em 0}
/* 자주 묻는 질문 라벨 + 목록 버튼 */
.gf-kb-label{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.4);
  color:#fff;font-size:.85rem;font-weight:600;padding:5px 15px;border-radius:30px;margin-bottom:12px}
.gf-kb-actions{margin-top:36px;text-align:right}
.gf-listbtn{display:inline-block;background:#fff;color:#444;font-weight:700;padding:12px 32px;
  border:1px solid #d5d9d2;border-radius:40px;transition:.2s ease;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.gf-listbtn:hover{background:#f6f8f4;color:#222;border-color:#bcc4b8;transform:translateY(-2px)}
.gf-kb-actions .gf-writebtn{margin-left:8px}
.gf-writebtn{display:inline-block;background:var(--gf-green,#2e7d32);color:#fff;font-weight:700;padding:12px 32px;
  border:1px solid var(--gf-green,#2e7d32);border-radius:40px;transition:.2s ease;box-shadow:0 4px 14px rgba(0,0,0,.10)}
.gf-writebtn:hover{filter:brightness(.94);color:#fff;transform:translateY(-2px)}
/* 게시판 목록 */
.gf-board-count{color:var(--gf-muted);margin:0 0 12px}
.gf-board-count strong{color:var(--gf-green)}
.gf-board{width:100%;border-collapse:collapse;border-top:2px solid var(--gf-green)}
.gf-board th,.gf-board td{padding:15px 12px;border-bottom:1px solid var(--gf-line);text-align:center}
.gf-board th{background:#f3f7f1;color:var(--gf-green-d);font-weight:700;font-size:.92rem}
.gf-board .col-no{width:80px;color:var(--gf-muted)}
.gf-board .col-date{width:130px;color:var(--gf-muted);font-size:.9rem}
.gf-board .col-subject{text-align:left}
.gf-board .col-subject a{color:var(--gf-text);font-weight:600}
.gf-board .col-subject a:hover{color:var(--gf-green);text-decoration:underline}
.gf-board tbody tr:hover{background:#f9fbf8}
/* 페이징 */
.gf-pagination{display:flex;justify-content:center;gap:6px;margin-top:36px;flex-wrap:wrap}
.gf-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;
  padding:0 10px;border:1px solid var(--gf-line);border-radius:8px;color:var(--gf-text);font-weight:600;text-decoration:none}
.gf-pagination .page-numbers:hover{border-color:var(--gf-green);color:var(--gf-green)}
.gf-pagination .page-numbers.current{background:var(--gf-green);border-color:var(--gf-green);color:#fff}
.gf-pagination .page-numbers.dots{border:0}
@media(max-width:560px){ .gf-board .col-date{display:none} }
.gf-lead{font-size:1.2rem;color:var(--gf-muted);margin:0 0 30px}
.gf-section{margin:0 0 46px}
.gf-section h2{font-size:1.6rem;position:relative;padding-bottom:12px;margin-bottom:22px}
.gf-section h2::after{content:"";position:absolute;left:0;bottom:0;width:52px;height:4px;
  background:var(--gf-lime);border-radius:2px}
.gf-media{border-radius:22px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.09);margin:0 0 22px}
.gf-two .gf-media{border-radius:0 40px 0 40px}
.gf-media img{width:100%;height:auto}
.gf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.gf-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.gf-card{background:var(--gf-white);border:1px solid var(--gf-line);border-radius:20px;overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.05);transition:.25s ease}
.gf-card:hover{transform:translateY(-6px);box-shadow:0 20px 44px rgba(0,0,0,.11)}
.gf-card img{width:100%;height:200px;object-fit:cover}
.gf-card .pad{padding:20px}
.gf-card h3{font-size:1.15rem;margin:0 0 8px;color:var(--gf-green-d)}
.gf-card p{margin:0;color:var(--gf-muted);font-size:.95rem}
.gf-two{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center;margin:0 0 40px}
.gf-badge{display:inline-block;background:#eaf4e6;color:var(--gf-green-d);font-weight:700;
  padding:6px 16px;border-radius:30px;font-size:.8rem;margin-bottom:12px;letter-spacing:.08em}
.gf-list{list-style:none;padding:0;margin:0}
.gf-list li{padding:10px 0 10px 30px;position:relative;border-bottom:1px dashed var(--gf-line)}
.gf-list li::before{content:"✓";position:absolute;left:0;color:var(--gf-green-l);font-weight:800}
.gf-table{width:100%;border-collapse:collapse;margin:6px 0 20px}
.gf-table th,.gf-table td{border:1px solid var(--gf-line);padding:12px 14px;text-align:left}
.gf-table th{background:#eef5ea;color:var(--gf-green-d);width:180px}
.gf-cta{background:linear-gradient(135deg,var(--gf-green),var(--gf-green-l));color:#fff;border-radius:28px;
  padding:56px 44px;text-align:center;margin-top:20px}
/* CTA + 지도 2단 (각 50%) */
.gf-cta-map{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;margin-top:20px}
.gf-cta-map .gf-cta{margin-top:0;display:flex;flex-direction:column;justify-content:center;padding:48px 40px}
.gf-map{border-radius:28px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.1);min-height:320px}
.gf-map iframe{width:100%;height:100%;min-height:320px;border:0;display:block}
@media (max-width:768px){ .gf-cta-map{grid-template-columns:1fr} }
.gf-cta h2{color:#fff}.gf-cta h2::after{display:none}
.gf-btn{display:inline-block;background:#fff;color:var(--gf-green-d);font-weight:700;padding:14px 32px;
  border-radius:40px;margin-top:14px;transition:transform .25s ease,background .25s ease,box-shadow .25s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.08)}
.gf-btn:hover{transform:translateX(5px)}
.gf-btn.outline{background:transparent;border:2px solid #fff;color:#fff;box-shadow:none}

/* ===== Home ===== */
.gf-home-hero{position:relative;min-height:560px;display:flex;align-items:center;color:#fff;overflow:hidden}
.gf-slides{position:absolute;inset:0;z-index:0}
.gf-slide{position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity 1.1s ease}
.gf-slide.is-active{opacity:1}
.gf-home-hero::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(120deg,rgba(0,0,0,.6),rgba(0,0,0,.22))}
.gf-home-hero .in{position:relative;z-index:2;max-width:640px}
/* 타이핑 커서 */
.gf-caret{display:inline-block;width:3px;height:.95em;background:#fff;margin-left:5px;
  vertical-align:-2px;border-radius:2px;animation:gf-blink .7s step-end infinite}
@keyframes gf-blink{50%{opacity:0}}
/* 페이드인 (JS 동작 시에만 숨김 → 미동작 시 텍스트 보임) */
.gf-home-hero.has-anim .gf-fade{opacity:0;transform:translateY(18px)}
.gf-home-hero .gf-fade{transition:opacity .9s ease,transform .9s ease}
.gf-home-hero .gf-fade.in{opacity:1;transform:none}
.gf-slide-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:50px;height:50px;
  border:0;border-radius:50%;background:rgba(255,255,255,.22);color:#fff;font-size:30px;line-height:1;
  cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.25s}
.gf-slide-arrow:hover{background:rgba(255,255,255,.5)}
.gf-slide-arrow.prev{left:24px}
.gf-slide-arrow.next{right:24px}
.gf-slide-dots{position:absolute;z-index:3;bottom:26px;left:50%;transform:translateX(-50%);
  display:flex;gap:10px}
.gf-slide-dots button{width:12px;height:12px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.5);transition:.25s}
.gf-slide-dots button:hover{background:rgba(255,255,255,.8)}
.gf-slide-dots button.is-active{background:#fff;width:30px;border-radius:6px}
.gf-home-hero h1{color:#fff;font-size:3rem;margin-bottom:16px;text-shadow:0 3px 14px rgba(0,0,0,.35)}
.gf-home-hero p{font-size:1.25rem;opacity:.95;margin-bottom:26px}
.gf-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:-50px auto 0;position:relative;z-index:5}
.gf-stat{background:#fff;border-radius:14px;padding:26px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.gf-stat b{display:block;font-size:2.1rem;color:var(--gf-green);font-weight:800;line-height:1.2}
.gf-stat b small{font-size:1em;font-weight:inherit;letter-spacing:inherit}
.gf-stat .gf-count{font-size:1em;font-weight:inherit}
.gf-stat span{color:var(--gf-muted);font-size:.92rem}
.gf-home-section{padding:90px 0}
.gf-home-section .head{text-align:center;max-width:640px;margin:0 auto 40px}
.gf-home-section .head h2{font-size:2rem}
.gf-home-section .head p{color:var(--gf-muted)}

/* ===== Footer ===== */
.gf-footer{background:#1c261f;color:#fff;padding:46px 0 30px;margin-top:40px}
.gf-footer .cols{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;margin-bottom:26px}
.gf-footer .flog{font-size:1.3rem;font-weight:800;color:#fff;margin-bottom:10px}
.gf-footer .flog b{color:var(--gf-lime)}
.gf-footer a{color:#fff}.gf-footer a:hover{color:var(--gf-lime)}
.gf-fnav{display:flex;gap:18px;flex-wrap:wrap;font-size:.9rem}
.gf-copy{border-top:1px solid #2f3d31;padding-top:20px;font-size:.85rem;color:#fff;line-height:1.9}

/* ===== Responsive ===== */
@media (max-width:900px){
  .gf-grid,.gf-grid.cols-2{grid-template-columns:1fr 1fr}
  .gf-two{grid-template-columns:1fr}
  .gf-stats{grid-template-columns:repeat(2,1fr)}
  .gf-home-hero h1{font-size:2.2rem}
}
@media (max-width:768px){
  .gf-burger{display:flex}
  .gf-nav{position:fixed;top:90px;right:-100%;width:80%;max-width:320px;height:calc(100vh - 90px);
    background:#fff;box-shadow:-6px 0 24px rgba(0,0,0,.15);transition:right .28s ease;overflow-y:auto;padding:10px 0}
  .gf-nav.open{right:0}
  .gf-nav>ul{flex-direction:column;gap:0}
  .gf-nav>ul>li>a{padding:16px 22px;border-bottom:1px solid var(--gf-line)}
  .gf-nav .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;
    border-radius:0;max-height:0;overflow:hidden;transition:max-height .28s ease;background:#f3f7f1;padding:0}
  .gf-nav>ul>li.open .sub-menu{max-height:500px;padding:6px 0}
  .gf-nav>ul>li>a{display:flex;justify-content:space-between;align-items:center}
  .gf-nav>ul>li.has-sub>a::after{content:"+";font-weight:700;color:var(--gf-green)}
  .gf-nav>ul>li.has-sub.open>a::after{content:"−"}
}
@media (max-width:560px){
  .gf-grid,.gf-grid.cols-2,.gf-stats{grid-template-columns:1fr}
  .gf-home-hero h1{font-size:1.8rem}
  .gf-hero h1{font-size:1.7rem}
  .gf-cta{padding:30px 20px}
  .gf-slide-arrow{width:40px;height:40px;font-size:24px}
  .gf-slide-arrow.prev{left:10px}
  .gf-slide-arrow.next{right:10px}
}

/* ── 블로그 단일 글(.gf-single) 가독성/여백 ── (AI Engine 생성글 + 자동 이미지) */
.gf-single{max-width:800px;margin:0 auto;font-size:1.08rem;line-height:1.95;color:var(--gf-text)}
.gf-single p{margin:0 0 1.7em}
/* AI Engine 본문은 문단을 <br>로 줄바꿈 → br에 여백을 줘서 문단이 시원하게 벌어지게 함 */
.gf-single p br{display:block;content:"";margin-top:.85em}
.gf-single h2{margin:2.6em 0 .7em;font-size:1.5rem}
.gf-single h3{margin:2em 0 .5em;font-size:1.22rem}
.gf-single ul,.gf-single ol{margin:0 0 1.7em;padding-left:1.5em}
.gf-single li{margin:.45em 0}
.gf-single blockquote{margin:2em 0;padding:.6em 1.2em;border-left:4px solid var(--gf-green-l);color:var(--gf-muted);background:#f2f6ef;border-radius:8px}
/* 자동 삽입 이미지: 위아래 넉넉한 여백 + 부드러운 라운드/그림자 */
.gf-single figure.mwai-ko-image{margin:2.8em auto;text-align:center}
.gf-single figure.mwai-ko-image img{margin:0 auto;border-radius:14px;box-shadow:0 12px 34px rgba(0,0,0,.10)}
.gf-single figure.mwai-ko-image figcaption{margin-top:.7em;font-size:12px;color:var(--gf-muted)}
@media (max-width:560px){
  .gf-single{font-size:1.02rem;line-height:1.9}
  .gf-single h2{margin:2.1em 0 .6em;font-size:1.32rem}
  .gf-single figure.mwai-ko-image{margin:2.1em auto}
}

/* AI Engine Chatbot Z-Index & Layout Fix */
.mwai-chatbot-container, .mwai-trigger, #mwai-chatbot-icon {
  z-index: 99999 !important;
}

/* 모바일 챗봇 창 팝업 최적화 패치 (가로 확장 & 키보드 대응 - 우선순위 강화 버전) */
/* 플러그인 chatgpt.css:2491 에서 모바일 전체화면 + 세로 입력을 강제하므로
   동일 선택자 + !important 로 재정의한다. */
@media (max-width: 760px) {

  /* ── 1) 챗봇 팝업 창 : 전체화면 → 패딩 팝업 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open {
    position: fixed !important;
    top: auto !important;
    bottom: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    left: 4px !important;
    right: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    overflow: visible !important;
    z-index: 999999 !important;
    border: none !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor)) !important;
  }

  /* ── 2) window-box ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-window-box {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 12px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex: 1 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* ── 3) 대화 본문 영역 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-body {
    flex: 1 1 0% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  /* ── 4) 입력 영역 : 세로→가로 강제, 잘림 방지 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 4px !important;
    padding: 4px 6px 5px 4px !important;
    margin: 6px 10px !important;
    border-radius: 26px !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    width: auto !important;
  }

  /* ── 5) 텍스트 입력 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    overflow: hidden !important;
  }

  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text textarea,
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  /* ── 6) 전송 버튼 : 고정 크기, 절대 잘리지 않게 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input button.mwai-input-submit {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* ── 7) 일반 버튼(전화, 카카오 등)이 가로 100%되는 것 방지 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input button:not(.mwai-input-submit) {
    width: auto !important;
    margin-left: 0 !important;
  }

  /* ── 8) 퀵 버튼(바로가기) 영역 줄바꿈 허용 ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-shortcuts {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 8px !important;
  }

  /* ── 9) 모바일 헤더 (닫기 버튼 등) ── */
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-mobile-header {
    border-radius: 16px 16px 0 0 !important;
  }
}

/* 챗봇 전송 버튼 비활성화 상태 색상 보정 (우선순위 최고조) */
body [class*="mwai-"] .mwai-input button.mwai-input-submit,
body [class*="mwai-"].mwai-window.mwai-open .mwai-input button.mwai-input-submit {
  background: #cbd5e1 !important; /* 기본 연회색 배경 */
  color: #475569 !important; /* 기본 진회색 아이콘 */
  opacity: 1 !important;
}

body [class*="mwai-"] .mwai-input button.mwai-input-submit:disabled:not(.mwai-has-content),
body [class*="mwai-"].mwai-window.mwai-open .mwai-input button.mwai-input-submit:disabled:not(.mwai-has-content) {
  background: #e2e8f0 !important; /* 비활성화 연회색 */
  color: #94a3b8 !important; /* 비활성화 회색 아이콘 */
  opacity: 1 !important;
}

body [class*="mwai-"] .mwai-input button.mwai-input-submit.mwai-has-content,
body [class*="mwai-"].mwai-window.mwai-open .mwai-input button.mwai-input-submit.mwai-has-content {
  background: var(--mwai-accentColor, #2e7d32) !important; /* 활성화 시 포인트 컬러 */
  color: #fff !important;
}
