.rtj-wrap { display: flex; justify-content: flex-end; width: 100%; margin-top: 10px; }
.rtj-wrap .rtj-open {
	display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; cursor: pointer;
	padding: 2px 0 !important; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0;
	color: var(--civi-color-accent, #c0392b) !important;
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.rtj-wrap .rtj-open::before {
	content: ''; width: 16px; height: 16px; flex: 0 0 16px; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 6 6.9 11.9H5.1L12 8zm-1 3v4h2v-4h-2zm0 5v2h2v-2h-2z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 6 6.9 11.9H5.1L12 8zm-1 3v4h2v-4h-2zm0 5v2h2v-2h-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rtj-wrap .rtj-open:hover, .rtj-wrap .rtj-open:focus {
	color: var(--civi-color-accent, #c0392b) !important; background: none !important; text-decoration: underline;
}

.rtj-disclaimer { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: #666; }
.rtj-disclaimer[hidden] { display: none; }
.rtj-disclaimer a { color: var(--civi-color-accent, #c0392b); text-decoration: none; }
.rtj-disclaimer a:hover { text-decoration: underline; }

html.rtj-lock { overflow: hidden; }

.rtj-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rtj-modal[hidden] { display: none; }
.rtj-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.rtj-dialog {
	position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
	background: #fff; color: #222; border-radius: 12px; padding: 28px 26px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3); box-sizing: border-box;
}
.rtj-dialog h3 { margin: 0 0 6px; font-size: 22px; }
.rtj-sub { margin: 0 0 18px; color: #666; font-size: 14px; }
.rtj-close {
	position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0;
	font-size: 26px; line-height: 1; color: #666; background: transparent; border: 0; cursor: pointer;
}
.rtj-close:hover { color: #000; }

.rtj-field { margin-bottom: 14px; }
.rtj-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.rtj-field input, .rtj-field select, .rtj-field textarea {
	width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 15px;
	border: 1px solid #ccd0d4; border-radius: 6px; background: #fff; color: #222;
}
.rtj-field input:focus, .rtj-field select:focus, .rtj-field textarea:focus { outline: 2px solid var(--civi-color-accent, #c0392b); border-color: var(--civi-color-accent, #c0392b); }

.rtj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rtj-msg { min-height: 20px; margin-bottom: 10px; font-size: 14px; }
.rtj-msg.rtj-ok { color: #1a7f37; }
.rtj-msg.rtj-err { color: #b32d2e; }

.rtj-submit {
	width: 100%; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
	color: #fff; background: var(--civi-color-accent, #c0392b); border: 0; border-radius: 999px;
}
.rtj-submit:hover { opacity: .9; }
.rtj-submit[disabled] { opacity: .6; cursor: not-allowed; }
