/* ################################################################################################################################################ */
/* DEBUG: seraph-accel CSS src="/wp-content/plugins/hs-ab-test-manager/assets/hs-ab-test.css?ver=1.1.2" */

.hs-ab-test-container {
	background: #fff;
	padding: 25px;
	margin: 20px 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.hs-ab-test-container h2 {
	margin-top: 0;
	color: #1d2327;
	font-size: 1.3em;
}

.hs-existing-tests {
	margin-top: 30px;
}

.hs-test-item {
	background: #f6f7f7;
	padding: 20px;
	margin: 15px 0;
	border-left: 4px solid #2271b1;
	border-radius: 0 4px 4px 0;
	position: relative;
}

.hs-test-item h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #1d2327;
	font-size: 1.2em;
}

.hs-test-item p {
	margin: 5px 0;
	color: #50575e;
}

.hs-test-stats {
	display: flex;
	gap: 15px;
	margin: 15px 0;
	flex-wrap: wrap;
}

.hs-stat-box {
	background: #fff;
	padding: 15px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	min-width: 180px;
	flex: 1;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.hs-stat-box strong {
	color: #1d2327;
	display: block;
	margin-bottom: 8px;
	font-size: 1.1em;
}

.hs-stat-box small {
	color: #646970;
	font-size: .9em;
	word-break: break-all;
	display: block;
	margin-bottom: 8px;
}

.hs-traffic-split-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hs-traffic-split-item {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
}

.hs-traffic-split-item input {
	width: 60px;
}

.hs-status-active {
	color: #00a32a;
	font-weight: 600;
}

.hs-status-inactive {
	color: #d63638;
	font-weight: 600;
}

.hs-conversion-rate {
	font-weight: 600;
	font-size: 1.1em;
}

.hs-conversion-rate.hs-high-rate {
	color: #00a32a;
}

.hs-conversion-rate.hs-medium-rate {
	color: #dba617;
}

.hs-conversion-rate.hs-low-rate {
	color: #d63638;
}

.hs-form-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f1;
}

.hs-form-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.hs-url-input-group {
	margin-bottom: 12px;
}

.hs-url-input-group input[type="url"] {
	width: 100%;
	max-width: 500px;
}

.hs-split-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.hs-split-input-group input[type="number"] {
	width: 80px;
}

.hs-split-input-group label {
	min-width: 80px;
	font-weight: 500;
}

.hs-split-ab-test {
	position: relative;
	transition: all .3s ease;
}

.hs-split-ab-test::after {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #2271b1, #135e96);
	border-radius: inherit;
	z-index: -1;
	opacity: 0;
	transition: opacity .3s ease;
}

.hs-split-ab-test:hover::after {
	opacity: .1;
}

@media (max-width: 768px) {
	.hs-test-stats {
		flex-direction: column;
	}
	
	.hs-stat-box {
		min-width: auto;
	}
	
	.hs-ab-test-container {
		padding: 15px;
	}
}

.hs-loading {
	opacity: .6;
	pointer-events: none;
	position: relative;
}

.hs-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #2271b1;
	border-radius: 50%;
	animation: hs-spin 1s linear infinite;
	z-index: 1000;
}

.hs-success-message {
	background: #d1e7dd;
	color: #0f5132;
	padding: 12px 16px;
	border: 1px solid #badbcc;
	border-radius: 4px;
	margin: 10px 0;
}

.hs-error-message {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 16px;
	border: 1px solid #f5c2c7;
	border-radius: 4px;
	margin: 10px 0;
}

.hs-ab-modal {
	display: none;
	position: fixed;
	z-index: 10010;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background: rgba(0, 0, 0, .33);
}

.hs-ab-modal-content {
	background: #fff;
	margin: 10% auto;
	padding: 30px 40px;
	border-radius: 6px;
	width: 400px;
	max-width: 90vw;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
	text-align: center;
	position: relative;
	font-size: 18px;
}

.hs-ab-modal-content.success {
	border-left: 8px solid #57b366;
}

.hs-ab-modal-content.error {
	border-left: 8px solid #b35757;
}

.hs-ab-modal-close {
	position: absolute;
	right: 18px;
	top: 12px;
	font-size: 32px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
}

.hs-ab-modal-close:hover {
	color: #444;
}