/* "Report or request removal" link + modal on company profile pages.
   Uses the profile's --primary / --subtle-text variables. */

.ch-profile-page .ch-report-wrap {
	margin: 6px 0 0;
	padding: 0;
}

.ch-profile-page .ch-report-link {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 13px;
	color: var(--subtle-text, #65757a);
	text-decoration: underline;
	cursor: pointer;
}

.ch-profile-page .ch-report-link:hover,
.ch-profile-page .ch-report-link:focus-visible {
	color: var(--primary, #ee2a5c);
}

/* Modal */
.ch-rr-modal[hidden] { display: none; }

.ch-rr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ch-rr-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ch-rr-box {
	position: relative;
	background: #fff;
	color: #1f2937;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	font-family: var(--ch-font, inherit);
}

/* Close (×) button. Theme button styles (hover/focus backgrounds, padding,
   radius, shadows) are overridden for every state so it stays a plain ×. */
.ch-rr-box .ch-rr-close,
.ch-rr-box .ch-rr-close:hover,
.ch-rr-box .ch-rr-close:focus,
.ch-rr-box .ch-rr-close:active {
	position: absolute !important;
	top: 10px !important;
	right: 12px !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	outline: none;
	font-size: 26px !important;
	line-height: 1 !important;
	text-transform: none !important;
	color: #6b7280 !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ch-rr-box .ch-rr-close:hover,
.ch-rr-box .ch-rr-close:focus-visible {
	background: #f3f4f6 !important;
	color: #111827 !important;
}

.ch-rr-box .ch-rr-close:focus-visible {
	outline: 2px solid var(--primary, #ee2a5c);
	outline-offset: 1px;
}

.ch-rr-title {
	font-size: 20px !important;
	margin: 0 24px 10px 0;
	color: #111827;
}

.ch-rr-intro {
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 16px;
}

.ch-rr-row {
	margin-bottom: 12px;
}

.ch-rr-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.ch-rr-optional {
	font-weight: 400;
	color: #6b7280;
}

.ch-rr-row input[type="text"],
.ch-rr-row input[type="email"],
.ch-rr-row select,
.ch-rr-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 10px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #111827;
}

.ch-rr-row input:focus,
.ch-rr-row select:focus,
.ch-rr-row textarea:focus {
	outline: 2px solid var(--primary, #ee2a5c);
	outline-offset: 1px;
}

/* Honeypot: off-screen, not display:none (some bots skip display:none fields). */
.ch-rr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ch-rr-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4;
	color: #374151;
	margin: 4px 0 12px;
}

.ch-rr-consent input { margin-top: 3px; }

.ch-rr-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	margin: 0 0 12px;
}

.ch-rr-error[hidden],
.ch-rr-success[hidden],
.ch-rr-form[hidden] { display: none; }

.ch-rr-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ch-rr-submit {
	background: var(--primary, #ee2a5c);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ch-rr-submit:disabled { opacity: 0.6; cursor: default; }

.ch-rr-cancel {
	background: none;
	border: 0;
	color: #4b5563;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

.ch-rr-success-msg {
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 16px;
}

body.ch-rr-open { overflow: hidden; }
