.wizard-horz {
  border: var(--s-card-border);
  box-shadow: var(--s-card-shadow);
  border-radius: var(--bs-border-radius);
  position: relative;
  min-height: 48px;
}

  .wizard-horz .wizard-grid {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    overflow: hidden;
  }

  .wizard-horz .tab-pane {
    padding: 15px;
  }

  .wizard-horz .property-panes > .tab-pane:not(.active) {
    display: none !important;
  }

  .wizard-horz ul.property-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style: none outside none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

    .wizard-horz ul.property-tabs li {
      flex: 1 1 auto;
      margin: 0;
      padding: 0 20px 0 30px;
      height: 46px;
      line-height: 46px;
      position: relative;
      background: var(--bs-body-bg);
      color: var(--bs-body-color);
      font-size: 16px;
      cursor: not-allowed;
    }

      .wizard-horz ul.property-tabs li > .has-secondary-text {
        display: inline;
      }

        .wizard-horz ul.property-tabs li > .has-secondary-text > h4 {
          display: inline;
          font-size: 16px;
          font-weight: normal;
        }

        .wizard-horz ul.property-tabs li > .has-secondary-text > small {
          display: none;
        }

      .wizard-horz ul.property-tabs li .chevron {
        border: 24px solid transparent;
        border-left: 14px solid rgba(var(--s-bright-rgb), 0.15);
        border-right: 0;
        display: block;
        position: absolute;
        right: -14px;
        top: 0;
        z-index: 1;
      }

html[dir="rtl"] .wizard-horz ul.property-tabs li .chevron {
  border-left: 0;
  border-right: 14px solid rgba(var(--s-bright-rgb), 0.15);
  right: auto; 
  left: -14px;
}

        .wizard-horz ul.property-tabs li .chevron:before {
          border: 24px solid transparent;
          border-left: 14px solid var(--bs-body-bg);
          border-right: 0;
          content: "";
          display: block;
          position: absolute;
          right: 1px;
          top: -24px;
        }

html[dir="rtl"] .wizard-horz ul.property-tabs li .chevron:before {
  border-left: 0;
  border-right: 14px solid var(--bs-body-bg);
  right: auto;
  left: 1px;
}

      .wizard-horz ul.property-tabs li.active {
        background: var(--s-card-border);
        cursor: default;
      }

        .wizard-horz ul.property-tabs li.active .chevron:before {
          border-left: 14px solid var(--s-card-border);
        }

html[dir="rtl"] .wizard-horz ul.property-tabs li.active .chevron:before {
  border-left: 0;
  border-right: 14px solid var(--s-card-border);
}

      .wizard-horz ul.property-tabs li .badge {
        background-color: rgba(var(--bs-primary-rgb), 0.5);
        border-radius: 1em;
        text-align: center;
        font-size: 14px;
        font-family: var(--s-tabular-font);
      }

      .wizard-horz ul.property-tabs li.active .badge {
        background-color: var(--bs-primary);
      }

      .wizard-horz ul.property-tabs li span.text {
        margin-inline-start: 4px;
      }

      .wizard-horz ul.property-tabs li .badge-success {
        background-color: rgba(var(--bs-success-rgb), 0.7);
      }

      .wizard-horz ul.property-tabs li:first-child {
        border-radius: var(--bs-border-radius) 0 0 0;
        /*padding-left: 20px;*/
      }

html[dir="rtl"] .wizard-horz ul.property-tabs li:first-child {
  border-radius: 0 var(--bs-border-radius) 0 0;
 /* padding-right: 0;
  padding-left: 20px;*/
}

  .wizard-horz.compact-steps span.text {
    display: none;
  }

  .wizard-horz.compact-steps ul.property-tabs > li.active span.text {
    display: inline;
  }

  .wizard-horz.compact-steps ul.property-tabs > li:hover span.text {
    display: inline;
  }

  /*.wizard-horz .buttons {
    padding: 0.75rem 0.5rem;
}

.wizard-horz .buttons button {
    margin-left: 6px;
}*/

  .wizard-horz .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
  }

    .wizard-horz .buttons button {
      flex: 1 1 auto;
      min-width: 100px;
    }

  .wizard-horz ul.property-tabs li .chevron {
    display: none;
  }

@media (min-width: 576px) {
  .wizard-horz .buttons button {
    flex: 0 0 auto;
  }
}

@media (min-width: 576px) {
  .wizard-horz ul.property-tabs li .chevron {
    display: block;
  }
}

.wizard-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .wizard-loading .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
  }

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

