/*************/
/** Modals **/
/*************/
.modal {
    z-index: 10000;
    height: 100%;
    padding-right: 0 !important;
}

.modal-dialog {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: flex-start;
    height: 100%;
    min-height: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    margin: 1rem;
}
.modal-dialog.modal-dialog-centered {
    justify-content: center;
}
.modal-dialog .modal-cancel {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 10px;
}
.modal-dialog .modal-cancel button {
    background: var(--Background-Secondary);
    border: none;
    width: 50px;
    height: 45px;
}
.modal-dialog .modal-content {
    max-height: none;
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 64px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.08);
    border-radius: var(--app-modal-radius);
    border: none;
    background: var(--Background-Primary, #F9F5F1);
    padding: 50px;
}
@media (max-width: 767px) {
    .modal-dialog .modal-content {
        padding: 20px;
    }
}
.modal-content-container {
    border-radius: 16px;
    background: var(--Background-Secondary, #FFF);
    padding: 25px;
    box-shadow: var(--app-box-shadow-beige);
    overflow-y: auto;
}
.modal-content-container .modal-body {
    overflow: visible;
}
.modal-content-container .form-actions {
    border-top: none !important;
}

.modal-empty .modal-content-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.modal-header,
.modal-footer {
    flex-shrink: 0;
}

.modal-footer .btn + .btn {
    margin-left: 10px;
}

.modal-body,
.modal-dialog .modal-content .modal-header + form {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
}

.modal.fade.in {
    backdrop-filter: blur(5px);
}

.modal-backdrop,
.modal-backdrop.fade.in {
    opacity: .9;
    background-color: var(--app-color-dark);
}

.modal .modal-header button.close {
    display: none;
}

.modal .modal-header .modal-title {
    font-size: var(--app-modal-title-size);
    line-height: var(--app-modal-title-size);
    font-weight: 900;
    color: var(--app-color-dark);
}

.modal-title-icon {
    background: var(--app-color-primary);
    vertical-align: middle;
    margin-bottom: 4px;
    padding: 8px;
    border-radius: 24px;
    font-size: var(--app-font-size);
    color: #FFFFFF;
}
body.dark .modal-title-icon {
    background: var(--common-primary-brand-navy-blue-20, #434553);
}

.modal-header {
    padding: 0 0 36px 0;
    border-bottom: none;
}
.modal-body {
    padding: 0;
    border: none;
}
.modal-footer {
    padding: 20px 0 0 0;
    border: none;
}

.modal-body .form-group:last-child,
.modal-body div:last-child,
.modal-body p:last-child {
    margin-bottom: 0;
}


.modal-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.modal-header-title p {
    margin-bottom: 0;
}
.modal-header-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}


/* Modal Custom */
.modal.fade.modal-custom {
    z-index: 100000;
}

.modal-custom .modal-dialog {
    width: 90%;
    height: 90%;
}

.modal-custom .modal-content {
    height: 100%;
}

.modal-custom .modal-header {
    height: 84px;
    background: var(--app-color-dark);
    padding: 20px 32px;
    border-radius: 24px;
}
body.dark .modal-custom .modal-header {
    background: var(--Background-Secondary);
}

.modal.modal-custom .modal-header button.close {
    color: #FFF;
    display: block;
    font-weight: normal;
    opacity: 1;
    text-shadow: none;
}

.modal-custom .modal-header .modal-custom-filter {
    display: inline-block;
    margin-right: 24px;
    vertical-align: top;
}
.modal-custom .modal-header .modal-custom-filter .btn-group{
    width: 120px;
}
.modal-custom .modal-header .modal-custom-search input {
    border-top: 1px solid #3F4A54;
    border-right: 1px solid #3F4A54;
    border-bottom: 1px solid #3F4A54;
    border-left: none;
    width: 300px;
    padding: 10px 12px;
    height: 44px;
}
.modal-custom .modal-header .modal-custom-search .input-group {
    overflow: hidden;
}
.modal-custom .modal-header .modal-custom-search .input-group-btn button {
    border: none;
    padding: 10px 12px;
    height: 44px;
    color: var(--app-color-dark);
    margin-left: 0;
    background: var(--app-input-background);
}
.modal-custom .modal-header .modal-custom-dropdown-filter label {
    color: #90959A;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-custom .modal-header .modal-custom-dropdown-filter button.dropdown-toggle,
.modal-custom .modal-header .modal-custom-dropdown-filter button.dropdown-toggle:hover,
.modal-custom .modal-header .modal-custom-dropdown-filter button.dropdown-toggle:focus,
.modal-custom .modal-header .modal-custom-dropdown-filter .open > button.dropdown-toggle,
.modal-custom .modal-header .modal-custom-dropdown-filter .open > button.dropdown-toggle:hover,
.modal-custom .modal-header .modal-custom-dropdown-filter .open > button.dropdown-toggle:focus {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 0;
    color: #FFFFFF;
    font-size: 13px;
}
.modal-custom .modal-header .modal-custom-dropdown-filter button .caret {
    margin-left: 25px;
    color: #FFFFFF;
}
.modal-custom .modal-header .dropdown-menu li {
    padding: 10px;
    cursor: pointer;
    font-weight: normal;
    border-radius: var(--app-dropdown-item-radius);
}
.modal-custom .modal-header .dropdown-menu li:hover {
    background: var(--app-dropdown-hover);
    text-decoration: none;
    color: var(--common-primary-brand-cobalt-blue-100, #385FEB);
}
.modal-custom .modal-header .close {
    margin-top: 5px;
    font-size: 32px;
}

.modal-custom .modal-body {
    height: calc(100% - 176px);
    overflow-y: scroll;
    padding: 0 32px 32px 32px;
}

.modal-custom .modal-footer {
    height: 92px;
    background: #FAFAFA;
    text-align: center;
    padding: 22px;
}
.modal-custom .modal-footer #getNextPhotos a {
    width: 270px;
    display: block;
    margin: 0 auto;
    border-radius: 40px;
    background: #43c7b0;
    padding: 14px 12px;
    border: none;
}
.modal-blocker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}
.modal-blocker:first-child {
    padding-left: 0px;
}

.modal form {
    padding: 0;
}

@media (min-width: 768px) {
    .modal-dialog {
        min-height: calc(100% - 3.5rem);
        max-height: calc(100% - 3.5rem);
        margin: 50px auto;
        width: 750px;
    }

    .modal .modal-dialog.modal-theme-select,
    .modal .modal-dialog.modal-theme-select-preview,
    .modal .modal-dialog.modal-select-theme {
        width: 688px;
    }
}
@media (min-width: 980px) {
    .modal .modal-dialog.modal-theme-select,
    .modal .modal-dialog.modal-theme-select-preview,
    .modal .modal-dialog.modal-select-theme {
        width: 900px;
    }
}
@media (min-width: 1200px) {
    .modal .modal-dialog.modal-theme-select,
    .modal .modal-dialog.modal-theme-select-preview,
    .modal .modal-dialog.modal-select-theme {
        width: 1200px;
    }
}

.modal.modal-lg {
    width: 100%;
}
.modal.modal-lg .modal-dialog {
    width: 90%;
    max-width: 1080px;
}
.modal.modal-xl .modal-dialog {
    width: 90%;
    max-width: 1200px;
}

/* Modal Right */

.modal.show .modal-right {
    -webkit-transform: translate(0, 0)!important;
    transform: translate(0, 0)!important;
}

.modal.fade:not(.in).right .modal-dialog {
    -webkit-transform: translate3d(25%, 0, 0);
    transform: translate3d(25%, 0, 0);
}

.modal-right {
    height: 100%;
    width: 620px;
    margin: 0;
    max-height: 100%;
    min-height: 100%;
    position: absolute;
    right: 0;
}
@media (max-width: 767px) {
    .modal-right {
        width: 100%;
    }
}
.modal-right .modal-cancel {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 100;
    width: auto;
    margin-bottom: 0;
}
.modal-right .modal-cancel button {
    background: transparent;
}
.modal-right .modal-content {
    border-radius: 0;
    height: 100%;
    padding: 0;
    background: var(--Background-Secondary);
}
.modal-right .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--Border-Secondary, #F3EEE8);
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.modal-right .modal-header:before {
    display: none;
}
.modal-right .modal-content-container {
    padding: 20px;
    box-shadow: none;
}
.modal-right .modal-body {
    padding-bottom: 100px;
}
.modal-right .modal-footer {
    bottom: 0;
    position: fixed;
    right: 0;
    width: 100%;
    padding: 20px;
    background: var(--Background-Secondary);
    display: flex;
    flex-direction: row;
}
.modal-right .modal-footer button {
    width: 100%;
}


/* Modal Scrollable */

.modal-form .modal-dialog-scrollable form {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 85px);
}

