/* Pollachi Coir · the Coir Desk · chat widget */
.cd-launch { position: fixed; right: 22px; bottom: 22px; z-index: 76; width: 60px; height: 60px; border-radius: 50%;
  background: var(--estate, #0A3D2E); border: 1px solid rgba(212,175,55,.55); cursor: pointer; padding: 0;
  box-shadow: 0 12px 30px rgba(26,23,18,.28); display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.2,.65,.2,1), box-shadow .3s ease; }
.cd-launch:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(26,23,18,.34); }
.cd-launch svg { width: 27px; height: 27px; color: #F6F1E2; }
.cd-launch .cd-close-ico { display: none; }
.cd-launch.open .cd-open-ico { display: none; }
.cd-launch.open .cd-close-ico { display: block; }
.cd-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--kungumam, #C1440E); border: 2px solid var(--paper, #FAF6EE); opacity: 0; transition: opacity .3s ease; }
.cd-launch.hasnew .cd-dot { opacity: 1; }

.cd-teaser { position: fixed; right: 94px; bottom: 30px; z-index: 76; max-width: 288px;
  background: var(--ivory, #F3ECDD); border: 1px solid var(--hairline, #DCD2BC); border-radius: 14px;
  padding: 14px 34px 14px 16px; box-shadow: 0 14px 34px rgba(26,23,18,.18); cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.65,.2,1); }
.cd-teaser.on { opacity: 1; transform: none; pointer-events: auto; }
.cd-teaser p { margin: 0; font-size: 14.5px; color: var(--ink-soft, #4A3A2C); line-height: 1.45; }
.cd-teaser b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16.5px; color: var(--ink, #1A1712); display: block; margin-bottom: 3px; }
.cd-teaser .x { position: absolute; top: 6px; right: 8px; border: none; background: none; font-size: 17px; line-height: 1; color: var(--ink-mute, #7A6A58); cursor: pointer; padding: 4px; }
@media (max-width: 640px) { .cd-teaser { right: 22px; bottom: 94px; max-width: calc(100vw - 44px); } }

.cd-panel { position: fixed; right: 22px; bottom: 94px; z-index: 77; width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px)); height: min(560px, calc(100dvh - 130px)); background: var(--paper, #FAF6EE);
  border: 1px solid var(--hairline, #DCD2BC); border-radius: 18px; box-shadow: 0 26px 60px rgba(26,23,18,.30);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.65,.2,1); }
.cd-panel.on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) { .cd-panel { right: 12px; left: 12px; width: auto; bottom: 90px; height: min(70vh, calc(100vh - 120px)); height: min(70dvh, calc(100dvh - 120px)); } }

.cd-head { background: var(--canopy, #1F3D2B); color: #F6F1E2; padding: 15px 18px; display: flex; align-items: center; gap: 12px; flex: none; }
.cd-head img { width: 34px; height: 34px; flex: none; }
.cd-head .t { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.15; }
.cd-head .s { font-family: 'Source Serif 4', Georgia, serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #D4AF37; margin-top: 2px; }
.cd-head .x { margin-left: auto; border: none; background: none; color: #D7D2BE; font-size: 21px; line-height: 1; cursor: pointer; padding: 4px 2px; }

.cd-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.cd-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.cd-msg.house { background: var(--ivory, #F3ECDD); border: 1px solid var(--hairline, #DCD2BC); color: var(--ink-soft, #4A3A2C); align-self: flex-start; border-bottom-left-radius: 5px; }
.cd-msg.you { background: var(--estate, #0A3D2E); color: var(--paper, #FAF6EE); align-self: flex-end; border-bottom-right-radius: 5px; }
.cd-msg a { color: var(--estate, #0A3D2E); border-bottom: 1px solid var(--brass, #B08D57); }
.cd-msg.you a { color: #F6F1E2; border-bottom-color: #D4AF37; }
.cd-msg b { color: var(--ink, #1A1712); }
.cd-msg.you b { color: #F6F1E2; }
.cd-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute, #7A6A58); margin-right: 4px; animation: cdblink 1.2s infinite; }
.cd-typing span:nth-child(2) { animation-delay: .18s; } .cd-typing span:nth-child(3) { animation-delay: .36s; margin-right: 0; }
@keyframes cdblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.cd-chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 6px 16px 10px; flex: none; }
.cd-chips button { font-family: 'Source Serif 4', Georgia, serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ivory, #F3ECDD); border: 1px solid var(--hairline, #DCD2BC); border-radius: 999px; padding: 7px 13px;
  color: var(--ink-soft, #4A3A2C); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.cd-chips button:hover { background: var(--ghost, #EFE6D4); border-color: var(--brass, #B08D57); }

.cd-foot { border-top: 1px solid var(--hairline, #DCD2BC); padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex: none; background: var(--paper, #FAF6EE); }
.cd-foot input { flex: 1; font-family: 'EB Garamond', Georgia, serif; font-size: 16px; color: var(--ink, #1A1712);
  background: var(--ivory, #F3ECDD); border: 1px solid var(--hairline, #DCD2BC); border-radius: 999px; padding: 10px 15px; }
.cd-foot input:focus { outline: none; border-color: var(--brass, #B08D57); }
.cd-foot button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--estate, #0A3D2E); color: #F6F1E2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cd-foot button:hover { background: var(--canopy, #1F3D2B); }

.cd-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cd-form input { font-family: 'EB Garamond', Georgia, serif; font-size: 16px; background: var(--paper, #FAF6EE);
  border: 1px solid var(--hairline, #DCD2BC); border-radius: 9px; padding: 9px 12px; width: 100%; }
.cd-form input:focus { outline: none; border-color: var(--brass, #B08D57); }
.cd-form .row { display: flex; gap: 8px; }
.cd-form .row .btn { flex: 1; text-align: center; padding: 9px 8px; font-size: 11px; }
.cd-wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--estate, #0A3D2E); }
@media (prefers-reduced-motion: reduce) { .cd-panel, .cd-teaser, .cd-launch { transition: none; } .cd-typing span { animation: none; } }
