//
//  Social Icons Styles
//  ____________________________________________

//
//  Variables
//  ---------------------------------------------

@amtheme-social-icon__border: 1px solid @amtheme__border__color;
@amtheme-social-icon__selected__border-color: @amtheme__secondary__color;
@amtheme-social-icon__selected__background: @amtheme__border__color;

//
//  Common
//  ----------------------------------------------

& when (@media-common = true) {
    .amtheme-field-control {
        .amtheme-icons {
            border: @amtheme-social-icon__border;
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            margin-top: 20px;
            padding: 20px 10px;
        }

        .amtheme-icons > .item {
            flex-basis: 44px;
            margin: 0 10px 10px;
        }

        .amtheme-icon-preview {
            align-items: center;
            display: flex;
            margin: 0 25px;
        }

        .amtheme-icon-preview > span {
            height: 30px;
            min-width: 30px;
            width: auto;
        }

        .amtheme-icon-preview .amtheme-icon-reset {
            margin: 0 15px;
        }

        .amtheme-icon-label {
            border: @amtheme-social-icon__border;
            cursor: pointer;
            display: block;
            padding: 10px;
        }

        .amtheme-field-actions {
            & {
                display: flex;
            }

            &:first-child {
                margin-right: 20px;
            }
        }

        .amtheme-icon-radio:checked + .amtheme-icon-label {
            background: @amtheme-social-icon__selected__background;
            border-color: @amtheme-social-icon__selected__border-color;
        }
    }
}
