/* GreenyGift V4 — dedicated responsive enquiry microinteractions.
   Only the enquiry controls are affected; no global button styles or CDNs. */
#gg-live-enquiry .gg-message { min-height: 8.5em; }
#gg-live-enquiry .gg-message.is-typing::after {
  content:'▍';
  display:inline-block;
  margin-left:1px;
  color:#396946;
  animation:gg-type-caret .77s steps(1,end) infinite;
}
#gg-live-enquiry .gg-message.gg-draft-refreshed {animation:gg-draft-refresh .32s ease-out;}
@keyframes gg-type-caret { 50% { opacity:0; } }
@keyframes gg-draft-refresh { from {opacity:.65;filter:blur(2px)} to{opacity:1;filter:blur(0)} }

/* The copied state is now persistent and includes an unmistakable label. */
#gg-live-enquiry .gg-preview .gg-copy {
  width:116px;
  flex:0 0 auto;
  transition:width .42s cubic-bezier(.2,.82,.25,1),border-color .22s,box-shadow .22s;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copying {width:46px;}
#gg-live-enquiry .gg-preview .gg-copy.is-copied,
#gg-live-enquiry .gg-preview .gg-copy.is-copy-error {width:116px;}
#gg-live-enquiry .gg-preview .gg-copy.is-copying .gg-copy-content,
#gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-content,
#gg-live-enquiry .gg-preview .gg-copy.is-copy-error .gg-copy-content {
  position:absolute;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
