/* Theme color variables - override these in flavour theme.css */
:root {
  --theme-primary: #b4191f;
  --theme-primary-light: #b4191f;
  --theme-primary-dark: #245e11;
  --theme-header-bg: #b4191f;
}

.align-middle {
  display: flex;
  align-items: center;
}

.button-selected,
label.button.button-selected,
.button.button-secondary.button-selected {
  background-color: var(--theme-primary) !important;
  color: white !important;
}

.image-container {
  background-color: rgba(36, 131, 134, 0.247);
  border-radius: 7px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.image-container img {
  height: 40px;
  margin-right: 20px;
}

.link-autobuild-video-container {
  margin-top: 20px;
}

.dragging .image-container {
  background: rgb(255, 155, 155);
}

.m-1 {
  margin: 1px 1px 1px 1px;
}
/* image upload */
.image-container {
  height: 200px;
  width: 100%;
  cursor: move;
}

#mydrop,
.sortable {
  cursor: pointer;
}

.sortable-container .image:first-child {
  background-color: var(--theme-primary);
}
.sortable-container .image.lifted:first-child:after {
  display: none;
}

/* .sortable-container .image:first-child:after {
  content: "Primary Photo";
  width: 100%;
  position: absolute;
  bottom: 0;
  text-align: center;
  height: 25px;
  background: var(--theme-primary);
  justify-content: center;
  align-items: center;
  color: #fff;
  padding-top: 4px;
  border-radius: 0px 0px 0.4rem 0.4rem;
} */

.sortable-container .image:nth-child(1)::before,
.sortable-container .image.property:nth-child(2)::before,
.sortable-container .image.property:nth-child(3)::before {
  content: "Featured Photo";
  width: 100%;
  position: absolute;
  top: 0;
  text-align: center;
  height: 25px;
  background: var(--theme-primary);
  justify-content: center;
  align-items: center;
  color: #fff;
  padding-top: 4px;
  border-radius: 0.4rem 0.4rem 0px 0px;
}

.sortable-container .image:first-child::before {
  content: "Primary Photo";
}

.sortable-container .image.property:first-child::before {
  content: "Featured Photo";
}

.sortable-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: 20px;
}

@media only screen and (max-width: 600px) {
  .sortable-container {
    grid-template-columns: 1fr;
  }
}

.sortable-container .image {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 200px;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  border: 3px dashed rgb(214, 214, 214);
}
.sortable-container img {
  max-width: 100%;
  max-height: 100%;
}

.close-button {
  position: absolute;
  right: -15px;
  top: -15px;
  width: 30px;
  height: 30px;
  background: white;
  z-index: 2;
  border-radius: 100%;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.close-button:before,
.close-button:after {
  top: 6px;
  position: absolute;
  left: 14px;
  content: " ";
  height: 18px;
  width: 3px;
  background-color: rgb(163, 163, 163);
}

.close-button:hover:before,
.close-button:hover:after {
  opacity: 1;
  background-color: #333;
}
.close-button:before {
  transform: rotate(45deg);
}
.close-button:after {
  transform: rotate(-45deg);
}

/* map */
#map {
  min-width: 200px;
  width: 100%;
  min-height: 300px;
}

.map_widget > label {
  display: none;
}

.map_widget > .field-content {
  width: 100%;
}

.required {
  color: #cd3238;
}


footer.footer .actions {
  width: 500px;
}

footer.footer .actions .dropdown {
  display: flex;
}

.actions .dropdown button{
max-width: 250px;
}

.actions .dropdown .action-next{
  margin-left: 20px;
  background: #f1f1f1;
  border: 1px solid #f1f1f1;
  color:  #262626;
}

.actions .dropdown .action-next:hover{
  background: #ddd;
  border: 1px solid #ddd;
  color:  #262626;
}

.action-next.button:disabled, .action-next:disabled:hover {
  background: #d9d9d9;
  border: 1px solid #d9d9d9;
}
.tab-nav.merged {
  position: sticky;
  top: 0;
  z-index: 5;
}

.object.multi-field.fixed .title-wrapper{
  position: fixed;
  top: 45px;
  left: 200px;
}

.location-select {
  text-transform: capitalize;
}

#loader-percent {
  height: 100vh;
  width: calc(100vw - 200px);
  background: rgba(255,255,255,0.5);
  position: fixed;
  top: 0;
  left: 200px;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  overflow: hidden;
  display: none;
}


.loader-container {
  top: -10vh;
  left: -10vh;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 450px;
  max-width: 80%;

}

.loader-bar {
  height: 10px;
  width: 100%;
  background: #efefef;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar .bar {
  height: 100%;
    background: var(--theme-primary);
  width: 1%;
}

.loader-label {
  margin-top: 5px;
  color: #555;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
}

/* loader */
.loader {
  color: var(--theme-primary);
  font-size: 40px;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
  animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}
@-webkit-keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}
@keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}
@-webkit-keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* theme override */
header {
  background: var(--theme-header-bg);
}

.changelist-filter li.selected a {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary) !important;
}

.tab-nav.merged {
  background-color: var(--theme-header-bg);
}

.tab-nav a {
  background-color: var(--theme-primary);
  border-top: .3em solid var(--theme-primary);
}

.tab-nav li.active a {
  border-top: .3em solid var(--theme-primary-dark);
}

.tab-nav li a:hover {
  border-top: .3em solid var(--theme-primary-dark);
}

.button {
  border: 1px solid var(--theme-primary);
  background-color: var(--theme-primary);
}



.button-secondary {
  color: var(--theme-primary);
  background: transparent;
}

.button-selected, .button:hover {
  background-color: var(--theme-primary);
  color: #fff;
}


ul.field-row {
  display: flex;
  align-items: center;
  padding-top: 1.2em !important;
}

ul.field-row .boolean_field label {
  padding-bottom: 0;
}





@media only screen and (max-width: 600px){
  .tab-nav.merged {
    display: flex;
    width: 100%;
    overflow: scroll;
  }
  .tab-nav.merged a{
    white-space: nowrap;
  }

  #loader-percent,
  .object.multi-field.fixed .title-wrapper{
    top: 45px;
    left: 0;
  }
  footer .actions .dropdown .button {
    margin: 4px;
  }
  footer .actions {
    width: 100%;

  }
  footer .actions .dropdown {
    justify-content: center;
  }
  .content {
    padding-bottom: 10em;
  }
  ul.field-row {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    width: 100%;
    margin: 0;
  }
}

ul.multiple {
    max-width: 100% !important;
}

li.null_char_field{
  display: none;
}

li.widget-tab.ui-tabs-active{
  background: var(--theme-primary) !important;
  border: var(--theme-primary) !important;
}

.error-container {
  border: 1px solid #dc3238;
}

/* Features tab - checkbox button layout */
#tab-features .w-field__input {
  display: flex;
  flex-wrap: wrap;
}
