/*
 * Gatra Citra Kencana — GCK Chat Next Generation
 * Product: Bantuan Gatra Citra Kencana
 * GCK Chat 5 Messenger UI
 */
body{background:linear-gradient(180deg,#f8f6fb 0%,#f1edf7 100%)}
.gck-chat{width:min(1180px,100%);min-height:100dvh;margin:auto;background:#fff;display:flex;flex-direction:column;box-shadow:0 0 0 1px rgba(36,16,74,.05),0 18px 50px rgba(36,16,74,.08)}
.gck-head{padding:16px 28px;background:var(--p);color:#fff;display:flex;gap:14px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.10)}
.gck-brand{display:flex;gap:12px;align-items:center;min-width:0}.gck-logo{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--g);display:grid;place-items:center;font-weight:800;color:var(--p);letter-spacing:.3px}.gck-head strong{display:block;font-size:15px}.gck-head span{display:block;color:#ddd5e8;font-size:12px;margin-top:3px}.head-live{font-size:12px;color:#eee8f4;white-space:nowrap}.head-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#78d39b;margin-right:5px}.head-live.head-online i{background:#78d39b}.head-live.head-busy i{background:#c99a2e}.head-live.head-offline i{background:#b8a9c4}.head-live.head-checking i{background:#b8a9c4}
.chooser{position:relative;overflow:visible;flex:none;padding:46px 48px 46px;background:linear-gradient(180deg,#fff 0%,#fbfaff 100%)}.chooser:after{content:"";position:absolute;right:-1px;top:20px;width:330px;height:220px;pointer-events:none;background:radial-gradient(circle at 70% 35%,rgba(201,154,46,.16),transparent 58%),linear-gradient(135deg,transparent 55%,rgba(36,16,74,.035) 55%,rgba(36,16,74,.035) 68%,transparent 68%);opacity:.8}.chooser-title{position:relative;z-index:1;max-width:900px;margin:0 auto 28px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--g);margin-bottom:8px}.chooser-title h1{margin:0 0 8px;font-size:31px;line-height:1.18;letter-spacing:-.025em}.chooser-title p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.dept-cards{position:relative;z-index:1;max-width:1060px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dept-card{border:1px solid var(--border);border-radius:14px;padding:20px;background:#fff;box-shadow:0 8px 24px rgba(36,16,74,.055);display:flex;flex-direction:column;min-height:214px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.dept-card:hover{transform:translateY(-2px);border-color:#d8cde5;box-shadow:0 12px 30px rgba(36,16,74,.09)}.dept-icon{width:44px;height:44px;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:23px}.dept-card h2{margin:14px 0 5px;font-size:18px}.presence{font-size:12px;margin-bottom:8px}.online{color:#217a45}.offline{color:#8a5260}.dept-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;flex:1}.dept-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;margin-top:15px}.dept-actions a,.dept-actions button{min-height:40px;border-radius:9px;border:1px solid var(--border);padding:9px 10px;text-align:center;text-decoration:none;font:600 12px inherit;display:flex;align-items:center;justify-content:center}.dept-actions a{color:var(--p);background:#fff}.dept-actions button{background:var(--p);color:#fff;border-color:var(--p);cursor:pointer}.unsure{grid-column:1/-1;border:1px dashed #d7cbe4;background:#faf8fc;border-radius:11px;padding:12px 14px;font-weight:700;color:var(--p);cursor:pointer;text-align:left}
.chat-view{display:flex;flex-direction:column;flex:1;min-height:0;background:#fff}.chat-view[hidden]{display:none!important}.chat-view .gck-messages{flex:1}.gck-messages{overflow:auto;padding:24px;background:var(--soft)}.msg{max-width:72%;padding:11px 14px;border-radius:14px;margin:8px 0;line-height:1.5;white-space:pre-wrap;font-size:14px}.msg.bot,.msg.agent{background:#fff;border:1px solid var(--border)}.msg.customer{margin-left:auto;background:var(--p);color:#fff}.chat-toolbar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--border);background:#fff;min-height:54px}.back-btn{border:1px solid #cfc3dd;background:#fff;color:var(--p);border-radius:9px;padding:8px 12px;font:700 12px inherit;cursor:pointer}.back-btn:hover{border-color:#b9a8cf;background:var(--soft)}.chat-toolbar strong{display:block;font-size:13px;color:var(--text)}.chat-toolbar span{display:block;font-size:11px;color:var(--muted);margin-top:2px}.chat-toolbar .state-offline{color:#8a5260}.chat-toolbar .state-online{color:#217a45}
.idle-notice{margin:0 14px 10px;padding:11px 13px;border:1px solid #e6d9b7;background:#fffaf0;border-radius:10px;color:var(--text);font-size:12px;line-height:1.5}.idle-notice strong{display:block;margin-bottom:3px}.idle-notice span{display:block;color:var(--muted)}
.gck-form[hidden],.file-preview[hidden]{display:none!important}.gck-form{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid var(--border);background:#fff}.gck-form input{flex:1;min-width:0;border:1px solid var(--border);border-radius:10px;padding:12px;font-size:15px;outline:none}.gck-form input:focus{border-color:#b9a8cf;box-shadow:0 0 0 3px rgba(36,16,74,.06)}.gck-form button{border:0;border-radius:10px;background:var(--p);color:#fff;padding:0 16px;font-weight:700;min-width:76px;min-height:42px}.gck-form button b{font-size:14px}.gck-status{min-height:24px;padding:0 16px 8px;color:var(--muted);font-size:12px;background:#fff}.attach-btn{width:42px;min-width:42px;height:42px;border:1px solid var(--border);border-radius:9px;display:grid;place-items:center;cursor:pointer;background:#fff;font-size:19px}.attach-btn:hover{border-color:var(--g)}.file-preview{padding:0 14px 8px;font-size:12px;color:var(--muted);background:#fff}.file-preview .pick{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--border);border-radius:8px}.file-preview button{border:0;background:transparent;cursor:pointer;color:#8a5260;font-weight:700}
.msg-attachment{display:block}.msg-attachment img{display:block;max-width:260px;max-height:240px;border-radius:10px;margin-bottom:7px}.attachment-link{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;font-weight:700}.attachment-link small{display:block;font-weight:500;opacity:.75}.msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:5px;font-size:10px;opacity:.72}.msg.customer .msg-meta{color:#fff}.msg-status{font-weight:700}.delivery-note{margin:10px auto 14px;max-width:620px;border:1px solid var(--border);background:#fff;border-radius:10px;padding:9px 11px;color:var(--muted);font-size:12px;line-height:1.45;text-align:center}.delivery-note strong{color:var(--text)}
.offline-panel{position:relative;z-index:2;max-width:960px;margin:38px auto 0;padding:34px 38px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 30px rgba(36,16,74,.08)}.offline-heading{display:flex;gap:20px;align-items:flex-start}.offline-icon{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:#f0ebf8;color:var(--p);display:grid;place-items:center;font-size:29px}.offline-copy{}.offline-panel .eyebrow{margin:1px 0 6px}.offline-panel h2{margin:0 0 7px;font-size:26px;line-height:1.2;color:var(--text)}.offline-panel p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.offline-destination{margin:24px 0 24px;padding:13px 15px;display:flex;gap:12px;align-items:center;background:#f7f4fc;border-radius:10px;color:var(--text)}.destination-icon{width:34px;height:34px;border-radius:9px;background:#eee8f8;color:var(--p);display:grid;place-items:center}.offline-destination strong{display:block;font-size:13px}.offline-destination small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.offline-form{display:grid;gap:14px}.offline-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:var(--text)}.offline-form label span{font-weight:400;color:var(--muted);margin-left:3px}.offline-form input,.offline-form textarea{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);font:inherit}.offline-form textarea{min-height:118px;resize:vertical}.offline-form input:focus,.offline-form textarea:focus{outline:2px solid rgba(201,154,46,.28);outline-offset:1px}.offline-actions{display:flex;justify-content:space-between;gap:10px;margin-top:4px}.offline-actions button[type=submit]{min-height:44px;padding:10px 20px;border:0;border-radius:9px;background:var(--p);color:#fff;font:700 13px inherit;cursor:pointer}.offline-actions button[type=submit]:hover{background:#32145f}.offline-form .gck-status{padding:0;background:transparent;min-height:0}.offline-success{padding:22px 20px;border:1px solid #e4d9ef;border-radius:12px;background:#faf8fc;color:var(--text)}.offline-success strong{font-size:16px}.offline-success p{margin:7px 0;color:var(--muted);font-size:13px;line-height:1.6}.offline-success .offline-mail-result{padding:10px 12px;background:#f3eef9;border-radius:9px}.offline-success .back-btn{margin-top:8px}
.site-footer{margin-top:auto;padding:30px 48px 18px;background:var(--p);color:#fff}.footer-grid{max-width:1080px;margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1.2fr .8fr;gap:34px}.footer-brand{display:flex;gap:12px;align-items:flex-start}.footer-brand strong{display:block;font-size:14px;margin-top:3px}.footer-brand span{display:block;color:#dcd5e7;font-size:11px;margin-top:5px}.site-footer h3{margin:2px 0 10px;font-size:12px}.site-footer a,.site-footer span{display:block;color:#ddd6e7;text-decoration:none;font-size:11px;line-height:1.8}.site-footer a:hover{color:#fff}.socials{display:flex;gap:7px}.socials a{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);color:#fff;font-weight:800}.footer-bottom{max-width:1080px;margin:22px auto 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);display:flex;justify-content:space-between;gap:20px;color:#cfc7db;font-size:10px}.footer-bottom a{display:inline;color:#cfc7db}.footer-bottom b{font-weight:400;margin:0 7px}
.gck-chat.chat-active .site-footer{display:none}.gck-chat.chat-active .chooser{display:none}.gck-chat.chat-active{height:100dvh;min-height:100dvh}.gck-chat.chat-active .chat-view{min-height:0}
@media(max-width:900px){.chooser{padding:38px 24px}.dept-cards{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1.4fr 1fr 1fr}.footer-grid>div:last-child{display:none}}
@media(max-width:650px){.gck-head{padding:13px 14px}.head-live{display:none}.chooser{padding:28px 14px 32px}.chooser-title h1{font-size:25px}.dept-cards{grid-template-columns:1fr}.dept-card{min-height:0}.dept-actions{grid-template-columns:1fr 1.15fr}.gck-messages{padding:14px}.msg{max-width:88%}.gck-form{padding:10px}.gck-form button{padding:0 13px;min-width:66px}.offline-panel{margin:28px 0 0;padding:24px 18px}.offline-heading{gap:13px}.offline-icon{width:50px;height:50px;flex-basis:50px;font-size:23px}.offline-panel h2{font-size:21px}.offline-panel p{font-size:13px}.offline-destination{margin:20px 0}.offline-actions{flex-direction:column-reverse}.offline-actions button{width:100%}.site-footer{padding:26px 18px 16px}.footer-grid{grid-template-columns:1fr 1fr;gap:24px}.footer-grid>div:last-child{display:block}.footer-bottom{flex-direction:column;gap:6px;margin-top:18px}}
@media(max-width:480px){.attach-btn{width:40px;min-width:40px}.msg-attachment img{max-width:220px}.chat-toolbar{padding:9px 10px}.back-btn{padding:7px 9px}.chat-toolbar strong{font-size:12px}.offline-panel{border-radius:13px}.offline-destination{align-items:flex-start}.site-footer .footer-grid{grid-template-columns:1fr}.footer-grid>div:last-child{display:none}}
.faq-panel{max-width:1060px;margin:0 auto 34px;padding:22px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 24px rgba(36,16,74,.045)}.faq-head{display:flex;justify-content:space-between;gap:18px;align-items:end}.faq-head h2,.service-section h2{margin:0 0 5px;font-size:20px}.faq-head p,.section-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.service-section .section-desc{margin-bottom:18px}.faq-head input{width:min(360px,100%);padding:11px 12px;border:1px solid var(--border);border-radius:9px;font:inherit}.faq-categories{display:flex;gap:7px;flex-wrap:wrap;margin:17px 0 12px}.faq-categories button{border:1px solid var(--border);background:#fff;color:var(--p);border-radius:999px;padding:7px 11px;font:600 11px inherit;cursor:pointer}.faq-categories button.active{background:var(--p);color:#fff;border-color:var(--p)}.faq-list{display:grid;gap:7px}.faq-item{border:1px solid var(--border);border-radius:9px;background:#fff}.faq-item summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:700;list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary:after{content:'+';float:right;color:var(--g);font-size:16px}.faq-item[open] summary:after{content:'−'}.faq-answer{padding:0 14px 14px;color:var(--muted);font-size:12px;line-height:1.6;white-space:pre-line}.faq-empty{padding:12px;color:var(--muted);font-size:12px}.faq-help{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.faq-help button{border:0;border-radius:8px;background:var(--p);color:#fff;padding:9px 14px;font:700 12px inherit;cursor:pointer}.service-section{max-width:1060px;margin:0 auto}.section-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--g);margin-bottom:5px}.service-section h2{font-size:24px}.dept-meta{font-size:11px;color:var(--muted);margin:9px 0 12px}.dept-card>button{margin-top:auto;min-height:40px;border:0;border-radius:9px;background:var(--p);color:#fff;font:700 12px inherit;cursor:pointer}.dept-card>button:hover{background:#32145f}@media(max-width:700px){.faq-head{display:grid;align-items:stretch}.faq-head input{width:100%}.faq-panel{padding:16px}.service-section{margin-top:4px}.faq-help{align-items:stretch;flex-direction:column}.faq-help button{width:100%}}
.peer-presence{font-size:11px;color:var(--muted);margin-left:2px}.typing-indicator{display:inline-flex!important;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-left:2px}.typing-indicator:before{content:"";width:6px;height:6px;border-radius:50%;background:#8d7aa5;box-shadow:10px 0 0 #8d7aa5,20px 0 0 #8d7aa5;display:inline-block;transform:scale(.55);transform-origin:left center;animation:gckTyping 1s infinite alternate}@keyframes gckTyping{to{opacity:.35}}.msg.same-sender{margin-top:3px}.day-divider{display:flex;align-items:center;gap:10px;margin:16px 0 8px;color:var(--muted);font-size:10px}.day-divider:before,.day-divider:after{content:"";height:1px;background:var(--border);flex:1}
.offline-contact-hint{font-size:11px;color:var(--muted);margin-top:-2px}
\n.attach-menu{position:relative}.attach-popover{position:fixed;z-index:20;left:10px;bottom:56px;width:min(330px,calc(100vw - 28px));background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px rgba(36,16,74,.14);padding:11px;display:grid;gap:7px}.attach-popover strong{font-size:13px}.attach-popover p{margin:0;color:var(--muted);font-size:11px;line-height:1.4}.attach-popover button{background:#fff;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 9px;text-align:left;cursor:pointer;font:inherit;font-size:12px}.attach-popover button:hover{border-color:var(--g);background:#fbf9fd}.attach-popover small{color:var(--muted);font-size:10px;line-height:1.35}.doc-email-destination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border:1px solid var(--border);border-radius:8px;background:#fbf9fd;font-size:11px}.doc-email-destination span{color:var(--muted)}.doc-email-label{display:grid;gap:5px;font-size:11px;font-weight:700}.doc-email-input{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:8px 9px;font:inherit;font-size:12px;color:var(--text);background:#fff}.doc-email-input:focus{outline:2px solid rgba(201,154,46,.25);border-color:var(--g)}.document-status{display:grid;gap:6px;padding:0 12px 8px;background:#fff}.document-card{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--border);background:#fbf9fd;border-radius:9px;padding:7px 9px;font-size:11px}.document-card strong{font-size:11px}.document-card span{color:var(--muted)}.document-card a{margin-left:auto;color:inherit;font-weight:700}.attach-btn{border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;font:inherit}.attach-btn:hover{border-color:var(--g)}
.email-btn{width:42px;min-width:42px;height:42px;border:1px solid var(--border)!important;border-radius:9px;display:grid;place-items:center;cursor:pointer;background:#fff!important;color:var(--text)!important;font-size:18px;padding:0!important}.email-btn:hover{border-color:var(--g)!important}.email-btn:disabled,.attach-btn:disabled{opacity:.45;cursor:not-allowed}.doc-group{display:block;margin-top:3px;padding-top:4px;border-top:1px solid var(--border)}
@media(max-width:480px){.email-btn{width:40px;min-width:40px}}
