/* CyGap.id Live Chat — widget mengapung. Semua kelas berawalan .cc- agar tidak bentrok
   dengan halaman publik mana pun (showcase, resto, hotel, salon, app). */
.cc-fab{position:fixed;right:18px;bottom:18px;z-index:9400;display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.cc-btn{width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;color:#fff;
  background:radial-gradient(120% 120% at 30% 20%, #4AA6EF, #1273D4 60%);
  box-shadow:0 8px 24px rgba(255,23,31,.32), 0 2px 6px rgba(11,13,16,.2);position:relative;transition:transform .15s ease}
.cc-btn:hover{transform:translateY(-2px)}
.cc-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cc-btn.cc-wa{width:46px;height:46px;background:#1F2A32}
.cc-dot{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#0B0D10;color:#fff;font:700 11px/20px Inter,system-ui,sans-serif;text-align:center;border:2px solid #fff}
.cc-panel{position:fixed;overflow:hidden;right:18px;bottom:18px;z-index:9401;width:372px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 32px);background:#fff;border-radius:16px;overflow:hidden;display:none;flex-direction:column;box-shadow:0 24px 60px rgba(11,13,16,.32);font:14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;color:#0B0D10}
.cc-panel.cc-open{display:flex}

.cc-head .cc-av{background:#F4ECDA;color:#5B4520;opacity:1;overflow:hidden}
.cc-head .cc-av img{width:22px;height:22px;object-fit:contain;display:block}
.cc-head{background:linear-gradient(120deg,#0D1015,#1B1F26 62%,#2A2417);color:#fff;padding:14px 16px;display:flex;gap:10px;align-items:center;
  position:sticky;top:0;z-index:3;flex:0 0 auto}
.cc-logo{height:17px;width:auto;display:block}
.cc-av[hidden]{display:none}
.cc-head b{font-size:15px;display:block}
.cc-head span{font-size:11.5px;color:#AEB3BD;display:block}
.cc-av{width:36px;height:36px;border-radius:50%;background:#F4ECDA;color:#5B4520;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.cc-x{margin-left:auto;background:none;border:0;color:#AEB3BD;font-size:20px;cursor:pointer;line-height:1;padding:4px}
.cc-live{display:inline-flex;align-items:center;gap:5px}
.cc-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#7A8290}
.cc-live.on::before{background:#3DD68C}
.cc-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;position:relative;padding:14px;display:flex;flex-direction:column;gap:4px;
  background:
    radial-gradient(60% 38% at 82% 6%, rgba(181,149,83,.20), transparent 70%),
    radial-gradient(52% 34% at 8% 92%, rgba(255,23,31,.10), transparent 72%),
    radial-gradient(rgba(120,100,70,.07) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(180deg,#F3ECE2,#EEE7DD 60%,#EAE2D6)}
.cc-body::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(70% 45% at 50% 0%, rgba(255,255,255,.35), transparent 60%)}
.cc-body>*{position:relative;z-index:1;flex:0 0 auto}   /* jangan menyusut: teks besar bisa meluber keluar gelembung */

.cc-note[hidden]{display:none}
.cc-note{background:#FBF6EA;border:1px solid #EFE2C3;color:#5B4520;border-radius:10px;padding:9px 11px;font-size:12px;margin-bottom:6px}
.cc-day{align-self:center;background:rgba(255,255,255,.85);border:1px solid rgba(120,100,70,.12);border-radius:999px;padding:2px 10px;font-size:10.5px;color:#5B5347;text-transform:uppercase;letter-spacing:.04em;margin:8px 0 4px}
.cc-msg{max-width:82%;width:fit-content;padding:7px 10px 6px;border-radius:12px;font-size:14px;line-height:1.42;box-shadow:0 1px 1px rgba(11,13,16,.08);display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;position:relative}
.cc-msg .cc-t{white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;flex:1 1 auto;min-width:0}
.cc-msg.me{align-self:flex-end;background:#F7EEDC;border-top-right-radius:4px}
.cc-msg.them{align-self:flex-start;background:#fff;border-top-left-radius:4px}
.cc-msg.sys{align-self:center;background:rgba(255,255,255,.7);font-size:11.5px;color:#5B5347;box-shadow:none;border-radius:999px;padding:3px 12px}
.cc-msg img{display:block;max-width:220px;max-height:240px;border-radius:8px;flex:1 0 100%;margin-bottom:2px}
.cc-typing{padding:10px 12px}
.cc-dots{display:inline-flex;gap:4px;align-items:center}
.cc-dots i{width:6px;height:6px;border-radius:50%;background:#9A907E;display:block;animation:ccBounce 1.1s infinite ease-in-out}
.cc-dots i:nth-child(2){animation-delay:.15s}.cc-dots i:nth-child(3){animation-delay:.3s}
@keyframes ccBounce{0%,70%,100%{transform:translateY(0);opacity:.55}35%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){.cc-dots i{animation:none}}
.cc-meta{display:inline-flex;gap:4px;align-items:center;margin-left:auto;font-size:10px;color:#6B6459;white-space:nowrap}
.cc-by{font-weight:700;font-size:10.5px;color:#79551D;flex:1 0 100%;margin-bottom:-2px}
.cc-foot{border-top:1px solid #E8E9ED;background:#F6F6F8;padding:9px 10px;display:flex;flex-direction:column;gap:7px;flex:0 0 auto;position:sticky;bottom:0;z-index:3}
.cc-row{display:flex;gap:7px;align-items:flex-end}
.cc-in{flex:1;min-height:40px;max-height:120px;resize:none;border:1px solid #E8E9ED;border-radius:20px;padding:10px 14px;font:14px/1.35 inherit;background:#fff;color:inherit}
.cc-in:focus{outline:none;border-color:#D8BF8A;box-shadow:0 0 0 3px rgba(181,149,83,.14)}
.cc-ic{width:40px;height:40px;flex:none;border:1px solid #E8E9ED;background:#fff;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#4B5160}
.cc-send{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:#1273D4;color:#fff;display:grid;place-items:center;cursor:pointer}
.cc-send:disabled{background:#C9CBD1;cursor:not-allowed}
.cc-ic svg,.cc-send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cc-form{display:flex;flex-direction:column;gap:7px}
.cc-form input{border:1px solid #E8E9ED;border-radius:10px;padding:9px 12px;font:14px inherit;background:#fff;color:inherit}
.cc-tiny{font-size:11px;color:#71727b}
.cc-err{font-size:11.5px;color:#0B5AA6}
.cc-prev{display:flex;gap:8px;align-items:center;font-size:11.5px;color:#4B5160}
.cc-prev img{width:38px;height:38px;object-fit:cover;border-radius:7px}
.cc-prev button{background:none;border:0;color:#0B5AA6;cursor:pointer;text-decoration:underline;font-size:11.5px}
@media (max-width:520px){
  .cc-panel{right:0;bottom:0;left:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  .cc-head{padding-top:calc(14px + env(safe-area-inset-top))}
  .cc-foot{padding-bottom:calc(9px + env(safe-area-inset-bottom))}
  .cc-body{padding:12px 12px 16px}
  .cc-msg{max-width:88%;font-size:15px}
  .cc-in{font-size:16px;min-height:44px}            /* 16px mencegah peramban ikut memperbesar halaman */
  .cc-send{width:46px;height:46px}.cc-ic{width:44px;height:44px}
  .cc-fab{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}
  .cc-btn{width:58px;height:58px}.cc-btn.cc-wa{width:48px;height:48px}
}
@media (prefers-color-scheme:dark){
  .cc-panel{background:#14171C;color:#EDEEF0}
  .cc-body{background:
      radial-gradient(60% 38% at 82% 6%, rgba(181,149,83,.18), transparent 70%),
      radial-gradient(52% 34% at 8% 92%, rgba(255,23,31,.12), transparent 72%),
      radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0/20px 20px,
      linear-gradient(180deg,#12161B,#0F1216 60%,#0C0F13)}
  .cc-body::after{background:radial-gradient(70% 45% at 50% 0%, rgba(255,255,255,.06), transparent 60%)}
  .cc-dots i{background:#8C929C}
  .cc-msg.them{background:#1C2026;color:#EDEEF0}
  .cc-msg.me{background:#3A3117;color:#F6ECD8}
  .cc-msg.sys{background:rgba(255,255,255,.06);color:#AEB3BD}
  .cc-meta{color:#9AA0AA}
  .cc-foot{background:#171B20;border-color:#252A31}
  .cc-in,.cc-form input{background:#1C2026;border-color:#2A3038;color:#EDEEF0}
  .cc-ic{background:#1C2026;border-color:#2A3038;color:#C9CDD3}
  .cc-note{background:#241F13;border-color:#3A3117;color:#E4D2A6}
  .cc-day{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08);color:#AEB3BD}
}

.cc-link{color:#1273D4;text-decoration:underline;word-break:break-all}
.cc-msg.out .cc-link{color:#fff}
