/*** MODAL COnfirm ***/
.component-modal-alert{
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: 105px 50px 1.5fr 1fr;

  & .component-modal-info-icon{
    font-size: 100px;
    justify-self: center;
    align-self: center;
    margin-top: -25px;

    &.success{
      color: #28a745;
    }
    &.warning{
      color: #FFC000;
    }
    &.error{
      color: #dc3545;
    }
    &.info{
      color: #3fc3ee;
    }
  }

  & .component-modal-title-text{
    justify-self: center;
    width: 370px;
    height: 30px;
    text-align: center;
    font-weight: bolder;
    font-size: x-large;
    color:  var(--color-text-S360);
  }

  & .component-modal-content-text{
    justify-self: center;
    text-align: center;
    color:  var(--color-text-S360);
    font-size: var(--font-size-large-S360);
    word-wrap: break-word;
    max-width: 370px;
  }
}

.offHeadV2{
  & .swalOPC-header {
      border-bottom: none !important;
      height: 0px !important;
  }
  & .swalOPC-body {
      padding-top: 0px;
  }
}

.component-modal-btn-group{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.component-modal-btn{
  height: 35px;
  width: fit-content;
  min-width: 100px;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
  text-align: center;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--border-radius-S360);
  user-select: none;
  cursor: pointer;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out, opacity .15s ease-in-out;
  overflow: hidden;

  &.success {
      background-color: var(--color-success-S360);
      &:hover {
          background-color: var(--color-success-hover-S360);
      }
      &:active {
          background-color: var(--color-success-active-S360);
      }
  }

  &.warning {
      background-color: var(--color-warning-S360);
      &:hover {
          background-color: var(--color-warning-hover-S360);
      }
      &:active {
          background-color: var(--color-warning-active-S360);
      }
  }

  &.error{
      background-color: var(--color-danger-S360);
      &:hover {
          background-color: var(--color-danger-hover-S360);
      }
      &:active {
          background-color: var(--color-danger-active-S360);
      }
  }
}

/* Scoped modal styles for rendering inside a specific element */
.modalv2-container-scoped {
  position: relative;
  overflow: visible;
}

/* Scoped modal styles for rendering inside a specific element */
.modalv2-scoped.swalOPC {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0,0,0,0.3); /* lighter overlay for container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalv2-scoped .swalOPC-dialog-centered {
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
}
