:root {
  --gc-primary: #25D366;
  --gc-primary-dark: #128C7E;
  --gc-primary-light: #DCF8C6;
  --gc-bg: #ffffff;
  --gc-bg-chat: #e5ddd5;
  --gc-bg-header: #075E54;
  --gc-bg-footer: #f0f0f0;
  --gc-text: #333333;
  --gc-text-light: #999999;
  --gc-text-white: #ffffff;
  --gc-border: #e0e0e0;
  --gc-bubble-sent: #DCF8C6;
  --gc-bubble-received: #ffffff;
  --gc-unread-bg: #FF3B30;
  --gc-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  --gc-radius: 12px;
  --gc-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --gc-z-index: 999999;
}

/* Container */
.gc-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--gc-z-index);
  font-family: var(--gc-font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--gc-text);
  box-sizing: border-box;
  pointer-events: none;
}

.gc-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

/* Floating button */
.gc-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gc-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gc-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gc-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.gc-fab svg {
  width: 28px;
  height: 28px;
  fill: var(--gc-text-white);
}

/* Unread badge — mantido para uso externo se necessário */
.gc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gc-unread-bg);
  color: var(--gc-text-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.gc-badge.gc-visible {
  display: flex;
}

/* Chat window */
.gc-window {
  display: none;
  flex-direction: column;
  width: 370px;
  height: 520px;
  background: var(--gc-bg);
  border-radius: var(--gc-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: absolute;
  bottom: 80px;
  right: 0;
  animation: gc-slideUp 0.3s ease;
}

@media (max-width: 480px) {
  .gc-widget {
    bottom: 12px;
    right: 12px;
  }
  .gc-fab {
    width: 52px;
    height: 52px;
  }
  .gc-fab svg {
    width: 24px;
    height: 24px;
  }
  .gc-window {
    width: calc(100vw - 24px);
    max-width: 380px;
    height: calc(100dvh - 90px);
    max-height: 600px;
    bottom: 64px;
    right: 0;
    border-radius: 16px;
    animation: none;
  }
}

.gc-window.gc-open {
  display: flex;
}

@keyframes gc-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.gc-header {
  background: var(--gc-bg-header);
  color: var(--gc-text-white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.gc-header-title {
  font-size: 16px;
  font-weight: 600;
}

.gc-header-subtitle {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.gc-header-close {
  background: none;
  border: none;
  color: var(--gc-text-white);
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gc-header-close span {
  font-size: 13px;
  font-weight: 600;
}

.gc-header-close:hover {
  opacity: 1;
}

/* Tabs */
.gc-tabs {
  display: flex;
  background: var(--gc-bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gc-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.gc-tab.gc-active {
  color: var(--gc-text-white);
  border-bottom-color: var(--gc-primary);
}

.gc-tab:hover {
  color: var(--gc-text-white);
}

/* Body / Messages area */
.gc-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  background: var(--gc-bg-chat);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gc-body::-webkit-scrollbar {
  width: 5px;
}

.gc-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Messages */
.gc-msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
}

.gc-msg-row-sent {
  align-items: flex-end;
}

.gc-msg-row-recv {
  align-items: flex-start;
}

.gc-msg {
  max-width: 88%;
  min-width: min(100%, 140px);
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
  word-wrap: break-word;
}

.gc-msg-sent {
  background: var(--gc-bubble-sent);
  border-bottom-right-radius: 2px;
}

.gc-msg-received {
  background: var(--gc-bubble-received);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.gc-msg-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-primary-dark);
  margin-bottom: 4px;
  opacity: 0.9;
  padding-right: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sem menu (ex.: mensagem otimista temp-*): nome pode usar a linha inteira */
.gc-msg:not(:has(.gc-msg-menu-wrap)) .gc-msg-sender {
  padding-right: 0;
}

.gc-msg-received .gc-msg-sender {
  color: #54656f;
}

.gc-msg-reply-ref {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-left: 3px solid #f5c842;
  padding: 4px 8px 6px 8px;
  margin: 0 0 6px 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gc-msg-reply-ref:hover {
  background: rgba(0, 0, 0, 0.07);
}

.gc-msg-reply-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-primary-dark);
  margin-bottom: 2px;
}

.gc-msg-reply-snippet {
  display: block;
  font-size: 12px;
  color: var(--gc-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-msg-edited {
  font-size: 10px;
  font-style: italic;
  color: var(--gc-text-light);
  margin-right: 4px;
}

/* Menu (⋮): sempre levemente visível; abre para dentro do widget para não ser cortado pelo overflow */
.gc-msg-menu-wrap {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
}

.gc-msg-row-recv .gc-msg-menu-wrap {
  right: 6px;
  left: auto;
}

.gc-msg-menu-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--gc-text-light);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gc-msg:hover .gc-msg-menu-btn,
.gc-msg-menu-wrap:has(.gc-msg-dropdown.gc-open) .gc-msg-menu-btn {
  opacity: 1;
}

.gc-msg-menu-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--gc-text);
}

.gc-msg-sent .gc-msg-menu-btn {
  background: rgba(255, 255, 255, 0.45);
}

.gc-msg-sent .gc-msg-menu-btn:hover {
  background: rgba(255, 255, 255, 0.75);
}

.gc-msg-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 4px;
  min-width: 210px;
  max-width: min(260px, calc(100vw - 48px));
  background: var(--gc-bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--gc-border);
  padding: 6px 0;
  z-index: 50;
}

/* Recebidas: ancora à esquerda do botão → menu cresce para a direita (não vaza à esquerda do .gc-body) */
.gc-msg-row-recv .gc-msg-dropdown {
  left: 0;
  right: auto;
}

/* Enviadas: ancora à direita → cresce para a esquerda, para dentro do chat */
.gc-msg-row-sent .gc-msg-dropdown {
  right: 0;
  left: auto;
}

.gc-msg-dropdown.gc-open {
  display: block;
}

.gc-msg-act {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--gc-text);
}

.gc-msg-act:hover {
  background: rgba(0, 0, 0, 0.05);
}

.gc-msg-react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  border-top: 1px solid var(--gc-border);
}

.gc-react-quick,
.gc-emoji-more {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}

.gc-react-quick:hover,
.gc-emoji-more:hover {
  background: rgba(0, 0, 0, 0.1);
}

.gc-msg-emoji-grid {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--gc-border);
  max-height: 140px;
  overflow-y: auto;
}

.gc-msg-emoji-grid.gc-open {
  display: flex;
}

.gc-react-extra {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.gc-react-extra:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Reactions below bubble */
.gc-msg-reactions-wrap {
  max-width: 88%;
  padding: 0 2px 2px;
}

.gc-msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.gc-msg-row-recv .gc-msg-reactions {
  justify-content: flex-start;
}

.gc-react-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--gc-border);
  background: var(--gc-bg);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.gc-react-badge.gc-react-me {
  border-color: var(--gc-primary);
  background: rgba(37, 211, 102, 0.12);
}

.gc-react-c {
  font-size: 11px;
  color: var(--gc-text-light);
}

/* Reply preview above input */
.gc-reply-preview {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(7, 94, 84, 0.06);
  border-top: 1px solid var(--gc-border);
}

.gc-reply-preview[hidden] {
  display: none !important;
}

.gc-reply-preview-inner {
  flex: 1;
  min-width: 0;
}

.gc-reply-preview-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-primary-dark);
}

