@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

@property --color-socials-icon-header-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-socials-icon-title {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-socials-icon-content-bg {syntax: "<color>";inherits: true;initial-value: #F1F1F1;}
@property --color-socials-icon-header-border {syntax: "<color>";inherits: true;initial-value: #3a96e0;}

.rdg-blocks {
    .rdg-socials-icons {
        width: 100%;

        .container.content {
            width: 100%;
            display: flex;
            flex-direction: column;

            .social-header {
                width: 100%;
                display: flex;
                padding: .5rem;
                border-top-left-radius: .5rem;
                border-top-right-radius: .5rem;
                background-color: var(--color-socials-icon-header-bg);
                border-bottom: 4px solid var(--color-socials-icon-header-border);

                .title {
                    width: 100%;
                    display: initial;
                    text-align: center;
                    min-height: 1.4rem;
                    color: var(--color-socials-icon-title);

                    @media (max-width: 400px) {
                        & {
                            width: 100%;
                            text-align: center;
                        }
                    }
                }
            }

            .icons {
                padding: 1rem;
                background-color: var(--color-socials-icon-content-bg);
                border-bottom-left-radius: .5rem;
                border-bottom-right-radius: .5rem;
                display: flex;
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: space-around;

                img {
                    max-width: 44px;
                    max-height: 44px;
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-socials-icons {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
