/* A compact contact launcher, shared by the homepage and inner pages. */
.gc-floating-contact {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 62px;
  font-family: var(--gc-sans, Arial, sans-serif);
  line-height: 1.5;
  color: #f5f0e8;
}

body.home .gc-floating-contact {
  bottom: calc(var(--gc-footer, 68px) + 18px + env(safe-area-inset-bottom, 0px));
}

.gc-floating-contact button {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
}

.gc-floating-contact .gc-floating-contact-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: #d47758;
  color: #1c1b18;
  box-shadow: 0 5px 22px rgba(141, 66, 42, .22), 0 2px 7px rgba(0, 0, 0, .22);
  transition: border-color .2s, box-shadow .2s;
  isolation: isolate;
}

.gc-floating-contact .gc-floating-contact-toggle:hover,
.gc-floating-contact.is-open .gc-floating-contact-toggle {
  border-color: rgba(255, 255, 255, .9);
  background: #d47758;
  color: #1c1b18;
  box-shadow: 0 0 0 4px rgba(212, 119, 88, .14), 0 7px 24px rgba(0, 0, 0, .26);
}

.gc-floating-contact .gc-floating-contact-chat {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  max-width: none;
  margin: 0;
  color: #1c1b18;
  stroke: currentColor;
}

.gc-floating-contact-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  display: block;
  padding: 7px 13px;
  border: 1px solid rgba(245, 240, 232, .2);
  border-radius: 7px;
  background: #24231f;
  color: #f5f0e8;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .15);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: border-color .2s;
}

.gc-floating-contact-toggle:hover .gc-floating-contact-label {
  border-color: #d47758;
}

.gc-floating-contact-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border: 2px solid #f5f0e8;
  border-radius: 999px;
  background: #e44343;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.gc-floating-contact .gc-floating-contact-panel[hidden],
.gc-floating-contact .gc-floating-contact-badge[hidden],
.gc-floating-contact .gc-floating-contact-channel-badge[hidden] {
  display: none !important;
}

.gc-floating-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(340px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 126px));
  max-height: min(520px, calc(100dvh - 126px - env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(212, 119, 88, .28);
  border-radius: 16px;
  background: #24231f;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .42), 0 4px 14px rgba(0, 0, 0, .16);
  scrollbar-width: thin;
  scrollbar-color: #6f6257 #24231f;
}

body.home .gc-floating-contact-panel {
  max-height: min(520px, calc(100vh - var(--gc-footer, 68px) - 144px));
  max-height: min(520px, calc(100dvh - var(--gc-footer, 68px) - 144px - env(safe-area-inset-bottom, 0px)));
}

.gc-floating-contact.is-open .gc-floating-contact-panel {
  animation: gc-contact-reveal .18s ease-out;
}

.gc-floating-contact-heading {
  position: relative;
  padding: 22px 52px 17px 21px;
  border-bottom: 1px solid rgba(245, 240, 232, .1);
}

.gc-floating-contact-heading strong {
  display: block;
  margin: 0;
  color: #f5f0e8;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.gc-floating-contact-heading p {
  margin: 8px 0 0;
  color: #bdb6ab;
  font-size: 13px;
  line-height: 1.65;
}

.gc-floating-contact .gc-floating-contact-close {
  position: absolute;
  top: 11px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bdb6ab;
  box-shadow: none;
}

.gc-floating-contact .gc-floating-contact-close:hover {
  background: rgba(245, 240, 232, .06);
  color: #f5f0e8;
}

.gc-floating-contact-close svg {
  display: block;
  width: 19px;
  height: 19px;
}

.gc-floating-contact-links {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px;
}

.gc-floating-contact .gc-floating-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #f5f0e8;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.gc-floating-contact .gc-floating-contact-link:hover {
  border-color: rgba(245, 240, 232, .14);
  background: rgba(245, 240, 232, .035);
  color: #f5f0e8;
}

.gc-floating-contact-icon {
  position: relative;
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 240, 232, .1);
  border-radius: 50%;
  background: rgba(245, 240, 232, .05);
}