.gc-reply-preview-text {
  font-size: 12px;
  color: var(--gc-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.gc-reply-preview-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--gc-text-light);
}

.gc-reply-preview-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Staged file preview (above input) */
.gc-staged-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(37, 211, 102, 0.08);
  border-top: 1px solid var(--gc-border);
}

.gc-staged-file[hidden] {
  display: none !important;
}

.gc-staged-file-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.gc-staged-file-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.gc-staged-file-info {
  flex: 1;
  min-width: 0;
}

.gc-staged-file-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-staged-file-hint {
  font-size: 10px;
  color: var(--gc-text-light);
  margin-top: 1px;
}

.gc-staged-file-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--gc-text-light);
}

.gc-staged-file-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Drag and drop highlight */
.gc-body.gc-drag-over {
  outline: 2px dashed var(--gc-primary);
  outline-offset: -6px;
  background: rgba(37, 211, 102, 0.12);
}

.gc-footer.gc-drag-over {
  background: rgba(37, 211, 102, 0.1);
}

.gc-msg-content {
  font-size: 13.5px;
  line-height: 1.4;
}

.gc-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
}

.gc-msg-time {
  font-size: 11px;
  color: var(--gc-text-light);
}

.gc-msg-status {
  font-size: 12px;
  color: var(--gc-text-light);
}

.gc-msg-status.gc-read {
  color: #34B7F1;
}

/* File message */
.gc-msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gc-msg-file-icon {
  font-size: 24px;
}

.gc-msg-file-info {
  flex: 1;
  min-width: 0;
}

.gc-msg-file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-msg-file-size {
  font-size: 11px;
  color: var(--gc-text-light);
}

/* Typing indicator */
.gc-typing {
  display: none;
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--gc-bubble-received);
  border-radius: 8px;
  font-size: 12px;
  color: var(--gc-text-light);
}

.gc-typing.gc-visible {
  display: block;
}

.gc-typing-dots {
  display: inline-flex;
  gap: 3px;
}

.gc-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gc-text-light);
  border-radius: 50%;
  animation: gc-bounce 1.4s ease-in-out infinite;
}

.gc-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.gc-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes gc-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Footer / Input area */
.gc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--gc-bg-footer);
  border-top: 1px solid var(--gc-border);
}

.gc-input {
  flex: 1;
  border: none;
  outline: none;
  background: var(--gc-bg);
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-family: var(--gc-font);
  resize: none;
  max-height: 80px;
  overflow-y: auto;
}

.gc-input::placeholder {
  color: var(--gc-text-light);
}

.gc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  background: none;
  font-size: 18px;
}

.gc-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gc-btn-send {
  background: var(--gc-primary);
  color: var(--gc-text-white);
}

