.majgold-stock-modal-open {
	overflow: hidden;
}

.majgold-stock-request-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
}

.majgold-stock-request-modal[hidden] {
	display: none;
}

.majgold-stock-request-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.majgold-stock-request-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	padding: 28px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, .2);
}

.majgold-stock-request-modal__dialog h5 {
	margin: 0 0 8px;
}

.majgold-stock-request-modal__dialog p {
	margin: 0 0 20px;
	color: #666;
}

.majgold-stock-request-modal__close {
	position: absolute;
	top: 10px;
	left: 12px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.majgold-stock-request-form {
	display: grid;
	gap: 9px;
}

.majgold-stock-request-form input,
.majgold-stock-request-form select {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d6d6d6;
	border-radius: 8px;
	padding: 8px 12px;
	background: #fff;
}

.majgold-stock-request-submit {
	min-height: 46px;
	margin-top: 8px;
	border: 0;
	border-radius: 8px;
	background: #222;
	color: #fff;
	cursor: pointer;
}

.majgold-stock-request-submit:disabled {
	opacity: .6;
	cursor: wait;
}

.majgold-stock-request-message {
	min-height: 24px;
}

.majgold-stock-request-message.is-success {
	color: #16794a;
}

.majgold-stock-request-message.is-error {
	color: #b32d2e;
}
