// License.
.ajax-load-more {
	.alm-license {
		display: grid;
		border: 1px solid $border;
		border-radius: $radius;
		margin: 0 0 20px;
		overflow: hidden;

		&--header {
			border-bottom: 1px solid $border;
			box-shadow: 0 0 3px 1px rgba($border, 0.25);
			background-color: rgba($border, 0.15);
			padding: 10px 20px;
			display: flex;
			width: 100%;
			align-items: center;
			justify-content: space-between;
			gap: 5px;

			h3 {
				margin: 0 !important;
				padding: 0;
				font-size: 16px;
				font-weight: 600;
				display: flex;
				gap: 8px;
				align-items: center;

				span {
					width: 10px;
					height: 10px;
					display: inline-block;
					border-radius: 10px;
					position: relative;
					left: -1px;
					background-color: $red;
					box-shadow: inset 0 0 0 1px rgba(#000, 0.075), 0 0 0 3px rgba($red, 0.2);

					&.is-valid {
						background-color: $green;
						box-shadow: inset 0 0 0 1px rgba(#000, 0.075), 0 0 0 3px rgba($green, 0.2);
					}
				}
			}

			a {
				display: block;
				text-decoration: none;
				padding: 5px;
				margin-right: -10px;
				color: $paragraph;
				&:hover,
				&:focus {
					color: $grey_dark;
				}
				svg {
					width: 16px;
					height: 16px;
				}
			}
		}

		&--fields {
			display: grid;
			gap: 10px;
			padding: 20px;

			> div {
				position: relative;
			}

			label {
				font-size: 13px;
				margin: 0;
				padding: 0 2px;
				font-weight: 500;
			}

			input[type='text'],
			input[type='password'],
			input[readonly] {
				width: 100%;
				box-shadow: 0 0 3px 1px rgba($border, 0.25);
				background-color: #fff;
				border-color: $border;
				padding: 12px;
				line-height: 1;
				&.has-constant {
					color: #666;
					background-color: rgba($border, 0.25);
					box-shadow: none;
				}
			}
			input[readonly] {
				pointer-events: none;
				cursor: pointer !important;
			}
		}

		&--actions {
			display: flex;
			flex-wrap: wrap;
			gap: 5px;
			width: 100%;
			padding: 20px;
			padding-top: 0;

			.button-link {
				text-decoration: none;
				display: flex;
				align-items: center;
				gap: 5px;
				border-radius: 3px;
				border: 1px solid transparent;
				&:hover,
				&:focus {
					background-color: transparent !important;
					border-color: $border;
				}
				svg {
					width: 14px;
					height: 14px;
					margin-left: -2px;
				}
			}
		}

		&--stats {
			border-top: 1px solid $border;
			background-color: rgba($border, 0.15);
			display: flex;
			flex-wrap: wrap;
			width: 100%;
			row-gap: 10px;
			column-gap: 20px;
			font-size: 13px;
			padding: 15px 20px;

			> div {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				gap: 5px;

				span:first-child {
					font-weight: 500;
				}

				em {
					display: inline-block;
					margin: 0 1px;
					font-style: normal;
					opacity: 0.5;
				}
			}
		}

		.alm-license-callout {
			display: flex;
			width: 100%;
			padding: 15px 20px;
			margin: 0 0 10px;
			border: 1px solid $border;
			background-color: #fffeeb;
			border-radius: $radius;
			line-height: 1.5;
			&.end {
				margin: 0 !important;
				border-bottom: none;
				border-right: none;
				border-left: none;
				border-radius: 0;
			}
			div {
				flex: 1;
			}
			&--icon {
				width: 24px;
				svg {
					width: 18px;
					height: 18px;
					display: block;
					position: relative;
					top: 1px;
					left: -2px;
				}
			}
		}

		&-status {
			display: inline-block;
			border-radius: $radius;
			padding: 6px 8px;
			line-height: 1;
			color: #fff;
			cursor: default;
			font-weight: 400;
			font-size: 12px;
			position: absolute;
			right: 8px;
			top: 50%;
			transform: translateY(-50%);
			z-index: 5;
			&.active {
				background-color: $green;
				box-shadow: inset 0 0 0 1px rgba(#000, 0.075), 0 0 0 3px rgba($green, 0.2);
			}
			&.inactive {
				background-color: $red;
				box-shadow: inset 0 0 0 1px rgba(#000, 0.075), 0 0 0 3px rgba($red, 0.2);
			}
		}
	}
}
