/*!IMPORTANT: NO EDIT FOR THIS FILE YOU CAN CREATE YOUR CLASS TO TARGET THE DIFFERENT MODAL PARTS*/
/*This file contains classes to use for creating modal when using NgbModalService*/

/*
Example of use:
<div class="modal-container modal-container__open">
  <div class="custom-class-to-target-your-own-modal">
    <div class="modal__content">
      <div class="modal-header">
        <label>
          <span>Label Exemple</span>
        </label>
        <button (click)="modalService.dismissAll()" aria-label="Close" type="button" class="close-icon">
        </button>
      </div>
      <div class="modal-body">
        <!--Your modal body-->
      </div>
      <div class="modal-actions">
        <button (click)="modalService.dismissAll()" class="btn primary">Fermer</button>
        <button class="btn secondary" >Continuer avec ce modèle</button>
      </div>
    </div>
  </div>
</div>
*/


/*These classes is to override the classes added by the library*/
.modal-dialog {
    width: min(1000px, 90%);
    margin-left: auto;
    margin-right: auto;
    max-width: unset;
}

.modal-content {
    width: 100%;
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .modal-content {
        margin-top: 100px !important;
    }
}


/*These are specific classes for modal content*/
/*These classes are created to respect the design provided in Figma*/
.modal-container {
    opacity: 0;
    display: none;
    transition: all 0.5s cubic-bezier(0.15, 0.7, 0.4, 1);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    background-color: rgba(32, 35, 46, .95);
}

.modal-container__open {
    opacity: 1;
    display: block;
    width: 100%;
}

.modal__content {
    padding: 30px 40px 40px 40px;
    gap: 30px;
    border-radius: 6px;
    background: #EEF2F5;
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 100%;
}

.modal__content .modal-header {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 0;
}

.modal__content .modal-header > button {
    outline: none;
}

.modal__content.modal-header > button:focus {
    outline: none;
}

.modal__content .modal-header .close-icon {
    background-image: url("../../img/edito/icone/close.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    height: 22px;
    opacity: 1;
    width: 22px;
    box-shadow: none;
    margin: 0;
}

.modal__content .modal-header label {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #232558;
    margin: 0;
}

.modal__content .modal-body {
    padding: 0;
}

.modal-body p {
    font-size: 16px;
}

.modal__content .modal-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center
}

.btn.primary {
    border: 1px solid #fdc300;
    background: #ffffff;
    padding: 13px 32px;
    margin-right: 16px;
}

@media (max-width: 768px) {
    .modal__content .modal-actions {
        flex-direction: column-reverse;
    }

    .modal__content .modal-actions button {
        width: 100%;
    }
}