/*
 * Copyright (c) 2022 Ford Motor Company
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use '../../Styles/main';

.count-separator {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 24px 0;

	.separator {
		width: 50%;
		height: 2px;

		border-radius: 3px;
	}

	.left-count-separator {
		background: linear-gradient(
			to right,
			transparent,
			rgba(main.$asphalt, 0.1) 15%,
			rgba(main.$asphalt, 0.15)
		);
	}

	.right-count-separator {
		background: linear-gradient(
			to right,
			rgba(main.$asphalt, 0.15) 0%,
			rgba(main.$asphalt, 0.1) 85%,
			transparent
		);
	}

	.count-value {
		margin: 0 6px;

		font-weight: bold;
		font-size: 1rem;
		text-align: center;

		cursor: default;
	}
}

@include main.dark-theme {
	.count-separator {
		color: main.$off-white;

		.separator {
			background: rgba(main.$black, 0.22) none;
		}
	}
}
