@import url(../cssom/button-brand.css);
@import url(../cssom/toggle.css);

#m311-root{
  flex-direction: column;
  padding: 2rem 1rem;
  border-radius: 1rem;
  box-shadow: var(--concave-sm);
  margin: 2rem 0;
  background: var(--compare);
}

@media screen and (max-width: 480px) {
  #m311-root .with-label .label {
    margin-top: .5rem !important;
  }
}

#m311-root h4 {
  margin: 1rem 0rem;
  padding: 0 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  text-shadow: 0px 0px 1px rgba(35,35,35, .18);
}

#m311-root h4:before {
  content: "";
  height:  inherit;
  width: 4px;
  background: var(--color);
  margin-right: 1rem;
}

#m311-root p {
  padding: 0 2rem;
}

.m311 .brand-button {
  --size: 6rem;
  height: var(--size);
  width: var(--size);
}

.m311 .with-label {
  flex-direction: column;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px white;
  font-weight: 500;
  align-items: center;
  width: calc(100%/6);
  margin: .5rem 0;
  min-width: 150px;
}

.m311 .with-label .label {
margin: .5rem 0;
text-align: center;
}

.m311 {
  flex-wrap: wrap;
  justify-self: center;
  margin: 1.5rem 0 1rem;
}

#m311-root .success,
#m311-root .success *{
  --color: var(--business);
}

#m311-root .success {
  flex-direction: column;

}

#m311-root .success h4 {
  color: var(--business-dark);
}

#m311-root .success svg {
  stroke: var(--business-dark);
  margin-left: 1rem;
}

#m311-root .success .button {
  color: white;
  background: var(--business-med);
  width: max-content;
  margin-top: 2rem;
  padding: 1rem 2rem;
  justify-self: flex-end;
}

/*#m311-*/

#m311-root .upload-dropzone {
  position:relative;
}

#m311-root .alert {
  padding: .5rem 1rem;
  border-radius: .25rem;
  margin: .25rem 2rem;
  border: 2px solid var(--visitor);
  background: var(--visitor-lt);
}

#m311-root .alert + p {
  margin-top: .25rem;
}

#m311-root .upload-dropzone span {
  z-index: 2;
}

#m311-root .background-image {
  position: absolute;
  stroke: white;
  opacity: .28;
  padding: 4rem;
  height: 100% !important;
  width: 100% !important;
  stroke-width: 1px;
  z-index: 1;
}

#m311-root svg:not(.background-image) {
  z-index: 2;
}

#m311-root .division-container > * {
  width: 50%;
  flex-direction: column;
  flex-shrink: 0;
}

#m311-root .inset {
  margin: 1rem 2rem 1.5rem;
  padding: 0.5rem;
  box-shadow: var(--concave-sm);
  width: calc(100% - 10rem);
  border-radius: 0.5rem;
  border: 1px solid var(--contrast-less);
  align-items: center;
  background: var(--compare-more);
  height: 2.5rem;
}

#m311-root .inset svg {
  stroke-width: 1.5;
  width: 18px;
  height: 18px;
  margin-right: .5rem;
}

#m311-root :is(textarea, .inset, .search):focus-within {
  outline: 2px solid var(--color);
}

#m311-root .file {
  border-radius: .5rem;
  border: 1px dashed var(--color-med);
}


#m311-root .image-container {
  border-radius: var(--circle);
  padding: .25rem;
}

#m311-root .button {
  margin: .5rem 0;
  margin-left: 2rem;
  border-radius: .25rem;
  border: .5px solid var(--contrast);
  padding: .25rem .5rem;
  align-items: center;
  width: min-content;
  box-shadow: none;
  cursor: pointer;
  padding-right: 1.5rem;
  text-transform: capitalize;
  font-weight: 300;
  letter-spacing: .2px;
}

#m311-root [type="submit"] {
  padding-right: 1rem;
}

#m311-root .back:hover {
  background: var(--compare);
  cursor: pointer;
  box-shadow: var(--concave-sm);
}

#m311-root .location-request {
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

  #m311-root .location-request > * {
    margin: .5rem 0;
  }

.align-items {
  align-items: center;
}

#m311-root .search {
  padding: .5rem .25rem;
  border-radius: var(--circle);
  border: 1px solid var(--contrast);
  flex-direction: column;
  background: white;
  color: var(--contrast);
  width: calc(100% - 4rem);
  box-shadow: var(--concave-sm);
}



#m311-root :is(.switch, svg) {
  cursor: pointer;
}

#m311-root .search svg {
  margin: 0 .5rem;
  stroke-width: 1.5;
}

#m311-root .button-row svg {
  stroke-width: 1.5;
}


#m311-root input + svg:hover {
  color: red;
}

#m311-root .search [type="text"] {
  margin: 0 .5rem;
  width: 100%;
}

#m311-root .search .lower {
  display: none;
}

#m311-root .search.active .lower {
margin: .25rem;
padding-top: .25rem;
border-top: 1px solid var(--contrast);
display: flex;
}

#m311-root .upload-dropzone {
  height: 100%;
  border-width: 1px;
  background: var(--color-highlight);
  min-height: unset;
}

#m311-root .content {
  height: 100%;
  padding: 0 2rem;
}


#m311-root button {
  align-items: center;
  justify-content: center;
  padding: .25rem .5rem;
}

#m311-root .map {
  height: inherit;
  position: relative;
  background: #f7f6d5;
  box-shadow: var(--float-close);
  border-radius: .5rem;
  overflow: hidden;
}

#m311-root .upper {
  align-items: center;
}

