.retreat-reg-wrap { max-width: 960px; margin: 0 auto; font-size: 16px; padding: 0 24px; box-sizing: border-box; }
.retreat-reg-wrap label { display: block; margin-bottom: 14px; font-weight: 600; }
.retreat-reg-wrap input[type="text"],
.retreat-reg-wrap input[type="email"],
.retreat-reg-wrap input[type="tel"],
.retreat-reg-wrap input[type="number"],
.retreat-reg-wrap input[type="password"],
.retreat-reg-wrap select,
.retreat-reg-wrap textarea {
	width: 100%; padding: 8px 10px; margin-top: 4px; font-weight: normal;
	border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}

/* Generic 2-column grid used for contact info, adult/child counts, etc. */
.rr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.rr-grid-2 label { min-width: 0; }

/* Attendee row layouts: name/age/gender in one row, email/city in another */
.rr-row-3col { display: grid; grid-template-columns: 2fr 1fr 1.6fr; gap: 0 14px; }
.rr-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 10px; }
.rr-gender-group { display: flex; gap: 18px; align-items: center; margin-top: 6px; }
.rr-radio-label { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; margin: 0; }
.rr-radio-label input[type="radio"] { width: auto; margin: 0; }

/* All custom action buttons use this class — scoped so it never touches TinyMCE/quicktags buttons */
.retreat-reg-wrap .rr-btn {
	display: inline-block; padding: 10px 20px; border: none; border-radius: 4px;
	background: #2271b1; color: #fff; font-weight: 600; cursor: pointer; margin-right: 8px;
	text-decoration: none; font-size: 14px; line-height: 1.4;
}
.retreat-reg-wrap .rr-btn:hover { background: #1a5a8c; color: #fff; }
.retreat-reg-wrap .rr-btn.rr-secondary { background: #ddd; color: #333; }
.retreat-reg-wrap .rr-btn:disabled { opacity: .6; cursor: default; }

.retreat-reg-error { color: #b00; margin-top: 10px; font-weight: 600; }
.rr-capacity-note { color: #2271b1; font-weight: 600; margin-top: -8px; }
.rr-capacity-full { color: #b00; font-weight: 700; font-size: 1.1em; margin-top: -4px; }
#retreat-reg-step-1, #retreat-reg-step-2, #retreat-reg-step-done { max-width: 640px; margin: 0 auto; }

.rr-step3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.rr-step3-left, .rr-step3-right { min-width: 0; }
@media (max-width: 700px) {
	.rr-step3-grid { grid-template-columns: 1fr; }
}

.rr-optional-note { font-weight: normal; color: #888; font-size: 0.85em; }

.rr-summary-totals { margin-top: 6px; }
.rr-summary-line { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #eee; gap: 12px; }
.rr-summary-line span:first-child { flex: 1; }
.rr-summary-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rr-summary-subline { border-bottom: none; padding-top: 0; color: #b00; font-size: 0.9em; }
.rr-discount-amount { color: #b00; }
.rr-summary-total { border-bottom: none; border-top: 2px solid #ccc; margin-top: 4px; font-weight: 700; font-size: 1.1em; }
.rr-attendee-row { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px; margin-bottom: 14px; }
.rr-attendee-row legend { font-weight: 700; padding: 0 6px; }
.retreat-reg-summary { background: #f7f7f7; border-radius: 6px; padding: 14px; margin: 16px 0; }

/* Itemized attendee list on the payment step */
.rr-attendee-summary { list-style: none; padding: 0; margin: 0 0 6px; }

.retreat-director-login { max-width: 380px; }

.rrd-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rrd-header h2 { margin: 0; flex: 1; }
.rrd-tabs { margin-bottom: 16px; display: flex; align-items: center; }
.rrd-tab-btn { background: #eee; color: #333; }
.rrd-tab-btn.active { background: #000; color: #fff; padding-top: 11px; padding-bottom: 11px; }
.rrd-export-btn { background: #00a32a; }
.rrd-export-btn:hover { background: #007a1f !important; }

.rrd-charts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.rrd-chart-box { background: #f7f7f7; border-radius: 6px; padding: 12px; min-width: 0; }
.rrd-chart-box h4 { margin: 0 0 8px; text-align: center; font-size: 13px; color: #444; }
.rrd-chart-canvas-wrap { position: relative; height: 140px; }
.rrd-chart-list-box { font-size: 12px; overflow-y: auto; max-height: 190px; }
.rrd-list-section { margin-bottom: 8px; }
.rrd-list-section strong { display: block; font-size: 11px; text-transform: uppercase; color: #777; margin-bottom: 3px; }
.rrd-list-row { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid #eee; }
@media (max-width: 900px) {
	.rrd-charts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.rrd-charts { grid-template-columns: 1fr; }
}

.rrd-inline-check { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.rrd-inline-check input { width: auto; }

.rrd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.rrd-filters input { padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; max-width: 280px; }
.rrd-table-wrap { overflow-x: auto; }
.rrd-table { width: 100%; border-collapse: collapse; }
.rrd-table th, .rrd-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
.rrd-table th { background: #f7f7f7; user-select: none; }
.rrd-table th[data-sort] { cursor: pointer; }
.rrd-table th[data-sort]:hover { background: #eee; }
/* Fixed-width slots so the trash icon always lands in the same column, even
   on paid rows where the reminder button is absent. */
.rrd-actions-cell { white-space: nowrap; }
.rrd-action-slot { display: inline-block; width: 34px; text-align: center; vertical-align: middle; }

/* !important beats the theme's own global `button { ... }` styling, the same
   issue that affected the RTE toolbar — see the theme-color-bleed fix above. */
.rrd-reminder-btn, .rrd-delete-btn {
	border: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 16px !important;
	line-height: 1 !important;
	padding: 6px 8px !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
/* Distinct colors for accessibility: blue = reminder, red = destructive delete. */
.rrd-reminder-btn { background: #2271b1 !important; }
.rrd-reminder-btn:hover:not(:disabled) { background: #17578a !important; }
.rrd-reminder-btn:disabled { background: #c3c4c7 !important; opacity: 0.7; cursor: not-allowed; }

.rrd-delete-btn { background: #b32d2e !important; }
.rrd-delete-btn:hover { background: #8a1f20 !important; }

.rrd-refunded-label { color: #b32d2e; font-weight: 600; }

.rrd-modal-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.5); z-index: 100000;
	align-items: center; justify-content: center;
}
.rrd-modal {
	background: #fff; border-radius: 8px; padding: 24px;
	width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto;
}
.rrd-modal h3 { margin-top: 0; }
.rrd-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rrd-notif-help { color: #666; font-size: 0.9em; margin-top: -8px; }
.rrd-notif-help code { background: #f0f0f1; padding: 1px 5px; border-radius: 3px; }

.rrd-type-label-input { width: 200px; }
#rrd-types-table .rrd-type-save-btn { margin-right: 6px; padding: 4px 12px; font-size: 13px; }

/* Roster tab */
.rrd-roster-name { cursor: pointer; }
.rrd-roster-name:hover { text-decoration: underline; }
.rrd-room-select, .retreat-director-dashboard .rrd-room-select { width: auto; min-width: 160px; padding: 4px 6px; margin-top: 0; }

/* Name Tags tab: on-page live preview (actual print uses its own inline stylesheet in the popup window) */
#rrd-nametag-preview-wrap { margin-top: 10px; }

.rrd-current-logo { min-height: 60px; display: flex; align-items: center; margin-bottom: 8px; }
.rrd-current-logo img { max-width: 160px; max-height: 90px; border: 1px solid #ddd; border-radius: 4px; padding: 6px; background: #fff; }
.rrd-current-logo .rrd-no-logo { color: #888; font-style: italic; }
.rrd-logo-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rrd-library-grid {
	display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 10px;
	border: 1px solid #ddd; border-radius: 6px; background: #fafafa; max-height: 260px; overflow-y: auto;
}
.rrd-library-grid img {
	width: 72px; height: 72px; object-fit: contain; background: #fff;
	border: 2px solid transparent; border-radius: 4px; cursor: pointer; padding: 4px;
}
.rrd-library-grid img:hover { border-color: #2271b1; }
.rrd-library-grid p { margin: 4px; color: #666; }
#rrd-nametag-preview { display: inline-block; }
.rrd-nametag-badge {
	border: 1px dashed #999; box-sizing: border-box; padding: 10px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; position: relative; background: #fff;
}
.rrd-nametag-order { position: absolute; top: 2px; right: 4px; font-size: 7px; color: #999; }
.rrd-nametag-name { font-weight: 700; margin-top: 6px; }
.rrd-nametag-city { font-size: 11px; color: #666; margin-top: 2px; }
.rrd-nametag-room { margin-top: 8px; font-weight: 600; }

/* Force-reset TinyMCE toolbar + "Add Media" button styling — the theme's own
   global button CSS otherwise bleeds into the editor (dark teal, unreadable icons). */
.retreat-director-dashboard .wp-editor-wrap .button,
.retreat-director-dashboard .wp-editor-wrap button,
.retreat-director-dashboard .mce-toolbar-grp button,
.retreat-director-dashboard .mce-btn button,
.retreat-director-dashboard .quicktags-toolbar input.button {
	background: #f6f7f7 !important;
	color: #2c3338 !important;
	border: 1px solid #dcdcde !important;
	box-shadow: none !important;
	text-shadow: none !important;
	border-radius: 3px !important;
}
.retreat-director-dashboard .mce-toolbar-grp .mce-ico {
	color: #2c3338 !important;
}
.retreat-director-dashboard .mce-btn.mce-active button,
.retreat-director-dashboard .wp-editor-wrap button:hover {
	background: #e5e5e5 !important;
}
.retreat-director-dashboard .mce-toolbar-grp,
.retreat-director-dashboard .mce-statusbar {
	background: #f0f0f1 !important;
}
