:root {
	--js-green-dark: #ffd000;
	--js-green: #ffe14a;
	--js-green-light: #fff8d6;
	--ir-orange: #ffd000;
	--ir-orange-2: #ffe14a;
	--ir-orange-soft: #fff8d6;
}

.yn-modal-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--js-green-light);
	border: 2px solid var(--js-green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin: 0 auto 12px;
}

.yn-active-ride-bar {
	position: fixed;
	left: 12px;
	right: 12px;
	z-index: 9998;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 10px 12px;
	display: none;
	align-items: center;
	gap: 10px;
	font-family: 'DM Sans', sans-serif;
}

.yn-active-ride-bar.show {
	display: flex;
}

.yn-active-ride-bar.user-bar {
	top: 52%;
	left: 12px;
	right: 68px;
	bottom: auto;
	transform: translateY(-50%);
	max-width: calc(100vw - 90px);
}

.yn-active-ride-bar.driver-bar {
	bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.yn-active-ride-bar .arb-text {
	flex: 1;
	min-width: 0;
}

.yn-active-ride-bar .arb-title {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--js-green-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yn-active-ride-bar .arb-sub {
	font-size: 0.72rem;
	color: #6b7c72;
}

.yn-active-ride-bar .arb-btn {
	background: linear-gradient(135deg, var(--js-green-dark), var(--js-green));
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.yn-status-toast {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--js-green-dark);
	color: #fff;
	padding: 12px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
	font-family: 'DM Sans', sans-serif;
}

.yn-status-toast.show {
	transform: translateY(0);
}

.yn-status-toast.light {
	background: var(--js-green-light);
	color: var(--js-green-dark);
	font-weight: 500;
}

.yn-chat-dot {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 10px;
	height: 10px;
	background: #e53935;
	border-radius: 50%;
	border: 2px solid #fff;
	display: none;
}

.yn-chat-dot.show {
	display: block;
}

.js-slide-btn {
	position: relative;
	height: 52px;
	border-radius: 26px;
	background: linear-gradient(135deg, var(--js-green-dark), var(--js-green));
	overflow: hidden;
	user-select: none;
}

.js-slide-btn .js-slide-track {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	pointer-events: none;
}

.js-slide-btn .js-slide-knob {
	position: absolute;
	left: 4px;
	top: 4px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	z-index: 2;
}

.yn-fcm-banner {
	background: var(--js-green-light);
	border: 1px solid #c5e0cc;
	border-radius: 12px;
	padding: 10px 12px;
	margin: 10px 14px;
	font-size: 0.78rem;
	color: var(--js-green-dark);
}

/* Cancel Ride bottom sheet — InRide24 orange theme */
.js-cancel-swal-scope {
	padding: 0 !important;
	align-items: flex-end !important;
}

.js-cancel-swal-popup {
	background: #fff !important;
	border-radius: 24px 24px 0 0 !important;
	width: 100% !important;
	max-width: 430px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	box-shadow: 0 -8px 32px rgba(0,0,0,.12) !important;
	overflow: hidden;
}

.js-cancel-swal-html {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

.js-cancel-swal-actions {
	margin: 0 !important;
	padding: 0 18px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	width: 100% !important;
	background: #fff;
}

.js-cancel-swal-confirm {
	width: 100% !important;
	height: 48px !important;
	border: none !important;
	border-radius: 12px !important;
	background: linear-gradient(90deg, #ffd000, #ffd000) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	font-family: 'DM Sans', 'Poppins', sans-serif !important;
	box-shadow: 0 6px 16px rgba(255,208,0,.28) !important;
	margin: 0 !important;
}

.js-cancel-sheet {
	padding: 10px 18px 8px;
	color: #111;
	font-family: 'DM Sans', 'Poppins', sans-serif;
	text-align: left;
}

.js-cancel-handle {
	width: 40px;
	height: 4px;
	border-radius: 4px;
	background: #ffd000;
	margin: 4px auto 14px;
}

.js-cancel-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	color: #111;
	letter-spacing: -0.02em;
}

.js-cancel-sub {
	margin: 0 0 14px;
	text-align: center;
	font-size: 12px;
	line-height: 1.45;
	color: #6f7378;
	padding: 0 8px;
}

.js-cancel-list {
	border-top: 1px solid #f0f0f0;
}

.js-cancel-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 2px;
	border-bottom: 1px solid #f2f2f2;
	cursor: pointer;
	margin: 0;
	position: relative;
}

.js-cancel-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1.5px solid #ffe9a0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #fffce8;
}

.js-cancel-copy {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.js-cancel-label {
	font-size: 13px;
	font-weight: 700;
	color: #111;
	line-height: 1.25;
}

.js-cancel-desc {
	font-size: 11px;
	color: #888;
	line-height: 1.35;
}

.js-cancel-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.js-cancel-radio-ui {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #ddd;
	flex-shrink: 0;
	position: relative;
	box-sizing: border-box;
}

.js-cancel-row.is-checked .js-cancel-radio-ui,
.js-cancel-row:has(.js-cancel-radio:checked) .js-cancel-radio-ui {
	border-color: #ffd000;
}

.js-cancel-row.is-checked .js-cancel-radio-ui::after,
.js-cancel-row:has(.js-cancel-radio:checked) .js-cancel-radio-ui::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: #ffd000;
}

.js-cancel-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 8px;
	font-size: 11px;
	line-height: 1.4;
	color: #888;
}

