.upload-feature-tip {
  box-sizing: border-box;
  display: grid;
  position: absolute;
  z-index: 30;
  width: min(440px, 100% - 24px);
  padding: 15px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dedee4;
  border-radius: 14px;
  color: #24242a;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(21, 21, 26, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.upload-feature-tip::before {
  position: absolute;
  bottom: -7px;
  left: calc(var(--upload-feature-arrow-left, 50%) - 7px);
  width: 14px;
  height: 14px;
  border-right: 1px solid #dedee4;
  border-bottom: 1px solid #dedee4;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}
.upload-feature-tip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.upload-feature-tip__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #d22f39;
  background: #fff0f1;
  font-size: 17px;
}

.upload-feature-tip__copy {
  min-width: 0;
}
.upload-feature-tip__copy .upload-feature-tip__badge {
  display: inline-flex;
  margin-bottom: 2px;
  color: #c72d36;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 14px;
  text-transform: uppercase;
}
.upload-feature-tip__copy strong {
  display: block;
  color: #18181e;
  font-size: 14px;
  line-height: 19px;
}
.upload-feature-tip__copy p {
  margin: 3px 0 0;
  color: #65656e;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.upload-feature-tip__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.upload-feature-tip__settings,
.upload-feature-tip__close {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 36px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.upload-feature-tip__settings {
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #bd2730;
  color: #ffffff;
  background: #d22f39;
  font-size: 12px;
  font-weight: 700;
}
.upload-feature-tip__settings:hover, .upload-feature-tip__settings:focus-visible {
  border-color: #a9232b;
  background: #a9232b;
}

.upload-feature-tip__close {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid #d4d4da;
  color: #6a6a72;
  background: #f7f7f9;
}
.upload-feature-tip__close:hover, .upload-feature-tip__close:focus-visible {
  color: #24242a;
  background: #eeeeF1;
}

#upload-settings .optimize-for-web.upload-feature-target {
  border-radius: 8px;
  outline: 3px solid rgba(210, 47, 57, 0.18);
  background: rgba(210, 47, 57, 0.06);
}

body.public-body #newuploader #upload-settings-open.upload-feature-anchor-target {
  border-color: #d22f39;
  outline: 3px solid rgba(210, 47, 57, 0.18);
  background: #fff5f6;
  box-shadow: 0 0 0 7px rgba(210, 47, 57, 0.05);
}

html[data-theme=dark] body.public-body .upload-feature-tip {
  border-color: #414957;
  color: #f2f3f5;
  background: rgba(29, 33, 42, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.44);
}
html[data-theme=dark] body.public-body .upload-feature-tip::before {
  border-color: #414957;
  background: #1d212a;
}
html[data-theme=dark] body.public-body .upload-feature-tip__icon {
  color: #ff6871;
  background: rgba(255, 75, 85, 0.13);
}
html[data-theme=dark] body.public-body .upload-feature-tip__copy .upload-feature-tip__badge {
  color: #ff7078;
}
html[data-theme=dark] body.public-body .upload-feature-tip__copy strong {
  color: #f2f3f5;
}
html[data-theme=dark] body.public-body .upload-feature-tip__copy p {
  color: #a5aab3;
}
html[data-theme=dark] body.public-body .upload-feature-tip__settings {
  border-color: #ff4b55;
  background: #d93640;
}
html[data-theme=dark] body.public-body .upload-feature-tip__settings:hover, html[data-theme=dark] body.public-body .upload-feature-tip__settings:focus-visible {
  border-color: #ff6871;
  background: #e8414b;
}
html[data-theme=dark] body.public-body .upload-feature-tip__close {
  border-color: #414957;
  color: #a5aab3;
  background: #252a34;
}
html[data-theme=dark] body.public-body .upload-feature-tip__close:hover, html[data-theme=dark] body.public-body .upload-feature-tip__close:focus-visible {
  color: #f2f3f5;
  background: #303642;
}
html[data-theme=dark] body.public-body #upload-settings .optimize-for-web.upload-feature-target {
  outline-color: rgba(255, 75, 85, 0.24);
  background: rgba(255, 75, 85, 0.09);
}
html[data-theme=dark] body.public-body #newuploader #upload-settings-open.upload-feature-anchor-target {
  border-color: #ff6871;
  outline-color: rgba(255, 75, 85, 0.24);
  color: #f2f3f5;
  background: rgba(255, 75, 85, 0.09);
  box-shadow: 0 0 0 7px rgba(255, 75, 85, 0.05);
}

@media screen and (max-width: 659px) {
  .upload-feature-tip {
    width: calc(100% - 24px);
    padding: 13px;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .upload-feature-tip__icon {
    width: 38px;
    height: 38px;
  }
  .upload-feature-tip__actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .upload-feature-tip__settings {
    min-height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .upload-feature-tip {
    transition: none;
  }
}
