/* CSS usato da html/jsnew/poppy.js e html/jsnew/modules/modal.js
---------------------------------------------------------------------------- */
.poppy-modal {
  display: none;
}

.poppy-modal--show {
  display: flex;
}

.poppy-modal--overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.65);
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: scroll;
  cursor: pointer;
  opacity: 0;
  transition: opacity 250ms ease-in-out;
}

.poppy-modal--overlay__transparent {
  background-color: transparent;
}

.poppy-modal--overlay--shown {
  opacity: 1;
  transition: opacity 250ms ease-in-out;
}

.poppy-modal--noOverlayClose {
  cursor: default;
}

.poppy-modal-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
  cursor: auto;
}

.poppy-modal-box__content,
.poppy-modal-box__content.alert {
  background-color: #ffffff;
  line-height: 20px;
}

.poppy-modal-box__content {
  padding: 20px;
}

.poppy-modal-box__content.alert.alert-icon-top {
  padding: 60px 20px 20px 20px;
}

.poppy-modal-box__stickyClose {
  position: sticky;
  z-index: 2000 !important;
  top: 0;
  background-color: #ffffff;
  height: 40px;
}

.poppy-modal-box__stickyClose + .poppy-modal-box__content {
  position: relative;
  padding-top: 0;
}

.poppy-modal-box__header {
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 5px 0 5px 15px;
  color: #ffffff;
  background-color: #4e7dc7;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 700;
  letter-spacing: -0.1px;
  font-size: 16px;
  line-height: 20px;
  cursor: auto;
}

