/*
 * dialog
 */

.dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* PC */
@media (min-width: 768px) {
  .dialog {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
  }
}

.dialog-container {
  background-color: #ffffff;
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  overflow: scroll;
  transition: transform 0.3s;
  box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.dialog[data-open="true"] .dialog-container {
  transform: translateY(0);
}

.dialog[data-open="false"] .dialog-container {
  transform: translateY(100%);
}

/* PC */
@media (min-width: 768px) {
  .dialog-container {
    min-width: 400px;
    border-radius: 4px 4px 0 0;
    max-height: 40vh;
  }
}

/* SP */
@media (max-width: 768px) {
  .dialog-container {
    width: 100%;
    padding: 20px;
    max-height: 36vh;
  }
}

.dialog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-item * {
  all: revert;
}

.dialog-label {
  font-size: 14px;
}

.dialog-select {
  text-align: right;
}

.dialog-slider {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dialog-slider-value {
  display: block;
  min-width: 32px;
  text-align: center;
  font-size: 14px;
}

.dialog-button {
  width: 24px;
  height: 24px;
  background: var(--bg-secondary-color);
  border: 0 none;
  padding: 0;
  border-radius: 4px;
}

.dialog-heading {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1em;
  white-space: nowrap;
}

.dialog-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
}
