/*
 * Elite Kit — Page weight, in the Elementor editor.
 * Loaded in the editor only (classes/page-weight.php); never on the site.
 */
.ek-pw-button {
	position: fixed;
	right: 20px;
	bottom: 66px;
	z-index: 100000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 0;
	border-radius: 999px;
	background: #1d2327;
	color: #fff;
	font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.ek-pw-button:hover {
	background: #000;
}

/* Over the budget: red, with white text (7.2:1). */
.ek-pw-button[data-state="over"] {
	background: #b32d2e;
}

.ek-pw-button[data-state="over"]:hover {
	background: #8a2424;
}

.ek-pw-button[aria-expanded="true"] {
	right: 400px;
}

.ek-pw-button:focus-visible,
.ek-pw-panel button:focus-visible,
.ek-pw-heading:focus-visible,
.ek-pw-link:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.ek-pw-icon {
	font-size: 15px;
	line-height: 1;
}

.ek-pw-panel[hidden] {
	display: none;
}

.ek-pw-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: 100vw;
	background: #fff;
	color: #1d2327;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
}

.ek-pw-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #dcdcde;
}

.ek-pw-heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.ek-pw-close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ek-pw-close:hover {
	background: #f0f0f1;
}

.ek-pw-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px 24px;
}

.ek-pw-total {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}

.ek-pw-of {
	margin-top: 2px;
	color: #50575e;
}

.ek-pw-bar {
	height: 8px;
	margin-top: 10px;
	border-radius: 4px;
	background: #f0f0f1;
	overflow: hidden;
}

.ek-pw-bar span {
	display: block;
	height: 100%;
	background: #008a20;
}

.ek-pw-bar[data-state="over"] span {
	background: #d63638;
}

.ek-pw-verdict {
	margin-top: 8px;
	font-weight: 600;
	color: #007017;
}

.ek-pw-verdict[data-state="over"] {
	color: #b32d2e;
}

.ek-pw-advice {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fcf0f1;
	color: #1d2327;
}

.ek-pw-subheading {
	margin: 18px 0 6px;
	font-size: 13px;
	font-weight: 700;
}

.ek-pw-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ek-pw-row {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 8px 0;
	border-top: 1px solid #f0f0f1;
}

.ek-pw-name {
	font-weight: 600;
}

.ek-pw-saving {
	color: #50575e;
}

.ek-pw-shared,
.ek-pw-note,
.ek-pw-empty {
	margin: 14px 0 0;
	color: #50575e;
}

.ek-pw-link {
	display: inline-block;
	margin-top: 14px;
	color: #2271b1;
}
