/* Suporte cliente — visual Glovo */
:root {
  --sp-yellow: #ffc244;
  --sp-yellow-deep: #e8a51c;
  --sp-ink: #1a1a1a;
  --sp-ink-soft: #3a3a3a;
  --sp-muted: #6b6b6b;
  --sp-bg: #f4f4f0;
  --sp-panel: #ffffff;
  --sp-line: rgba(26, 26, 26, 0.1);
  --sp-bubble-out: #ffc244;
  --sp-bubble-in: #ffffff;
  --sp-header: #1a1a1a;
}

.support-cta {
  margin: 18px 16px 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 194, 68, 0.55), transparent 42%),
    linear-gradient(160deg, #1a1a1a 0%, #2a2a1f 100%);
  border: 1px solid rgba(255, 194, 68, 0.35);
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.support-cta__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-yellow);
}
.support-cta h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.support-cta p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.support-cta__btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--sp-yellow);
  color: #1a1a1a;
  font: 800 15px Nunito, sans-serif;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 194, 68, 0.35);
}
.support-cta__btn:active {
  transform: scale(0.985);
}

.support-list {
  margin: 8px 16px 120px;
}
.support-list__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.support-ticket {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.06);
  border: 1px solid var(--sp-line);
}
.support-ticket__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sp-yellow);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-ticket__avatar .material-symbols-outlined {
  font-size: 22px;
}
.support-ticket__body {
  flex: 1;
  min-width: 0;
}
.support-ticket__body strong {
  display: block;
  font-size: 14px;
  color: var(--sp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-ticket__body span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-ticket__meta {
  text-align: right;
  flex-shrink: 0;
}
.support-ticket__meta small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--sp-muted);
}
.support-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.support-badge.is-pending {
  background: #fff3d1;
  color: #9a6b00;
}
.support-badge.is-resolved {
  background: #ececec;
  color: #444;
}
.support-ticket__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sp-yellow-deep);
  margin: 6px 0 0 auto;
}

/* Chat shell — Glovo */
.wa-shell {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12050;
  background: var(--sp-bg);
  max-width: 480px;
  margin: 0 auto;
  flex-direction: column;
}
.wa-shell.is-open {
  display: flex;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
  background: var(--sp-header);
  color: #fff;
  flex-shrink: 0;
  border-bottom: 3px solid var(--sp-yellow);
}
.wa-header__back {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sp-yellow);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-header__copy {
  flex: 1;
  min-width: 0;
}
.wa-header__copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-header__copy small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-yellow);
}

.wa-countdown {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff3d1;
  color: #7a5400;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.wa-countdown.is-on {
  display: flex;
}
.wa-countdown strong {
  font-variant-numeric: tabular-nums;
}

.wa-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 194, 68, 0.18), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(26, 26, 26, 0.06), transparent 45%),
    var(--sp-bg);
}

.wa-day {
  text-align: center;
  margin: 8px 0 12px;
}
.wa-day span {
  display: inline-block;
  background: rgba(26, 26, 26, 0.08);
  color: var(--sp-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.wa-row {
  display: flex;
  margin: 0 0 8px;
}
.wa-row.is-out {
  justify-content: flex-end;
}
.wa-row.is-in {
  justify-content: flex-start;
}
.wa-row.is-system {
  justify-content: center;
}

.wa-bubble {
  max-width: min(84%, 340px);
  padding: 8px 10px 6px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06);
}
.wa-row.is-out .wa-bubble {
  background: var(--sp-bubble-out);
  color: #1a1a1a;
  border-bottom-right-radius: 4px;
}
.wa-row.is-in .wa-bubble {
  background: var(--sp-bubble-in);
  border: 1px solid var(--sp-line);
  border-bottom-left-radius: 4px;
}
.wa-row.is-system .wa-bubble {
  background: #1a1a1a;
  color: var(--sp-yellow);
  max-width: 92%;
  text-align: center;
  box-shadow: none;
}
.wa-bubble__reply {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-left: 3px solid #1a1a1a;
  cursor: pointer;
}
.wa-row.is-in .wa-bubble__reply {
  background: rgba(255, 194, 68, 0.18);
  border-left-color: var(--sp-yellow-deep);
}
.wa-bubble__reply strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
}
.wa-bubble__reply span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-bubble__reply img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.wa-bubble__img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  margin: 0 0 6px;
  cursor: zoom-in;
}
.wa-bubble__text {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: inherit;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-bubble__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  opacity: 0.7;
}
.wa-bubble__reply-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.8;
}
.wa-bubble__reply-btn:hover {
  opacity: 1;
}