.js-cancel-other-wrap {
	margin-top: 12px;
	padding: 0 2px;
}

.js-cancel-other-wrap[hidden] {
	display: none !important;
}

.js-cancel-other-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #555;
}

.js-cancel-other-input {
	width: 100%;
	box-sizing: border-box;
	min-height: 84px;
	resize: vertical;
	border-radius: 12px;
	border: 1.5px solid #ffe9a0;
	background: #fffef5;
	color: #111;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.4;
	font-family: inherit;
	outline: none;
}

.js-cancel-other-input::placeholder {
	color: #aaa;
}

.js-cancel-other-input:focus {
	border-color: #ffd000;
	background: #fff;
}

.js-cancel-shield {
	flex-shrink: 0;
	font-size: 0.9rem;
	line-height: 1.2;
}

.js-midride-amount-card {
	margin: 8px 0 12px;
	padding: 18px 16px;
	border-radius: 16px;
	background: #fffce8;
	border: 1.5px solid #ffe9a0;
	text-align: center;
}

.js-midride-amount-label {
	font-size: 0.78rem;
	color: #777;
	margin-bottom: 6px;
}

.js-midride-amount-value {
	font-size: 1.6rem;
	font-weight: 800;
	color: #ffd000;
	letter-spacing: -0.02em;
}

.js-midride-amount-note {
	margin: 0 0 8px;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #888;
	padding: 0 8px;
}

.js-midride-charge-actions {
	display: flex !important;
	flex-direction: column-reverse !important;
	gap: 10px !important;
}

.js-midride-swal-back {
	width: 100% !important;
	height: 48px !important;
	border: 1.5px solid #ffe08a !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #ffd000 !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	font-family: 'DM Sans', 'Poppins', sans-serif !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.js-app-alert-popup {
	border-radius: 18px !important;
	font-family: 'DM Sans', 'Poppins', sans-serif !important;
}

.js-app-alert-confirm {
	background: #ffd000 !important;
	border-radius: 12px !important;
	font-weight: 700 !important;
}

.swal2-confirm,
.swal2-styled.swal2-confirm,
.js-cancel-swal-confirm,
.swal-button--confirm {
	background: linear-gradient(90deg, #ffd000, #ffd000) !important;
	background-color: #ffd000 !important;
	color: #fff !important;
	border: 0 !important;
}
