/*
 * 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';

.confirmation-modal {
	display: flex;
	flex-direction: column;

	box-sizing: border-box;
	width: auto;
	max-width: 40.625rem;
	margin: 0 auto;

	font-weight: 700;
	font-size: 1.3rem;

	background-color: main.$white;
	border-radius: 5px;

	box-shadow: 0 4px 4px rgba(main.$black, 0.25),
		0 8px 16px rgba(main.$black, 0.12), 0 12px 24px rgba(main.$black, 0.12),
		0 1px 32px rgba(main.$black, 0.12);
	transform: none;

	position: relative;

	.confirmation-modal-body {
		margin: 3rem 3.625rem 2rem;
	}

	.confirmation-modal-title {
		width: 100%;
		margin-bottom: 0.5rem;

		font-weight: bold;

		font-size: 2rem;
		text-align: center;
		text-transform: capitalize;

		cursor: default;

		@include main.breakpoint-medium {
			font-size: 2.5rem;
		}
	}

	.confirmation-modal-subtitle {
		width: 100%;
		max-width: 33rem;
		margin-bottom: 0.5rem;

		color: main.$dark-gray;
		font-weight: 600;
		font-size: 0.9rem;
		font-style: normal;
		line-height: 25px;
		text-align: center;

		cursor: default;

		@include main.breakpoint-medium {
			font-size: 1.25rem;
		}
	}

	.confirmation-modal-footer {
		display: flex;
		justify-content: space-around;
		width: 100%;

		height: 50px;

		border-bottom-right-radius: inherit;
		border-bottom-left-radius: inherit;

		@include main.breakpoint-medium {
			height: 4rem;
		}

		.confirmation-modal-button {
			width: 50%;
			height: 100%;
			margin: 0;

			font-size: 1.3rem;

			border-radius: 0 0 5px;
			box-shadow: none;
		}

		.confirmation-modal-button.cancel {
			color: main.$asphalt;

			border: 0;
			border-top: 1px solid main.$off-white;
			border-bottom-right-radius: 0;
			border-bottom-left-radius: inherit;

			&:hover,
			&:focus {
				background-color: rgba(main.$light-gray, 0.25);
				border-top: 1px solid rgba(main.$light-gray, 0.25);
			}
		}
	}
}

@include main.dark-theme {
	.confirmation-modal {
		background-color: main.$dark-asphalt;

		.confirmation-modal-title {
			color: main.$off-white;
		}

		.confirmation-modal-subtitle {
			color: main.$light-gray;
		}

		.confirmation-modal-button.cancel {
			color: main.$off-white;
			border-top: 1px solid main.$dark-gray;

			&:hover,
			&:focus {
				background-color: main.$light-asphalt;
				border-top: 1px solid main.$dark-gray;
			}
		}
	}
}
