.dyvix-modal-wrapper {
  margin-top: auto;
  width: fit-content;
  display: flex;
  justify-self: center;
}
.modal {
  display: flex;
  flex-direction: column;
  width: 30rem;
  height: 30rem;
  position: relative;
}
.modal:hover {
  transform: scale(1.01);
}
#modal-header {
  width: 100%;
  text-align: center;
  font-size: xx-large;
  font-weight: bolder;
  margin-bottom: 0;
  color: rgb(103, 102, 102);
}
.grouped-elements {
  display: flex;
  gap: 20px;
  flex-direction: row;
  margin: 0.5rem auto;
  width: 80%;
  margin-top: 1rem;
}
.grouped-elements .dyvix-file-wrapper,
.grouped-elements .modal-file {
  flex: 1;
  max-width: 15rem;
  min-width: 0;
  width: 100%;
}
.grouped-elements:first-of-type {
  margin-top: 4rem;
}
.modal-element {
  width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  border-radius: 1rem;
  height: 25px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}
.modal:not([class*='dyvix-modal-']) .modal-element::placeholder {
  color: #1a1a1a !important;
}
.modal-element:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
}
.modal-element:focus {
  outline: none;
  border-color: #0ea5e9;
}
.modal-element.dyvix-select-wrapper {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  max-width: 15rem;
  min-width: 0;
}
.modal-element.dyvix-select-wrapper:hover {
  border-color: transparent;
  background-color: transparent;
  transform: scale(1);
}
.modal-element.dyvix-select-wrapper input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}
.modal-element.dyvix-select-wrapper input:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
}
.dyvix-dropdown-select li {
  color: #1a1a1a;
}

.modal-select {
  height: 42px;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  flex: 1;
  max-width: 15rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.modal-select option {
  border-radius: 20px;
  padding: 10px;
  background-color: #1a1a1a;
}
.dyvix-btn-shared {
  width: 10rem;
  height: 2.8rem;
  flex: 0;
  min-width: 10rem;
  min-height: 2.8rem;
}
.dyvix-modal-wrapper .modal .dyvix-btn-wrapper {
  margin: auto auto 2rem auto;
  width: 10rem;
  height: 2.8rem;
  flex: 0;
  min-width: 10rem;
  min-height: 2.8rem;
  transition:
    transform 0.3s ease-in-out,
    background-color 0.2s ease-in-out,
    border 0.1s ease-in-out;
}
.modal-btn {
  min-width: 10rem;
  min-height: 2.8rem;
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgb(103, 102, 102);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background 0.2s;
}
.modal-close-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.dyvix-field-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  padding-bottom: 1rem;
  align-items: center;
  min-height: 40px;
}
.dyvix-error-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  position: absolute;
  bottom: -0.3rem;
  color: #ff4d4d;
  font-size: 0.65rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}
.modal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.modal-textarea {
  max-height: 70px;
  min-height: 35px;
  resize: vertical;
}
.modal-file {
  width: 100%;
  flex: 1;
  max-width: 15rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.grouped-elements:has(.dyvix-file-wrapper) {
  flex-direction: row;
  align-items: stretch;
  width: 80%;
  max-width: 100%;
  min-height: 42px;
  height: auto;
  max-height: 50px;
}
.grouped-elements .dyvix-file-wrapper {
  flex: 1;
  max-width: 15rem;
  min-width: 0;
  width: 100%;
  max-height: 50px;
}
.modal-file .dyvix-file-ui p {
  font-size: 0.5rem;
}
