@use "variables" as *;

.ekesto-settings-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height);
    display: flex;
    background: white;
    justify-content: center;
    padding: $spacing-lg;
    z-index: $z-index-header;
    box-shadow: $shadow-header;

    @media screen and (max-width:$breakpoint-mobile-max) {
        position: static;
    }

    &__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: $container-max-width;
        width: 100%;
        @media screen and (max-width:$breakpoint-mobile-max) {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
    }

    &__brand {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    &__heading {
        margin: 0;
    }

    &__logo {
        display: block;
        max-height: 45px;
        height: auto;
        width: auto;
        max-width: 100%;
    }

    &__author {
        display: flex;
        align-items: center;
        gap: 0.25em;
    }

    &__meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: $spacing-xs;
        margin: 0;
        font-size: $font-size-small;
        color: $color-text-secondary;
        line-height: 1.3;
    }

    &__separator {
        color: $color-text-secondary;
    }

    &__version {
        font-weight: 300;
    }
}

.ekesto-settings-header-buttons {
    display: flex;
    gap: $spacing-sm;
    @media screen and (max-width:$breakpoint-mobile-max) {
        width: 100%;
        .components-button {
            flex: 1;
            justify-content: center;
            text-align: center;
        }
    }
}
