:root {
  --ciello-surface: rgba(27, 27, 27, 0.9);
  --ciello-surface-light: rgba(255, 255, 255, 0.08);
  --ciello-text: #ffffff;
  --ciello-text-secondary: rgba(247, 241, 229, 0.62);
  --ciello-accent: #ebaf17;
}

/* Hide the previous compiled footer badge while the new component is active. */
a[aria-label="Site feito pela CIELLO"] {
  display: none !important;
}

.ciello-popup-positioner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.ciello-popup {
  position: relative;
  display: flex;
  align-items: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: var(--ciello-surface);
  box-shadow: 0 20px 48px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  cursor: pointer;
  outline: none;
  pointer-events: auto;
  user-select: none;
  transition: width .4s cubic-bezier(.16,1,.3,1), border-color 180ms ease;
}

.ciello-popup:hover,
.ciello-popup:focus-visible { width: 240px; border-color: rgba(235,175,23,.34); }
.ciello-popup:focus-visible { outline: 2px solid var(--ciello-accent); outline-offset: 4px; }

.ciello-popup__logo-wrap {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 12px;
  border-radius: 999px;
  background: var(--ciello-surface-light);
}

.ciello-popup__logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.ciello-popup__copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 32px 0 8px; white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .3s ease .1s; }
.ciello-popup:hover .ciello-popup__copy,
.ciello-popup:focus-visible .ciello-popup__copy { opacity: 1; }
.ciello-popup__eyebrow { color: var(--ciello-text-secondary); font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.ciello-popup__name { color: var(--ciello-text); font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; }
.ciello-popup__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--ciello-text-secondary); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease, background .18s ease, color .18s ease; }
.ciello-popup:hover .ciello-popup__close,
.ciello-popup:focus-visible .ciello-popup__close { opacity: 1; pointer-events: auto; }
.ciello-popup__close:hover { background: rgba(255,255,255,.1); color: var(--ciello-text); }
.ciello-popup__close:focus-visible { outline: 2px solid var(--ciello-accent); outline-offset: 2px; }
.ciello-popup__close svg { width: 12px; height: 12px; }

@media (max-width: 480px) { .ciello-popup-positioner { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .ciello-popup, .ciello-popup__copy, .ciello-popup__close { transition: none; } }
