/* gmailtheme — the attachments panel under a row (js/rowatt.js, 2026-11-07). Loaded after yahoo.css. */

/* Mail's attachment chips in a row open the panel (js/rowatt.js); Mail's own chip CSS has cursor: unset */
.envelope-list li.envelope .attachment-tag { cursor: pointer; }
.envelope-list li.envelope .attachment-tag:hover { border-color: var(--y-purple, #7d2eff); }

/* ---------------------------------------------------------------- the split
   The panel is laid out once at full height; js slides the rows below down off it (transform only). */
.envelope-list li.envelope.list-item__wrapper:has(> .gm-ra) {
	height: auto !important;
	min-height: 52px !important;
	flex-direction: column;
	align-items: stretch;
	cursor: default;
	z-index: auto !important; /* not the hover z-index: the rows below (later in the DOM) must slide over the panel */
}
.envelope-list li.envelope.list-item__wrapper:has(> .gm-ra) > .list-item { flex: 0 0 52px; cursor: pointer; }
/* The panel is inside the row's <li>, so the pointer on the panel is li:hover too: keep the row itself un-hovered
   then (resting background, no hover buttons, date shown) — Navin 2026-11-07 */
.envelope-list li.envelope.list-item__wrapper:is(:has(> .gm-ra:hover), [data-gm-nohover]) { background: #fff !important; }
.envelope-list li.envelope.list-item__wrapper.gm-selected:is(:has(> .gm-ra:hover), [data-gm-nohover]),
.envelope-list li.envelope.list-item__wrapper.selected:is(:has(> .gm-ra:hover), [data-gm-nohover]) { background: var(--y-purple-light, #f1e9ff) !important; }
.envelope-list li.envelope:is(:has(> .gm-ra:hover), [data-gm-nohover]) .list-item--one-line > .gm-hover { visibility: hidden !important; }
.envelope-list li.envelope:is(:has(> .gm-ra:hover), [data-gm-nohover]) .list-item--one-line .gm-rdate { visibility: visible !important; }
/* [data-gm-nohover]: set by js/rowatt.js holdHover() when the panel goes from under the pointer (its ✕), until the
   pointer next moves — else Chrome passes the hover to the row for a moment (a hover blink) */
/* Performance first (Navin 2026-11-07, 1.0.143): no shadows (plain 1 px edges instead of the inset "parting"
   shadows + the sliding row's edge shadow) and no fade/rise/stagger of the content or cards (each card was its own
   layer) — the rows sliding off it are the only motion. contain: its layout/paint stay inside it. */
.gm-ra {
	background: #f7f4fd;
	border-top: 1px solid color-mix(in srgb, var(--y-purple, #7d2eff) 14%, #fff);
	border-bottom: 1px solid color-mix(in srgb, var(--y-purple, #7d2eff) 14%, #fff);
	contain: content;
	cursor: default;
}
.gm-ra__body { padding: 12px 24px 18px 60px; }
.gm-ra__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 28px;
	margin-bottom: 10px;
	font: 500 13px/20px var(--gm-font);
	color: var(--gm-text-2);
}
a.gm-ra__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px 0 8px;
	border-radius: 14px;
	color: var(--y-purple) !important;
	background: color-mix(in srgb, var(--y-purple) 9%, #fff);
	font: 500 13px/20px var(--gm-font);
	text-decoration: none;
}
a.gm-ra__all:hover { background: color-mix(in srgb, var(--y-purple) 16%, #fff); }
a.gm-ra__all .gm-ic { width: 16px; height: 16px; }

/* cards (same look as the open message's, css/thumbs.css) */
.gm-ra__cards { display: flex; flex-wrap: wrap; gap: 12px; }
.gm-ra__card {
	position: relative;
	width: 180px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .15s, border-color .15s;
}
.gm-ra__card:hover { border-color: transparent; box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15); }
/* the round ✕ after the last card: collapses the split */
button.gm-ra__close {
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	min-width: 64px;
	min-height: 64px;
	margin: 0 0 0 12px;
	padding: 0;
	border: 1.5px solid color-mix(in srgb, var(--y-purple, #7d2eff) 30%, transparent);
	border-radius: 50%;
	background: transparent;
	color: var(--y-purple, #7d2eff);
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
button.gm-ra__close:hover {
	background: color-mix(in srgb, var(--y-purple, #7d2eff) 10%, transparent);
	border-color: color-mix(in srgb, var(--y-purple, #7d2eff) 55%, transparent);
}
button.gm-ra__close:active { transform: scale(.94); }
button.gm-ra__close .gm-ic { width: 28px; height: 28px; }

button.gm-ra__open {
	display: block;
	width: 100%;
	height: 112px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f1f3f4;
	cursor: pointer;
}
.gm-ra__thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: var(--gm-mime) center / 44px no-repeat;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.gm-ra__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	background: #fff; /* covers the mime icon underneath as it fades in */
	opacity: 0;
	transition: opacity .45s ease;
}
.gm-ra__thumb--img img { opacity: 1; } /* the fade: added right after the decoded image goes in (js) */
.gm-ra__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 38px 0 10px;
	font: 400 12.5px/16px var(--gm-font);
	color: var(--gm-text);
}
.gm-ra__meta .gm-ic { flex: 0 0 auto; width: 16px; height: 16px; color: var(--gm-text-3); }
.gm-ra__card--pdf .gm-ra__meta .gm-ic { color: #d93025; }
.gm-ra__name { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gm-ra__size { flex: 0 0 auto; color: var(--gm-text-3); }
a.gm-btn.gm-ra__dl {
	position: absolute;
	right: 3px;
	bottom: 2px;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	color: var(--gm-text-3);
}
a.gm-btn.gm-ra__dl:hover { color: var(--y-purple); }
a.gm-btn.gm-ra__dl .gm-ic { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
	.gm-ra__body, .gm-ra__card, button.gm-ra__close { transition: none !important; }
}
