.vp-doc .demo-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 40px;
  margin: 40px -16px;
  border: solid 1px var(--vp-c-divider);
  border-radius: 8px;
  box-shadow: var(--vp-shadow-2);
  transition: var(--vp-t-color);
  transition-property: border, box-shadow;
}

.vp-doc .demo-wrapper .demo-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  border-bottom: solid 1px var(--vp-c-divider);
  transition: border-bottom var(--vp-t-color);
}

.vp-doc .demo-wrapper .demo-container {
  min-height: 0;
  padding: 20px;
  font-size: 14px;
  line-height: 22px;
  background-color: var(--vp-c-bg-alt);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  transition: background-color var(--vp-t-color);
}

.vp-doc .demo-wrapper.has-title .demo-head {
  border-bottom-color: transparent;
}

.vp-doc .demo-wrapper.only-img {
  overflow: hidden;
}

.vp-doc .demo-wrapper.only-img img {
  display: block;
}

.vp-doc .demo-wrapper.only-img .demo-container,
.vp-doc .demo-wrapper.no-padding .demo-container {
  padding: 0;
}

.vp-doc .demo-wrapper.has-height .demo-container {
  height: var(--demo-container-height);
  overflow-y: auto;
}

.vp-doc .demo-wrapper .demo-ctrl {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 0 5px 8px;
}

.vp-doc .demo-wrapper .demo-ctrl i {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 100%;
  transition: background-color var(--vp-t-color);
}

.vp-doc .demo-wrapper .demo-ctrl i:nth-child(1) {
  background-color: var(--vp-c-danger-3);
}

.vp-doc .demo-wrapper .demo-ctrl i:nth-child(2) {
  background-color: var(--vp-c-warning-3);
}

.vp-doc .demo-wrapper .demo-ctrl i:nth-child(3) {
  background-color: var(--vp-c-green-3);
}

.vp-doc .demo-wrapper .demo-title {
  position: relative;
  min-width: 0;
  padding: 0 16px;
  margin: 0 20px -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vp-c-text-2);
  background-color: var(--vp-c-bg-alt);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: var(--vp-t-color);
  transition-property: color, background-color;
}

.vp-doc .demo-wrapper .demo-title p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

.vp-doc .demo-wrapper .demo-title::after,
.vp-doc .demo-wrapper .demo-title::before {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 8px;
  height: 8px;
  content: " ";
  transition: background var(--vp-t-color);
}

.vp-doc .demo-wrapper .demo-title::before {
  left: 100%;
  background: radial-gradient(16px at right top, transparent 50%, var(--vp-c-bg-alt) 50%);
}

.vp-doc .demo-wrapper .demo-title::after {
  right: 100%;
  background: radial-gradient(16px at left top, transparent 50%, var(--vp-c-bg-alt) 50%);
}

.vp-doc .demo-wrapper .demo-container > *:first-child {
  margin-top: 0;
}

.vp-doc .demo-wrapper .demo-container > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 419px) {
  .vp-doc .demo-wrapper {
    margin: 40px 0;
  }
}
