/*
 * Flock Press — Module 6 (Trust & Safety) stylesheet.
 *
 * Enqueued on single listing pages only (safety.php).
 * Every selector is .fp-safety- / .fp-report- namespaced
 * (blueprint namespacing rule), so the sheet is inert
 * anywhere its markup is absent. Palette is the site's:
 * navy #1B3A8C (+ gradient #0C224E → #1B3A8C), slate
 * #64748B, cream #FDF1E7, ink #22262D / #44484F.
 */

/* --- Safety strip (content column, under the seller card) --- */

.fp-safety-strip {
	display: flex; align-items: flex-start; gap: 8px;
	background: #fff; border-radius: 12px;
	padding: 10px 12px; margin: 12px 0;
	box-shadow: 0 2px 8px rgba(80, 64, 38, .08);
	font-size: 13px; line-height: 1.45; color: #44484F;
}
.fp-safety-strip-icon { color: #1B3A8C; font-size: 15px; line-height: 1.3; }
.fp-safety-strip-text { flex: 1; }

/* --- Food safety note (Food category fp_listing singles, 1.0.77) --- */

.fp-food-note {
	background: #FFF6CF; border: 1px solid #EFE0A0; border-radius: 12px;
	padding: 12px 14px; margin: 12px 0;
	box-shadow: 0 2px 8px rgba(80, 64, 38, .08);
	font-size: 13.5px; line-height: 1.5; color: #44484F;
}
.fp-food-note-head {
	display: flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 700; color: #22262D; margin-bottom: 4px;
}
.fp-food-note-icon { color: #1B3A8C; font-size: 15px; line-height: 1.3; }
.fp-food-note-text { margin: 0; }

/* --- Animal listing note (animal category fp_listing singles, 1.0.78) --- */

.fp-animal-note {
	background: #E9EEF5; border: 1px solid #C9D4E4; border-radius: 12px;
	padding: 12px 14px; margin: 12px 0;
	box-shadow: 0 2px 8px rgba(80, 64, 38, .08);
	font-size: 13.5px; line-height: 1.5; color: #44484F;
}
.fp-animal-note-head {
	display: flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 700; color: #22262D; margin-bottom: 4px;
}
.fp-animal-note-icon { color: #1B3A8C; font-size: 15px; line-height: 1.3; }
.fp-animal-note-text { margin: 0; }

/* --- Report action (sidebar actions container) --- */

.fp-safety-report { margin-top: 4px; }
.fp-report-link {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 4px 0; margin: 0;
	font: inherit; font-size: 14px; color: #64748B;
	cursor: pointer; text-decoration: none;
}
.fp-report-link:hover, .fp-report-link:focus { color: #1B3A8C; text-decoration: underline; }
span.fp-report-link { cursor: default; }
span.fp-report-link:hover { color: #64748B; text-decoration: none; }
.fp-report-link--done { color: #3E7C4F; }

/* --- Report modal (the site's sheet pattern, cf. posting.css) --- */

.fp-report-modal {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: flex-end; justify-content: center;
}
/* The modal's only closed state is the hidden attribute
   (safety.js), and the display:flex above overrides the UA
   [hidden] rule — this rule (the 0.5.10 lesson) makes
   hidden authoritative in every state. */
.fp-report-modal[hidden] { display: none; }
.fp-report-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 33, .55); }
.fp-report-modal__sheet {
	position: relative; width: 100%; max-width: 430px; max-height: 88vh;
	overflow: auto; background: #FDF1E7;
	border-radius: 20px 20px 0 0; padding: 14px 14px 22px;
}
@media (min-width: 640px) {
	.fp-report-modal { align-items: center; }
	.fp-report-modal__sheet { border-radius: 20px; }
}
.fp-report-modal__bar { display: flex; align-items: center; margin-bottom: 10px; }
.fp-report-modal__label { font-size: 15px; font-weight: 700; color: #22262D; }
.fp-report-modal__close {
	margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: #fff; color: #22262D; font-size: 15px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 6px rgba(80, 64, 38, .13);
}
body.fp-report-open { overflow: hidden; }

/* --- Report form --- */

.fp-report-form__listing { font-size: 14px; font-weight: 700; color: #1B3A8C; margin: 0 0 12px; }
.fp-report-field { display: block; margin-bottom: 12px; }
.fp-report-field__label { display: block; font-size: 13px; font-weight: 700; color: #44484F; margin-bottom: 5px; }
.fp-report-field__hint { display: block; font-size: 12px; color: #9AA0A6; margin-top: 4px; }
.fp-report-select, .fp-report-note {
	width: 100%; box-sizing: border-box;
	background: #fff; border: 1px solid #E2D9C8; border-radius: 12px;
	padding: 10px 12px; font: inherit; font-size: 14px; color: #22262D;
}
.fp-report-select:focus, .fp-report-note:focus { outline: 2px solid #1B3A8C; outline-offset: 0; border-color: transparent; }
.fp-report-form__msg { font-size: 13.5px; line-height: 1.45; color: #9C2B2B; margin: 0 0 12px; }
.fp-report-submit {
	display: block; width: 100%; border: 0; border-radius: 999px;
	padding: 12px 16px; font: inherit; font-size: 15px; font-weight: 700;
	color: #fff; background: linear-gradient(135deg, #0C224E, #1B3A8C);
	cursor: pointer; box-shadow: 0 2px 8px rgba(12, 34, 78, .25);
}
.fp-report-submit[disabled] { opacity: .55; cursor: default; }
.fp-report-form__fineprint { font-size: 12px; color: #9AA0A6; text-align: center; margin: 10px 0 0; }

/* --- Thanks state --- */

.fp-report-done { text-align: center; padding: 8px 0 2px; }
.fp-report-done__title { font-size: 17px; font-weight: 700; color: #22262D; margin: 0 0 6px; }
.fp-report-done__text { font-size: 13.5px; line-height: 1.5; color: #44484F; margin: 0 0 14px; }

/* One report control only (0.7.37): HivePress also renders its stock
   "Report Listing" action in the same sidebar container. Flock Press's
   report (fp_report records + the modal above) is the site's report
   path, so the stock action is hidden wherever this sheet loads
   (single listing pages). */
.hp-listing__action--report { display: none !important; }

/* --- Big Report panel (1.0.92, fp_listing singles, under the photos) ---
   Full width of the content column, white surface, navy accents,
   large readable type (owner order Dec 5, 2026: big enough for
   someone to read). The body opens inline — the closed state is
   the hidden attribute, kept authoritative like the modal's. */

.fp-report-panel {
	background: #fff; border: 1px solid #E2D9C8; border-radius: 16px;
	padding: 6px 14px 14px; margin: 12px 0;
	box-shadow: 0 2px 8px rgba(80, 64, 38, .08);
}
.fp-report-panel__toggle {
	display: flex; align-items: center; gap: 8px;
	width: 100%; box-sizing: border-box;
	background: none; border: 0; padding: 10px 0 4px; margin: 0;
	font: inherit; font-size: 17px; font-weight: 700; color: #1B3A8C;
	cursor: pointer; text-decoration: none; text-align: left;
}
.fp-report-panel__toggle:hover, .fp-report-panel__toggle:focus { text-decoration: underline; }
.fp-report-panel__toggle[disabled] { color: #3E7C4F; cursor: default; text-decoration: none; }
.fp-report-panel__hint { font-size: 13.5px; line-height: 1.45; color: #64748B; margin: 0 0 6px; }
.fp-report-panel__done-line { font-size: 16px; font-weight: 700; color: #3E7C4F; margin: 10px 0 4px; }
.fp-report-panel__body { padding-top: 6px; }
.fp-report-panel__body[hidden] { display: none; }
.fp-report-panel__heading { font-size: 17px; font-weight: 700; color: #22262D; margin: 4px 0 10px; }
.fp-report-panel__options { margin-bottom: 12px; }
.fp-report-panel__option {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #E2D9C8; border-radius: 12px;
	padding: 11px 12px; margin-bottom: 8px;
	font-size: 16px; color: #22262D; cursor: pointer;
}
.fp-report-panel__option:hover { border-color: #1B3A8C; }
.fp-report-panel__option input[type="radio"] {
	width: 20px; height: 20px; margin: 0; flex: none; accent-color: #1B3A8C;
}
.fp-report-panel__option span { flex: 1; }
.fp-report-panel .fp-report-field__label { font-size: 14px; }
.fp-report-panel .fp-report-note { font-size: 16px; }
.fp-report-panel .fp-report-done { text-align: left; padding-top: 4px; }
