/* ---------- card base ---------- */
.shepherd-element {
  /*--shepherd-bg: #ffffff;
  --shepherd-header-bg: #f1f2f3;
  --shepherd-text: #212529;
  --shepherd-border: rgba(0, 0, 0, .15);
  --shepherd-radius: 6px;
  --shepherd-shadow: 0 8px 24px rgba(0, 0, 0, .18);*/
  --shepherd-bg: #ffffff;
  --shepherd-header-bg: #ffffff;
  --shepherd-text: #212529;
  --shepherd-border: rgba(0, 0, 0, .15);
  --shepherd-radius: 0px;
  --shepherd-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  --bs-danger-rgb: 220, 53, 69

  background: var(--shepherd-bg) !important;
  color: var(--shepherd-text) !important;
  border: 2px solid var(--shepherd-border) !important;
  border-radius: var(--shepherd-radius) !important;
  box-shadow: var(--shepherd-shadow) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 400px;
  overflow: hidden;
}

/* ---------- header (flex, una riga) ---------- */
.shepherd-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: .75rem 1rem !important;
  background: var(--shepherd-header-bg) !important;
  border-bottom: 1px solid var(--shepherd-border) !important;
  margin: 0 !important;
}

/* titolo + contatore nella stessa riga */
.shepherd-title {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: baseline !important;
  gap: .5rem !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}

.shepherd-title-text {
  flex: 1 1 auto !important;
}

.shepherd-step-counter {
  font-size: .85rem !important;
  color: #6c757d !important;
  margin-right: 1rem !important;
}

