/* Buyer Report Issue modal + Buyer Protection fee tooltip
 *
 * Visual notes:
 * - Light theme only for now: the rest of the unified dashboard does not
 *   support dark mode yet, so we deliberately commented the dark-mode
 *   block at the bottom of this file. Re-enable once IUD has a global
 *   dark-mode token system.
 * - The modal is intentionally full-bleed on mobile (≤480px) so the form
 *   is comfortable to fill on a phone.
 */

/* ─── "Report issue" trigger button ─── */
.issuq-trust-report-button {
	--itr-accent: #ef4444;
	--itr-accent-hover: #dc2626;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--itr-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--itr-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.issuq-trust-report-button::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex: none;
}
.issuq-trust-report-button:hover {
	background: var(--itr-accent);
	color: #fff;
}
.issuq-trust-report-button:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3C/svg%3E");
}
.issuq-trust-report-button:active {
	transform: translateY(1px);
}
.issuq-trust-report-button[disabled],
.issuq-trust-report-button[data-issuq-trust-reported="1"] {
	opacity: 0.7;
	cursor: default;
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}
.issuq-trust-report-button[data-issuq-trust-reported="1"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ─── Order-detail variant (used inside the My Orders modal) ─── */
.iud-order-detail__report-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 6px;
	padding: 14px 16px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 10px;
}
.iud-order-detail__report-row__copy {
	font-size: 13px;
	color: #7c2d12;
	line-height: 1.45;
}
.iud-order-detail__report-row .issuq-trust-report-button {
	flex-shrink: 0;
}

/* ─── Modal overlay + dialog ─── */
.issuq-trust-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
	animation: itr-fade 0.18s ease;
}
@keyframes itr-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.issuq-trust-modal {
	background: #fff;
	color: #0f172a;
	width: min(560px, 100%);
	max-height: 90vh;
	overflow: auto;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
	padding: 0;
	animation: itr-pop 0.18s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes itr-pop {
	from { transform: translateY(8px) scale(0.97); opacity: 0; }
	to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.issuq-trust-modal header {
	padding: 20px 24px 14px;
	border-bottom: 1px solid #f1f5f9;
}
.issuq-trust-modal header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}
.issuq-trust-modal header h2::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}
.issuq-trust-modal header p {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 13px;
}

.issuq-trust-form {
	padding: 18px 24px 22px;
}
.issuq-trust-form label {
	display: block;
	margin-bottom: 14px;
}
.issuq-trust-form label > span {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
	color: #1e293b;
}
.issuq-trust-form select,
.issuq-trust-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.issuq-trust-form select:focus,
.issuq-trust-form textarea:focus {
	outline: none;
	border-color: #1f6feb;
	box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}
.issuq-trust-form textarea {
	resize: vertical;
	min-height: 110px;
}
.issuq-trust-form__hint {
	margin: -8px 0 14px;
	font-size: 12px;
	color: #64748b;
}

.issuq-trust-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}
.issuq-trust-modal__actions button {
	padding: 9px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.05s ease;
}
.issuq-trust-modal__actions button:active {
	transform: translateY(1px);
}
.issuq-trust-cancel {
	background: #fff;
	border-color: #cbd5e1;
	color: #334155;
}
.issuq-trust-cancel:hover {
	background: #f8fafc;
}
.issuq-trust-submit {
	background: #ef4444;
	color: #fff;
}
.issuq-trust-submit:hover {
	background: #dc2626;
}
.issuq-trust-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.issuq-trust-form__error {
	color: #b91c1c;
	margin-top: 10px;
	font-size: 13px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	padding: 10px 12px;
	border-radius: 8px;
}

@media (max-width: 480px) {
	.issuq-trust-modal-overlay {
		padding: 0;
		align-items: flex-end;
	}
	.issuq-trust-modal {
		border-radius: 18px 18px 0 0;
		max-height: 95vh;
		width: 100%;
	}
	.issuq-trust-modal__actions {
		flex-direction: column-reverse;
	}
	.issuq-trust-modal__actions button {
		width: 100%;
		text-align: center;
	}
}

/* ─── Buyer Protection fee tooltip icon (cart/checkout + order detail) ─── */
.issuq-trust-fee-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	color: #64748b;
	cursor: help;
	vertical-align: middle;
	position: relative;
}
.issuq-trust-fee-info i.fa-circle-info {
	font-size: 14px;
	line-height: 1;
}
.issuq-trust-fee-info__fallback {
	display: none;
	font-size: 11px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 50%;
	background: #e2e8f0;
	color: #475569;
}
/* If Font Awesome isn't loaded, the <i> won't render — show the fallback. */
.issuq-trust-fee-info i.fa-circle-info:empty + .issuq-trust-fee-info__fallback,
body:not(.fa-loaded) .issuq-trust-fee-info i.fa-circle-info ~ .issuq-trust-fee-info__fallback {
	display: inline-block;
}

/* ─── Dispute evidence dropzone (report modal) ─── */
.issuq-trust-evidence {
	margin: 4px 0 8px;
}
.issuq-trust-evidence__label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #1e293b;
	margin-bottom: 4px;
}
.issuq-trust-evidence__sub {
	margin: 0 0 10px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}
.issuq-trust-evidence__limits {
	color: #94a3b8;
	white-space: nowrap;
}

.issuq-trust-dropzone {
	position: relative;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 18px 14px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.issuq-trust-dropzone:hover,
.issuq-trust-dropzone:focus {
	border-color: #1f6feb;
	background: #eff6ff;
	outline: none;
}
.issuq-trust-dropzone--active {
	border-color: #1f6feb;
	background: #dbeafe;
}
.issuq-trust-evidence__input {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}
.issuq-trust-dropzone__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 320px;
	margin: 0 auto;
	pointer-events: none;
}
.issuq-trust-dropzone__browse {
	pointer-events: auto;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid #1f6feb;
	background: #fff;
	color: #1f6feb;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	min-height: 44px;
	min-width: 140px;
	touch-action: manipulation;
}
.issuq-trust-dropzone__browse:hover {
	background: #1f6feb;
	color: #fff;
}
.issuq-trust-dropzone__icon {
	font-size: 28px;
	line-height: 1;
	opacity: 0.85;
}
.issuq-trust-dropzone__text {
	font-size: 13px;
	color: #475569;
	line-height: 1.4;
}

.issuq-trust-evidence__list {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.issuq-trust-evidence__chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
}
.issuq-trust-evidence__chip-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
	color: #0f172a;
}
.issuq-trust-evidence__chip-remove {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
}
.issuq-trust-evidence__chip-remove:hover {
	background: #fee2e2;
	color: #b91c1c;
}

/* ─── Dark-mode block intentionally disabled (commented out)
 *
 * The unified dashboard does not yet implement a dark-mode token system.
 * Enabling these rules causes the modal to flip to dark while everything
 * around it stays light. Re-enable when IUD ships proper dark-mode support.
 *
 * @media (prefers-color-scheme: dark) {
 *	.issuq-trust-modal {
 *		background: #1f1f1f;
 *		color: #f4f4f4;
 *	}
 *	.issuq-trust-form select,
 *	.issuq-trust-form textarea {
 *		background: #161616;
 *		color: inherit;
 *		border-color: rgba(255, 255, 255, 0.18);
 *	}
 * }
 */
