@import '../../../../styles/mixins';
@import '../../../../styles/grid';
@import '../../../../styles/definitions/variables';
@import '../../../../styles/definitions/breakpoints';
@import '../../../../styles/definitions/placeholders';

// Component Styles
$namespace: ".selectionPreview";
$modal-header-bg: linear-gradient(rgba(45, 45, 45, 0), rgba(45, 45, 45, .05)), #f5f5f5;
$modal-header-box-shadow: 0 2px 2px -1px rgba(45, 45, 45, .1), inset 0 1px 0 0 rgba(255, 255, 255, .95);
$modal-header-border-bottom: 1px solid #cbcbcb;
$modal-header-border-top: 1px solid #cbcbcb;
$modal-footer-bg: linear-gradient(rgba(45, 45, 45, 0), rgba(45, 45, 45, .05)), #f5f5f5;
$modal-footer-box-shadow: 0 2px 2px -1px rgba(45, 45, 45, .1), inset 0 1px 0 0 rgba(255, 255, 255, .95);
$modal-footer-border-top: 1px solid #cbcbcb;

#{$namespace} {
    &_modal {
        position: fixed;
        z-index: 10001;
        padding-top: 10em;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0,0,0);
        background-color: rgba(0,0,0,0.4);
        border-radius: 4px;

        &-close {
            color: #aaaaaa;
            float: right;
            font-size: 28px;
            font-weight: bold;

            &:hover, &:focus {
                color: #000;
                text-decoration: none;
                cursor: pointer;
            }
        }

        &-content {
            background-color: #fefefe;
            margin: auto;
            border: 1px solid #888;
            border-radius: 4px;
            width: 50%;
        }

        &-header {
            padding: 1em;
            display: flex;
            flex-direction: row;

            &-title {
                width: 100%;

                h4 {
                    margin: 0;
                }
            }
        }

        &-body {
            padding: 1em;
            border-top: 1px solid #EEE;
            border-bottom: 1px solid #EEE;
        }

        &-footer {
            box-shadow: $modal-footer-box-shadow;
            padding: 1em;
        }
    }
}