.poppy-modal-box__headerContent {
  padding-right: 30px;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.poppy-modal-box__header .poppy-modal__close {
  margin-left: auto;
}

.poppy-modal-box__header + .poppy-modal-box__content {
  padding: 15px 20px;
}

.poppy-modal-box__header--sticky {
  position: sticky;
  top: 0;
}

.poppy-modal-box__header svg,
.poppy-modal__close svg {
  stroke-width: 3px;
}

.poppy-modal__close ~ .poppy-modal-box__content.alert {
  padding-right: 40px;
}

.poppy-modal__close {
  float: right;
  min-width: 40px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.poppy-modal__close svg {
  stroke: #4e7dc7;
}

.poppy-modal__close:hover svg {
  stroke: #3b5e95;
}

.poppy-modal-box__header svg,
.poppy-modal-box__header .poppy-modal__close:hover svg {
  stroke: #ffffff;
}

.poppy-modal-box__footer {
  display: flex;
  padding: 10px 20px;
  cursor: auto;
  background-color: #ffffff;
}

.poppy-modal-box__footer--sticky {
  position: sticky !important;
  z-index: 5000;
  bottom: 0;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.poppy-modal-box__footer--reverse {
  flex-direction: row-reverse;
}

.poppy-modal-box__footer--center {
  justify-content: center;
}

.poppy-modal-box__footer--right {
  justify-content: flex-end;
}

.poppy-enabled {
  overflow: hidden;
}

.poppy-modal-box__content.alert {
  position: static;
  border: none;
}

.poppy-modal-box__content.alert + .poppy-modal-box__footer {
  padding: 15px;
}

.poppy-modal--alert-information .poppy-modal-box__header {
  background-color: #4e7dc7;
}

.poppy-modal--alert-information .poppy-modal-box > .poppy-modal__close {
  color: #4e7dc7;
}

.poppy-modal--alert-information .poppy-modal__close:hover {
  color: #3b5e95;
}

.poppy-modal--alert-information .poppy-modal-box__footer {
  border-top: 1px solid #cad8ee;
}

.poppy-modal--alert-success .poppy-modal-box__header {
  background-color: #16a55a;
}

.poppy-modal--alert-success .poppy-modal-box > .poppy-modal__close {
  color: #16a55a;
}

.poppy-modal--alert-success .poppy-modal__close:hover {
  color: #008234;
}

.poppy-modal--alert-success .poppy-modal-box__footer {
  border-top: 1px solid #a2dbbd;
}

.poppy-modal--alert-warning .poppy-modal-box__header {
  background-color: #ff9c1b;
}

.poppy-modal--alert-warning .poppy-modal-box > .poppy-modal__close {
  color: #ff9c1b;
}

.poppy-modal--alert-warning .poppy-modal__close:hover {
  color: #bf7514;
}

.poppy-modal--alert-warning .poppy-modal-box__footer {
  border-top: 1px solid #ffd7a4;
}

.poppy-modal--alert-error .poppy-modal-box__header {
  background-color: #fa0000;
}

.poppy-modal--alert-error .poppy-modal-box > .poppy-modal__close {
  color: #fa0000;
}

.poppy-modal--alert-error .poppy-modal__close:hover {
  color: #bb0000;
}

.poppy-modal--alert-error .poppy-modal-box__footer {
  border-top: 1px solid #fd9999;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__content,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__content.alert {
  border-radius: 5px;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__stickyClose,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__header,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__content.alert + .poppy-modal-box__header {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__footer {
  position: relative;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__header + .poppy-modal-box__content {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__stickyClose + .poppy-modal-box__content:before,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__stickyClose + .poppy-modal-box__content:after,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__footer:before,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__footer:after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  top: -5px;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__stickyClose + .poppy-modal-box__content:before,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__footer:before {
  left: 0;
}

.poppy-modal.poppy-modal--rounded .poppy-modal-box__stickyClose + .poppy-modal-box__content:after,
.poppy-modal.poppy-modal--rounded .poppy-modal-box__footer:after {
  right: 0;
}

.poppy-modal--animate .poppy-modal-box {
  transition: transform 700ms ease-in-out;
  transform: translate3d(0, -500%, 0);
}

.poppy-modal--animate .poppy-modal-box.poppy-modal-translateY {
  transition: transform 700ms ease-in-out;
  transform: translate3d(0, 0, 0);
}

.poppy-modal--fullscreen .poppy-modal-box,
.poppy-modal--sidebar .poppy-modal-box {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background-color: #ffffff;
}

.poppy-modal--fullscreen .poppy-modal-box.poppy-modal-opacity {
  opacity: 1;
  transition: opacity 250ms ease-in-out;
}

.poppy-modal--fullscreen .poppy-modal-box {
  max-width: none;
  width: 100vw;
  overflow: scroll;
  opacity: 0;
  transition: opacity 250ms ease-in-out;
}

.poppy-modal--sidebar .poppy-modal-box {
  max-width: 600px;
  transition: transform 250ms ease-in-out;
}

.poppy-modal--sidebar-left .poppy-modal-box {
  transform: translate3d(-100%, 0, 0);
}

.poppy-modal--sidebar-right .poppy-modal-box {
  transform: translate3d(100vw, 0, 0);
}

.poppy-modal--sidebar .poppy-modal-box.poppy-modal-translateX {
  overflow-y: scroll;
  transition: transform 250ms ease-in-out;
  transform: translate3d(0, 0, 0);
}

.poppy-modal--sidebar.poppy-modal--sidebar-right .poppy-modal-box.poppy-modal-translateX {
  overflow-y: scroll;
  transition: transform 250ms ease-in-out;
  transform: translate3d(calc(100vw - 100%), 0, 0);
}

.poppy-modal--fullscreen .poppy-modal-box {
  z-index: 9999 !important;
}

.poppy-modal--fullscreen .poppy-modal-box__header,
.poppy-modal--sidebar .poppy-modal-box__header {
  border-radius: 0;
}

@media (min-width: 480px) {
  .poppy-modal-box__content.alert.alert-icon-top {
    padding: 20px 20px 20px 60px;
  }
  .poppy-modal-box__content.alert.alert-icon-left {
    padding: 20px 20px 20px 60px;
  }
}
@media (min-width: 600px) {
  .poppy-modal-box {
    margin-top: 50px;
  }
}
