.chat-ad-countdown {
  display: none;
  flex-shrink: 0;
  color: inherit;
  opacity: .8;
  font-size: 10px;
  line-height: 14px;
  text-align: right;
  pointer-events: none;
}
html[data-gaicani-ads="enabled"]:not([data-gaicani-vip]) .chat-ad-countdown {
  display: block;
}
.chat-ad-open {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
  touch-action: manipulation;
}
.chat-ad-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  flex-shrink: 0;
}
.chat-ad-button-count {
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  min-height: 12px;
}
html[data-gaicani-ads="enabled"]:not([data-gaicani-vip]) .pc-input-row.gc-ad-composer,
html[data-gaicani-ads="enabled"]:not([data-gaicani-vip]) #fc-input-bar.gc-ad-composer {
  position: relative;
  padding-top: 24px;
}
html[data-gaicani-ads="enabled"]:not([data-gaicani-vip]) #priv-panel .pc-input-row.gc-ad-composer {
  padding-top: 24px !important;
}
.gc-ad-composer > .chat-ad-countdown {
  position: absolute;
  top: 4px;
  right: max(12px, env(safe-area-inset-right));
}

html[data-gaicani-ads="enabled"]:not([data-gaicani-vip]) .right-side.chat-ad-toolbar {
  position: relative;
  align-items: flex-start !important;
  min-width: min(248px, 100%);
}
.chat-ad-actions {
  display: flex;
  gap: inherit;
  flex-shrink: 0;
}
.chat-ad-action > .chat-ad-button-count {
  margin-top: auto;
}
.chat-ad-label {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .chat-ad-label {
    left: max(10px, env(safe-area-inset-left));
    bottom: 8px;
  }
}
