.wccr-modal-open {
	overflow: hidden;
}

.wccr-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.wccr-modal.is-open {
	display: block;
}

.wccr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
}

.wccr-modal-dialog {
	position: relative;
	width: min(540px, calc(100% - 32px));
	margin: 9vh auto 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.wccr-modal-header,
.wccr-modal-body,
.wccr-modal-footer {
	padding: 18px 20px;
}

.wccr-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #e5e5e5;
}

.wccr-modal-header h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

.wccr-modal-x {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	color: #50575e;
}

.wccr-modal-x:hover,
.wccr-modal-x:focus {
	color: #1d2327;
}

.wccr-modal-body p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.7;
}

#wccr-modal-reason {
	width: 100%;
	box-sizing: border-box;
	min-height: 120px;
	resize: vertical;
	font-size: 14px;
	line-height: 1.7;
	padding: 10px 12px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	direction: rtl;
	text-align: right;
}

.wccr-error {
	display: none;
	margin-top: 8px;
	color: #b32d2e;
	font-weight: 600;
}

.wccr-modal-footer {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	border-top: 1px solid #e5e5e5;
	background: #f6f7f7;
}

.wccr-quick-reasons {
	margin: 0 0 12px;
}

.wccr-quick-reasons > span {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.wccr-quick-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.wccr-quick-reason.button {
	min-height: 30px;
	line-height: 28px;
	padding: 0 10px;
}

.wccr-metabox-help {
	margin-top: 0;
	line-height: 1.7;
	direction: rtl;
}

.wccr-metabox-meta {
	margin-bottom: 0;
	font-size: 12px;
	color: #646970;
	line-height: 1.6;
	direction: rtl;
}

.wccr-reason-column {
	display: inline-block;
	max-width: 260px;
	white-space: normal;
	line-height: 1.5;
}

.wccr-empty {
	color: #8c8f94;
}

@media (max-width: 600px) {
	.wccr-modal-dialog {
		margin-top: 5vh;
	}

	.wccr-modal-footer {
		flex-direction: column;
	}

	.wccr-modal-footer .button {
		width: 100%;
		text-align: center;
	}
}
