.sidebar-layout {
  /* display: flex;
  padding-right: 20px;
  position: absolute;
  top: 50px;
  bottom: 0;
  width: 100%; */
}

.sidebar {
  position: fixed;
  width: 320px;
  top: 50px;
  bottom: 0;
  padding: 20px;
  background-color: #411466;
  background-color: var(--accent-dark);
  color: #fff;
  flex-shrink: 0;
}

:is([data-theme="dark"], [data-theme="blackout"], [data-theme="custom-light"]) .sidebar {
  background-color: var(--bg-100);
  border-right: 1px solid var(--bg-60);
  color: var(--text-100);
}

.sidebar-content {
  margin-left: 320px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

ul.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 -20px 0 -20px;
}

.sidebar-list > li > a {
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  display: block;
  padding: 10px 20px;
  /* border-radius: 0 20px 20px 0; */
}

.sidebar-list > li > a:hover {
  background-color: #692e99;
  background-color: var(--accent);
}

.sidebar-list > li > a.selected {
  background-color: #692e99;
  background-color: var(--accent);
}

:is([data-theme="dark"], [data-theme="blackout"], [data-theme="custom-light"])
  .sidebar-list
  > li
  > :is(a:hover, a.selected) {
  background-color: var(--bg-60);
}

/* modal */

#modal .main-header {
  margin-bottom: 0;
}

.top-container {
  background-color: var(--bg-100);
  padding: 20px;
  margin: 0;
  max-width: initial;
}

#modal-container {
  display: none;
  position: fixed;
  align-items: start;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 5;
  padding-top: 40px;
  overflow-y: auto;
}

div#modal {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: var(--bg-100);
  box-shadow: var(--box-shadow);
}

.kit.editable > .kit-image-container {
  cursor: pointer;
}

/* autocomplete */

.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  background: var(--bg-100);
  border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
  background-color: var(--bg-60);
}

.autocomplete-items div.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: #e9e9e9;
  background-color: var(--bg-60);
  /* color: #fff; */
}

textarea {
  max-width: 100%;
}

.edit-form {
  display: grid;
  grid-template-columns: auto 80%;
  grid-row-gap: 15px;
}

.image-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: center;
  justify-items: center;
  /* justify-content: center; */
  gap: 16px;
}

.edit-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edit-image-source {
  width: 100%;
  resize: vertical;
}

.edit-image-container.placeholder {
  border: 2px solid red;
  width: 100px;
  height: 100px;
}

button.edit-image-remove {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 0;
  transition: background-color 100ms ease-in-out;
}

button.edit-image-remove > svg {
  fill: #fff;
}

button.edit-image-remove:hover {
  background-color: rgba(0, 0, 0);
}

.edit-image {
  max-width: 200px;
  max-height: 200px;
  cursor: pointer;
  margin-bottom: 10px;
  border: 1px solid var(--text-100);
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  align-items: center;
  justify-items: center;
  /* justify-content: center; */
  gap: 16px;
}

.edit-video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edit-video-source {
  width: 100%;
  resize: vertical;
}

.edit-video-container.placeholder {
  border: 2px solid red;
  width: 100px;
  height: 100px;
}

button.edit-video-remove {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 0;
  transition: background-color 100ms ease-in-out;
}

button.edit-video-remove > svg {
  fill: #fff;
}

button.edit-video-remove:hover {
  background-color: rgba(0, 0, 0);
}

.edit-video {
  max-width: 400px;
  max-height: 400px;
  cursor: pointer;
  margin-bottom: 10px;
  border: 1px solid var(--text-100);
}

.drop-zone {
  /* width: ; */
  /* max-width: 1000px; */
  padding: 20px;
  border-radius: 8px;
  border: 2px dashed #d0d0d0;
  transition: border-color 150ms ease-in-out;
  position: relative;
}

.drop-zone > h4 {
  margin-top: 0;
}

.drop-zone.active {
  background-color: #ebe7ee;
  border-color: #692e99;
}

.kit-image-preview {
  width: 150px;
  height: 150px;
  background: #f0f0f0;
}

.edit-logo-container-dark img {
  background-color: #411466;
}

.edit-logo-container.player > img,
.edit-logo-container.player > canvas,
.type-block.player > img {
  border-radius: 100%;
}

.edit-form-affiliate input[type="text"],
.edit-form-affiliate textarea {
  width: 100%;
}

.pagination {
  margin-top: 32px;
}

.kit > .button-set {
  margin-top: 12px;
}

.header-ads {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.header-ad {
  border: 1px solid #ccc;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-ad__content {
}

@media (max-width: 1023px) {
  .sidebar {
    position: initial;
    margin-right: 0;
    width: auto;
    padding-bottom: 0;
  }

  .sidebar-layout {
    flex-direction: column;
    padding-right: 0;
    position: initial;
  }

  .sidebar-content {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    overflow-y: initial;
  }

  h1.sidebar-header {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .sidebar-list > li > a {
    font-size: 16px;
    padding: 5px 20px;
    border-radius: 20px 20px 0 0;
  }

  ul.sidebar-list {
    display: flex;
    flex-wrap: wrap;
  }

  input[type="text"],
  input[type="password"] {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .edit-form {
    grid-template-columns: 1fr;
    grid-row-gap: 0;
  }

  .edit-form > div {
    margin-bottom: 5px;
  }

  .edit-form > div:nth-child(2n) {
    margin-bottom: 10px;
  }

  textarea {
    width: 100%;
  }

  .autocomplete {
    display: block;
  }
}