/***************************/
/* Modal right theme select */
/***************************/
.modal.right.modal-right-theme-select {
    z-index: 10010;
}

.modal.modal-right-theme-select .theme-block {
    background: none;
    border: var(--app-card-border);
    height: 160px;
}

.modal.modal-right-theme-select .theme-block.active {
    border: 1px solid var(--app-color-primary);
}

.modal.modal-right-theme-select .theme-block:hover {
    border: 1px solid var(--app-color-secondary);
}

.modal.modal-right-theme-select .theme-block .pic {
    background-size: cover;
    height: 160px;
}



.modal .offcanvas-content-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    gap: 20px;
}
.modal .offcanvas-content-header .offcanvas-content-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal .offcanvas-content-header .offcanvas-content-title h3 {
    color: #1C1D23;
    font-size: 26px;
    font-weight: 800;
}
.modal .offcanvas-content-header .offcanvas-content-search {
    width: 290px;
    min-width: 290px;
}
.modal .offcanvas-content-header .offcanvas-content-search input {
    border: none;
    box-shadow: 0 10px 25px 0 var(--Shadow-Color_shadow_beige, rgba(240, 230, 225, 0.43));
}
.modal .offcanvas-content-header .offcanvas-content-btn-group {
    width: 68px;
    min-width: 68px;
}
.modal .offcanvas-content-header .btn.btn-icon {
    display: flex;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px !important;
    border: 0.6px solid #1C1D23;
    background: transparent;
}
.modal .offcanvas-content-header .btn.btn-icon i {
    color: #1C1D23;
    font-size: 12px;
}
