/**
 * Report-a-listing / report-a-seller — front-end trigger link + modal.
 *
 * Quiet text trigger (NOT a pill — it's a low-emphasis safety affordance). The
 * submit button IS a full pill, matching the site-wide CTA rule. Modal mirrors
 * the messaging composer: bottom-sheet on mobile, centred dialog on desktop.
 * Brand vars (--pb-primary etc.) come from design-system.css.
 */

/* ── Trigger: quiet, muted, underlined-on-hover text link ──────────────── */
.pb-report-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pb-ink-soft, #5b5b5b);
	cursor: pointer;
	text-decoration: none;
	min-width: 0; /* defeat Motta's button{min-width:160px}. */
	width: auto;
}
.pb-report-trigger:hover,
.pb-report-trigger:focus-visible {
	color: var(--pb-primary, #2095b8);
	text-decoration: underline;
}
.pb-report-flag {
	font-size: 13px;
	line-height: 1;
}

/* PDP placement: its own .entry-summary child, dropped to the very bottom by
   product-page.css (order:150). A little breathing room above. */
.pb-report-row {
	margin-top: 10px;
}

/* Store-header variant sits beside Follow/Message — keep it small + inline. */
.pb-report-trigger--store {
	font-size: 12px;
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.pb-report-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.pb-report-modal[hidden] {
	display: none;
}
.pb-report-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}
.pb-report-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 30px -10px rgba(15, 23, 42, 0.35);
	padding: 22px 20px 24px;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.pb-report-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	/* !important: Motta's button{min-width:160px;line-height:60} inflated this to a
	   ~190px-wide button, so border-radius:50% rendered as a wide OVAL, not a circle. */
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Match the other modals (offer/message, follow): no persistent fill —
	   transparent at rest, light circle on hover. */
	background: transparent;
	color: #6b7280;
	font-size: 22px;
	line-height: 1 !important;
	cursor: pointer;
}
.pb-report-modal__close:hover {
	background: #f3f4f6;
	color: #0f172a;
}
.pb-report-modal__title {
	margin: 0 36px 4px 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--pb-ink, #1a1a1a);
}
.pb-report-modal__subtitle {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--pb-ink-soft, #5b5b5b);
	word-break: break-word;
}
.pb-report-modal__subtitle:empty {
	display: none;
	margin: 0;
}

.pb-report-form__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--pb-ink, #1a1a1a);
	margin: 12px 0 6px;
}
.pb-report-form__select,
.pb-report-form__textarea {
	width: 100%;
	border: 1px solid var(--pb-input-border, #e6e9ee);
	border-radius: 12px;
	padding: 11px 14px;
	font-size: 16px; /* >=16px → no iOS focus-zoom. */
	color: var(--pb-ink, #1a1a1a);
	background: #fff;
	box-sizing: border-box;
}
/* Report select — branded native select (chevron + #cbd5e1 + radius 10px) to
   match the site's other dropdowns; own rule so appearance/chevron skip the textarea. */
.pb-report-form__select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	color-scheme: light; /* force the native option list to render light, not OS-dark */
	min-height: 40px; border-color: #cbd5e1; border-radius: 10px;
	padding: 9px 38px 9px 14px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.pb-report-form__textarea {
	resize: vertical;
	min-height: 90px;
	line-height: 1.4;
}
.pb-report-form__select:focus,
.pb-report-form__textarea:focus {
	outline: 2px solid var(--pb-primary, #2095b8);
	outline-offset: 1px;
	border-color: var(--pb-primary, #2095b8);
}
.pb-report-form__hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--pb-ink-soft, #5b5b5b);
}

.pb-report-form__actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 18px;
}
.pb-report-form__cancel {
	border: 0;
	background: none;
	color: var(--pb-ink-soft, #5b5b5b);
	font-weight: 700;
	font-size: 14px;
	padding: 10px 12px;
	cursor: pointer;
	min-width: 0;
}
.pb-report-form__cancel:hover {
	color: var(--pb-ink, #1a1a1a);
}
.pb-report-form__submit {
	border: 0;
	border-radius: 999px; /* full pill — site-wide CTA rule. */
	padding: 11px 24px;
	font-weight: 800;
	font-size: 14px;
	line-height: 1.2;
	min-width: 0;
	width: auto;
	background: var(--pb-primary, #2095b8);
	color: var(--pb-text-on-primary, #fff);
	cursor: pointer;
}
.pb-report-form__submit:hover {
	background: var(--pb-primary-dark, #1a7a98);
}

/* Desktop: centre the dialog instead of bottom-sheet. */
@media (min-width: 768px) {
	.pb-report-modal {
		align-items: center;
		padding: 24px;
	}
	.pb-report-modal__dialog {
		border-radius: 16px;
		box-shadow: 0 18px 50px -12px rgba(15, 23, 42, 0.4);
	}
}