.wa-typing {
  display: flex;
  justify-content: flex-start;
  padding: 0 14px 10px;
  flex-shrink: 0;
}
.wa-typing[hidden] {
  display: none !important;
}
.wa-typing__bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8e8e4;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.wa-typing__bubble span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4a4a;
  animation: waTypingDot 1.2s infinite ease-in-out;
}
.wa-typing__bubble span:nth-child(2) {
  animation-delay: 0.15s;
}
.wa-typing__bubble span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes waTypingDot {
  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.wa-reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--sp-line);
  flex-shrink: 0;
}
.wa-reply-bar[hidden] {
  display: none !important;
}
.wa-reply-bar__body {
  flex: 1;
  min-width: 0;
  border-left: 3px solid var(--sp-yellow);
  padding-left: 10px;
}
.wa-reply-bar__body strong {
  display: block;
  font-size: 12px;
  color: #1a1a1a;
}
.wa-reply-bar__body span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-reply-bar__close {
  border: 0;
  background: #f0f0f0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.wa-pending {
  position: relative;
  padding: 8px 12px 0;
  background: #fff;
  flex-shrink: 0;
}
.wa-pending[hidden] {
  display: none !important;
}
.wa-pending img {
  display: block;
  max-height: 96px;
  max-width: 160px;
  border-radius: 12px;
  border: 2px solid var(--sp-yellow);
}
.wa-pending button {
  position: absolute;
  top: 4px;
  left: 148px;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--sp-line);
  flex-shrink: 0;
}
.wa-composer__attach {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f0;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-composer__field {
  flex: 1;
  background: #f4f4f0;
  border-radius: 14px;
  padding: 10px 14px;
  border: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  font: 700 15px Nunito, sans-serif;
  color: #1a1a1a;
  outline: none;
}
.wa-composer__send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--sp-yellow);
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-composer__send:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.wa-composer__locked {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sp-muted);
}

.wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wa-lightbox[hidden] {
  display: none !important;
}
.wa-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
}

/* Compose sheet */
.wa-compose-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12040;
  background: rgba(16, 16, 16, 0.55);
  align-items: flex-end;
  justify-content: center;
}
.wa-compose-sheet.is-open {
  display: flex;
}
.wa-compose-card {
  width: min(100%, 480px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  border-top: 4px solid var(--sp-yellow);
}
.wa-compose-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
}
.wa-compose-card > p {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-muted);
}
.wa-compose-card label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sp-muted);
}
.wa-compose-card input,
.wa-compose-card textarea {
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid var(--sp-line);
  border-radius: 12px;
  padding: 12px 12px;
  font: 700 14px Nunito, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}
.wa-compose-card textarea {
  min-height: 96px;
  resize: vertical;
}
.wa-compose-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.wa-compose-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 13px 12px;
  font: 800 14px Nunito, sans-serif;
  cursor: pointer;
}
.wa-compose-actions .is-primary {
  background: var(--sp-yellow);
  color: #1a1a1a;
}
.wa-compose-actions .is-ghost {
  background: #f0f0f0;
  color: #1a1a1a;
}
.wa-compose-err {
  display: none;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fde8e6;
  color: #a33;
  font-size: 13px;
  font-weight: 800;
}
.wa-compose-err.is-on {
  display: block;
}
