/**
 * Website Feedback modal — top bar link + form (all public pages)
 * Version: 1.1.0 | Date: 2026-06-13
 */

body.sre-wf-modal-open,
body.sre-wf-page-capturing {
	overflow: hidden;
}

body.sre-wf-page-capturing .sre-website-feedback-trigger::after {
	content: '…';
}

.top-bar-sre-feedback-link {
	margin-left: 12px;
	color: #ffffff !important;
}

.top-bar-wrap .top-bar-right-wrap .top-bar-sre-feedback-link,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link,
.top-bar-wrap .top-bar-sre-feedback-link .top-bar-contact,
.top-bar-wrap .top-bar-sre-feedback-link .sre-website-feedback-trigger,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .top-bar-contact,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .sre-website-feedback-trigger,
.top-bar-wrap #sre-website-feedback-trigger,
.top-bar-wrap a#sre-website-feedback-trigger,
.top-bar-wrap .sre-website-feedback-trigger {
	background: transparent !important;
	border: none;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: inherit;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
	cursor: pointer;
	padding: 0;
	line-height: inherit;
	opacity: 1 !important;
}

.top-bar-wrap .top-bar-sre-feedback-link .top-bar-contact:hover,
.top-bar-wrap .top-bar-sre-feedback-link .top-bar-contact:focus,
.top-bar-wrap .top-bar-sre-feedback-link .sre-website-feedback-trigger:hover,
.top-bar-wrap .top-bar-sre-feedback-link .sre-website-feedback-trigger:focus,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .top-bar-contact:hover,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .top-bar-contact:focus,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .sre-website-feedback-trigger:hover,
.top-bar-wrap .top-bar-contact-info.top-bar-sre-feedback-link .sre-website-feedback-trigger:focus,
.top-bar-wrap #sre-website-feedback-trigger:hover,
.top-bar-wrap #sre-website-feedback-trigger:focus,
.top-bar-wrap a#sre-website-feedback-trigger:hover,
.top-bar-wrap a#sre-website-feedback-trigger:focus,
.top-bar-wrap .sre-website-feedback-trigger:hover,
.top-bar-wrap .sre-website-feedback-trigger:focus {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 0.92 !important;
	outline: none;
	text-decoration: underline !important;
	background: transparent !important;
}

.sre-wf-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000010;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sre-wf-overlay.open {
	opacity: 1;
	visibility: visible;
}

.sre-wf-overlay.sre-wf-capturing {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sre-wf-screenshot-status {
	color: #2f5d3a;
	font-weight: 600;
}

.sre-wf-is-hidden {
	display: none !important;
}

.sre-wf-screenshot-fallback:not(.sre-wf-is-hidden) {
	display: block !important;
	visibility: visible !important;
}

.sre-wf-preview:not(.sre-wf-is-hidden) {
	display: flex !important;
	visibility: visible !important;
}

.sre-wf-screenshot-status:not(.sre-wf-is-hidden) {
	display: block !important;
}

.sre-wf-screenshot-fallback {
	margin: 10px 0 0;
	padding: 10px 12px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #444;
	background: #f8f4f0;
	border: 1px solid #e5d8cc;
	border-radius: 6px;
}

.sre-wf-open-new-tab {
	color: #8a0516;
	font-weight: 700;
	text-decoration: underline;
}

.sre-wf-open-new-tab:hover,
.sre-wf-open-new-tab:focus {
	color: #5c0310;
}

.sre-wf-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	padding: 22px 20px 18px;
	box-sizing: border-box;
}

.sre-wf-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 0;
}

.sre-wf-title {
	margin: 0 36px 10px 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #8a0516;
}

.sre-wf-intro {
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #444;
}

.sre-wf-form {
	margin: 0;
}

.sre-wf-fieldset {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 12px 12px;
	margin: 0 0 14px;
}

.sre-wf-legend {
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0 4px;
}

.sre-wf-required {
	color: #b30000;
}

.sre-wf-optional {
	font-weight: 400;
	color: #666;
	font-size: 0.85rem;
}

.sre-wf-radio,
.sre-wf-rating-option {
	display: block;
	margin: 6px 0 0;
	cursor: pointer;
}

.sre-wf-radio input,
.sre-wf-rating-option input {
	margin-right: 8px;
}

.sre-wf-rating-wrap {
	background: #faf7f7;
}

.sre-wf-rating-option span {
	font-size: 0.88rem;
	line-height: 1.35;
}

.sre-wf-field {
	margin: 0 0 14px;
}

.sre-wf-field label,
.sre-wf-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.sre-wf-field input[type="text"],
.sre-wf-field input[type="email"],
.sre-wf-field select,
.sre-wf-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 0.95rem;
}

.sre-wf-char-count {
	display: block;
	text-align: right;
	font-size: 0.8rem;
	color: #666;
	margin-top: 4px;
}

.sre-wf-accordion {
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.sre-wf-acc-item + .sre-wf-acc-item {
	border-top: 1px solid #e5e5e5;
}

.sre-wf-acc-toggle {
	width: 100%;
	text-align: left;
	background: #f4f4f4;
	border: none;
	padding: 10px 12px;
	font-weight: 600;
	cursor: pointer;
}

.sre-wf-acc-toggle[aria-expanded="true"] {
	background: #efe6e6;
	color: #8a0516;
}

.sre-wf-acc-panel {
	padding: 6px 8px 10px;
	background: #fff;
}

.sre-wf-device-option {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	padding: 7px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}

.sre-wf-device-option:hover,
.sre-wf-device-option.is-selected {
	background: #8a0516;
	color: #fff;
}

.sre-wf-selected {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: #333;
}

.sre-wf-hint {
	margin: 4px 0 8px;
	font-size: 0.8rem;
	color: #666;
}

.sre-wf-btn-secondary {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px solid #8a0516;
	background: #fff;
	color: #8a0516;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
}

.sre-wf-btn-secondary:disabled {
	opacity: 0.6;
	cursor: wait;
}

.sre-wf-preview {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sre-wf-preview img {
	border: 1px solid #ddd;
	border-radius: 4px;
	object-fit: cover;
	width: 96px;
	height: 72px;
	flex-shrink: 0;
}

.sre-wf-link-btn {
	border: none;
	background: transparent;
	color: #8a0516;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: 0.85rem;
}

.sre-wf-inline-error {
	color: #b30000;
	font-size: 0.9rem;
	margin: 0 0 10px;
}

.sre-wf-actions {
	margin: 0;
}

.sre-wf-submit {
	background: #8a0516;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-weight: 700;
	cursor: pointer;
}

.sre-wf-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.sre-wf-success {
	display: block;
	margin-top: 10px;
	color: #1a6b2e;
	font-weight: 600;
}

@media (max-width: 767px) {
	.top-bar-sre-feedback-link {
		margin-left: 8px;
	}

	.sre-website-feedback-trigger {
		font-size: 0.85rem;
	}

	.sre-wf-box {
		max-height: 88vh;
		padding: 18px 14px 14px;
	}
}
