@mixin fontsize($sizeValue: 14) {
	font-size: $sizeValue / 14 + em;
}

@font-face{font-family:fcicons;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2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truetype');font-weight:400;font-style:normal}

#atom-appointment-management {

    @import "_cssreset";
    @import "_fullcalendar.min";

    h1, h2, h3, h4 {
        
        &::after {
            display: none;
        }
    }

	position: relative;
	max-width: 1200px;
	min-height: 200px;
	margin: 30px auto;
    background-color: var(--aam-color-bg);
	transition: all 0.5s ease;
	font-family: var(--aam-font);
    font-size: 14px;
    color: var(--aam-color-text);

	&[data-display="calendar"] {
		box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
	}

    .aam-large-only {
        display: none;
    }

	.atom-aam-loadingindicator {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10;
        background-color: var(--aam-color-bg-transparent);
		text-align: center;

		svg {
			width: 32px;
			height: 32px;
			display: block;
			margin: 0 auto 0 auto;
			top: calc(50% - 16px);
			position: relative;
			opacity: 0.8;
            fill: var(--aam-color-text);
			animation: atomspin 2s infinite linear;

            @keyframes atomspin {
                from {
                    transform: rotate(0deg);
                }
                to {
                    transform: rotate(359deg);
                }
            }
		}

		#atom-aam-loading-problem {
			position: absolute;
			bottom: 15px;
			width: 100%;
			opacity: .5;
			display: none;
		}
	}

    .fc-button {
        background-color: var(--aam-color-grey-medium) !important;
        padding: 3px 6px !important;
        border: none !important;
        border-radius: 3px !important;
        color: var(--aam-color-grey-dark) !important;
        font-size: 1em !important;
        text-align: center !important;
        transition: all 0.3s;

        .fc-icon {
            font-size: 1em !important;
        }

        &:not([disabled]):hover {
            cursor: pointer;
            box-shadow: 0 0 10px rgba(0,0,0,0.2);
            transform: scale(1.02);
        }

        &[disabled] {
            opacity: 0.3;

            &:hover {
                cursor: not-allowed;
            }
        }
    }

    .aam-user-editor-content {

        h1, h2, h3, h4 {
            @include fontsize(24);
            font-weight: 700;
            margin: 15px 0;
        }

        strong {
            font-weight: 700;
        }

        p, ul, ol {
            @include fontsize(18);
        }
    }

    #atom-aam-navigation {
        display: flex;
        justify-content: center;
        padding: 15px 12px;
		border: 1px solid var(--aam-color-border);
		border-bottom: none;

        .aam-day-nav-container {
            margin: 0 5px;
			display: flex;
        }

        .fc-button {
            margin: 0 2px;
            width: 2.1em;
            text-align: center;
			padding: 3px 0 !important;
			flex-shrink: 2;

            &.fc-button-secondary {
                background-color: var(--aam-color-grey-light) !important;
            }

            &.current {
                background-color: var(--aam-color-grey-dark) !important;
                color: #FFF !important;
            }

			&.fc-prev-button,
			&.fc-next-button {
				margin: 0;
			}
        }
    }

    #atom-aam-calendar {

        .fc-header-toolbar {
			display: none;
            margin: 0;
            padding: 15px;

            .fc-button {
                margin: 0 3px;
            }
        }

        .fc-scrollgrid {

            .fc-scrollgrid-section-header {

                .fc-scroller-harness {
                    background-color: var(--aam-color-grey-light);

                    .fc-col-header-cell {
                        color: var(--aam-color-grey-dark);
						line-height: 1.2em;



						.dow {
							display: block;
							text-transform: uppercase;
							font-weight: 300;
						}

						.date {
							display: block;
							font-weight: 700;
						}

						.fc-button {
							position: absolute;
							right: 15px;
							top: 5px;
						}

                        &.fc-day-past {
                            color: var(--aam-color-grey-medium);
                        }

                        &.fc-day-today {
                            font-weight: 700;
                            background-color: var(--aam-color-grey-dark);
                            border-color: var(--aam-color-grey-dark);
                            color: #FFF;
                        }
                    }
                }
            }

            .fc-scrollgrid-section-body {

                .fc-timegrid-slots {

                    .fc-timegrid-slot {
                        height: 3em;
                    }
                }

                .fc-timegrid-cols {

                    .fc-timegrid-event {
            			display: flex;
            			align-items: center;
            			justify-content: center;
            			font-weight: 700;
            			border-radius: 3px;
                        box-shadow: none;
                        border: 1px solid var(--aam-color-bg-transparent) !important;
            			transition: all 0.5s ease;

            			.fc-event-main {
                            color: var(--aam-color-calendarentry-text) !important;

            				.fc-event-main-frame {
            					justify-content: center;

                                .fc-event-time {
                                    text-align: center;
                                    font-weight: 400;
                        			margin-bottom: -3px;
                                }

            					.fc-event-title-container {
            						flex-grow: 0;

                                    .fc-event-title {
                                        text-align: center;
                                        font-weight: 700;
                                    }
            					}
            				}
            			}

            			&.aam-full {
            				opacity: 0.2;

            				&:hover {
            					cursor: default;
            				}

            				.fc-event-main {
            					color: var(--aam-color-bg) !important;
            					text-transform: uppercase;
            				}
            			}

            			&:not(.aam-full) {

            				&:hover {
            					cursor: pointer !important;
            					box-shadow: 0 0 10px rgba(0,0,0,0.2);
            					transform: scale(1.02);
            				}
            			}

            		}
                }
            }
        }
    }

    #atom-aam-list {

		.atom-aam-event {
			border-bottom: 1px solid var(--aam-color-border);
			padding: 15px 15px 10px;
			transition: all 0.5s ease;
			font-style: normal;
			font-weight: normal;
			font-size: 18px;

			&:first-child {
				border-top: 1px solid var(--aam-color-border);
			}

			&:not(.aam-full):hover {
				cursor: pointer;

				.atom-aam-category {
					width: 10px;
					margin: 0 5px 0 10px;
				}
			}

			&.aam-full {
				opacity: 0.5;
			}

			.atom-aam-date {
				float: left;
				text-align: center;

				.atom-aam-day {
					font-size: 24px;
					line-height: 20px;
				}
			}

			.atom-aam-category {
				float: left;
				width: 5px;
				height: 46px;
				margin: 0 10px;
				transition: all 0.2s ease;
			}

			.atom-aam-info {
				float: left;
				text-align: left;

				.atom-aam-time {
					line-height: 20px;
				}

				.atom-aam-title {
					font-weight: bold;
				}
			}

			&::after {
				display: block;
				content: '';
				clear: both;
			}
		}
	}

    #atom-aam-modal {
		display: none;

        &.atom-aam-insert-modal {
			position: absolute;
			width: 100%;
			height: 100%;
			z-index: 30;
			overflow-x: hidden;
			overflow-y: scroll;
			-webkit-overflow-scrolling: touch;
			background-color: var(--aam-color-bg);
			border: 1px solid var(--aam-color-border);
        }

        &.atom-aam-popover-modal {
			position: fixed;
			overflow-y: scroll;
			overflow-x: hidden;
			-webkit-overflow-scrolling: touch;
			width: 100vw;
			height: 100vh;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 99999999;
			background: rgba(0,0,0,0.3);

			.aam-modal-container {
				position: relative;
				width: 100%;
				max-width: 1200px;
				margin: 60px auto;
                background-color: var(--aam-color-bg);
				border: 1px solid var(--aam-color-border);
                box-shadow: 0 0 30px rgba(0,0,0,0.3);
			}
		}

        .aam-modal-toolbar {
            background-color: var(--aam-color-grey-light);
            padding: 15px;
            border-bottom: 5px solid var(--aam-color-main);
            color: var(--aam-color-grey-dark);

            button {
                @include fontsize(16);
                font-weight: 700;
                white-space: nowrap;

                .fc-button {
                    margin: 0 5px 0 0;
                }

                &:hover {
                    cursor: pointer;
                }
            }

            h2 {
                display: flex;
                align-items: center;
				margin: 10px 0;
                @include fontsize(24);
                font-weight: 700;
				line-height: 1.1em;

                .aam-event-moreinfo {
					flex-shrink: 0;
                    display: inline-block;
                    margin: 0 0 0 5px;
                    background-color: var(--aam-color-grey-medium);
                    width: 1.5em;
                    border-radius: 50%;
                    vertical-align: middle;
                    height: 1.5em;
                    text-align: center;
                    font-size: 0.5em;
                    line-height: 1.5em;
                }
            }

            h3 {
                @include fontsize(16);
                font-weight: 300;
				line-height: 1.2em;

                span {
                    white-space: nowrap;
                }
            }
        }

        .aam-modal-content {

            .atom-modal-box {
                padding: 15px 10px;
            }

            .aam-user-editor-content {
                margin: 0 0 30px;
            }

            #atom-aam-form {
				position: relative;
				width: 100%;
                @include fontsize(15);

				input, select, textarea {
					display: block;
                    width: 100%;
					margin: 10px auto;
					padding: 10px;
					border: 1px solid var(--aam-color-grey-medium);
					border-radius: 3px;
                    background: transparent;
					transition: all 0.5s ease;
				}

				textarea {
					height: 8em;
				}

				select {
					background-image: url('data:image/svg+xml;utf8,<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg>');
					background-repeat: no-repeat;
					background-size: 1em;
					background-position: calc(100% - 15px) 50%;

                    & > option { // fix windows select dropdown
                        color: black !important;
                        &:hover {
                            background-color: black !important;
                            color: white !important;
                            box-shadow: 0 0 10px 100px black inset !important;
                        }
                    }
				}

				::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
					color: var(--aam-color-text);
					opacity: 1; /* Firefox */
				}
				:-ms-input-placeholder { /* Internet Explorer 10-11 */
					color: var(--aam-color-text);
				}

				::-ms-input-placeholder { /* Microsoft Edge */
					color: var(--aam-color-text);
				}

				label[for=atom-aam-consent] {
					display: flex;
                    width: 100%;

					input[type=checkbox] {
						width: 20px;
                        height: 20px;
                        flex-shrink: 0;
						position: relative;
						margin: 4px 15px 0 0;

						&:checked::after {
                            content: "";
                            display: block;
                            left: 5px;
                            top: 2px;
                            position: absolute;
                            width: 7px;
                            height: 13px;
                            border: 3px solid var(--aam-color-main);
                            border-top: 0;
                            border-left: 0;
                            transform: rotate(30deg);
						}
					}

					span {
						font-weight: 300;

                        a {
                            text-decoration: underline;
                        }
					}
				}

				.atom-invalid-input {
					border-color: #aa1818 !important;

					&.wiggle {
						animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
						transform: translate3d(0, 0, 0);
						-webkit-backface-visibility: hidden;
						backface-visibility: hidden;
						perspective: 1000px;
					}

					@keyframes shake {
						10%, 90% {
						transform: translate3d(-1px, 0, 0);
						}

						20%, 80% {
						transform: translate3d(2px, 0, 0);
						}

						30%, 50%, 70% {
						transform: translate3d(-4px, 0, 0);
						}

						40%, 60% {
						transform: translate3d(4px, 0, 0);
						}
					}
				}

				input:focus {
					outline-style: none;
				}

                .aam-submit-container {
                    text-align: center;
                    width: 100%;

                    .fc-button {
                        width: 100%;
                        margin: 30px 0 0 !important;
                        padding: 10px !important;
                        background-color: var(--aam-color-main) !important;
                        color: var(--aam-color-calendarentry-text) !important;
                    }
                }


			} // end #atom-form

            .atom-aam-admin {

                .aam-admin-label {
                    font-weight: 700;
                    border-bottom: 1px solid var(--aam-color-grey-medium);
                    padding: 0 0 5px;
                    margin: 10px 0;
                }

                button {
                    display: block;
                    width: 100%;
                    margin: 15px 0;
                }
            }
        }

        #aam-confirmation {
            display: none;

            .aam-confirmation-content {
                padding: 30px 10px;
            }

            .atom-confirmation-ctas {

                a {
                    display: block;
                }
            }
        }
    }

	// ///////////////////////////////////////////////////////////////////////////
    // Small only
    @media (max-width: 575px) {
    // ///////////////////////////////////////////////////////////////////////////


		#atom-aam-calendar {

			.fc-scrollgrid {

				.fc-scrollgrid-section-header {

					.fc-scroller-harness {

						.fc-timegrid-axis {
							border-right: none;
						}

						.fc-col-header-cell {
							border-left: none;

							.fc-col-header-cell-cushion {
								padding-right: 62px;
							}
						}
					}
				}
			}
		}

	}

    // ///////////////////////////////////////////////////////////////////////////
    // Large
    @media (min-width: 576px) {
    // ///////////////////////////////////////////////////////////////////////////

        #atom-aam-navigation {
            display: none;
        }

        .aam-mobile-only {
            display: none;
        }

        .aam-large-only {
            display: block;
        }

        #atom-aam-calendar {

			.fc-header-toolbar {
				display: flex;
				border: 1px solid var(--aam-color-border);
				border-bottom: none;
			}

			.fc-scrollgrid {

				.fc-scrollgrid-section-header {

					.fc-scroller-harness {

						.fc-col-header-cell {

							.fc-col-header-cell-cushion {
								padding: 7px 4px;
							}
						}
					}
				}
			}
        }

        #atom-aam-modal {

            .aam-modal-toolbar {
                display: flex;
				flex-wrap: wrap;
				align-items: center;
				column-gap: 60px;
				row-gap: 10px;
                padding: 30px 30px 25px;

                h2 {
                    margin: 0;
                }

                h3 {

                }
            }

            .aam-modal-content {
                display: flex;

                .atom-modal-box {
                    padding: 45px 60px 60px;

                    &.atom-modal-box-left {
                        width: 55%;
                        padding-right: 30px;
                    }

                    &.atom-modal-box-right {
                        width: 45%;
                        padding-left: 30px;
                    }
                }

                #atom-aam-form {
                    display: flex;
                    flex-wrap: wrap;
                    column-gap: 30px;

                    input, select {
    					margin: 15px auto;
                        width: calc(50% - 15px);
                        flex-grow: 2;
                    }

                    .aam-submit-container {

                        .fc-button {
                            width: auto;
                            padding: 10px 60px !important;
                        }
                    }
                }
            }

            #aam-confirmation {

                .aam-confirmation-content {
                    padding: 60px;
                }

                .atom-confirmation-ctas {
                    display: flex;
                    column-gap: 2px;
                }
            }
        }

    }

}