#gg-live-enquiry .gg-copy .gg-copy-feedback-label {
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%) scale(.78);
  opacity:0;
  display:inline-block;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
  color:#e8f5d6;
  pointer-events:none;
  transition:opacity .25s ease,transform .33s ease;
}
#gg-live-enquiry .gg-copy.is-copied .gg-copy-feedback-label {
  transform:translate(-25%,-50%) scale(1);
  opacity:1;
}
#gg-live-enquiry .gg-copy.is-copy-error .gg-copy-feedback-label {
  transform:translate(-50%,-50%) scale(1);
  color:#ffdfb5;
  opacity:1;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copied {
  --glass-top:rgba(45,104,67,.92);
  --glass-bottom:rgba(28,77,49,.92);
  --glass-rim:rgba(202,242,183,.86);
  border-color:#c9edab;
  box-shadow:0 0 0 2px rgba(185,225,157,.2),inset 0 1px 0 #ffffff56,0 4px 13px #0b201e55;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator {
  position:absolute;
  inset:auto;
  left:11px;
  top:50%;
  width:20px;
  height:20px;
  transform:translateY(-50%);
  opacity:1;
  display:grid;
  place-items:center;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator svg {
  width:20px;
  height:20px;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator path {
  stroke:#d4f5bb;
  stroke-dasharray:50;
  stroke-dashoffset:50;
  animation:gg-copy-line .5s .1s ease-out forwards;
}
#gg-live-enquiry .gg-preview .gg-copy.is-copy-error {border-color:rgba(255,205,165,.9)}
#gg-live-enquiry .gg-copy.is-copying::before {z-index:2;animation:gg-copy-spin .75s linear infinite;}
@keyframes gg-copy-line {to {stroke-dashoffset:0}}
@media(max-width:380px) {
  #gg-live-enquiry .gg-preview .gg-copy.is-copied,
  #gg-live-enquiry .gg-preview .gg-copy.is-copy-error {width:108px;}
  #gg-live-enquiry .gg-copy.is-copied .gg-copy-feedback-label {transform:translate(-22%,-50%) scale(1);}
  #gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator {left:8px;}
}

/* Send via WhatsApp: opening animation, not a misleading 'sent' confirmation. */
#gg-live-enquiry .gg-preview .gg-send {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:transform .25s ease,box-shadow .25s ease,border-color .3s ease;
}
#gg-live-enquiry .gg-send .gg-send-main {
  position:relative;z-index:1;
  display:inline-flex;
  align-items:center;
  gap:9px;
  transition:opacity .23s ease,transform .36s cubic-bezier(.2,.8,.2,1);
}
#gg-live-enquiry .gg-send .gg-send-arrow {position:relative;z-index:1;transition:opacity .2s,transform .35s;}
#gg-live-enquiry .gg-send .gg-send-feedback {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  opacity:0;
  transform:translateY(110%);
  transition:opacity .25s ease,transform .47s cubic-bezier(.19,.74,.22,1);
  font-weight:700;
  color:#f7f9eb;
  pointer-events:none;
}
#gg-live-enquiry .gg-send-feedback svg {width:22px;height:22px;overflow:visible;}
#gg-live-enquiry .gg-send-feedback path {
  fill:none;
  stroke:#d6efb5;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:40;
  stroke-dashoffset:40;
}
#gg-live-enquiry .gg-preview .gg-send.is-pressing {transform:scale(.987);}
#gg-live-enquiry .gg-preview .gg-send.is-opening {
  --glass-top:rgba(59,110,78,.92);
  --glass-bottom:rgba(29,75,49,.92);
  --glass-rim:rgba(206,231,183,.83);
  border-color:#c5dfac;
  box-shadow:0 0 0 2px rgba(190,224,165,.16),inset 0 1px 0 rgba(255,255,255,.25);
}
#gg-live-enquiry .gg-send.is-opening .gg-send-main {
  opacity:0;
  transform:translateY(-95%);
}
#gg-live-enquiry .gg-send.is-opening .gg-send-arrow {opacity:0;transform:translateX(14px);}
#gg-live-enquiry .gg-send.is-opening .gg-send-feedback {opacity:1;transform:translateY(0);}
#gg-live-enquiry .gg-send.is-opening .gg-send-feedback path {animation:gg-opening-check .6s .25s ease-out forwards;}
@keyframes gg-opening-check {to{stroke-dashoffset:0}}
@media(max-width:380px){
  #gg-live-enquiry .gg-send .gg-send-feedback {font-size:12px;gap:6px;}
}
@media(prefers-reduced-motion:reduce){
  #gg-live-enquiry .gg-message.is-typing::after {animation:none;}
  #gg-live-enquiry .gg-message.gg-draft-refreshed {animation:none;}
  #gg-live-enquiry .gg-copy.is-copying::before {animation:none;}
  #gg-live-enquiry .gg-preview .gg-copy,
  #gg-live-enquiry .gg-copy .gg-copy-feedback-label,
  #gg-live-enquiry .gg-send .gg-send-main,
  #gg-live-enquiry .gg-send .gg-send-feedback {transition:none !important;}
  #gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator path,
  #gg-live-enquiry .gg-send.is-opening .gg-send-feedback path {animation:none;stroke-dashoffset:0;}
}
/* Approved desktop-only logo adjustment. Leave mobile and footer sizes unchanged. */
@media (min-width: 701px) {
  .nav .brand.gg-brand-animated { width: 96px; }
}
/* Override legacy generic .gg-send span spacing for the new animated slots. */
#gg-live-enquiry .gg-send .gg-send-main,
#gg-live-enquiry .gg-send .gg-send-feedback { margin-left: 0; }
#gg-live-enquiry .gg-send .gg-send-arrow { margin-left: auto; }

/* Replace the SVG mark with a clean cream-coloured glyph: no overlapping black icon. */
#gg-live-enquiry .gg-copy .gg-copy-indicator svg {display:none !important;}
#gg-live-enquiry .gg-preview .gg-copy.is-copied .gg-copy-indicator {
  left:11px;
  width:21px;
  height:23px;
  overflow:visible;
}
#gg-live-enquiry .gg-copy .gg-copy-check {
  display:block;
  font:700 22px/1 Arial,sans-serif;
  color:#eaf8d6;
  -webkit-text-fill-color:#eaf8d6;
  opacity:0;
  transform:translateY(4px) scale(.6);
}
#gg-live-enquiry .gg-copy.is-copied .gg-copy-check {
  animation:gg-copy-clean-check .37s .12s cubic-bezier(.21,.8,.26,1.2) both;
}
@keyframes gg-copy-clean-check {
  from {opacity:0;transform:translateY(4px) scale(.6);}
  to {opacity:1;transform:translateY(0) scale(1);}
}
@media(prefers-reduced-motion:reduce) {
  #gg-live-enquiry .gg-copy.is-copied .gg-copy-check {animation:none!important;opacity:1;transform:none;}
}
