/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
 
.wtai-grid-index,
.wtai-categories-index,
.wtai-setup-index {
    &._has-modal {
        .page-footer {
            z-index: 1;
        }
    }

    .page-footer {
        padding: 14px 20px;
        position: sticky;
        bottom: 0;
        z-index: 400;

        .footer-legal {
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            grid-gap: 5px;
            width: 100%;

            label {
                color: #777777;
            }

            .copyright {
                line-height: 100%;
                width: auto;
                text-align: left;
                
                /** copyright separator only **/
                .wtai-separator {
                    margin: 0 6px;
                }
            }

            .footer-legal-system {
                display: flex;
                width: auto;
                justify-content: flex-end;
            }
        }

        .copyright {
            .wtai-separator {
                margin: 0 6px;
            }
        }

        .additional-information {
            display: flex;
            justify-content: flex-end;
            width: auto;
            column-gap: 10px;

            .credit-info-links {
                display: flex;
                flex-direction: row;
                column-gap: 10px;
                flex-wrap: wrap;
                justify-content: space-between;
            }

            .admin__field-tooltip {
                margin-top: 0;
                margin-right: 15px;

                .admin__field-tooltip-content {
                    right: auto;
                    top: auto;
                    width: max-content;

                    p {
                        margin-bottom: 10px;
                    }
                }
            }
        }
    }

    .wtai-edit-modal {
        .page-footer {
            z-index: 3;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            grid-gap: 5px;
            width: 100%;

            @media screen and (min-width: 1280px) {
                justify-content: space-between;
            }

            .copyright {
                width: 100%;
                text-align: center;

                @media screen and (min-width: 1280px) {
                    width: auto;
                }
            }

            .additional-information {
                width: auto;
                display: flex;
                justify-content: center;
            }

            .admin__field-label {
                &::before {
                    margin-top: 3px;
                }
            }
        }
    }
}

.wtai-setup-index {
    .page-footer .additional-information {
        display: none;
    }
}