/* White and charcoal remain the base; blue indicates actions and selected state. */
#gm-approved{--gmux-blue:#245fe5;--gmux-soft:#edf3ff}
#gm-approved .gmp-sidebar nav a[aria-current=page]{background:#eaf1ff!important;color:#2257c7!important;box-shadow:inset 3px 0 #245fe5!important}
#gm-approved :is(.gmp-sidebar-help a,.gmof-quicklinks a,.gmow-list a,.gmux-order-note>a,.plan-detail-link,.text-link){color:#245fe5!important}
#gm-approved :is(.section-kicker,.eyebrow,.gmp-kicker){color:#245fe5!important}
#gm-approved .service-route .route:hover{border-color:#9ebaff!important;background:#f7faff!important}
#gm-approved .gmp-main{background:#f5f7fa!important;padding:28px!important;border-radius:18px!important}
#gm-approved .gmp-heading{border:0!important;padding-bottom:0!important}
#gm-approved .gmp-content .gmr-card,#gm-approved .gmp-content .gmow-panel{border:1px solid #e6eaf0!important;border-radius:14px!important;box-shadow:0 2px 8px #17213b03!important}
#gm-approved .gmr-card>h2{margin:0 0 20px!important}
#gm-approved .gmr-card .gmr-next{background:#eff5ff!important;border:0!important;border-radius:10px!important;padding:20px 22px!important;margin:0 0 24px!important}
#gm-approved .gmr-next h3{color:#2457c6!important;font-size:16px!important;margin:0 0 8px!important}
#gm-approved .gmr-next p{line-height:1.8!important;margin:0 0 12px!important}
#gm-approved .gmr-next>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:8px 17px!important;background:#245fe5!important;color:#fff!important;text-decoration:none!important;border-radius:7px!important;font-weight:600!important;border:0!important}
#gm-approved .gmr-facts{border:1px solid #e7ebf1!important;border-radius:10px!important;overflow:hidden!important;margin:0 0 20px!important}
#gm-approved .gmr-facts dt{color:#667084!important;font-size:12px!important}
#gm-approved .gmr-facts dd{color:#252b36!important;font-size:14px!important}
#gm-approved .gmux-order-note{border-top:1px solid #e6eaf0!important;padding-top:14px!important;margin-top:14px!important;font-size:13px!important;color:#616b7a!important}
#gm-approved .gmux-order-note summary{cursor:pointer!important;font-size:13px!important;font-weight:600!important;list-style:none!important;color:#505c70!important;padding:8px 0!important}
#gm-approved .gmux-order-note summary::-webkit-details-marker{display:none}
#gm-approved .gmux-order-note summary::after{content:'내용 보기';float:right;color:#245fe5;font-weight:500;font-size:12px}
#gm-approved .gmux-order-note[open] summary::after{content:'접기'}
#gm-approved .gmux-order-note p{font-size:13px!important;line-height:1.85!important}
#gm-approved .gmof-product{background:#fff!important;border-color:#e5eaf3!important}
#gm-approved .gmof-meter{background:#eaf0f9!important}
#gm-approved .gmof-meter>span{background:#245fe5!important}
#gm-approved .gmof-count strong{color:#245fe5!important}
#gm-approved .gmof-details summary{color:#2457c6!important}
#gm-approved.gma-checkout #order_review{background:#f8faff!important;border-color:#e1e8f4!important}
#gm-approved.gma-checkout :is(input.input-text,textarea,select):focus,#gm-approved .gmp-content :is(input:not([type=checkbox]):not([type=radio]),textarea,select):focus{border-color:#7195e9!important;box-shadow:0 0 0 3px #245fe50c!important;outline:0!important}
#gm-approved :is(input[type=checkbox],input[type=radio]){accent-color:#245fe5}
#gm-approved .gmp-account-card a,#gm-approved .gmow-panel>p>a{color:#245fe5!important}
#gmux-chat-root{font-family:inherit;color:#1b2433;position:relative;z-index:999990}
#gmux-chat-launcher{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:62px;height:62px;border:1px solid #dbe6ff;border-radius:50%;background:#fff;color:#245fe5;box-shadow:0 5px 24px #1b315725;cursor:pointer;padding:8px;box-sizing:border-box;font-family:inherit;font-size:10px;font-weight:600;line-height:1.2;transition:box-shadow .2s,transform .2s;z-index:999991}
#gmux-chat-launcher svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#gmux-chat-launcher:hover{background:#f3f7ff;transform:translateY(-2px);box-shadow:0 7px 25px #1b315735}
#gmux-chat-launcher:focus-visible,#gmux-chat-close:focus-visible{outline:2px solid #7fa7ff!important;outline-offset:3px!important}
#gmux-chat-dialog{position:fixed;right:24px;bottom:100px;box-sizing:border-box;width:min(410px,calc(100% - 32px));height:min(650px,calc(100dvh - 132px));min-height:280px;background:#fff;border:1px solid #e4e8ef;border-radius:22px;box-shadow:0 18px 70px #13223835;overflow:hidden;z-index:999992;display:flex;flex-direction:column}
#gmux-chat-dialog[hidden]{display:none!important}
#gmux-chat-dialog>header{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f5;flex:none}
#gmux-chat-dialog header strong{display:block;font-size:16px;line-height:1.5}
#gmux-chat-dialog header small{display:block;font-size:11px;color:#687488;margin-top:3px;line-height:1.5}
#gmux-chat-close{border:0;border-radius:7px;background:#f0f3f8;color:#4c596d;font:inherit;font-size:12px;min-width:44px;min-height:36px;cursor:pointer}
#gmux-chat-container{flex:1;min-height:0}
#gmux-chat-container iframe{width:100%;height:100%;border:0;display:block}
.gmux-chat-frame{margin:0;background:#f7f9fc;font:14px/1.8 -apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;color:#526077}
.gmux-chat-frame main{padding:30px 24px}.gmux-chat-frame h1{font-size:22px;line-height:1.5;color:#1c2737}.gmux-chat-frame a{color:#245fe5}.gmux-chat-frame .gmux-eyebrow{font-size:12px;color:#245fe5}.gmux-chat-frame main>p{margin:16px 0}
.gmux-chat-frame #ch-plugin #ch-plugin-script{left:0!important;right:0!important;top:0!important;bottom:0!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:800px){#gm-approved .gmp-main{padding:20px 12px!important;margin:0 -8px!important;border-radius:14px!important}#gm-approved .gmp-sidebar nav{background:#f3f6fb!important}#gm-approved .gmp-sidebar nav a[aria-current=page]{background:#fff!important;box-shadow:inset 0 -2px #245fe5!important}#gm-approved .gmp-heading{padding:0 8px!important}#gm-approved .gmr-card .gmr-next{padding:18px!important}}
@media(max-width:600px){#gmux-chat-launcher{right:14px;bottom:max(16px,env(safe-area-inset-bottom));width:54px;height:54px}#gmux-chat-launcher svg{width:23px;height:23px}#gmux-chat-launcher.gmux-input-focus{visibility:hidden}#gmux-chat-dialog{right:10px;bottom:max(80px,calc(env(safe-area-inset-bottom) + 72px));width:calc(100% - 20px);height:calc(100dvh - 104px);border-radius:16px}body.woocommerce-checkout #gmux-chat-launcher,body.woocommerce-cart #gmux-chat-launcher{bottom:max(92px,calc(env(safe-area-inset-bottom) + 84px))}#gmux-chat-dialog>header{padding:12px 16px}}
@media(prefers-reduced-motion:reduce){#gmux-chat-launcher{transition:none}}

/* Keep one visible brand header and one close control inside the framed chat. */
#gmux-chat-dialog>header{position:absolute;right:12px;top:12px;padding:0;border:0;z-index:2;background:transparent}
#gmux-chat-dialog>header>div{display:none}
#gmux-chat-dialog.gmux-chat-ready>header{display:none}



/* A clear next action after optional materials, without creating an order. */
#gm-approved.gma-checkout .gmux-checkout-next{border-top:1px solid #e6eaf0;margin-top:24px;padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
#gm-approved.gma-checkout .gmux-checkout-next p{font-size:12px!important;color:#687181!important;line-height:1.7!important;margin:0!important;flex:1 1 200px}
#gm-approved.gma-checkout .gmux-checkout-next button{background:#245fe5!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:13px 18px!important;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;min-height:48px;cursor:pointer;flex:none}
#gm-approved.gma-checkout #order_review_heading{scroll-margin-top:110px}
#gm-approved.gma-checkout #order_review_heading:focus{outline:none!important}
#gm-approved.gma-checkout .gmux-checkout-support{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 20px;padding-bottom:20px;border-bottom:1px solid #e6eaf0}
#gm-approved.gma-checkout .gmux-checkout-support>span{color:#414b5c;font-size:14px}
#gm-approved.gma-checkout .gmux-checkout-support button{border:0!important;background:#edf3ff!important;color:#245fe5!important;border-radius:7px!important;min-height:42px;padding:9px 16px!important;font:inherit;font-size:13px!important;font-weight:600!important;cursor:pointer}
#gm-approved.gma-checkout .gmux-checkout-support a{font-size:13px;color:#5f6b7b!important;text-decoration:none}
#gm-approved.gma-checkout .gmux-checkout-next button:focus-visible,#gm-approved.gma-checkout .gmux-checkout-support button:focus-visible{outline:2px solid #7195e9!important;outline-offset:3px!important}
@media(max-width:600px){#gm-approved.gma-checkout .gmux-checkout-next button{width:100%}#gm-approved.gma-checkout .gmux-checkout-support>span{flex-basis:100%}}

#gmux-chat-launcher.gmux-critical-view{visibility:hidden}
#gm-approved.gma-checkout .gmux-checkout-next{padding-bottom:14px}

/* Make the existing work-period disclosure recognizable without arrows. */
#gm-approved.gma-checkout .gmow-work-schedule>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}
#gm-approved.gma-checkout .gmow-work-schedule>summary::after{content:'내용 보기';flex:none;font-size:12px;font-weight:500;color:#245fe5}
#gm-approved.gma-checkout .gmow-work-schedule[open]>summary::after{content:'접기'}

/* First-party chat shell: keep one visible header and close control. */
#gmux-chat-dialog>header,#gmux-chat-dialog.gmux-chat-ready>header{position:static;display:flex;padding:12px 16px;border-bottom:1px solid #edf0f5;background:#fff;z-index:2}
#gmux-chat-dialog>header>div{display:block}#gmux-chat-container{overflow:hidden}
.gmux-chat-frame .gmux-member-login{display:block;padding:13px 16px;border-radius:10px;background:#275be1;color:#fff;text-align:center;text-decoration:none;font-weight:600}

/* Simple send, then verify: retain existing file and text submission handlers. */
#gm-approved .gmj-section-title{display:flex;align-items:flex-start;gap:14px;margin:0 0 20px}
#gm-approved .gmj-section-title>span{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:10px;background:#edf3ff;color:#2457c6;font-size:12px;font-weight:700}
#gm-approved .gmj-section-title h2{font-size:20px!important;margin:0 0 6px!important;line-height:1.5!important}
#gm-approved .gmj-section-title p{font-size:13px!important;color:#687181!important;margin:0!important;line-height:1.8!important}
#gm-approved .gmj-send{margin:30px 0 20px;scroll-margin-top:100px}
#gm-approved .gmj-note{background:#f7f9fc;border:1px solid #e3e9f2;border-radius:12px;padding:0 20px;margin:20px 0 32px;scroll-margin-top:100px}
#gm-approved .gmj-note>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:18px 0;color:#263144;font-size:15px;font-weight:600}
#gm-approved .gmj-note>summary::-webkit-details-marker{display:none}
#gm-approved .gmj-note>summary small{color:#778192;font-size:12px;font-weight:400;margin-left:6px}
#gm-approved .gmj-disclosure-label{color:#2457c6;font-size:12px;white-space:nowrap}
#gm-approved .gmj-note[open]{padding-bottom:20px}
#gm-approved .gmj-note .gmof-scope{background:#fff}
#gm-approved .gmow-material-history{border-top:1px solid #e6eaf0;padding-top:28px;scroll-margin-top:100px}
#gm-approved .gmj-followup{margin-top:24px;padding:20px;background:#f5f8ff;border-radius:12px;display:flex;flex-wrap:wrap;gap:10px}
#gm-approved .gmj-followup p{flex-basis:100%;margin:0 0 4px!important;font-size:13px!important;color:#5d697c!important}
#gm-approved .gmj-followup a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:8px;background:#fff;color:#2457c6!important;text-decoration:none!important;font-size:14px;min-height:44px;box-sizing:border-box}
#gm-approved .gmj-followup a:first-of-type{background:#245fe5;color:#fff!important}
#gm-approved .gmj-followup a:focus-visible,#gm-approved .gmj-note summary:focus-visible{outline:2px solid #7195e9!important;outline-offset:3px}
@media(max-width:600px){#gm-approved .gmj-note{padding-left:14px;padding-right:14px}#gm-approved .gmj-section-title h2{font-size:18px!important}#gm-approved .gmj-followup a{width:100%}#gm-approved .gmj-followup{padding:16px}}

/* Visible connection state, with a manual alternative only when loading is slow. */
#gmux-chat-container{position:relative}
#gmux-chat-container .gmux-chat-loading{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:28px;box-sizing:border-box;background:#fff;text-align:center}
#gmux-chat-container .gmux-chat-loading[hidden],#gmux-chat-container .gmux-chat-loading a[hidden]{display:none!important}
#gmux-chat-container .gmux-chat-loading p{margin:0;color:#526077;font-size:14px;line-height:1.8;font-weight:400;word-break:keep-all}
#gmux-chat-container .gmux-chat-loading a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;box-sizing:border-box;border:1px solid #dbe4f8;border-radius:10px;background:#f4f7ff;color:#275be1;text-decoration:none;font-size:14px;font-weight:600;line-height:1.6;word-break:keep-all}
#gmux-chat-container .gmux-chat-loading a:hover{background:#eaf0ff}
#gmux-chat-container .gmux-chat-loading a:focus-visible{outline:2px solid #275be1;outline-offset:3px}

/* Recovery stays explicit and does not replace a ready conversation. */
.gmux-chat-loading button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 12px;padding:10px 18px;border:1px solid #dbe2ef;border-radius:10px;background:#fff;color:#315cdb;font:inherit;font-weight:600;cursor:pointer}.gmux-chat-loading button[hidden]{display:none}

/* Keep the linked chat-privacy heading clear of the sticky site header. */
#member-chat-privacy{scroll-margin-top:110px}

/* Give conversation reading priority; the mobile dialog uses the available screen. */
#gmux-chat-dialog{width:min(560px,calc(100% - 48px));height:min(820px,calc(100dvh - 48px));min-height:0;right:24px;bottom:24px}
#gmux-chat-dialog.gmux-chat-expanded{width:min(1120px,calc(100% - 48px));height:calc(100dvh - 48px)}
#gmux-chat-dialog>header,#gmux-chat-dialog.gmux-chat-ready>header{gap:10px;padding:10px 18px}
#gmux-chat-dialog>header>div{flex:1;min-width:0}
#gmux-chat-resize{flex:none;border:1px solid #dce4f0;border-radius:8px;background:#fff;color:#35538b;font:inherit;font-size:12px;font-weight:600;min-height:40px;padding:8px 12px;cursor:pointer}
#gmux-chat-resize[aria-pressed="true"]{background:#edf3ff;border-color:#8ba8ef;color:#245fe5}
#gmux-chat-resize:focus-visible{outline:2px solid #4267cf;outline-offset:3px}
#gmux-chat-close{flex:none;min-height:40px}
#gmux-chat-root:has(#gmux-chat-dialog:not([hidden])) #gmux-chat-launcher{visibility:hidden}
@media(max-width:600px){
 #gmux-chat-dialog,#gmux-chat-dialog.gmux-chat-expanded{inset:0;width:100%;height:100dvh;border:0;border-radius:0;max-height:none}
 #gmux-chat-dialog>header,#gmux-chat-dialog.gmux-chat-ready>header{padding:calc(10px + env(safe-area-inset-top)) 16px 10px}
 #gmux-chat-resize{display:none}
}

/* Selects remain native controls, with a visible disclosure indicator and text clearance. */
body select:not([multiple]):not([size]),body select:not([multiple])[size="1"],body #gm-approved select:not([multiple]):not([size]),body #gm-approved select:not([multiple])[size="1"],body #app select:not([multiple]):not([size]),body #app select:not([multiple])[size="1"],body #wpbody select:not([multiple]):not([size]),body #wpbody select:not([multiple])[size="1"]{appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235e6b80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-position:right 14px center!important;background-repeat:no-repeat!important;background-size:16px 16px!important;padding-right:42px!important}
@media(forced-colors:active){body select:not([multiple]):not([size]),body select:not([multiple])[size="1"],body #gm-approved select:not([multiple]):not([size]),body #gm-approved select:not([multiple])[size="1"],body #app select:not([multiple]):not([size]),body #app select:not([multiple])[size="1"],body #wpbody select:not([multiple]):not([size]),body #wpbody select:not([multiple])[size="1"]{appearance:auto!important;background-image:none!important}}
