/* Smdesign Language Popup */
:root { --smd-lp-accent: #c00000; }

.smd-lp-overlay {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(15, 15, 20, .55);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .25s ease;
}
.smd-lp-overlay.is-open { opacity: 1; }

.smd-lp-box {
	position: relative;
	width: 100%; max-width: 340px;
	padding: 26px 22px 18px;
	background: #fff; color: #1d1d1f;
	border-radius: 14px;
	border-top: 4px solid var(--smd-lp-accent);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	font-family: inherit;
	transform: translateY(14px) scale(.98);
	transition: transform .25s ease;
}
.smd-lp-overlay.is-open .smd-lp-box { transform: none; }

.smd-lp-title {
	margin: 0 24px 16px; text-align: center;
	font-size: 17px; font-weight: 600; line-height: 1.35;
}

.smd-lp-close {
	position: absolute; top: 8px; right: 10px;
	width: 32px; height: 32px; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: #888;
	font-size: 24px; line-height: 1; cursor: pointer;
}
.smd-lp-close:hover, .smd-lp-close:focus-visible { background: #f1f1f1; color: #222; }

.smd-lp-list { display: flex; flex-direction: column; gap: 8px; }

.smd-lp-opt {
	display: flex; align-items: center; gap: 12px;
	width: 100%; margin: 0; padding: 12px 14px;
	border: 1px solid #e2e2e2; border-radius: 10px;
	background: #fafafa; color: #1d1d1f;
	font: inherit; font-size: 15px; text-align: left; text-transform: none; letter-spacing: normal;
	cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.smd-lp-opt:hover, .smd-lp-opt:focus-visible {
	border-color: var(--smd-lp-accent); background: #fff; color: #1d1d1f; outline: none;
}
.smd-lp-opt:active { transform: scale(.99); }
.smd-lp-opt img { width: 26px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: 0 0 auto; }
.smd-lp-opt span { flex: 1 1 auto; }
.smd-lp-opt.is-current { border-color: var(--smd-lp-accent); font-weight: 600; background: #fff; }
.smd-lp-check {
	width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
	background: var(--smd-lp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Floating button */
.smd-lp-fab {
	position: fixed; z-index: 2147482000;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 12px; margin: 0;
	border: 0; border-radius: 999px;
	background: #fff; color: #1d1d1f;
	font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .03em;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
	cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.smd-lp-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); background: #fff; color: #1d1d1f; }
.smd-lp-fab img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.smd-lp-bottom-right { right: 16px; bottom: 16px; }
.smd-lp-bottom-left  { left: 16px;  bottom: 16px; }
.smd-lp-top-right    { right: 16px; top: 16px; }
.smd-lp-top-left     { left: 16px;  top: 16px; }
.admin-bar .smd-lp-top-right, .admin-bar .smd-lp-top-left { top: 48px; }

/* Shortcode button */
.smd-lang-inline {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 8px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.smd-lang-inline img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
	.smd-lp-overlay, .smd-lp-box, .smd-lp-fab { transition: none; }
}