#m311-root p :is(.marker, svg) {
  display: inline-flex !important;
}

#m311-root .address-list {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: .5rem;
  border-radius: .25rem;
  box-shadow: var(--float-close);
  border: 1px solid var(--color);
  background: var(--compare-more);
  flex-direction: column;
  z-index: 3000;
}

#m311-root .info-label {
   margin-left: 2rem;
   text-transform: uppercase;
   font-weight: 300;
   text-shadow: 1px 1px 1px var(--compare-more);
   letter-spacing: .2px;
   align-items: center;
}

#m311-root .info-label .slider {
  margin-left: 1rem;
}

#m311-root .flat {
  margin-bottom: 1.5rem;
}


#m311-root .user {
  margin-left: 2rem;
  font-weight: 500;
}

#m311-root .info-label svg {
  stroke-width: 1.5 ;
  height: 18px ;
  width: 18px ;
  margin-right: .5rem;
}

#m311-root .address-list-label {
  padding: .5rem 1rem;
  background: var(--color-med);
  color: white;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

#m311-root .address-list ul {
  margin: 1rem;
  overflow: auto;
}

#m311-root .legend {
  position: absolute;
  bottom: 1.25rem;
  right: 0.5rem;
  font-size: 13px;
  transform-origin: bottom right;
  background: white;
  padding: .5rem 1rem;
  border-radius: .5rem;
  flex-direction: column;

}

#m311-root .legend > div {
  align-items: center;
  padding: .25rem 0;
}

#m311-root .legend svg {
  margin-right: .5rem;
}

#m311-root .result {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  max-width: calc(100% - 4rem);
  border: 1px solid var(--color-med);
  box-shadow: var(--float);
  border-radius: 0.25rem;
  border-bottom-right-radius: 0rem;
  font-weight: 300;
  text-shadow: -1px 1px 1px var(--compare);
  border-right-width: 8px;
}


#m311-root .map-pin svg {
  fill: var(--color);
  stroke: var(--color-dark);
  stroke-width: 1px;
  height: 18px !important;
  width: 18px !important;
}

#m311-root .map-pin circle {
  fill: white;
  r: 5 !important;
}

#m311-root .marker svg {
  fill: var(--resident);
  stroke: var(--resident-dark);
  stroke-width: 1px;
  height: 18px !important;
  width: 18px !important;
}

#m311-root p .marker {
  position: relative;
}

#m311-root p svg {
  position: absolute;
  transform-origin: bottom right;
  bottom: -3px;
  left: 4px;
}

#m311-root .address-list li {
  padding: .25rem .5rem;
  border-bottom: 1px solid var(--compare);
}

#m311-root .address-list li:hover {
  cursor:pointer;
  background: var(--compare);
}

#m311-root textarea {
  margin: 1rem 2rem .5rem;
  min-height: 10rem;
  padding: 1rem 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--concave-sm);
}


#m311-root .button + .button{
  margin-left: .5rem;
  color: white;
  background: var(--color);
}

#m311-root .sending {
  background: var(--visitor) !important;
  color: var(--contrast) !important;
}

#m311-root img {
  max-width: 300px;
  max-height: 300px;
  object-fit: scale-down;
}

#m311-root .fileRow {
  position: relative;
  align-items: flex-start;
}


#m311-root :is(.checkmark , .x-mark) {
  bottom: 0;
  top: unset !important;
  right: 0;
  left: unset !important;
}

#m311-root .errors-list {
  margin: .5rem 2rem;
  padding: .5rem 1rem;
  border: 2px solid var(--resident);
  border-radius: .25rem;
  background: white;
  border-left-width: .5rem; 
  flex-direction: column;
}

#m311-root .error-item {
  align-items: center;
  margin: .5rem;
}

#m311-root .error-item:before {
  content:"";
  width: 1.5ch;
  height: 1ch;
  background: var(--resident);
  clip-path: var(--triangle);
  margin-right: .5rem;
  transform: rotate(-90deg);
}

#m311-root .file .button {
  margin: .5rem 0;
}

@media screen and (max-width: 600px) {
  #m311-root .upload-dropzone {
    flex-direction: row;
    min-height: 4rem;
    border-radius: .5rem;
  }
  #m311-root .upload-dropzone svg {
    margin-right: .5rem;
    stroke: 1.5;
  }

  #m311-root .division-container {
    flex-direction: column;
  }

  #m311-root :is([type="tel"], textarea) {
    margin: .5rem 0 1rem;
  }

  #m311-root .info-label {
    margin: 0;
  }

#m311-root .division-container > * {
  width: 100%;
}

  #m311-root .map {
    height: 50vh;
  }

  #m311-root {
    position: relative;
  }

  #m311-root :is(h4, p){
    padding: 0rem;
  }

  #m311-root .alert {
   margin: .25rem 0;
  }

  #m311-root img {
    max-width: 100%;
  }

  #m311-root .button-row {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--compare);
  }

  #m311-root .button-row .button {
    width: 50%;
    margin: .5rem !important;
  }

   #m311-root .search {
     width: 100%;
   }

    #m311-root .content {
      padding: 0rem;
    }

    #m311-root .errors-list {
      margin: 1rem 0;
    }

    #m311-root .filename {
      flex-direction: column;
    }

    #m311-root .file {
      padding: 0rem;

    }

}

#m311-root .has-icon {
  align-self: center;
  padding: .5rem 1rem .5rem .5rem !important;
  background: white;
  margin-right: 1rem;
}

#m311-root .clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 400px;
  white-space: normal;
}
