/* Only plugin-created fallback surfaces need these base rules. Existing Woodmart surfaces retain their styles. */
@media (min-width: 1025px) {
	/* Width must settle before the existing panel measures the rail. */
	.wd-sticky-nav.ykm-nav-open { transition-property: transform; }
	body.ykm-injected-rail { margin-right: var(--wd-sticky-nav-w, 60px); }
	.ykm-created-rail {
		--wd-sticky-nav-w: 60px;
		position: fixed;
		top: var(--wd-admin-bar-h, 0px);
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: var(--wd-sticky-nav-w);
		background: var(--bgcolor-white, #fff);
		border-left: 1px solid rgba(118,118,118,.12);
		overflow: hidden auto;
	}
	.ykm-created-rail:hover, .ykm-created-rail:focus-within { width: 275px; }
	.ykm-created-rail .wd-sticky-nav-title { display: flex; align-items: center; min-height: 44px; margin: 8px; padding: 0 12px; color: #fff; background: var(--wd-primary-color, #0878e7); }
	.ykm-created-rail .wd-sticky-nav-title::before { content: '\2630'; font-family: sans-serif; font-size: 18px; }
	.ykm-created-rail > ul { list-style: none; margin: 0; padding: 0; width: 275px; }
	.ykm-created-rail > ul > li { display: block; margin: 0; padding: 0; }
	.ykm-created-rail > ul > li > a { display: flex; align-items: center; box-sizing: border-box; gap: 0; min-height: 45px; padding: 4px 20px; color: inherit; font-size: 14px; text-decoration: none; }
	.ykm-created-rail .wd-nav-img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
	.ykm-created-rail .nav-link-text, .ykm-created-rail .wd-sticky-nav-title > span { white-space: nowrap; }
	.ykm-created-rail > .wd-nav-sticky { pointer-events: auto; }
	.ykm-created-rail:focus-within .nav-link-text, .ykm-created-rail:focus-within .wd-sticky-nav-title > span { width: auto; max-width: none; opacity: 1; }
	.ykm-created-drawer, .ykm-created-trigger, .ykm-created-overlay { display: none !important; }
}
@media (max-width: 1024px) {
	.ykm-created-rail { display: none !important; }
	html.ykm-mobile-is-open { overflow: hidden; }
	.ykm-created-drawer {
		position: fixed;
		top: var(--wd-admin-bar-h, 0px);
		bottom: 0;
		right: 0;
		left: auto;
		z-index: 500;
		width: min(var(--wd-side-hidden-w, 300px), calc(100vw - 50px));
		overflow: auto;
		overscroll-behavior: contain;
		background: var(--bgcolor-white, #fff);
		transform: translate3d(100%,0,0);
		visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.ykm-created-drawer.wd-opened { transform: none; visibility: visible; }
	.ykm-adapted-drawer > .wd-nav-mobile:not(.wd-active) { display: none !important; }
	.ykm-adapted-drawer > .ykm-mobile-tree.wd-active { display: block; }
	.ykm-adapted-drawer > .wd-nav-mob-tab { display: flex; list-style: none; margin: 0; padding: 0; background: #f7f7f7; border-bottom: 1px solid #ededed; }
	.ykm-adapted-drawer > .wd-nav-mob-tab > li { flex: 1; margin: 0; text-align: center; }
	.ykm-adapted-drawer > .wd-nav-mob-tab > li:only-child { max-width: 100%; }
	.ykm-adapted-drawer > .wd-nav-mob-tab > li > a { display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px; font-size: 14px; color: #999; text-decoration: none; }
	.ykm-adapted-drawer > .wd-nav-mob-tab > li.wd-active > a { color: #333; box-shadow: inset 0 -2px var(--wd-primary-color, #0878e7); background: #eee; }
	.ykm-created-drawer .searchform { display: flex; position: relative; margin: 0; }
	.ykm-created-drawer .searchform input[type=text] { width: 100%; height: 70px; box-sizing: border-box; padding: 14px 20px 14px 60px; border: 0; border-bottom: 1px solid #eee; background: #fff; font: inherit; }
	.ykm-created-drawer .searchsubmit { position: absolute; top: 0; left: 0; width: 50px; height: 70px; padding: 0; border: 0; background: transparent; color: #767676; }
	.ykm-created-drawer .searchsubmit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.ykm-created-drawer .searchsubmit::before { margin: 0; opacity: 1; visibility: visible; animation: none; transform: none; content: ''; display: block; position: absolute; left: 18px; top: 25px; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; }
	.ykm-created-drawer .searchsubmit::after { margin: 0; content: ''; position: absolute; left: 13px; top: 42px; width: 8px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
	.ykm-created-trigger > a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; }
	.ykm-created-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.5); visibility: hidden; opacity: 0; }
	.ykm-created-overlay.wd-close-side-opened { visibility: visible; opacity: 1; }
	.ykm-created-trigger a:focus-visible { outline: 2px solid #0878e7; outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) { .ykm-created-drawer { transition: none; } }