.gc-btn-send:hover {
  background: var(--gc-primary-dark);
}

.gc-file-input {
  display: none;
}

/* Painel de emoji do input (anexado a document.body) */
.gc-input-emoji-panel {
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--gc-font);
}

.gc-input-emoji-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gc-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-text);
  flex-shrink: 0;
}

.gc-input-emoji-x {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--gc-text-light);
  padding: 0 4px;
  border-radius: 4px;
}

.gc-input-emoji-x:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--gc-text);
}

.gc-input-emoji-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
  flex: 1;
  min-height: 0;
}

.gc-input-emoji-cell {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-size: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gc-input-emoji-cell:hover {
  background: rgba(37, 211, 102, 0.15);
}

/* Documents tab */
.gc-documents {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: none;
}

.gc-documents.gc-active {
  display: block;
}

.gc-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gc-border);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.gc-doc-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.gc-doc-icon {
  font-size: 28px;
}

.gc-doc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-doc-date {
  font-size: 11px;
  color: var(--gc-text-light);
}

/* Empty state */
.gc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gc-text-light);
  font-size: 14px;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.gc-empty-icon {
  font-size: 40px;
  opacity: 0.5;
}

/* Image preview in message */
.gc-msg-image {
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

/* Loading */
.gc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--gc-text-light);
}

/* Ticket session styles */
.gc-ticket-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gc-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.gc-ticket-divider::before,
.gc-ticket-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 10px;
}

/* Rating Card */
.gc-rating-card {
  margin: 15px 0;
  padding: 20px;
  background: var(--gc-bg);
  border-radius: var(--gc-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--gc-primary-light);
  animation: gc-slideUp 0.4s ease;
  align-self: center;
  width: 90%;
}

.gc-rating-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--gc-primary-dark);
}

.gc-rating-text {
  font-size: 13px;
  color: var(--gc-text-light);
  margin-bottom: 15px;
}

.gc-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gc-star {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: transform 0.2s, color 0.1s;
}

.gc-star:hover {
  transform: scale(1.2);
}

.gc-star-active {
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}
/* Announcements */
.gc-announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-family: var(--gc-font);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: gc-slideDown 0.4s ease-out;
}

.gc-announcement-banner.gc-closing {
  animation: gc-slideUp-out 0.3s ease-in forwards;
}

.gc-announcement-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
}

.gc-announcement-banner-icon {
  font-size: 20px;
}

.gc-announcement-banner-text {
  font-size: 14px;
  line-height: 1.4;
}

.gc-announcement-banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 4px;
}

.gc-announcement-banner-close:hover {
  opacity: 1;
}

/* Background colors */
.gc-bg-info { background: #3b82f6; }
.gc-bg-success { background: #10b981; }
.gc-bg-warning { background: #f59e0b; }
.gc-bg-danger { background: #ef4444; }

/* Border colors */
.gc-border-info { border-left: 4px solid #3b82f6; }
.gc-border-success { border-left: 4px solid #10b981; }
.gc-border-warning { border-left: 4px solid #f59e0b; }
.gc-border-danger { border-left: 4px solid #ef4444; }

/* Overlay and Popup */
.gc-announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  backdrop-filter: blur(2px);
  animation: gc-fadeIn 0.3s ease;
}

.gc-announcement-overlay.gc-closing {
  animation: gc-fadeOut 0.3s ease forwards;
}

.gc-announcement-popup {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: gc-popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gc-announcement-popup-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.gc-announcement-popup-title {
  font-weight: 700;
  font-size: 18px;
  color: #1a1a1a;
}

.gc-announcement-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.gc-announcement-popup-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.gc-announcement-popup-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.gc-announcement-popup-content {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  white-space: pre-wrap;
}

.gc-announcement-popup-footer {
  padding: 16px 20px;
  text-align: right;
  background: #fdfdfd;
  border-top: 1px solid #f0f0f0;
}

.gc-announcement-popup-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.gc-announcement-popup-btn:hover {
  filter: brightness(0.9);
}

@keyframes gc-slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes gc-slideUp-out {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes gc-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gc-fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes gc-popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ─── Receipt Card ──────────────────────────────────── */
.gc-msg-receipt {
  background: var(--gc-bg) !important;
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid var(--gc-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 280px;
}

.gc-receipt {
  border-radius: 8px;
  overflow: hidden;
}

.gc-receipt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.gc-receipt-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.gc-receipt-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gc-receipt-subtitle {
  font-size: 10px;
  color: var(--gc-text-light);
  margin-top: 1px;
}

.gc-receipt-body {
  padding: 12px 14px;
}

.gc-receipt-amount {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--gc-text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.gc-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.gc-receipt-row:last-child {
  border-bottom: none;
}

.gc-receipt-row span:first-child {
  color: var(--gc-text-light);
}

.gc-receipt-row span:last-child {
  font-weight: 600;
  color: var(--gc-text);
}

.gc-receipt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid var(--gc-border);
}

.gc-receipt-code {
  font-size: 9px;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gc-text-light);
}