/* ✕ chiusura */
.shepherd-cancel-icon {
  order: 2 !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.6rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-left: .5rem !important;
  color: #6c757d !important;
  cursor: pointer !important;
  transition: color .25s ease !important;
}
.shepherd-cancel-icon:hover { color: #000 !important; }

/* ---------- progress bar (full-width, sotto header) ---------- */
.shepherd-progress {
  height: 4px !important;
  background: #e9ecef !important; /* sfondo grigio chiaro */
  margin: .5rem 0 0 0 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.shepherd-progress .progress-bar {
  height: 100% !important;
  background: #3288e6 !important; /* colore demo ufficiale */
  transition: width .3s ease !important;
}

/* ---------- body ---------- */
.shepherd-text {
  padding: 1rem !important;
  font-size: .95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ---------- footer (bottoni) ---------- */
.shepherd-footer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: .5rem !important;
  padding: 0 1rem 1rem !important;
  border-top: none !important;
  background: transparent !important;
}

/* bottoni stile demo ufficiale */
.shepherd-button {
  background: #3288e6 !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: #ffffffbf !important;
  cursor: pointer !important;
  font-size: .875rem !important;
  padding: .5rem 1.25rem !important;
  transition: all .3s ease !important;
}
.shepherd-button:not(:disabled):hover {
  background: #196fcc !important;
  color: #fff !important;
}

/* varianti secondarie */
.shepherd-button.shepherd-button-secondary {
  background: #f1f2f3 !important;
  color: #000000bf !important;
}
.shepherd-button.shepherd-button-secondary:not(:disabled):hover {
  background: #d6d9db !important;
}

.shepherd-button:disabled {
  cursor: not-allowed !important;
  opacity: .5 !important;
}

/* ---------- freccia ---------- */
.shepherd-arrow { z-index: -1 !important; }

/* ---------- footer demo ufficiale ---------- */
.shepherd-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 0 .75rem .75rem;
}

.shepherd-button {
  background: #3288e6;
  border: 0;
  border-radius: 3px;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: .875rem;
  padding: .5rem 1.25rem;
  transition: all .3s ease;
}
.shepherd-button:hover { background: #196fcc; }

.shepherd-button-secondary {
  background: #f1f2f3;
  color: rgba(0,0,0,.75);
}
.shepherd-button-secondary:hover { background: #d6d9db; }








/*.shepherd-button {
    background: #3288e6;
    border: 0;
    border-radius: 3px;
    color: hsla(0,0%,100%,.75);
    cursor: pointer;
    margin-right: .5rem;
    padding: .5rem 1.5rem;
    transition: all .5s ease
}

.shepherd-button:not(:disabled):hover {
    background: #196fcc;
    color: hsla(0,0%,100%,.75)
}

.shepherd-button.shepherd-button-secondary {
    background: #f1f2f3;
    color: rgba(0,0,0,.75)
}

.shepherd-button.shepherd-button-secondary:not(:disabled):hover {
    background: #d6d9db;
    color: rgba(0,0,0,.75)
}

.shepherd-button:disabled {
    cursor: not-allowed
}*/

/*.shepherd-footer {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    justify-content: flex-end;
    padding: 0 .75rem .75rem
}

.shepherd-footer .shepherd-button:last-child {
    margin-right: 0
}

.shepherd-cancel-icon {
    background: transparent;
    border: none;
    color: hsla(0,0%,50%,.75);
    cursor: pointer;
    font-size: 2em;
    font-weight: 400;
    margin: 0;
    padding: 0;
    transition: color .5s ease
}*/

/*.shepherd-cancel-icon:hover {
    color: rgba(0,0,0,.75)
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon {
    color: hsla(0,0%,50%,.75)
}

.shepherd-has-title .shepherd-content .shepherd-cancel-icon:hover {
    color: rgba(0,0,0,.75)
}

.shepherd-title {
    color: rgba(0,0,0,.75);
    display: flex;
    flex: 1 0 auto;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    padding: 0
}

.shepherd-header {
    align-items: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: flex-end;
    line-height: 2em;
    padding: .75rem .75rem 0
}

.shepherd-has-title .shepherd-content .shepherd-header {
    background: #e6e6e6;
    padding: 1em
}

.shepherd-text {
    color: rgba(0,0,0,.75);
    font-size: 1rem;
    line-height: 1.3em;
    padding: .75em
}

.shepherd-text p {
    margin-top: 0
}

.shepherd-text p:last-child {
    margin-bottom: 0
}*/

.shepherd-content {
    border-radius: 5px;
    outline: none;
    padding: 0
}

.shepherd-element {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    max-width: 400px;
    opacity: 0;
    outline: none;
    transition: opacity .3s,visibility .3s;
    visibility: hidden;
    width: 100%;
    z-index: 9999
}

.shepherd-enabled.shepherd-element {
    opacity: 1;
    visibility: visible
}

.shepherd-element[data-popper-reference-hidden]:not(.shepherd-centered) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden
}

.shepherd-element,.shepherd-element *,.shepherd-element :after,.shepherd-element :before {
    box-sizing: border-box
}

.shepherd-arrow,.shepherd-arrow:before {
    height: 16px;
    position: absolute;
    width: 16px;
    z-index: -1
}

.shepherd-arrow:before {
    background: #fff;
    content: "";
    transform: rotate(45deg)
}

.shepherd-element[data-popper-placement^=top]>.shepherd-arrow {
    bottom: -8px
}

.shepherd-element[data-popper-placement^=bottom]>.shepherd-arrow {
    top: -8px
}

.shepherd-element[data-popper-placement^=left]>.shepherd-arrow {
    right: -8px
}

.shepherd-element[data-popper-placement^=right]>.shepherd-arrow {
    left: -8px
}

.shepherd-element.shepherd-centered>.shepherd-arrow {
    opacity: 0
}

.shepherd-element.shepherd-has-title[data-popper-placement^=bottom]>.shepherd-arrow:before {
    background-color: #e6e6e6
}

.shepherd-target-click-disabled.shepherd-enabled.shepherd-target,.shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
    pointer-events: none
}

.shepherd-modal-overlay-container {
    height: 0;
    left: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: all .3s ease-out,height 0ms .3s,opacity .3s 0ms;
    width: 100vw;
    z-index: 9997
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    height: 100vh;
    opacity: .5;
    transform: translateZ(0);
    transition: all .3s ease-out,height 0s 0s,opacity .3s 0s
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
    pointer-events: all
}


/**/
.shepherd-extra-highlight {
  position: relative;
  z-index: 10001;
  /*box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb), .8);*/
  border-radius: 2px;
  background-color: rgba(255,255,255,.85);
  /* transizione morbida */
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.shepherd-target {
  position: relative;
  z-index: 10001;
  /* stile evidenziazione */
  /*box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb), .8);*/
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  /* transizione morbida */
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
