/* ========================================== Buttons */
.button {
  position: relative;

  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 0;
  padding: 0;

  cursor: pointer;
  border-radius: 0;
  transition: .2s ease-in-out;

  background-color: transparent;

  text-align: center;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
  text-shadow: none;
  text-decoration: none;
  font-weight: 500;

  -webkit-tap-highlight-color: transparent;

  outline: 0;
}

.button__loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: rgba(255,255,255,.6);
}

@keyframes loader-rotate {
  to {
    transform: rotate(360deg);
  }
}

.button__loader:before {
  position: absolute;
  top: calc(50% - 5px);
  left: calc(50% - 5px);

  width: 10px;
  height: 10px;
  border: 2px solid transparent;

  border-left-color: black;
  border-radius: 100%;

  animation: .5s loader-rotate both linear infinite;

  content: '';
}

.button__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);

  transform: translateX(-50%);

  min-width: 175px;
  padding: 8px 16px;

  background: #353535;
  border-radius: 8px;

  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: #fff;

  opacity: 0;
  visibility: hidden;

  transition: .2s ease-in-out;
}

.button:hover .button__tooltip {
  opacity: 1;
  visibility: visible;
}

.button__tooltip:before {
  position: absolute;
  top: 100%;
  left: calc(50% - 8px);

  width: 0;
  height: 0;

  border: 8px solid transparent;
  border-top-color: #353535;

  content: '';
}

.button--add {
  width: 100%;
  padding: 12px;
  border: 1px solid #0057FF;

  background: #fff;
  border-radius: 2px;

  color: #0057FF;
  font-size: 14px;
  font-weight: normal;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.button--add:before {
  width: 12px;
  height: 12px;
  margin-right: 11px;

  background: url('../img/ico/plus3.png') center no-repeat;

  content: '';
}

.button--add.image-upload--poster_large {
  max-width: 600px;
}

.button--delete {
  width: 20px;
  height: 20px;

  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACeSURBVHgBfZC9DcJADIWfo0t/FXMwwlEwwI3CJBklA1CQEZiDJqHmwPhJSWS5iCVLZ7/PP2eZS86aMDbB7XRfnnA2X/MZKgOa1k6TjICUpPJ4UXCQWk6BwkZCkZBp2XxpopfeHhpywuoIr013iCvJNirA8BCDbgN7HJv4xQ9HR4gCqfhBG213CtX0tYDdc/ph6PDRasHkF6c5eHp/Uf/V1mztxwKl8wAAAABJRU5ErkJggg==') center no-repeat;
}

.button--save {
  width: 100%;
  padding: 15px;
  justify-content: center;

  background-color: #0057FF;

  font-size: 14px;
  line-height: 130%;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.14px;
  color: #fff;
}

.button--save[disabled] {
  opacity: .5;

  cursor: not-allowed;
}

.button--info {
  width: 100%;
  padding: 15px;
  justify-content: center;

  background-color: #EFEFEF;

  font-size: 14px;
  line-height: 130%;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.14px;
  color: #353535;
}

.button--info.button--icon {
  padding: 10px;
  width: 48px;
  height: 42px;
}

.button--link {
  font-size: 12px;
  color: #0057FF;
  line-height: 130%; /* 18.2px */
  letter-spacing: 0.14px;
}

.button--no-uppercase {
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.button--link img {
  margin-right: 10px;
}

.button--success {
  background: #B5FF57;
  flex: 0 0 auto;
  flex-basis: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  gap: 8px;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #242424;
}

/* ========================================== Card */
.card--fixed {
  position: fixed;
  z-index: 100;
}

.card--fixed-bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

.card-group + .card-group {
  border-top: 1px solid #F2F2F2;
  padding-top: 15px;
  margin-top: 15px;
}

.card-group__header {
  margin-bottom: 15px;
}

.card-group__header p {
  font-size: 14px;
}

.card-group__title {
  margin-bottom: 0;

  color: #353535;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.01em;
}

.card-group__title span {
    color: #ee4411;
}

.card-group__info {
  letter-spacing: 0.01em;
  font-size: 12px;
  color: #949494;
}

/* ========================================== ImageUpload */
.image-upload {
  position: relative;

  margin-bottom: 15px;

  background-color: #fff;
}

.image-upload__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;

  width: 30px;
  height: 30px;
  justify-content: center;

  border-radius: 100%;
  background-color: rgba(92, 92, 92, 0.8);
}

.image-upload__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  background: #0057FF url('/wp-content/themes/adpass/app/img/placeholder.svg') center / 160px 80% no-repeat;

  pointer-events: none;
}

.image-upload__loader {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;

  opacity: 0;
  visibility: hidden;

  transition: .2s ease-in-out;

  pointer-events: none;
}

.image-upload__loader--show {
  opacity: 1;
  visibility: visible;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.image-upload__loader:before {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);

  width: 20px;
  height: 20px;
  border-left: 2px solid #000;

  border-radius: 100%;

  animation: .5s rotate linear both infinite;

  content: '';
}

.image-upload__view {
  position: relative;

  height: 100%;

  background: #0057FF center / cover no-repeat;
}

.image-upload--square {
  height: 220px;
  max-width: 220px;
}

.image-upload.image-upload--square.image-upload--poster {
  max-width: 310px;
  height: 265px;
}


.image-upload.image-upload--square.image-upload--poster_large {
  max-width: 600px;
  height: 300px;
}

.image-upload--rectangle .image-upload__view {
  height: 110px;
}

.image-upload__file {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  cursor: pointer;
}

.image-upload__input {
  position: absolute;
  overflow: hidden;
  height: 0;
  width: 0;
  visibility: hidden;
}

.image-upload__button {
  font-size: 16px;
  line-height: 27px;
  text-decoration-line: underline;
  color: #0057FF;
  font-weight: normal;
}

.profileEventsNav {
  margin-bottom: 20px;
}

.profileEventsList li {
  margin-right: 20px;
}

.profileEventsList > li > a {
    font-size: 12px;
    line-height: 130%; /* 15.6px */
    letter-spacing: 0.12px;
    color: #353535;
    transition: all .2s;
    padding: 10px;
    display: block;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #EFEFEF;
}

.profileEventsList li.active a {
    background: #353535;
    color: #fff;
}

.btn--promote-material {
  margin-top: 20px;
}