/**
 * Godly Gifts — Quick Support floating widget
 */
.gg-quick-support {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1040;
  font-family: var(--gg-font, "Segoe UI", system-ui, sans-serif);
  pointer-events: none;
}

.gg-quick-support > * {
  pointer-events: auto;
}

body.gg-redesign.gg-has-mobile-bar:not(.gg-hide-mobile-bar) .gg-quick-support {
  bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

/* Avoid overlap with logged-in WhatsApp shortcut in .fixed-icon */
body.gg-redesign:has(.fixed-icon .whatsapp-icon) .gg-quick-support {
  bottom: calc(68px + env(safe-area-inset-bottom, 0));
}

body.gg-redesign.gg-has-mobile-bar:not(.gg-hide-mobile-bar):has(.fixed-icon .whatsapp-icon) .gg-quick-support {
  bottom: calc(124px + env(safe-area-inset-bottom, 0));
}

@media (min-width: 992px) {
  body.gg-redesign .gg-quick-support {
    bottom: 20px;
    right: 20px;
  }
}

/* Toggle button */
.gg-quick-support__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gg-saffron, #e8751a) 0%, var(--gg-saffron-dark, #c9620f) 100%);
  color: var(--gg-white, #fff);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 117, 26, 0.35), 0 2px 8px rgba(44, 33, 24, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: calc(100vw - 32px);
}

.gg-quick-support__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 117, 26, 0.4), 0 4px 12px rgba(44, 33, 24, 0.14);
}

.gg-quick-support__toggle:focus-visible {
  outline: 2px solid var(--gg-maroon, #5c1a1a);
  outline-offset: 2px;
}

.gg-quick-support__toggle-icon {
  display: flex;
  flex-shrink: 0;
}

.gg-quick-support.is-open .gg-quick-support__toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  position: absolute;
  visibility: hidden;
}

/* Panel card */
.gg-quick-support__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--gg-white, #fff);
  border-radius: var(--gg-radius, 12px);
  box-shadow: var(--gg-shadow, 0 4px 24px rgba(44, 33, 24, 0.08)),
    0 12px 40px rgba(44, 33, 24, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gg-quick-support__panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gg-quick-support__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.5rem;
  background: linear-gradient(135deg, var(--gg-maroon, #5c1a1a) 0%, var(--gg-maroon-soft, #7a2e2e) 100%);
  color: var(--gg-white, #fff);
}

.gg-quick-support__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.gg-quick-support__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gg-quick-support__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gg-quick-support__subtitle {
  margin: 0;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, var(--gg-maroon, #5c1a1a) 0%, var(--gg-maroon-soft, #7a2e2e) 100%);
}

.gg-quick-support__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.gg-quick-support__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: var(--gg-radius-sm, 8px);
  text-decoration: none !important;
  color: var(--gg-text, #2b2118) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.gg-quick-support__option:hover {
  background: var(--gg-cream-dark, #f3ede3);
  color: var(--gg-saffron-dark, #c9620f) !important;
}

.gg-quick-support__option--wa {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gg-cream-dark, #f3ede3);
  color: #128c7e !important;
  font-weight: 600;
}

.gg-quick-support__option--wa:hover {
  background: rgba(18, 140, 126, 0.08);
  color: #075e54 !important;
}

.gg-quick-support__option-icon {
  flex-shrink: 0;
  display: flex;
  color: #25d366;
}

.gg-quick-support__option-text {
  flex: 1;
  min-width: 0;
}

.gg-quick-support__option-arrow {
  flex-shrink: 0;
  opacity: 0.4;
  font-size: 1.1rem;
}

@media (max-width: 380px) {
  .gg-quick-support__toggle-label {
    font-size: 0.8125rem;
  }

  .gg-quick-support__toggle {
    padding: 0.55rem 0.85rem;
  }
}
