.leaflet-control-attribution.kojast-map-attribution {
  max-width: calc(100% - 12px);
  margin: 0 6px 6px 0;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: rgb(17 17 17 / 78%);
  color: rgb(226 232 240 / 78%);
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  backdrop-filter: blur(5px);
  transition:
    width 160ms ease,
    height 160ms ease,
    padding 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.leaflet-control-attribution.kojast-map-attribution a {
  color: inherit;
  text-decoration: none;
}

.leaflet-control-attribution.kojast-map-attribution a:hover,
.leaflet-control-attribution.kojast-map-attribution a:focus-visible {
  text-decoration: underline;
}

.leaflet-control-attribution.kojast-map-attribution.is-collapsed {
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 28px;
  text-align: center;
  opacity: 0.78;
}

.leaflet-control-attribution.kojast-map-attribution.is-collapsed::after {
  content: "ⓘ";
  display: block;
  color: rgb(226 232 240 / 90%);
  font-size: 15px;
  line-height: 28px;
}

.leaflet-control-attribution.kojast-map-attribution.is-collapsed:hover,
.leaflet-control-attribution.kojast-map-attribution.is-collapsed:focus-visible {
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  .leaflet-control-attribution.kojast-map-attribution {
    border-color: rgb(15 23 42 / 10%);
    background: rgb(255 255 255 / 88%);
    color: rgb(51 65 85 / 82%);
    box-shadow: 0 2px 8px rgb(15 23 42 / 12%);
  }

  .leaflet-control-attribution.kojast-map-attribution.is-collapsed::after {
    color: rgb(51 65 85 / 90%);
  }
}

@media (max-width: 640px) {
  .leaflet-control-attribution.kojast-map-attribution {
    max-width: calc(100% - 8px);
    margin: 0 4px 4px 0;
  }
}
