@import "gutenberg-frontend.icons.css";

.as-phone.wp-block-social-link {
    a:before {
        content: "\1F4DE\FE0E";
        display: inline-flex;
        height: 1em;
        width: 1em;
        line-height: 1;
        text-align: center;
        font-weight: bold;
        justify-content: center;
    }

    svg {
        display: none;
    }
}

[class*=child-menu-button] {
    a {
        background: var(--wp--preset--color--primary);
        border-radius: var(--child-border-radius);
        padding: 5px 15px 5px 15px !important;

        * {
            color: white;
        }

        &:hover {
            text-decoration: none !important;
            background: var(--wp--preset--color--secondary);

            * {
                color: white;
            }
        }
    }

    &.child-menu-button--secondary a {
        background: var(--wp--preset--color--secondary);

        &:hover {
            background: var(--wp--preset--color--primary);
        }
    }
}

.wp-block-table.like-text :is(td, th) {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 1024px) {
    .wp-site-blocks:has(.alternative-layout-sidebar) {
        display: grid;
        justify-content: start;
        grid-template-columns: 300px calc(100% - 300px);
        grid-template-areas:
          "header main"
          "header footer";

        > header {
            padding: 0;
            margin: 0;
            grid-area: header;
        }

        > main {
            grid-area: main;
        }

        > footer {
            grid-area: footer;
        }
    }
}

.is-style-as-once-button {
    summary {
        max-width: fit-content;
        margin-inline: auto;
        display: block;
    }

    &[open]:not([class*="block-editor"]) summary {
        display: none;
    }
}
