.periscope-btn-group {
	display: inline-flex;

	.ant-btn {
		border-radius: 0;
	}
}

.periscope-btn {
	display: flex;
	justify-content: center;
	align-items: center;

	padding: 6px;

	border: 1px solid var(--l1-border);
	border-radius: 3px;
	background: var(--l2-background);
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
	color: var(--l2-foreground);

	&.ghost {
		box-shadow: none;
		border: none;
		background: transparent;
		color: var(--l2-foreground);
	}

	cursor: pointer;

	&.primary {
		color: var(--primary-foreground) !important;
		background-color: var(--primary-background) !important;
		border: none;
		box-shadow: 0 2px 0
			color-mix(in srgb, var(--primary-background) 9%, transparent);
	}

	&.secondary {
		border-radius: 3px;
		border: 1px solid var(--secondary-border);
		background: var(--secondary-background);
		color: var(--secondary-foreground);
	}

	&:disabled {
		opacity: 0.5;
	}

	&.link {
		color: var(--l2-foreground);

		border: none;
		box-shadow: none;
		background: transparent;
		font-size: 12px;
		font-weight: 400;
		letter-spacing: -0.07px;
		line-height: 20px;

		&:hover {
			color: var(--l1-foreground) !important;
			background-color: transparent !important;
		}
	}

	&.text {
		color: var(--l1-foreground) !important;
		background-color: transparent !important;
		border: none;
		box-shadow: none;
		box-shadow: none;
		padding: 4px 4px;

		&:hover {
			color: var(--l2-foreground) !important;
			background-color: transparent !important;
		}
	}

	&.success {
		color: var(--l1-foreground) !important;
		border-radius: 2px;
		border: 1px solid
			color-mix(in srgb, var(--success-background) 10%, transparent);
		background: color-mix(
			in srgb,
			var(--success-background) 10%,
			transparent
		) !important;
		box-shadow: none !important;
	}

	&.warning {
		color: var(--l1-foreground) !important;
		border-radius: 2px;
		border: 1px solid
			color-mix(in srgb, var(--warning-background) 10%, transparent);
		background: color-mix(
			in srgb,
			var(--warning-background) 10%,
			transparent
		) !important;
		box-shadow: none !important;
	}

	&.danger {
		border-radius: 2px;
		color: var(--l1-foreground) !important;
		background: var(--danger-background) !important;
		text-align: center;
		font-variant-numeric: slashed-zero;
		box-shadow: none !important;

		&:hover {
			border: 1px solid var(--danger-background) !important;
		}
	}
}

.periscope-tab {
	display: flex;
	align-items: center;
	gap: 8px;
}

.periscope-input {
	&.borderless {
		border: none;
		border-radius: 0;
	}
}

.periscope-input-with-label {
	display: flex;
	flex-direction: row;
	border-radius: 2px 0px 0px 2px;

	.label {
		font-size: 12px;

		color: var(--l2-foreground);
		font-size: 12px;
		font-style: normal;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: 0.56px;

		max-width: 150px;
		min-width: 80px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 0px 8px;
		border-radius: 2px 0px 0px 2px;
		border: 1px solid var(--l2-border);
		background: var(--l2-background);
		color: var(--l1-foreground);
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-weight: var(--font-weight-light);
	}

	.input {
		flex: 1;
		border-radius: 0px 2px 2px 0px;
		border: 1px solid var(--l1-border);
		border-right: none;
		border-left: none;
		border-top-right-radius: 0px;
		border-bottom-right-radius: 0px;
		border-top-left-radius: 0px;
		border-bottom-left-radius: 0px;

		background: var(--l1-background);

		min-width: 0;

		.ant-select {
			font-family: 'Space Mono', monospace !important;

			border: none;
			height: 36px;
			.ant-select-selection-search-input {
				min-width: max-content !important;
				max-width: 100% !important;
			}
		}

		.ant-select-selector {
			border: none;
			background: var(--l2-background);
		}

		.ant-select-selection-placeholder {
			color: var(--l2-foreground);
		}
	}

	.close-btn {
		border-radius: 0px 2px 2px 0px;
		border: 1px solid var(--l2-border);
		background: var(--l2-background);
		height: 38px;
		width: 38px;
	}
}
