/*!
 * Belt & Pulley Speed Calculator — module CSS (e2z-bps- prefix).
 * Color scheme (spec): Primary #155E75 (petrol blue), Secondary #1F2937 (graphite),
 * Accent #F59E0B (amber), BG #F0F9FF.
 * Scope: .e2z-tool-belt-pulley-speed-calculator (framework shortcode wrapper).
 */

.e2z-tool-belt-pulley-speed-calculator,
.e2z-tool-belt-pulley-speed-calculator *,
.e2z-tool-belt-pulley-speed-calculator *::before,
.e2z-tool-belt-pulley-speed-calculator *::after {
	box-sizing: border-box;
}

.e2z-tool-belt-pulley-speed-calculator .e2z-bps-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1F2937;
	width: 100%;
	margin: 0 auto;
	background: #F0F9FF;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(31, 41, 55, 0.10);
	overflow: hidden;
}

/* Header */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #155E75, #1F2937);
	color: #fff;
	text-align: center;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-subtitle {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-inputs-panel { flex: 3; }
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-results-panel {
		flex: 3;
		min-width: 360px;
		position: sticky;
		top: 20px;
	}
}

.e2z-tool-belt-pulley-speed-calculator .e2z-bps-inputs-panel,
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #BAE6FD;
	box-shadow: 0 2px 8px rgba(31, 41, 55, 0.05);
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-section-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #155E75;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #E0F2FE;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-section-title + .e2z-bps-section-title { margin-top: 18px; }

/* Fields */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-field {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #0E7490;
	margin-bottom: 4px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-hint {
	font-size: 0.73rem;
	color: #7DD3FC;
	margin-top: 4px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-input {
	width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid #BAE6FD;
	border-radius: 6px;
	font-size: 0.92rem;
	font-family: inherit;
	background: #fff;
	color: #1F2937;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-input:focus {
	outline: none;
	border-color: #155E75;
	box-shadow: 0 0 0 3px rgba(21, 94, 117, 0.12);
}

/* Driven pulley cards */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-driven {
	border: 1px solid #BAE6FD;
	border-left: 4px solid #155E75;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 12px;
	background: #F0F9FF;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-driven-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-driven-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1F2937;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-remove-btn {
	min-height: 32px;
	min-width: 32px;
	border: 1px solid #FCA5A5;
	border-radius: 6px;
	background: #FEF2F2;
	color: #DC2626;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-remove-btn:hover { background: #DC2626; color: #fff; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-driven .e2z-bps-row { margin-bottom: 0; }

/* Buttons */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-add-btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px dashed #155E75;
	border-radius: 8px;
	background: #fff;
	color: #155E75;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-add-btn:hover { background: #E0F2FE; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-driven-actions { margin-bottom: 14px; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #155E75;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-calc-btn:hover { filter: brightness(1.15); }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
}

/* Results */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-empty-state {
	padding: 24px;
	text-align: center;
	color: #0369A1;
	background: #F0F9FF;
	border-radius: 8px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	border: 1px solid #7DD3FC;
	background: #E0F2FE;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.1;
	color: #155E75;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-hero-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0E7490;
	margin: 0;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-result-block {
	background: #F0F9FF;
	border: 1px solid #BAE6FD;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-result-block h3 {
	font-size: 1rem;
	color: #1F2937;
	margin: 0 0 10px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat {
	background: #fff;
	border: 1px solid #BAE6FD;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat-label {
	font-size: 0.73rem;
	font-weight: 600;
	color: #0369A1;
	margin: 0 0 3px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat-value {
	font-size: 1.02rem;
	font-weight: 700;
	color: #155E75;
	margin: 0;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat-amber .e2z-bps-stat-value { color: #B45309; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-stat-dark .e2z-bps-stat-value { color: #1F2937; }

/* Slip badge */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-badge-ok { background: #DCFCE7; color: #166534; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-badge-warn { background: #FEF3C7; color: #92400E; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-badge-bad { background: #FEE2E2; color: #991B1B; }

/* Table */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.83rem;
	background: #fff;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-table th {
	background: #1F2937;
	color: #fff;
	padding: 8px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-table td {
	padding: 7px 8px;
	text-align: center;
	border-bottom: 1px solid #E0F2FE;
	white-space: nowrap;
}

.e2z-tool-belt-pulley-speed-calculator .e2z-bps-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-note-info { background: #FFFBEB; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-note-ok { background: #ECFDF5; color: #065F46; border-left: 3px solid #059669; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Diagram */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-diagram-wrap:empty { display: none; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-diagram-wrap { margin-bottom: 12px; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-diagram-wrap svg {
	width: 100%;
	height: auto;
	background: #fff;
	border: 1px solid #BAE6FD;
	border-radius: 10px;
}

/* Export */
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-print-btn,
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-print-btn { background: #155E75; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-copy-btn { background: #1F2937; }
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-print-btn:hover,
.e2z-tool-belt-pulley-speed-calculator .e2z-bps-copy-btn:hover { filter: brightness(1.25); }

.e2z-tool-belt-pulley-speed-calculator .e2z-bps-disclaimer {
	font-size: 0.75rem;
	color: #7DD3FC;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-belt-pulley-speed-calculator .e2z-bps-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-title { font-size: 1.4rem; }
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-field { min-width: 110px; }
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-inputs-panel,
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-results-panel { padding: 14px; }
}
@media (max-width: 360px) {
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-header { padding: 16px 10px; }
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-title { font-size: 1.25rem; }
	.e2z-tool-belt-pulley-speed-calculator .e2z-bps-field { min-width: 100%; }
}
