/**
 * Shell dialog Ride On — card gris clair, bandeau noir, croix.
 * Classes : .rideon-dialog / __panel / __banner / __title / __close / __body
 */

.rideon-dialog {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--black-pure, #000);
	max-width: 100vw;
	max-height: 100vh;
	max-height: 100dvh;
}

.rideon-dialog[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1rem;
	box-sizing: border-box;
	overflow: hidden;
}

.rideon-dialog::backdrop {
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.rideon-dialog__panel {
	--rideon-dialog-radius: 8px;
	display: flex;
	flex-direction: column;
	width: min(36rem, calc(100vw - 2rem));
	max-height: min(90dvh, calc(100vh - 2rem));
	overflow: hidden;
	isolation: isolate;
	/* Fond noir = coins haut du rayon = bandeau (pas de liseré gris) */
	background: var(--black-pure, #000);
	color: var(--black-pure, #000);
	border-radius: var(--rideon-dialog-radius);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
	box-sizing: border-box;
}

.rideon-dialog__banner {
	/* Annule legacy style.css `header { position:fixed; height:130px; width:100% }` */
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex: 0 0 auto;
	flex-shrink: 0;
	width: auto;
	max-width: none;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 18px 18px 18px 22px;
	background: var(--black-pure, #000);
	color: var(--white-pure, #fff);
	border-radius: 0;
	z-index: auto;
	box-sizing: border-box;
}

.rideon-dialog__title {
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: var(--h3-size, clamp(1.25rem, 2.5vw, 1.75rem));
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	/* Force mono serré : le token header BF est à 0. */
	word-spacing: -0.2em;
	color: var(--white-pure, #fff);
}

.rideon-dialog__close {
	appearance: none;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -8px -6px -8px 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--white-pure, #fff);
	font-size: 1.85rem;
	line-height: 1;
	cursor: pointer;
}

.rideon-dialog__close:focus-visible {
	outline: 2px solid var(--onewheel-blue, #4cc0e8);
	outline-offset: 2px;
}

.rideon-dialog__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 20px 20px 22px;
	box-sizing: border-box;
	background: var(--surface-light, #f5f5f5);
}
