/* Linked opt-out (cascade) — confirmation + progress modals, and the
   first-party hand-off link. Loaded on the public opt-out page only.
   Kept dependency-free and deliberately neutral so it sits inside the
   existing opt-out iframe styling without fighting it. */

.yoc-cascade-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: block;
}

.yoc-cascade-modal {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 460px;
	max-height: 85%;
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
	padding: 22px 24px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #222;
	box-sizing: border-box;
}

.yoc-cascade-modal h2 {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.3;
	color: #111;
}

.yoc-cascade-intro {
	margin: 0 0 14px;
}

.yoc-cascade-list,
.yoc-cascade-rows {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	max-height: 240px;
	overflow-y: auto;
	border: 1px solid #e2e2e2;
	border-radius: 3px;
}

.yoc-cascade-list li,
.yoc-cascade-rows li {
	padding: 7px 12px;
	border-bottom: 1px solid #efefef;
}

.yoc-cascade-list li:last-child,
.yoc-cascade-rows li:last-child {
	border-bottom: none;
}

.yoc-cascade-rows li {
	display: block;
	overflow: hidden;
}

.yoc-cascade-cname {
	float: left;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yoc-cascade-cstate {
	float: right;
	font-size: 12px;
	padding-left: 10px;
}

/* State is never conveyed by colour alone — each row also carries a text label
   and a symbol prefix (WCAG 2.2 AA, 1.4.1 Use of Colour). */
.yoc-cascade-cstate:before {
	margin-right: 5px;
	font-weight: bold;
}

.yoc-state-pending .yoc-cascade-cstate {
	color: #666;
}

.yoc-state-pending .yoc-cascade-cstate:before {
	content: "\2022";
}

.yoc-state-working .yoc-cascade-cstate {
	color: #1a6fb5;
}

.yoc-state-working .yoc-cascade-cstate:before {
	content: "\21BB";
}

.yoc-state-done .yoc-cascade-cstate {
	color: #1c7c37;
}

.yoc-state-done .yoc-cascade-cstate:before {
	content: "\2713";
}

.yoc-state-skipped .yoc-cascade-cstate {
	color: #5a5a5a;
}

.yoc-state-skipped .yoc-cascade-cstate:before {
	content: "\2713";
}

.yoc-state-failed .yoc-cascade-cstate {
	color: #b3261e;
}

.yoc-state-failed .yoc-cascade-cstate:before {
	content: "\2717";
}

.yoc-cascade-bar {
	height: 8px;
	background: #e6e6e6;
	border-radius: 4px;
	overflow: hidden;
	margin: 0 0 8px;
}

.yoc-cascade-bar-fill {
	height: 100%;
	width: 0;
	background: #1a6fb5;
	-webkit-transition: width 0.25s ease;
	transition: width 0.25s ease;
}

.yoc-cascade-summary {
	margin: 0 0 14px;
	font-size: 12px;
	color: #444;
}

.yoc-cascade-actions {
	text-align: right;
}

.yoc-cascade-actions button {
	font-family: inherit;
	font-size: 13px;
	padding: 8px 18px;
	margin-left: 8px;
	border-radius: 3px;
	border: 1px solid transparent;
	cursor: pointer;
}

.yoc-cascade-accept,
.yoc-cascade-done {
	background: #1a6fb5;
	color: #fff;
	border-color: #17629f;
}

.yoc-cascade-accept:hover,
.yoc-cascade-done:hover {
	background: #17629f;
}

.yoc-cascade-decline {
	background: #f2f2f2;
	color: #333;
	border-color: #ccc;
}

.yoc-cascade-decline:hover {
	background: #e6e6e6;
}

.yoc-cascade-actions button[disabled] {
	opacity: 0.55;
	cursor: default;
}

/* Visible keyboard focus (WCAG 2.2 AA, 2.4.7). */
.yoc-cascade-modal button:focus,
.yoc-cascade-modal a:focus {
	outline: 2px solid #0b4a7d;
	outline-offset: 2px;
}

/* ---- First-party hand-off (e.g. Meta / walled gardens) ---- */

.yoc-fallback {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.5;
}

.yoc-fallback-note {
	color: #444;
}

.yoc-fallback-link {
	display: inline-block;
	margin-top: 4px;
	padding: 5px 12px;
	background: #1a6fb5;
	color: #fff !important;
	border-radius: 3px;
	text-decoration: none;
}

.yoc-fallback-link:hover {
	background: #17629f;
	text-decoration: none;
}
