/* Black Friday facility-request modal */

.bf-landing .bf-modal {
	--bf-modal-navy: #223C78;
	--bf-modal-navy-hover: #1A305F;
	--bf-modal-text: var(--bf-text, #1A1A2E);
	--bf-modal-muted: var(--bf-text-muted, #7C8698);
	--bf-modal-border: #E5E9F0;
	--bf-modal-danger: #E5484D;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Yekan Bakh FaNum", sans-serif;
	color: var(--bf-modal-text);
}

.bf-landing .bf-modal[hidden] {
	display: none !important;
}

body.bf-modal-open {
	overflow: hidden;
}

.bf-landing .bf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 26, 61, .55);
}

.bf-landing .bf-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 26px 28px 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(8, 26, 61, .18);
}

.bf-landing .bf-modal__dialog:focus {
	outline: none;
}

.bf-landing .bf-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.bf-landing .bf-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--bf-modal-text);
}

.bf-landing .bf-modal__close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--bf-modal-text);
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.bf-landing .bf-modal__close:hover {
	background: #F4F6FA;
}

.bf-landing .bf-modal__desc {
	margin: 0 0 22px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.95;
	text-align: right;
	color: var(--bf-modal-muted);
}

.bf-landing .bf-modal__form {
	margin: 0;
}

.bf-landing .bf-modal__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bf-landing .bf-modal__field + .bf-modal__field {
	margin-top: 16px;
}

.bf-landing .bf-modal__label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	text-align: right;
	color: #4E5870;
}

.bf-landing .bf-modal__input {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--bf-modal-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--bf-modal-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	outline: none;
	appearance: none;
}

.bf-landing .bf-modal__input--ltr {
	direction: ltr;
	text-align: right;
}

.bf-landing .bf-modal__input::placeholder {
	color: #B4BCC8;
	opacity: 1;
}

.bf-landing .bf-modal__input:focus {
	border-color: #0F62FE;
	outline: none;
}

.bf-landing .bf-modal__input.is-invalid {
	border-color: var(--bf-modal-danger);
}

.bf-landing .bf-modal__error {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.6;
	text-align: right;
	color: var(--bf-modal-danger);
}

.bf-landing .bf-modal__error[hidden],
.bf-landing .bf-modal__alert[hidden],
.bf-landing .bf-modal__panel[hidden] {
	display: none !important;
}

.bf-landing .bf-modal__alert {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.7;
	text-align: right;
	color: var(--bf-modal-danger);
}

.bf-landing .bf-modal__submit,
.bf-landing .bf-modal__done {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	margin: 22px 0 0;
	padding: 0 16px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.bf-landing .bf-modal__submit {
	border: 0;
	background: var(--bf-modal-navy);
	color: #fff;
}

.bf-landing .bf-modal__submit:hover,
.bf-landing .bf-modal__submit:focus-visible {
	background: var(--bf-modal-navy-hover);
	color: #fff;
}

.bf-landing .bf-modal__submit:disabled {
	opacity: .72;
	cursor: progress;
}

.bf-landing .bf-modal__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 4px 6px;
	text-align: center;
}

.bf-landing .bf-modal__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #E9F7EF;
}

.bf-landing .bf-modal__success-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: #1E8E3E;
}

.bf-landing .bf-modal__success-text {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	font-weight: 400;
	line-height: 2;
	color: var(--bf-modal-muted);
}

.bf-landing .bf-modal__done {
	border: 1px solid var(--bf-modal-navy);
	background: transparent;
	color: var(--bf-modal-navy);
	font-weight: 600;
}

.bf-landing .bf-modal__done:hover,
.bf-landing .bf-modal__done:focus-visible {
	background: rgba(34, 60, 120, .06);
	color: var(--bf-modal-navy);
}

.bf-landing .bf-modal__close:focus-visible,
.bf-landing .bf-modal__submit:focus-visible,
.bf-landing .bf-modal__done:focus-visible {
	outline: 2px solid #0F62FE;
	outline-offset: 2px;
}

@media (max-width: 767.98px) {
	.bf-landing .bf-modal__dialog {
		width: calc(100% - 32px);
		max-width: calc(100% - 32px);
		padding: 20px;
		border-radius: 16px;
	}

	.bf-landing .bf-modal {
		padding: 0;
	}
}
