.layout-config {
  position: fixed;
  padding: 0;
  top: 0;
  right: 0;
  display: block;
  width: 550px;
  z-index: 1101;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
  transform: translateX(100%);
  backface-visibility: hidden;
}

.layout-config.layout-config-active {
  transform: translateX(0);
}

.layout-config-content-wrapper {
  position: relative;
  height: 100%;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.24);
  color: var(--text-color);
  background-color: var(--surface-f);
}

.layout-config-content-wrapper .layout-config-button {
  display: block;
  position: absolute;
  width: 52px;
  height: 52px;
  line-height: 52px;
  background-color: var(--primary-color);
  text-align: center;
  color: var(--primary-color-text);
  top: 270px;
  left: -51px;
  z-index: -1;
  overflow: hidden;
  cursor: pointer;
  outline: 0 none;
  border-radius: 3px;
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.layout-config-content-wrapper .layout-config-button i {
  font-size: 26px;
  line-height: inherit;
  cursor: pointer;
}

.layout-config-content-wrapper .layout-config-button span {
  display: block;
  line-height: 26px;
  margin: 13px;
}

.layout-config-content-wrapper .layout-config-button i:after {
  content: var(--cog-icon);
}

.layout-config-close {
  position: absolute;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  right: 20px;
  top: 20px;
  z-index: 999;
  background-color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.layout-config .layout-config-close:hover {
  transform: scale(1.1);
}

.layout-config-content-wrapper .layout-config-close span {
  display: block;
  line-height: 20px;
}

.layout-config-content-wrapper .layout-config-close i:after {
  content: var(--times-icon);
}

.layout-config-content-wrapper .layout-config-close i {
  font-size: 20px;
  line-height: inherit;
  cursor: pointer;
  vertical-align: -0.3em;
}

a {
  color: var(--linkColor);
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.layout-config-content {
  overflow: auto;
  height: 100%;
  padding: 2rem;
}

.grid > div {
  padding: 1rem;
  text-align: center;
}

.grid > div span {
  display: block;
}

.grid > div button {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.free-themes img {
  width: 50px;
  border-radius: 4px;
  transition: transform 0.2s;
}

.free-themes img:hover {
  transform: scale(1.1);
}

.free-themes span {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
