#ot-sdk-btn-floating.ot-floating-button {
  right: 1% !important;
  left: initial !important;
}

.avns-mkgc-builder {
  display: flex;
  background: #f3f3f3;
}

.avns-mkgc-builder__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 0%;
  padding-top: 1rem;
}

.avns-mkgc-builder__sidebar {
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: white;
}

.avns-mkgc-builder__sidebar-content {
  flex: 1 0 0%;
  padding: 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .avns-mkgc-builder__sidebar-title {
    font-size: 24px;
    line-height: 28px;
  }

  hr {
    width: 100%;
    margin: 0;
    color: #d9d9d9;
    border: 0;
    height: 1px;
    background: #d9d9d9;
    flex-shrink: 0;
  }

  fieldset {
    border: 0;
    padding: 0;
  }


  .avns-mckg-ui-label {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  label,
  fieldset legend {
    font-weight: 600;
    margin-bottom: 6px;
  }
}

.avns-mkgc-builder__sidebar-footer {
  flex-shrink: 0;
  padding: 1rem;
  box-shadow: 0px -4px 34px 0px #0000001a;
}

.avns-mkgc-ui-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.avns-mkgc-ui-error {
  color: #7f1d1d;
}

.avns-mkgc-ui-input,
.avns-mkgc-ui-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.avns-mkgc-builder__radio--image {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;

  label {
    position: relative;
    display: block;
    width: 70px;
    height: 70px;
  }

  input {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    margin: 0;
    border-radius: 6px;
  }

  input + img {
    display: block;
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 6px;
  }

  input:checked + img {
    outline: solid 2px #f16c24;
    outline-offset: 1px;
  }
}

.avns-mkgc-builder__radio {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;

  label {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.25rem;
    border: solid 2px transparent;
    border-radius: 0.25rem;
  }

  input {
    margin: 0;
    padding: 0;
    accent-color: #f16c24;
  }

  .avns-mkgc-builder__radio--active {
    border-color: #f16c24;
  }
}

.avns-mkgc-builder__dialog {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 450px;
  max-width: 90%;
  padding: 1.5rem;
  background: white;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);

  h2 {
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #cf3f6c;
  }

  .avns-mkgc-builder__dialog__link {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: solid 1px #ddd;
    text-align: center;
  }

  .avns-mkgc-builder__dialog__actions {
    display: flex;
    gap: 1rem;
  }
}

.avns-mkgc-card__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3cqh;
  color: #939395;

  img {
    margin-bottom: 2cqh;
  }

  .avns-mkgc-card__empty-state-title {
    margin-bottom: 1cqh;
    font-size: clamp(1.25rem, 7cqw, 7cqw);
  }

  .avns-mkgc-card__empty-state-desc {
    font-size: clamp(1rem, 4cqw, 4cqw);
  }
}

@media (min-width: 992px) {
  .avns-mkgc-builder__mobile-only {
    display: none !important;
  }

  .avns-mkgc-builder__sidebar {
    position: sticky;
    left: 0;
    top: calc(var(--avns-mg-header-h) + var(--wp-admin--admin-bar--height, 0px));
    width: var(--avns-mg-sidebar-w);
    height: calc(100vh - var(--avns-mg-header-h) - var(--wp-admin--admin-bar--height, 0px));
  }
}

@media (max-width: 991px) {
  .avns-mkgc-builder__desktop-only {
    display: none !important;
  }

  .avns-mkgc-builder__main {
    flex-direction: column;
    gap: 1rem;
  }

  .avns-mkgc-builder__sidebar {
    display: none;
  }

  .avns-mkgc-builder__sidebar.avns-mkgc-builder__sidebar--open {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: 100;
  }
}

.avns-mkgc-builder__mobile-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  box-shadow: 0px -4px 34px 0px #0000001a;
  background: #fff;
  text-align: center;
}

.avns-mkgc-builder__mobile-actions:empty {
  padding: 0;
}