.gc-floating-contact-channel-badge {
  position: absolute;
  z-index: 1;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e44343;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.gc-floating-contact-icon img,
.gc-floating-contact-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.gc-floating-contact-link--zalo .gc-floating-contact-icon {
  background: #0068ff;
  color: #fff;
}

.gc-floating-contact-link--facebook .gc-floating-contact-icon {
  background: rgba(24, 119, 242, .15);
  color: #71acff;
}

.gc-floating-contact-link--phone .gc-floating-contact-icon {
  background: rgba(61, 169, 113, .12);
  color: #6bc796;
}

.gc-floating-contact-link--email .gc-floating-contact-icon {
  background: rgba(212, 119, 88, .12);
  color: #e6a58d;
}

.gc-floating-contact-link > span:not(.gc-floating-contact-icon) {
  flex: 1 1 auto;
  min-width: 0;
}

.gc-floating-contact-link strong,
.gc-floating-contact-link small {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.gc-floating-contact-link strong {
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.gc-floating-contact-link small {
  margin-top: 2px;
  color: #bdb6ab;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.gc-floating-contact .gc-floating-contact-arrow {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #9e9589;
}

.gc-floating-contact-note {
  margin: 0;
  padding: 0 21px 17px;
  color: #a9a194;
  font-size: 11px;
  line-height: 1.6;
}

.gc-floating-contact button:focus-visible,
.gc-floating-contact a:focus-visible {
  outline: 2px solid #efb094;
  outline-offset: 4px;
}

.gc-floating-contact .gc-floating-contact-toggle.is-notifying {
  animation: gc-contact-shake 1.2s ease-in-out;
  transform-origin: 50% 70%;
}

@keyframes gc-contact-shake {
  0%, 100% { transform: rotate(0); }
  13% { transform: rotate(-12deg); }
  27% { transform: rotate(10deg); }
  41% { transform: rotate(-8deg); }
  55% { transform: rotate(6deg); }
  69% { transform: rotate(-4deg); }
  83% { transform: rotate(2deg); }
}

@keyframes gc-contact-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .gc-floating-contact {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 58px;
  }

  body.home .gc-floating-contact {
    bottom: calc(var(--gc-footer, 68px) + 12px + env(safe-area-inset-bottom, 0px));
  }

  .gc-floating-contact .gc-floating-contact-toggle {
    width: 58px;
    height: 58px;
  }

  .gc-floating-contact-label {
    right: calc(100% + 9px);
    padding: 6px 11px;
    font-size: 12px;
  }

  .gc-floating-contact-panel {
    bottom: calc(100% + 13px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-floating-contact *,
  .gc-floating-contact *::before,
  .gc-floating-contact *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Two-way chat: the message log scrolls while the composer stays accessible. */
.gc-floating-contact-panel{display:flex;flex-direction:column;width:min(380px,calc(100vw - 32px));height:600px;max-height:min(600px,calc(100dvh - 126px - env(safe-area-inset-bottom,0px)));overflow:hidden}
body.home .gc-floating-contact-panel{max-height:min(600px,calc(100dvh - var(--gc-footer,68px) - 144px - env(safe-area-inset-bottom,0px)))}
.gc-floating-contact-heading{flex:none;padding:18px 50px 14px 18px}
.gc-floating-contact-heading p{margin-top:5px;font-size:12px}
.gc-chat-log{flex:1 1 auto;min-height:80px;overflow:auto;overscroll-behavior:contain;padding:16px;scrollbar-width:thin;scrollbar-color:#6f6257 #24231f}
.gc-chat-welcome{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:#302e28;color:#e7e0d6;font-size:13px;line-height:1.65}
.gc-chat-message{width:fit-content;max-width:90%;margin:12px 0;padding:10px 13px;border-radius:13px 13px 13px 3px;background:#34312b;color:#f5f0e8;overflow-wrap:anywhere}
.gc-chat-message.is-visitor{margin-left:auto;border-radius:13px 13px 3px 13px;background:#694332}
.gc-chat-message p{white-space:pre-wrap;margin:4px 0;font-size:14px;line-height:1.6;color:inherit}
.gc-chat-message small{display:block;font-size:10px;line-height:1.4;color:#dacfc2}
.gc-chat-message small:first-child{font-weight:600}
.gc-chat-status{flex:none;margin:0;padding:0 17px 8px;color:#bdb6ab;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.gc-chat-status.is-error{color:#ffbd9e}
.gc-chat-form{flex:none;margin:0;padding:0 16px 10px}
.gc-chat-name-label{display:block;font-size:11px;color:#f5f0e8;margin-bottom:5px;font-weight:500}
.gc-chat-name-label span{color:#a9a194;font-weight:400}
.gc-floating-contact input,.gc-floating-contact textarea{width:100%;margin:0;color:#f5f0e8;background:#1c1b18;border:1px solid #50473e;border-radius:9px;box-shadow:none;font-family:inherit;font-size:14px;line-height:1.5;text-transform:none}
.gc-floating-contact input{height:37px;margin-bottom:9px;padding:6px 11px}
.gc-floating-contact textarea{display:block;padding:10px 48px 10px 11px;height:70px;min-height:60px;max-height:120px;resize:vertical}
.gc-floating-contact input::placeholder,.gc-floating-contact textarea::placeholder{color:#a9a194;opacity:1}
.gc-floating-contact input:focus,.gc-floating-contact textarea:focus{color:#f5f0e8;background:#1c1b18;border-color:#e9a286;box-shadow:0 0 0 1px #e9a286;outline:0}
.gc-chat-compose{position:relative}
.gc-floating-contact .gc-chat-send{position:absolute;right:8px;bottom:8px;width:36px;height:36px;display:grid;place-items:center;background:#d47758;color:#1c1b18;border:1px solid #d47758;border-radius:50%;box-shadow:none}
.gc-floating-contact .gc-chat-send:hover{background:#e8a085;color:#1c1b18}
.gc-floating-contact .gc-chat-send:disabled{opacity:.5;cursor:wait}
.gc-chat-send svg{display:block;margin:0;width:20px;height:20px}
.gc-chat-form-footer{display:flex;gap:6px;align-items:center;justify-content:space-between;margin-top:6px}
.gc-chat-form-footer small{font-size:9px;color:#a9a194;line-height:1.4}
.gc-floating-contact .gc-chat-reset,.gc-floating-contact .gc-chat-retry{border:0;background:transparent;color:#f2b397;font-size:11px;text-decoration:underline;line-height:1.5;padding:2px 0;box-shadow:none;white-space:nowrap}
.gc-chat-alternative{flex:none;margin:0;text-align:center;color:#a9a194;font-size:10px;line-height:1.5}
.gc-floating-contact-links{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 12px 12px}
.gc-floating-contact .gc-floating-contact-link{min-width:0;min-height:0;display:flex;flex-direction:column;gap:3px;padding:6px 2px}
.gc-floating-contact-link>span:not(.gc-floating-contact-icon){flex:none}
.gc-floating-contact-link strong{font-size:10px;text-align:center;font-weight:500}
.gc-floating-contact-link small{display:none}
.gc-floating-contact-icon{flex-basis:34px;width:34px;height:34px}
.gc-floating-contact-icon img,.gc-floating-contact-icon svg{width:21px;height:21px}
.gc-floating-contact [hidden]{display:none!important}
.gc-floating-contact.is-unconfigured .gc-floating-contact-panel{height:auto}
.gc-floating-contact.is-unconfigured .gc-chat-log{flex:none;min-height:0}
.gc-floating-contact .gc-chat-title{font-family:var(--gc-sans,Arial,sans-serif);font-size:18px;font-weight:600;line-height:1.4;letter-spacing:0;text-transform:none;color:#f5f0e8;margin:0}
.gc-chat-ended{flex:none;margin:0 16px 9px;padding-top:8px;border-top:1px solid rgba(245,240,232,.12);font-size:11px;line-height:1.5;color:#c1b6a8;text-align:center}
.gc-chat-form-footer{align-items:flex-start}
.gc-chat-form-footer small{font-size:10px;line-height:1.6}
.gc-chat-form-footer .gc-chat-reset{flex:none}
body .gc-floating-contact.gc-inline-chat{position:relative;inset:auto;width:100%;z-index:1;line-height:1.5}
.gc-floating-contact.gc-inline-chat .gc-floating-contact-panel{position:relative;inset:auto;width:100%;height:550px;max-height:none;box-shadow:0 12px 40px rgba(0,0,0,.13)}
.gc-floating-contact.gc-inline-chat .gc-floating-contact-heading{padding:18px}
.gc-inline-chat .gc-chat-title{font-size:19px;line-height:1.45}
.gc-inline-chat .gc-chat-welcome{font-size:14px}
.gc-inline-chat .gc-chat-form-footer small{font-size:11px}
.gc-editable-section .gc-contact-grid.gc-contact-grid--chat{grid-template-columns:minmax(0,.9fr) minmax(320px,1.05fr) minmax(0,.95fr);gap:clamp(24px,3vw,54px);max-width:1800px;align-items:start}
.gc-contact-grid--chat .gc-contact-copy .gc-contact-heading{font-size:clamp(42px,4vw,72px);line-height:1.18}
.gc-contact-grid--chat .gc-contact-copy .gc-contact-heading em{white-space:normal}
.gc-contact-grid--chat .gc-contact-copy .gc-body{font-size:16px;max-width:32ch}
.gc-contact-grid--chat .gc-contact-chat-column>.col-inner{width:100%}
.gc-contact-grid--chat .gc-contact-form-column .gc-form-eyebrow{margin-bottom:24px}
@media(max-width:1199px) and (min-width:761px){.gc-editable-section .gc-contact-grid.gc-contact-grid--chat{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.gc-contact-grid--chat>.gc-contact-copy{grid-column:1/-1}.gc-contact-grid--chat .gc-contact-copy .gc-contact-heading{font-size:48px;margin:16px 0}.gc-contact-grid--chat .gc-contact-copy .gc-body{max-width:60ch;margin:12px 0 0}.gc-contact-grid--chat .gc-contact-copy .gc-eyebrow{margin-bottom:14px}.gc-contact-grid--chat .gc-contact-copy .gc-contact-arrow{display:none}}
@media(max-width:760px){.gc-editable-section .gc-contact-grid.gc-contact-grid--chat{grid-template-columns:minmax(0,1fr);max-width:550px;gap:30px}.gc-contact-grid--chat .gc-contact-copy .gc-contact-heading{font-size:clamp(40px,9vw,56px)}.gc-floating-contact.gc-inline-chat .gc-floating-contact-panel{height:550px;max-height:none}.gc-inline-chat .gc-chat-title{font-size:18px}}
@media(max-width:600px){.gc-floating-contact-panel{width:min(380px,calc(100vw - 32px))}.gc-floating-contact-heading strong{font-size:17px}.gc-chat-log{padding:12px}.gc-chat-form{padding:0 12px 8px}.gc-floating-contact textarea,.gc-floating-contact input{font-size:16px}.gc-floating-contact-heading{padding-top:14px;padding-bottom:10px}.gc-floating-contact-links{padding-top:4px;padding-bottom:8px}}
@media(max-height:650px){.gc-floating-contact-panel{bottom:0;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))}body.home .gc-floating-contact-panel{max-height:calc(100dvh - var(--gc-footer,68px) - 36px - env(safe-area-inset-bottom,0px))}.gc-chat-welcome{padding:8px 10px;font-size:12px;margin-bottom:8px}.gc-floating-contact-heading p{display:none}.gc-floating-contact-links{padding:3px 10px}.gc-chat-form-footer{margin-top:3px}.gc-chat-status{padding-bottom:5px}}
